暂停生产

This commit is contained in:
打豆豆 2024-03-21 16:38:08 +08:00
parent 86ca719f6c
commit 26a2b4cf32
2 changed files with 17 additions and 2 deletions

View File

@ -234,7 +234,7 @@
size="mini"
type="text"
icon="el-icon-edit"
v-if="scope.row.status == 'CONFIRMED'"
v-if="scope.row.status == 'PRODUCTION'"
@click="handleUpdate(scope.row)"
v-hasPermi="['mes:pro:protask:edit']"
>排产</el-button
@ -666,6 +666,7 @@ export default {
const routeId = row.workorderId || this.ids;
axios
.get("http://192.168.3.53:8077/manage/task/execute?ids=" + routeId)
// .get("http://127.0.0.1:8077/manage/task/execute?ids=" + routeId)
.then((res) => {
if (res.code == 200) {
this.$modal.msgSuccess("执行成功");
@ -674,6 +675,20 @@ export default {
});
},
//
Pendingproduction(row) {
const routeId = row.workorderId || this.ids;
axios
.get("http://192.168.3.53:8077/manage/task/suspension?id=" + routeId)
// .get("http://127.0.0.1:8077/manage/task/suspension?id=" + routeId)
.then((res) => {
if (res.code == 200) {
this.$modal.msgSuccess("已暂停");
this.getList();
}
});
},
selectable(row, index) {
if (row.status == "WORKING" || row.status == "PREPARE") {
return false;

View File

@ -932,7 +932,7 @@ export default {
this.$modal
.confirm("是否确认完成工单编制?【确认后将不能更改】")
.then(function () {
that.form.status = "CONFIRMED";
that.form.status = "PRODUCTION";
that.submitForm();
});
},