Commit f5011fb3 authored by chenzj's avatar chenzj

修复了暂停作业的bug

parent 03d0e30c
...@@ -1108,7 +1108,7 @@ export default { ...@@ -1108,7 +1108,7 @@ export default {
}, },
stopReasonSubmit() { stopReasonSubmit() {
this.tableSelectData.forEach((item) => { this.tableSelectData.forEach((item) => {
this.changeStatus(item.taskId, 'PAUSE'); this.changeStop(item.taskId, 'PAUSE');
}); });
this.getTaskList(); this.getTaskList();
}, },
...@@ -1251,6 +1251,24 @@ export default { ...@@ -1251,6 +1251,24 @@ export default {
} }
}); });
}, },
//暂停作业
changeStop(taskId, status) {
// this.form.status = status;
this.$u.api
.changeStatus({
taskId: taskId,
status: status,
attr1: this.stopReasonForm.reason,
attr2: this.stopReasonForm.desc
})
.then((res) => {
if (res.code === 200) {
this.$u.toast('变更成功');
uni.$emit('taskStatusChanged'); //任务状态变更
this.getTaskList();
}
});
},
// reset() { // reset() {
// this.feedbackForm = { // this.feedbackForm = {
// workstationId: 0, // workstationId: 0,
......
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