|  |  | 
 |  |  |          <div style="width: 100%;"> | 
 |  |  |             <el-card class="box-card"> | 
 |  |  |                <el-form :inline="true" :model="tableSearchParam" class="demo-form-inline"> | 
 |  |  |                   <el-form-item label=""> | 
 |  |  |                   <el-form-item style="width: 100px;" label=""> | 
 |  |  |                      <el-input v-model="tableSearchParam.task_no" placeholder="任务号"></el-input> | 
 |  |  |                   </el-form-item> | 
 |  |  |                   <el-form-item label=""> | 
 |  |  |                      <el-select v-model="tableSearchParam.status" placeholder="任务状态"> | 
 |  |  |                   <el-form-item style="width: 100px;" label=""> | 
 |  |  |                      <el-select v-model="tableSearchParam.status" placeholder="状态"> | 
 |  |  |                         <el-option label="接收" value="1"></el-option> | 
 |  |  |                         <el-option label="派发" value="2"></el-option> | 
 |  |  |                         <el-option label="完结" value="3"></el-option> | 
 |  |  |                         <el-option label="取消" value="4"></el-option> | 
 |  |  |                      </el-select> | 
 |  |  |                   </el-form-item> | 
 |  |  |                   <el-form-item label=""> | 
 |  |  |                   <el-form-item style="width: 100px;" label=""> | 
 |  |  |                      <el-input v-model="tableSearchParam.wrk_no" placeholder="工作号"></el-input> | 
 |  |  |                   </el-form-item> | 
 |  |  |                   <el-form-item label=""> | 
 |  |  |                      <el-input v-model="tableSearchParam.barcode" placeholder="托盘码"></el-input> | 
 |  |  |                   </el-form-item> | 
 |  |  |                   <el-form-item label=""> | 
 |  |  |                      <el-date-picker | 
 |  |  | 
 |  |  |                      <el-button type="primary" @click="resetParam">重置</el-button> | 
 |  |  |                   </el-form-item> | 
 |  |  |                </el-form> | 
 |  |  |                <el-table ref="singleTable" :data="tableData" style="width: 100%;"> | 
 |  |  |                   <el-table-column label="操作" width="100"> | 
 |  |  |                <el-table border ref="singleTable" :data="tableData" style="width: 100%;"> | 
 |  |  |  | 
 |  |  |                   <el-table-column sortable align="center" property="taskNo" label="任务号" width="90"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="status$" label="任务状态" width="110"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="wrkNo" label="工作号" width="90"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="createTime$" label="任务时间" width="170"> | 
 |  |  |                   </el-table-column> | 
 |  |  | <!--                  <el-table-column sortable align="center" property="durationTime" label="持续时长">--> | 
 |  |  | <!--                  </el-table-column>--> | 
 |  |  |                   <el-table-column sortable align="center" property="ioType$" label="任务类型"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="startPoint" label="起点位置"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="targetPoint" label="终点位置"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="wrkSts$" label="工作状态"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="barcode" label="托盘码"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="crnNo" label="堆垛机号"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column sortable align="center" property="ioPri$" label="优先级"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column label="操作" width="100" align="center"> | 
 |  |  |                      <template slot-scope="scope"> | 
 |  |  |                         <el-dropdown @command="(command)=>{handleCommand(command, scope.row)}"> | 
 |  |  |                            <el-button icon="el-icon-more" size="mini" type="primary"></el-button> | 
 |  |  |                            <el-dropdown-menu slot="dropdown"> | 
 |  |  |                               <el-dropdown-item command="showCommand">查看指令</el-dropdown-item> | 
 |  |  |                               <el-dropdown-item command="upIoPri">增加优先级</el-dropdown-item> | 
 |  |  |                               <el-dropdown-item command="downIoPri">降低优先级</el-dropdown-item> | 
 |  |  |                               <el-dropdown-item command="changeCommand">修改</el-dropdown-item> | 
 |  |  |                               <el-dropdown-item command="assign">派发</el-dropdown-item> | 
 |  |  |                               <el-dropdown-item command="complete">完结</el-dropdown-item> | 
 |  |  | 
 |  |  |                            </el-dropdown-menu> | 
 |  |  |                         </el-dropdown> | 
 |  |  |                      </template> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="taskNo" label="任务号"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="status$" label="任务状态"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="wrkNo" label="工作号"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="createTime$" label="任务时间"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="durationTime" label="持续时长"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="ioType$" label="任务类型"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="startPoint" label="起点位置"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="targetPoint" label="终点位置"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="wrkSts$" label="工作状态"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="barcode" label="托盘码"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="crnNo" label="堆垛机号"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                </el-table> | 
 |  |  |  | 
 |  |  | 
 |  |  |                   status: null, | 
 |  |  |                   wrk_no: null, | 
 |  |  |                   datetime: null, | 
 |  |  |                   barcode:null | 
 |  |  |                }, | 
 |  |  |                taskWrkFormVisible: false, | 
 |  |  |                taskWrkForm: {}, | 
 |  |  | 
 |  |  |                         //查看指令 | 
 |  |  |                         this.showCommand(row) | 
 |  |  |                         break; | 
 |  |  |                      case "upIoPri": | 
 |  |  |                         //查看指令 | 
 |  |  |                         this.upIoPri(row) | 
 |  |  |                         break; | 
 |  |  |                      case "downIoPri": | 
 |  |  |                         //查看指令 | 
 |  |  |                         this.downIoPri(row) | 
 |  |  |                         break; | 
 |  |  |                      case "changeCommand": | 
 |  |  |                         //修改指令 | 
 |  |  |                         this.changeCommand(row); | 
 |  |  | 
 |  |  |                      shadeClose: true, | 
 |  |  |                      content: 'commandManage.html?taskNo=' + row.taskNo + "&wrkNo=" + wrkNo, | 
 |  |  |                      success: function(layero, index) {} | 
 |  |  |                   }); | 
 |  |  |                }, | 
 |  |  |                upIoPri(row) { | 
 |  |  |                   let that = this | 
 |  |  |                   $.ajax({ | 
 |  |  |                      url: baseUrl + "/taskWrk/upIoPri", | 
 |  |  |                      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' | 
 |  |  |                            }); | 
 |  |  |                         } | 
 |  |  |                      } | 
 |  |  |                   }); | 
 |  |  |                }, | 
 |  |  |                downIoPri(row) { | 
 |  |  |                   let that = this | 
 |  |  |                   $.ajax({ | 
 |  |  |                      url: baseUrl + "/taskWrk/downIoPri", | 
 |  |  |                      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' | 
 |  |  |                            }); | 
 |  |  |                         } | 
 |  |  |                      } | 
 |  |  |                   }); | 
 |  |  |                }, | 
 |  |  |                changeCommand(row) { | 
 |  |  | 
 |  |  |                   }); | 
 |  |  |                }, | 
 |  |  |                completeWrk(row){ | 
 |  |  |                   //派发任务 | 
 |  |  |                   //完成任务 | 
 |  |  |                   let that = this | 
 |  |  |                   $.ajax({ | 
 |  |  |                      url: baseUrl + "/taskWrk/complete/auth", |