|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <el-table-column property="crnNo" label="堆垛机号"> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column property="ioPri" label="优先级"> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column property="memo" label="备注"> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | //取消任务 | 
|---|
|  |  |  | this.cancelWrk(row) | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case "delete": | 
|---|
|  |  |  | //取消任务 | 
|---|
|  |  |  | this.deleteWrk(row) | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | showCommand(row) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 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 | 
|---|