生产工单状态修改

This commit is contained in:
打豆豆 2024-03-21 17:09:00 +08:00
parent 07d3416af9
commit be549dc331

View File

@ -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(() => {
// if (res.data.code === 200) {
// this.getList(); // this.getList();
// this.$modal.msgSuccess(""); // this.$modal.msgSuccess("");
// } else {
// this.$message.error(res.data.msg);
// }
// }) // })
// .catch(() => {}); // .catch(() => {});
}, },