فهرست منبع

Merge branch 'dev' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-eom into dev

xieyong 3 هفته پیش
والد
کامیت
76c0420e36
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

+ 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,