#
1
2025-05-14 dcdfc93b50febf61301832d91dfcddcfa1ca5403
src/main/webapp/views/taskWrk/taskWrk.html
@@ -55,9 +55,10 @@
                                <!--                              <el-dropdown-item command="showCommand">查看指令</el-dropdown-item>-->
                                <el-dropdown-item command="returnWorkingCondition">重新给堆垛机下发任务</el-dropdown-item>
                                <el-dropdown-item command="changeCommand">修改</el-dropdown-item>
                                <el-dropdown-item command="assign">派发</el-dropdown-item>
                                <el-dropdown-item command="assign">跳转到输送线下发完成</el-dropdown-item>
                                <el-dropdown-item command="complete">完结</el-dropdown-item>
                                <el-dropdown-item command="cancel">取消</el-dropdown-item>
                                <el-dropdown-item command="delete">删除无需上报</el-dropdown-item>
                            </el-dropdown-menu>
                        </el-dropdown>
                    </template>
@@ -231,6 +232,10 @@
                        //取消任务
                        this.cancelWrk(row)
                        break;
                    case "delete":
                        //取消任务
                        this.deleteWrk(row)
                        break;
                }
            },
            showCommand(row) {
@@ -257,7 +262,7 @@
                //派发任务
                let that = this
                $.ajax({
                    url: baseUrl + "/taskWrk/distribute/auth",
                    url: baseUrl + "/taskWrk/assign/auth",
                    headers: {
                        'token': localStorage.getItem('token')
                    },
@@ -343,6 +348,36 @@
                    }
                });
            },
            deleteWrk(row) {
                //取消任务
                let that = this
                $.ajax({
                    url: baseUrl + "/taskWrk/delete/auth",
                    headers: {
                        'token': localStorage.getItem('token')
                    },
                    data: {
                        taskNo: row.taskNo
                    },
                    method: 'POST',
                    success: function (res) {
                        if (res.code == 200) {
                            that.$message({
                                message: "删除成功",
                                type: 'success'
                            });
                            that.getTableData()
                        } else if (res.code === 403) {
                            top.location.href = baseUrl + "/";
                        } else {
                            that.$message({
                                message: res.msg,
                                type: 'error'
                            });
                        }
                    }
                });
            },
            cancelWrk(row) {
                //取消任务
                let that = this