生产工单状态修改
This commit is contained in:
parent
07d3416af9
commit
be549dc331
@ -668,9 +668,11 @@ export default {
|
|||||||
.get("http://192.168.3.53:8077/manage/task/execute?ids=" + routeId)
|
.get("http://192.168.3.53:8077/manage/task/execute?ids=" + routeId)
|
||||||
// .get("http://127.0.0.1:8077/manage/task/execute?ids=" + routeId)
|
// .get("http://127.0.0.1:8077/manage/task/execute?ids=" + routeId)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.data.code === 200) {
|
||||||
this.$modal.msgSuccess("执行成功");
|
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("执行成功");
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -682,9 +684,11 @@ export default {
|
|||||||
.get("http://192.168.3.53:8077/manage/task/suspension?id=" + routeId)
|
.get("http://192.168.3.53:8077/manage/task/suspension?id=" + routeId)
|
||||||
// .get("http://127.0.0.1:8077/manage/task/suspension?id=" + routeId)
|
// .get("http://127.0.0.1:8077/manage/task/suspension?id=" + routeId)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.data.code === 200) {
|
||||||
this.$modal.msgSuccess("已暂停");
|
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("已暂停");
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -692,13 +696,17 @@ export default {
|
|||||||
handleSuspended(row) {
|
handleSuspended(row) {
|
||||||
// const workorderIds = row.workorderId || this.ids;
|
// const workorderIds = row.workorderId || this.ids;
|
||||||
// this.$modal
|
// this.$modal
|
||||||
// .confirm("确认删除?")
|
// .confirm("确认删除数据项?")
|
||||||
// .then(function () {
|
// .then(function () {
|
||||||
// return dofinish(workorderIds); //完成工单
|
// return dofinish(workorderIds); //完成工单
|
||||||
// })
|
// })
|
||||||
// .then(() => {
|
// .then(() => {
|
||||||
// this.getList();
|
// if (res.data.code === 200) {
|
||||||
// this.$modal.msgSuccess("删除成功");
|
// this.getList();
|
||||||
|
// this.$modal.msgSuccess("删除成功");
|
||||||
|
// } else {
|
||||||
|
// this.$message.error(res.data.msg);
|
||||||
|
// }
|
||||||
// })
|
// })
|
||||||
// .catch(() => {});
|
// .catch(() => {});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user