|
|
@@ -371,7 +371,8 @@
|
|
|
supplierName: '',
|
|
|
taskIdes: [],
|
|
|
factoriesId: '',
|
|
|
- factoriesName: ''
|
|
|
+ factoriesName: '',
|
|
|
+ taskDataList: []
|
|
|
},
|
|
|
isInWarehouse: true,
|
|
|
produceList: [],
|
|
|
@@ -619,6 +620,7 @@
|
|
|
this.attributeData.supplierId = '';
|
|
|
this.attributeData.taskIdes = [];
|
|
|
this.attributeData.factoriesId = '';
|
|
|
+ this.attributeData.taskDataList = [];
|
|
|
},
|
|
|
|
|
|
//跳转
|
|
|
@@ -633,16 +635,39 @@
|
|
|
);
|
|
|
this.attributeData.supplierName = obj ? obj.name : '';
|
|
|
}
|
|
|
+
|
|
|
+ this.attributeData.taskIdes.forEach((it) => {
|
|
|
+ this.newStepsList.filter((i) => {
|
|
|
+ if (i.taskId == it) {
|
|
|
+ this.attributeData.taskDataList.push(i);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
this.attributeData.taskIds =
|
|
|
this.attributeData.taskIdes.join(',');
|
|
|
+ console.log(
|
|
|
+ this.attributeData.taskDataList,
|
|
|
+ 'this.attributeData.taskDataList1'
|
|
|
+ );
|
|
|
this.$emit('changePlugIn', this.attributeData, this.activeName);
|
|
|
} else if (this.activeName == '2') {
|
|
|
const obj = this.factoryList.find(
|
|
|
(item) => item.id === this.attributeData.factoriesId
|
|
|
);
|
|
|
this.attributeData.factoriesName = obj ? obj.name : '';
|
|
|
+ this.attributeData.taskIdes.forEach((it) => {
|
|
|
+ this.newStepsList.filter((i) => {
|
|
|
+ if (i.taskId == it) {
|
|
|
+ this.attributeData.taskDataList.push(i);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
this.attributeData.taskIds =
|
|
|
this.attributeData.taskIdes.join(',');
|
|
|
+ console.log(
|
|
|
+ this.attributeData.taskDataList,
|
|
|
+ 'this.attributeData.taskDataList2'
|
|
|
+ );
|
|
|
console.log(this.attributeData);
|
|
|
this.$emit('changePlugIn', this.attributeData, this.activeName);
|
|
|
}
|