|
|
@@ -1091,6 +1091,8 @@
|
|
|
produceRoutingName: item.produceRoutingName,
|
|
|
produceVersionName: item.produceVersionName,
|
|
|
factoriesId: this.factoriesId,
|
|
|
+ colorKey: item.colorKey ? item.colorKey.split(',') : [],
|
|
|
+ modelKey: item.modelKey ? item.modelKey.split(',') : [],
|
|
|
factoriesName: this.factoryList?.find(
|
|
|
(factoryData) => factoryData.id === this.factoriesId
|
|
|
)?.name
|
|
|
@@ -1191,6 +1193,8 @@
|
|
|
this.form.productInfoList.push(...result);
|
|
|
this.changeLineNumber();
|
|
|
|
|
|
+ console.log(this.form.productInfoList, 'this.form.productInfoList');
|
|
|
+
|
|
|
this.$refs.tableRef.setData(this.form.productInfoList);
|
|
|
// console.log(this.form.productInfoList, 'this.form.productInfoList');
|
|
|
//重置
|
|
|
@@ -1282,7 +1286,11 @@
|
|
|
row.routingList = arr;
|
|
|
if (typeChange) {
|
|
|
this.$set(this.form.productInfoList[index], 'routingList', arr);
|
|
|
- this.$set(this.form.productInfoList[index], 'produceRoutingId', arr[0].id);
|
|
|
+ this.$set(
|
|
|
+ this.form.productInfoList[index],
|
|
|
+ 'produceRoutingId',
|
|
|
+ arr[0].id
|
|
|
+ );
|
|
|
} else {
|
|
|
this.$set(row, 'produceRoutingId', arr[0].id);
|
|
|
this.$set(row, 'routingList', arr);
|