Quellcode durchsuchen

fix:修改发货单选择批次号没有修改systemBatchNo字段的问题

mlchen vor 1 Monat
Ursprung
Commit
48c2fee9f5

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

@@ -1044,7 +1044,7 @@
     methods: {
       formatPrice,
       getSummaries(param) {
-  
+
 
         return getSummaries(
           param,
@@ -1143,6 +1143,7 @@
       async batchNoChange(index, row) {
         if (!row.batchStockId) {
           this.$set(this.form.datasource[index], 'batchNo', '');
+          this.$set(this.form.datasource[index], 'systemBatchNo', '');
           // this.$set(this.form.datasource[index], 'warehouseNum', '');
           const tempWarehouse = await getIdWarehouseList({
             categoryId: this.form.datasource[index].productId
@@ -1177,6 +1178,7 @@
           (item) => item.id == row.batchStockId
         );
         this.$set(this.form.datasource[index], 'batchNo', data.batchNo);
+        this.$set(this.form.datasource[index], 'systemBatchNo', data.systemBatchNo);
 
         this.$set(
           this.form.datasource[index],