1
yangpeixing
2026-04-01 73569b329e4ed2293a63e5a739d5fb0314fc4fd8
WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js
@@ -45,53 +45,53 @@
            let AgvZHTaskResendBtn = this.buttons.find(x => x.value == 'AgvZHTaskResend');
            if (AgvZHTaskResendBtn) {
                AgvZHTaskResendBtn.onClick = function () {
                this.$confirm("是否确认重发阻焊AGV出库任务","手动任务重发警告",{
                    confirmButtonText: "确定",
                    cancelButtonText: "取消",
                    type: "warning",
                    center: true,
                    this.$confirm("是否确认重发阻焊AGV出库任务", "手动任务重发警告", {
                        confirmButtonText: "确定",
                        cancelButtonText: "取消",
                        type: "warning",
                        center: true,
                    }).then(() => {
                        let rows = this.$refs.table.getSelected();
                        if (rows.length == 0) return this.$error("请选择数据!");
                        if (rows.length > 1) return this.$error("请选择一条数据!");
                        var param = rows[0].taskNum;
                        this.http
                        .post("api/ZH_AGV/AgvZHTaskResend?taskNum="+param, "数据处理中...")
                        .then((x) => {
                            if (x.status) {
                            this.$Message.success('手动任务重发成功');
                            this.refresh();
                        } else {
                            return this.$error(x.message);
                        }
                        });
                            .post("api/ZH_AGV/AgvZHTaskResend?taskNum=" + param, "数据处理中...")
                            .then((x) => {
                                if (x.status) {
                                    this.$Message.success('手动任务重发成功');
                                    this.refresh();
                                } else {
                                    return this.$error(x.message);
                                }
                            });
                    });
                }
            }
            let StackerCraneTaskResendingBtn = this.buttons.find(x => x.value == 'StackerCraneTaskResending');
            if (StackerCraneTaskResendingBtn) {
                StackerCraneTaskResendingBtn.onClick = function () {
                this.$confirm("是否确认重发堆垛机任务","手动任务重发警告",{
                    confirmButtonText: "确定",
                    cancelButtonText: "取消",
                    type: "warning",
                    center: true,
                    this.$confirm("是否确认重发堆垛机任务", "手动任务重发警告", {
                        confirmButtonText: "确定",
                        cancelButtonText: "取消",
                        type: "warning",
                        center: true,
                    }).then(() => {
                        let rows = this.$refs.table.getSelected();
                        if (rows.length == 0) return this.$error("请选择数据!");
                        if (rows.length > 1) return this.$error("请选择一条数据!");
                        var param = rows[0].taskNum;
                        this.http
                        .post("api/Task/StackerCraneTaskResending?taskNum="+param, "数据处理中...")
                        .then((x) => {
                            if (x.status) {
                            this.$Message.success('手动任务重发成功');
                            this.refresh();
                        } else {
                            return this.$error(x.message);
                        }
                        });
                            .post("api/Task/StackerCraneTaskResending?taskNum=" + param, "数据处理中...")
                            .then((x) => {
                                if (x.status) {
                                    this.$Message.success('手动任务重发成功');
                                    this.refresh();
                                } else {
                                    return this.$error(x.message);
                                }
                            });
                    });
                }
            }
@@ -99,26 +99,26 @@
            let StackerCraneTaskPriorityBtn = this.buttons.find(x => x.value == 'StackerCraneTaskPriority');
            if (StackerCraneTaskPriorityBtn) {
                StackerCraneTaskPriorityBtn.onClick = function () {
                this.$confirm("是否优先执行该堆垛机任务","手动优先任务警告",{
                    confirmButtonText: "确定",
                    cancelButtonText: "取消",
                    type: "warning",
                    center: true,
                    this.$confirm("是否优先执行该堆垛机任务", "手动优先任务警告", {
                        confirmButtonText: "确定",
                        cancelButtonText: "取消",
                        type: "warning",
                        center: true,
                    }).then(() => {
                        let rows = this.$refs.table.getSelected();
                        if (rows.length == 0) return this.$error("请选择数据!");
                        if (rows.length > 1) return this.$error("请选择一条数据!");
                        var param = rows[0].taskNum;
                        this.http
                        .post("api/Task/StackerCraneTaskPriority?taskNum="+param, "数据处理中...")
                        .then((x) => {
                            if (x.status) {
                            this.$Message.success('手动优先任务成功');
                            this.refresh();
                        } else {
                            return this.$error(x.message);
                        }
                        });
                            .post("api/Task/StackerCraneTaskPriority?taskNum=" + param, "数据处理中...")
                            .then((x) => {
                                if (x.status) {
                                    this.$Message.success('手动优先任务成功');
                                    this.refresh();
                                } else {
                                    return this.$error(x.message);
                                }
                            });
                    });
                }
            }
@@ -126,26 +126,53 @@
            let RGVTaskResendingBtn = this.buttons.find(x => x.value == 'RGVTaskResending');
            if (RGVTaskResendingBtn) {
                RGVTaskResendingBtn.onClick = function () {
                this.$confirm("是否确认重发RGV任务","手动任务重发警告",{
                    confirmButtonText: "确定",
                    cancelButtonText: "取消",
                    type: "warning",
                    center: true,
                    this.$confirm("是否确认重发RGV任务", "手动任务重发警告", {
                        confirmButtonText: "确定",
                        cancelButtonText: "取消",
                        type: "warning",
                        center: true,
                    }).then(() => {
                        let rows = this.$refs.table.getSelected();
                        if (rows.length == 0) return this.$error("请选择数据!");
                        if (rows.length > 1) return this.$error("请选择一条数据!");
                        var param = rows[0].taskNum;
                        this.http
                        .post("api/Task/RGVTaskResending?taskNum="+param, "数据处理中...")
                        .then((x) => {
                            if (x.status) {
                            this.$Message.success('任务重发完成');
                            this.refresh();
                        } else {
                            return this.$error(x.message);
                        }
                        });
                            .post("api/Task/RGVTaskResending?taskNum=" + param, "数据处理中...")
                            .then((x) => {
                                if (x.status) {
                                    this.$Message.success('任务重发完成');
                                    this.refresh();
                                } else {
                                    return this.$error(x.message);
                                }
                            });
                    });
                }
            }
            let TaskHandCompletedBtn = this.buttons.find(x => x.value == 'TaskHandCompleted');
            if (TaskHandCompletedBtn) {
                TaskHandCompletedBtn.onClick = function () {
                    this.$confirm("是否确认完成任务", "手动任务完成警告", {
                        confirmButtonText: "确定",
                        cancelButtonText: "取消",
                        type: "warning",
                        center: true,
                    }).then(() => {
                        let rows = this.$refs.table.getSelected();
                        if (rows.length == 0) return this.$error("请选择数据!");
                        if (rows.length > 1) return this.$error("请选择一条数据!");
                        var param = rows[0].taskNum;
                        this.http
                            .post("api/Task/ManualTaskCompleted?taskNum=" + param, "数据处理中...")
                            .then((x) => {
                                if (x.status) {
                                    this.$Message.success('任务手动完成');
                                    this.refresh();
                                } else {
                                    return this.$error(x.message);
                                }
                            });
                    });
                }
            }