소스 검색

feat(销售订单): 添加批次号列表获取功能

liujt 7 달 전
부모
커밋
3eaa3c9984
1개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 11 1
      src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

+ 11 - 1
src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

@@ -1161,12 +1161,22 @@
           'warehouseNum',
           warehouseOutStock || 0
         );
+
+        const tempBatchNoList = await getBatchList({
+            warehouseId: data.warehouseId,
+            categoryCode: row.productCode
+          });
+          this.$set(
+            this.form.datasource[index],
+            'batchNoList',
+            tempBatchNoList?.list || []
+          );
         
         if(isReset && row.isSuspend != 1) {
           this.$set(this.form.datasource[index], 'batchStockId', '');
           this.$set(this.form.datasource[index], 'batchNo', '');
+          
         }
-        
       },
 
       //批次号选择