(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd7d2"],{8235:function(e,t,i){"use strict";i.r(t);var a=i("7a23");function l(e,t,i,l,s,n){const r=Object(a["W"])("view-grid");return Object(a["N"])(),Object(a["l"])(r,{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"])}i("14d9");let s={components:{gridHeader:"",gridBody:"",gridFooter:"",modelHeader:"",modelBody:"",modelFooter:""},buttons:{view:[],box:[],detail:[]},methods:{onInit(){this.pagination.order="asc",this.columns.forEach(e=>{("stationCode"==e.field||"lastInTime"==e.field)&&(e.sort=!0),"getStatus"==e.field?e.getColor=(e,t)=>-1==e.getStatus?"info":0==e.getStatus?"success":1==e.getStatus?"waring":void 0:"enable"==e.field&&(e.getColor=(e,t)=>1==e.enable?"success":"error")}),this.buttons.splice(1,0,{name:"取消禁用",icon:"md-refresh",type:"primary",onClick:function(){let e=this.$refs.table.getSelected();if(0==e.length)return this.$error("请选择要取消禁用的数据");this.$confirm("确认要取消禁用吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{let t=[],i={data:t,type:"1"};e.forEach(e=>t.push(e.id)),this.http.post("/api/dt_stationinfo/SetStationEnable",i,"取消禁用中...").then(e=>{e.status?(this.$Message.success("取消禁用成功!"),this.refresh()):this.$Message.error(e.message)})})}}),this.buttons.splice(1,0,{name:"禁用",icon:"md-refresh",type:"danger",onClick:function(){let e=this.$refs.table.getSelected();if(0==e.length)return this.$error("请选择要禁用的数据");this.$confirm("确认要禁用吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{let t=[],i={data:t,type:"0"};e.forEach(e=>t.push(e.id)),this.http.post("/api/dt_stationinfo/SetStationEnable",i,"锁定中...").then(e=>{e.status?(this.$Message.success("禁用成功!"),this.refresh()):this.$Message.error(e.message)})})}})}}};var n=s,r=Object(a["u"])({setup(){const e=Object(a["S"])({key:"id",footer:"Foots",cnName:"站点查询",name:"/dt_stationinfo",url:"/dt_stationinfo/",sortName:"id"}),t=Object(a["S"])({stationType:"",location_state:""}),i=Object(a["S"])([[{title:"站点地址",required:!0,field:"stationCode",type:"text",disabled:!0}],[{title:"是否存在任务",required:!0,field:"task",type:"select",dataKey:"lktask"}]]),l=Object(a["S"])({route_began:"",route_end:"",area:""}),s=Object(a["S"])([[{title:"站点地址",field:"stationCode",type:"like"},{title:"区域",field:"area",type:"select",dataKey:"station_area"},{title:"物料类型",field:"stationType",type:"select",dataKey:"materieInfo"},{title:"站点状态",field:"getStatus",data:[{key:1,value:"有料"},{key:0,value:"无料"},{key:-1,value:"掉线"},{key:2,value:"允许"},{key:3,value:"不允许"}],type:"select"}],[{title:"货位状态",field:"location_state",data:[{key:"Empty",value:"空位"},{key:"Storage",value:"满料架"},{key:"Pallet",value:"空托架"},{key:"Unknow",value:"有托"}],type:"select"},{title:"是否启用",field:"enable",data:[{key:"true",value:"启用"},{key:"false",value:"禁用"}],type:"select"},{title:"备注",field:"remark",type:"like"}]]),r=Object(a["S"])([{field:"id",title:"ID",type:"guid",width:60,hidden:!0,readonly:!0,require:!0,align:"left"},{field:"stationCode",title:"站点地址",type:"string",width:150,require:!0,align:"left"},{field:"area",title:"楼层",type:"string",width:150,align:"left",bind:{data:[]}},{field:"stationType",title:"货架类型",type:"string",width:90,require:!0,align:"left",bind:{data:[]}},{field:"tpgd",title:"托盘光电",type:"bit",width:90,require:!0,align:"left",bind:{key:"",data:[{key:"false",value:"无料"},{key:"true",value:"有料"}]}},{field:"wlgd",title:"物料光电",type:"bit",width:90,require:!0,align:"left",bind:{key:"",data:[{key:"false",value:"无料"},{key:"true",value:"有料"}]}},{field:"task",title:"任务是否存在",type:"bit",width:90,require:!0,align:"left",bind:{key:"",data:[{key:"false",value:"不存在"},{key:"true",value:"存在"}]}},{field:"lastUpdateTime",title:"更新时间",type:"string",width:120,align:"left"},{field:"enable",title:"是否启用",type:"string",width:60,align:"left",bind:{data:[{key:!0,value:"启用"},{key:!1,value:"禁用"}]}},{field:"remark",title:"备注",type:"string",width:100,align:"left"}]),d=Object(a["S"])({cnName:"#detailCnName",columns:[],sortName:"",key:""});return{table:e,extend:n,editFormFields:t,editFormOptions:i,searchFormFields:l,searchFormOptions:s,columns:r,detail:d}}}),d=i("6b0d"),o=i.n(d);const c=o()(r,[["render",l]]);t["default"]=c}}]);