|
@@ -310,7 +310,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 查询工位数据
|
|
// 查询工位数据
|
|
|
- FirstTaskIdFn() {
|
|
|
|
|
|
|
+ async FirstTaskIdFn(taskId) {
|
|
|
console.log(this.current, 'this.current 查询工位数据');
|
|
console.log(this.current, 'this.current 查询工位数据');
|
|
|
// let id = this.current.taskId || this.current.firstTaskId;
|
|
// let id = this.current.taskId || this.current.firstTaskId;
|
|
|
let id = '';
|
|
let id = '';
|
|
@@ -320,7 +320,7 @@ export default {
|
|
|
id = this.current.taskId;
|
|
id = this.current.taskId;
|
|
|
}
|
|
}
|
|
|
console.log(id, 'id 查询工位数据');
|
|
console.log(id, 'id 查询工位数据');
|
|
|
- listByFirstTaskId(id)
|
|
|
|
|
|
|
+ await listByFirstTaskId(taskId ? taskId : id)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.stationList = res;
|
|
this.stationList = res;
|
|
|
|
|
|
|
@@ -341,7 +341,10 @@ export default {
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- this.changeDispatch();
|
|
|
|
|
|
|
+ console.log(this.stationList, '5522200');
|
|
|
|
|
+ if (this.isTask) {
|
|
|
|
|
+ this.changeDispatch();
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
this.stationList = [];
|
|
this.stationList = [];
|
|
@@ -660,6 +663,8 @@ export default {
|
|
|
async handleClick(tab) {
|
|
async handleClick(tab) {
|
|
|
let id = tab.name;
|
|
let id = tab.name;
|
|
|
this.processId = id;
|
|
this.processId = id;
|
|
|
|
|
+ this.isTask = false;
|
|
|
|
|
+ await this.FirstTaskIdFn(id);
|
|
|
let data = this.processList.find((item) => item.id == this.processId);
|
|
let data = this.processList.find((item) => item.id == this.processId);
|
|
|
await this.changeRadio(data.assignType, data.index);
|
|
await this.changeRadio(data.assignType, data.index);
|
|
|
},
|
|
},
|
|
@@ -684,6 +689,7 @@ export default {
|
|
|
async getAssignData(index, arr) {
|
|
async getAssignData(index, arr) {
|
|
|
let list = JSON.parse(JSON.stringify(arr));
|
|
let list = JSON.parse(JSON.stringify(arr));
|
|
|
let dataRow = this.processList[index];
|
|
let dataRow = this.processList[index];
|
|
|
|
|
+
|
|
|
// 不存在 班组数据的话 就不调用这个方法
|
|
// 不存在 班组数据的话 就不调用这个方法
|
|
|
if (!this.form.teamId) {
|
|
if (!this.form.teamId) {
|
|
|
return;
|
|
return;
|