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