(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1faed30e","chunk-30d65b08"],{"0d63":function(e,t,l){"use strict";l.r(t);var i=l("c1b7");const a={class:"vol-dialog"},o={key:0,class:"dia-footer"};function s(e,t,l,s,c,n){const r=Object(i["resolveComponent"])("el-scrollbar"),d=Object(i["resolveComponent"])("el-button"),h=Object(i["resolveComponent"])("el-dialog");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",a,[Object(i["createVNode"])(h,{modelValue:e.vmodel,"onUpdate:modelValue":t[2]||(t[2]=t=>e.vmodel=t),"close-on-click-modal":!1,"close-on-press-escape":!1,width:e.width,fullscreen:e.fullscreen,draggable:e.draggable,modal:e.modal,"before-close":e.handleClose},{header:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("i",{class:Object(i["normalizeClass"])(e.icon)},null,2),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.title)+" ",1),Object(i["createElementVNode"])("button",{class:"el-dialog__headerbtn",type:"button",style:{right:"35px",color:"var(--el-color-info)"},onClick:t[0]||(t[0]=(...t)=>e.handleFullScreen&&e.handleFullScreen(...t))},t[3]||(t[3]=[Object(i["createElementVNode"])("i",{class:"el-icon el-icon-full-screen"},null,-1)]))]),footer:Object(i["withCtx"])(()=>[e.footer?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",o,[Object(i["renderSlot"])(e.$slots,"footer",{},void 0,!0),e.footer?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:0,type:"primary",size:"mini",onClick:t[1]||(t[1]=t=>e.handleClose())},{default:Object(i["withCtx"])(()=>t[4]||(t[4]=[Object(i["createElementVNode"])("i",{class:"el-icon-close"},null,-1),Object(i["createTextVNode"])("关闭")])),_:1}))])):Object(i["createCommentVNode"])("",!0)]),default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(r,{"max-height":e.contentHeight},{default:Object(i["withCtx"])(()=>[e.inited?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,style:Object(i["normalizeStyle"])([{"min-height":"50px"},{padding:e.padding+"px"}]),class:"srcoll-content"},[Object(i["renderSlot"])(e.$slots,"content",{},void 0,!0),Object(i["renderSlot"])(e.$slots,"default",{},void 0,!0)],4)):Object(i["createCommentVNode"])("",!0)]),_:3},8,["max-height"])]),_:3},8,["modelValue","width","fullscreen","draggable","modal","before-close"])])}var c=Object(i["defineComponent"])({props:{modelValue:!1,lazy:{type:Boolean,default:!1},icon:{type:String,default:"el-icon-warning-outline"},title:{type:String,default:"基本信息"},height:{type:Number,default:200},width:{type:Number,default:650},padding:{type:Number,default:16},modal:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},onModelClose:{type:Function,default:e=>!0},footer:{type:Boolean,default:!0}},setup(e,t){const l=.95*document.body.clientHeight-60,a=Object(i["ref"])(!0),o=Object(i["ref"])(!1),s=Object(i["ref"])(!1),c=Object(i["ref"])(100);o.value=e.modelValue,s.value=!!t.slots.footer;const n=Object(i["ref"])(200);n.value=e.height;const r=(l,i)=>{let a=e.onModelClose(!!i);!1!==a&&(o.value=!1,t.emit("update:modelValue",!1),l&&l())},d=e=>(n.value=l-30,l/-2+"px");c.value=d(),Object(i["watch"])(()=>e.modelValue,(e,t)=>{o.value=e}),Object(i["watch"])(()=>e.height,(e,t)=>{c.value=d()});const h=Object(i["ref"])(!1),u=()=>{h.value=!h.value,t.emit("fullscreen",h.value)};return{handleClose:r,inited:a,vmodel:o,footer:s,top:c,calcHeight:d,contentHeight:n,fullscreen:h,handleFullScreen:u}}}),n=(l("19bb"),l("a80f"),l("9c21")),r=l.n(n);const d=r()(c,[["render",s],["__scopeId","data-v-0463adc6"]]);t["default"]=d},"19bb":function(e,t,l){"use strict";l("aef5")},"1c2c":function(e,t,l){},3378:function(e,t,l){"use strict";l("3fb0")},"3fb0":function(e,t,l){},"701e":function(e,t,l){},"85cb":function(e,t,l){"use strict";l.r(t);var i=l("c1b7");function a(e,t,l,a,o,s){const c=Object(i["resolveComponent"])("view-grid");return Object(i["openBlock"])(),Object(i["createBlock"])(c,{ref:"grid",columns:e.columns,detail:e.detail,editFormFields:e.editFormFields,editFormOptions:e.editFormOptions,searchFormFields:e.searchFormFields,searchFormOptions:e.searchFormOptions,table:e.table,extend:e.extend},null,8,["columns","detail","editFormFields","editFormOptions","searchFormFields","searchFormOptions","table","extend"])}l("5948");const o={class:"grid-content right-text"},s={key:0},c={class:"grid-content content-text",style:{"font-weight":"bold","font-size":"18px"}},n={class:"grid-content content-text",style:{"font-weight":"bold","font-size":"18px"}},r={class:"grid-content content-text",style:{"font-weight":"bold","font-size":"18px"}},d={style:{height:"100px","margin-top":"3%"}},h={class:"grid-content content-text"},u={class:"grid-content content-text"},p={class:"grid-content content-text"},b={key:1};function f(e,t,l,a,f,m){const O=Object(i["resolveComponent"])("el-link"),j=Object(i["resolveComponent"])("el-col"),w=Object(i["resolveComponent"])("el-row"),g=Object(i["resolveComponent"])("el-step"),y=Object(i["resolveComponent"])("el-steps"),k=Object(i["resolveComponent"])("el-button"),v=Object(i["resolveComponent"])("el-table-column"),x=Object(i["resolveComponent"])("el-table"),N=Object(i["resolveComponent"])("vol-box");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["createVNode"])(N,{modelValue:f.showDetialBox,"onUpdate:modelValue":t[0]||(t[0]=e=>f.showDetialBox=e),lazy:!0,width:"1200px",padding:15,title:"任务详情"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(w,{height:"50"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(j,{span:24},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",o,[Object(i["createVNode"])(O,{type:"primary",onClick:m.switchView},{default:Object(i["withCtx"])(()=>t[1]||(t[1]=[Object(i["createTextVNode"])("切换视图")])),_:1},8,["onClick"])])]),_:1})]),_:1}),Object(i["createElementVNode"])("div",{style:Object(i["normalizeStyle"])({height:f.height})},[1==f.viewType?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",s,[Object(i["createVNode"])(w,{height:"50"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(j,{span:8},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",c,[Object(i["createElementVNode"])("span",null,"任务编号:"+Object(i["toDisplayString"])(f.row.taskNum),1)])]),_:1}),Object(i["createVNode"])(j,{span:8},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",n,[Object(i["createElementVNode"])("span",null,"托盘编号:"+Object(i["toDisplayString"])(f.row.palletCode),1)])]),_:1}),Object(i["createVNode"])(j,{span:8},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",r,[Object(i["createElementVNode"])("span",null,"任务状态:"+Object(i["toDisplayString"])(f.row.taskState),1)])]),_:1})]),_:1}),Object(i["createElementVNode"])("div",d,[Object(i["createVNode"])(y,{active:f.active,"align-center":"","finish-status":"success"},{default:Object(i["withCtx"])(()=>[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(f.steps,e=>(Object(i["openBlock"])(),Object(i["createBlock"])(g,{key:e.title,title:e.title,description:e.description},null,8,["title","description"]))),128))]),_:1},8,["active"])]),Object(i["withDirectives"])(Object(i["createVNode"])(w,{height:"50"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(j,{span:8},{default:Object(i["withCtx"])(()=>[Object(i["withDirectives"])(Object(i["createElementVNode"])("div",h,[Object(i["createVNode"])(k,{type:"danger",onClick:m.previous},{default:Object(i["withCtx"])(()=>t[2]||(t[2]=[Object(i["createTextVNode"])("回滚到上一步")])),_:1},8,["onClick"])],512),[[i["vShow"],f.previousShow]])]),_:1}),Object(i["createVNode"])(j,{span:8},{default:Object(i["withCtx"])(()=>[Object(i["withDirectives"])(Object(i["createElementVNode"])("div",u,[Object(i["createVNode"])(k,{type:"primary",onClick:m.recovery},{default:Object(i["withCtx"])(()=>t[3]||(t[3]=[Object(i["createTextVNode"])("任务挂起恢复")])),_:1},8,["onClick"])],512),[[i["vShow"],f.recoveryShow]])]),_:1}),Object(i["createVNode"])(j,{span:8},{default:Object(i["withCtx"])(()=>[Object(i["withDirectives"])(Object(i["createElementVNode"])("div",p,[Object(i["createVNode"])(k,{type:"warning",onClick:m.next},{default:Object(i["withCtx"])(()=>t[4]||(t[4]=[Object(i["createTextVNode"])("跳转到下一步")])),_:1},8,["onClick"])],512),[[i["vShow"],f.nextShow]])]),_:1})]),_:1},512),[[i["vShow"],f.previousShow||f.nextShow]])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",b,[Object(i["createVNode"])(x,{data:f.tableData,style:{width:"100%"},"row-class-name":m.tableRowClassName},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(v,{type:"index",width:"50"}),Object(i["createVNode"])(v,{prop:"taskNum",label:"任务号",width:"90"}),Object(i["createVNode"])(v,{prop:"taskState",label:"任务状态",width:"90"}),Object(i["createVNode"])(v,{prop:"currentAddress",label:"当前位置",width:"90"}),Object(i["createVNode"])(v,{prop:"nextAddress",label:"下一位置",width:"90"}),Object(i["createVNode"])(v,{prop:"isManual",label:"是否人工操作",width:"120"}),Object(i["createVNode"])(v,{prop:"isNormal",label:"是否正常",width:"90"}),Object(i["createVNode"])(v,{prop:"description",label:"描述"}),Object(i["createVNode"])(v,{prop:"createDate",label:"创建时间",width:"180"}),Object(i["createVNode"])(v,{prop:"remark",label:"备注",width:"180"})]),_:1},8,["data","row-class-name"])]))],4)]),_:1},8,["modelValue"])])}var m=l("0d63"),O={components:{VolBox:m["default"]},data(){return{active:0,showDetialBox:!1,row:{},steps:[],viewType:1,height:"200px",tableData:[],previousShow:!1,nextShow:!1,recoveryShow:!0}},methods:{open(e){this.row=e,this.showDetialBox=!0,1==this.viewType?this.getSteps():this.getDetailDatas(),this.$emit("parentCall",e=>{var t=e.buttons.find(e=>"Previous"==e.value);this.previousShow=null!=t;var l=e.buttons.find(e=>"Next"==e.value);this.nextShow=null!=l})},getSteps(){this.http.post("/api/TaskExecuteDetail/GetDetailInfo?taskNum="+this.row.taskNum,{},!0).then(e=>{if(!e.status)return this.$message.error(e.message);this.steps=e.data.list,this.active=e.data.active})},getDetailDatas(){this.http.post("/api/TaskExecuteDetail/GetDetailDatas?taskNum="+this.row.taskNum,{},!0).then(e=>{if(!e.status)return this.$message.error(e.message);this.tableData=e.data})},previous(){this.http.post("/api/Task/RollbackTaskStatusToLast?taskNum="+this.row.taskNum,{},!0).then(e=>{if(!e.status)return this.$message.error(e.message);this.$message.success("操作成功"),this.getSteps()})},recovery(){this.http.post("/api/Task/TaskStatusRecovery?taskNum="+this.row.taskNum,{},!0).then(e=>{if(!e.status)return this.$message.error(e.message);this.$message.success("操作成功"),this.getSteps()})},next(){this.http.post("/api/Task/UpdateTaskStatusToNext?taskNum="+this.row.taskNum,{},!0).then(e=>{if(!e.status)return this.$message.error(e.message);this.$message.success("操作成功"),this.getSteps()})},switchView(){this.viewType=1==this.viewType?2:1,2==this.viewType?(this.height="600px",this.getDetailDatas()):this.height="200px"},tableRowClassName({row:e,rowIndex:t}){return e.isNormal?e.isManual?"warning-row":"success-row":"error-row"}},created(){}},j=(l("cd7f"),l("3378"),l("9c21")),w=l.n(j);const g=w()(O,[["render",f],["__scopeId","data-v-c3b9de3e"]]);var y=g;let k={components:{gridHeader:"",gridBody:y,gridFooter:"",modelHeader:"",modelBody:"",modelFooter:""},tableAction:"",buttons:{view:[],box:[],detail:[]},methods:{onInit(){let e={Extra:null,Delkeys:null},t=this.buttons.find(e=>"Manual"==e.value);t&&(t.data=[{name:"重新下发堆垛机任务",icon:"el-icon-check",onClick:()=>{e.Extra=0,this.Manual(e,"重新下发堆垛机")}},{name:"完成堆垛机任务",icon:"el-icon-check",onClick:()=>{e.Extra=1,this.Manual(e,"完成堆垛机")}},{name:"完成任务",icon:"el-icon-check",onClick:()=>{e.Extra=2,this.Manual(e,"完成")}},{name:"取消任务",icon:"el-icon-delete",onClick:()=>{e.Extra=3,this.Manual(e,"取消")}}]);var l=this.buttons.find(e=>"Previous"==e.value);l&&(l.hidden=!0);var i=this.buttons.find(e=>"Next"==e.value);i&&(i.hidden=!0);var a=this.buttons.find(e=>"TaskRecovery"==e.value);a&&(a.hidden=!0),this.columns.push({field:"操作",title:"操作",width:70,fixed:"right",align:"center",formatter:e=>'<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">查看</i>',click:e=>{this.$refs.gridBody.open(e)}})},Manual(e,t){let l=this.$refs.table.getSelected();return 0==l.length?this.$error("请选择任务!"):l.length>1?this.$error("只可选择一条任务!"):(e.DelKeys=l.map(e=>e[this.table.key]),e.DelKeys&&0!=e.DelKeys.Length?void this.$confirm("是否确认要"+t+"任务?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",showClose:!0,type:"warning"}).then(()=>{this.http.post("api/Task/ManualTask?TaskId="+e.DelKeys+"&TaskType="+e.Extra,{},"正在"+t+"任务....").then(e=>{if(!e.status)return this.$error(e.message);this.$success(t+"任务成功!"),this.refresh()})}):this.$error("未获取到任务信息!"))},onInited(){},searchBefore(e){return!0},searchAfter(e){return!0},addBefore(e){return!0},updateBefore(e){return!0},rowClick({row:e,column:t,event:l}){},modelOpenAfter(e){}}};var v=k,x=Object(i["defineComponent"])({setup(){const e=Object(i["ref"])({key:"taskId",footer:"Foots",cnName:"任务信息",name:"task",url:"/Task/",sortName:"CreateDate"}),t=Object(i["ref"])({}),l=Object(i["ref"])([]),a=Object(i["ref"])({taskNum:"",palletCode:"",roadway:"",sourceAddress:"",targetAddress:"",currentAddress:"",nextAddress:"",creater:"",createDate:""}),o=Object(i["ref"])([[{title:"任务号",field:"taskNum",type:"int"},{title:"托盘编号",field:"palletCode",type:"like"},{title:"任务类型",field:"taskType",type:"selectList",dataKey:"taskType",data:[]},{title:"任务状态",field:"taskState",type:"selectList",dataKey:"taskState",data:[]}],[{title:"起始地址",field:"sourceAddress",type:"like"},{title:"目标地址",field:"targetAddress",type:"like"},{title:"当前位置",field:"currentAddress",type:"like"},{title:"下一位置",field:"nextAddress",type:"like"}],[{title:"巷道号",field:"roadway",type:"like"},{title:"创建人",field:"creater",type:"like"},{title:"创建时间",field:"createDate",type:"datetime"}]]),s=Object(i["ref"])([{field:"taskId",title:"TaskId",type:"int",width:90,hidden:!0,readonly:!0,require:!0,align:"left"},{field:"taskNum",title:"任务号",type:"int",width:90,sort:"true",align:"left"},{field:"palletCode",title:"托盘编号",type:"string",width:200,align:"left"},{field:"shuttleCarCode",title:"穿梭车",type:"string",width:90,align:"left",bind:{key:"ShuttleCars",data:[]}},{field:"roadway",title:"巷道号",type:"string",width:90,align:"left"},{field:"taskType",title:"任务类型",type:"int",width:90,align:"left",bind:{key:"taskType",data:[]}},{field:"taskState",title:"任务状态",type:"int",width:150,align:"left",bind:{key:"taskState",data:[]}},{field:"sourceAddress",title:"起始地址",type:"int",width:120,align:"left"},{field:"targetAddress",title:"目标地址",type:"string",width:120,align:"left"},{field:"currentAddress",title:"当前位置",type:"string",width:120,align:"left"},{field:"nextAddress",title:"下一位置",type:"string",width:120,align:"left"},{field:"exceptionMessage",title:"异常信息",type:"string",width:90,align:"left",hidden:!0},{field:"wMSId",title:"WMS任务主键",type:"int",width:120,align:"left",hidden:!0},{field:"creater",title:"创建人",type:"string",width:90,align:"left"},{field:"createDate",title:"创建时间",type:"datetime",width:150,align:"left"},{field:"modifier",title:"修改人",type:"string",width:100,align:"left"},{field:"modifyDate",title:"修改时间",type:"datetime",width:160,align:"left"},{field:"remark",title:"备注",type:"string",width:100,align:"left",hidden:!0}]),c=Object(i["ref"])({cnName:"",table:"",columns:[],sortName:"",key:""});return{table:e,extend:v,editFormFields:t,editFormOptions:l,searchFormFields:a,searchFormOptions:o,columns:s,detail:c}}});const N=w()(x,[["render",a]]);t["default"]=N},a80f:function(e,t,l){"use strict";l("1c2c")},aef5:function(e,t,l){},cd7f:function(e,t,l){"use strict";l("701e")}}]);
|