浏览代码

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,