Forráskód Böngészése

fix:5467【销售订单-发货单】发替代料,物品还是会被发出去,导致库存还是会锁一次,发替代料只收替代料

mlchen 3 hete
szülő
commit
4b1bdcb0b5

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

@@ -1550,7 +1550,7 @@
       replaceTable(list) {
         console.log('list~~~~', list);
         list.forEach((item) => {
-          item['relationId'] = this.current.tempId;
+          item['relationId'] = this.current.id || this.current.tempId;
         });
         this.$emit('replaceTableChange', list);
       },
@@ -1666,7 +1666,7 @@
           }
           // item['sendTotalWeight'] = item.sendTotalWeigh;
           // item['increaseTotalWeight'] = item.increaseTotalWeight;
-          item['tempId'] = this.form.datasource.length;
+          item['tempId'] = item.id || this.form.datasource.length;
           indexS.push(this.form.datasource.length);
           this.$set(
             this.form.datasource,