yusheng 11 сар өмнө
parent
commit
c3e2f2fbce

+ 2 - 0
src/views/purchasingManage/purchaseOrder/invoice/components/inventoryTable.vue

@@ -681,6 +681,7 @@
         this.$set(this.form.datasource[index], 'warehouseId', data.id);
       },
       warehouseAllChange(data) {
+        console.log(this.selection,'this.selection')
         let keyS = this.selection.map((item) => item.key - 1);
         keyS.forEach((key) => {
           this.$set(this.form.datasource[key], 'warehouseName', data.name);
@@ -897,6 +898,7 @@
             };
           });
           this.form.datasource.forEach((item, index) => {
+            item.key = index+1
             this.init(item, index);
             this.getTotalPrice(index);
           });