|
@@ -495,6 +495,7 @@ import {
|
|
|
} from "@/api/ams/wcsTask";
|
|
|
import { queryLocationDict } from "@/api/base/locationInfo";
|
|
|
import { queryLocationZoneDict } from "@/api/base/locationZone"
|
|
|
+import {lockLocRequest} from "@/api/ams/locationView";
|
|
|
|
|
|
export default {
|
|
|
name: "WcsTask",
|
|
@@ -763,11 +764,14 @@ export default {
|
|
|
handleComplete (row) {
|
|
|
const taskNos = row.taskNo
|
|
|
this.$modal.confirm('是否确认要完成"' + taskNos + '"的任务?').then(function() {
|
|
|
- return completeWcsTask(taskNos);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.$modal.msgSuccess("执行成功");
|
|
|
- }).catch(() => {});
|
|
|
+ completeWcsTask(taskNos).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.$modal.msgSuccess(response.msg);
|
|
|
+ } else {
|
|
|
+ this.$modal.msgError("111");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
handleCancel (row) {
|
|
|
const taskNos = row.taskNo
|