Commit 16526d75 authored by 张海景's avatar 张海景

update:工序人员状态已开工的不允许再次点击开始作业,提示该任务已开工,请勿重复开工

parent 66a5f993
......@@ -938,9 +938,18 @@ export default {
this.getTaskList();
break;
case 'StartTask':
let status = false
this.tableSelectData.forEach((item) => {
if(item.status === 'BEGINNING') {
status = true
} else {
this.changeStatus(item.taskId, 'BEGINNING');
}
});
if (status) {
this.$u.toast('该任务已开工,请勿重复开工')
return
}
this.getTaskList();
break;
case 'StopTask':
......@@ -999,11 +1008,11 @@ export default {
const records = await this.$u.api.dModel.getRecordsByProcessIdAndArrangeCode(params);
// 如果有数据
if (records?.data && records.data.length) {
return this.$u.toast('该刀模版具不属于该工单');
} else {
this.dModelData = records.data;
this.knifeTempVisible = true;
return;
} else {
return this.$u.toast('该刀模版具不属于该工单');
}
this.addDModelRecord(params);
},
......@@ -1061,6 +1070,7 @@ export default {
this.tableSelectData = arr;
},
toggleRowSelection(checked, arr) {
console.log(this.tableSelectData, 'this.tableSelectData')
this.tableSelectData = arr;
},
knifeTemp() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment