暂停生产
This commit is contained in:
parent
86ca719f6c
commit
26a2b4cf32
@ -234,7 +234,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
v-if="scope.row.status == 'CONFIRMED'"
|
v-if="scope.row.status == 'PRODUCTION'"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['mes:pro:protask:edit']"
|
v-hasPermi="['mes:pro:protask:edit']"
|
||||||
>排产</el-button
|
>排产</el-button
|
||||||
@ -666,6 +666,7 @@ export default {
|
|||||||
const routeId = row.workorderId || this.ids;
|
const routeId = row.workorderId || this.ids;
|
||||||
axios
|
axios
|
||||||
.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)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$modal.msgSuccess("执行成功");
|
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) {
|
selectable(row, index) {
|
||||||
if (row.status == "WORKING" || row.status == "PREPARE") {
|
if (row.status == "WORKING" || row.status == "PREPARE") {
|
||||||
return false;
|
return false;
|
||||||
|
@ -932,7 +932,7 @@ export default {
|
|||||||
this.$modal
|
this.$modal
|
||||||
.confirm("是否确认完成工单编制?【确认后将不能更改】")
|
.confirm("是否确认完成工单编制?【确认后将不能更改】")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
that.form.status = "CONFIRMED";
|
that.form.status = "PRODUCTION";
|
||||||
that.submitForm();
|
that.submitForm();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user