|
|
@@ -182,6 +182,7 @@ export default {
|
|
|
};
|
|
|
let processMap = {};
|
|
|
this.processList.map((el, index) => (processMap[el.id] = index));
|
|
|
+ console.log(this.processList, 'processMap');
|
|
|
const res = await listAssign(params);
|
|
|
let isFirstData = false; // 判断默认第一道工序是否操作过
|
|
|
if (res && res.length > 0) {
|
|
|
@@ -278,6 +279,24 @@ export default {
|
|
|
listByFirstTaskId(id)
|
|
|
.then((res) => {
|
|
|
this.stationList = res;
|
|
|
+
|
|
|
+ this.stationList.forEach((item, index) => {
|
|
|
+ let substance = item.workstationSubstanceList[0]?.substance;
|
|
|
+ if (substance) {
|
|
|
+ this.$set(this.stationList[index], 'assetName', substance.name);
|
|
|
+ this.$set(this.stationList[index], 'assetCode', substance.code);
|
|
|
+ this.$set(
|
|
|
+ this.stationList[index],
|
|
|
+ 'assetModelType',
|
|
|
+ substance.category?.category?.modelType
|
|
|
+ );
|
|
|
+ this.$set(
|
|
|
+ this.stationList[index],
|
|
|
+ 'assetCategoryLevelPath',
|
|
|
+ substance.category?.category?.categoryLevelPath?.split('-')[0]
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
this.changeDispatch();
|
|
|
})
|
|
|
.catch((err) => {
|