dengjunjie
2025-07-09 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d23723b"],{fa9c:function(e,t,i){"use strict";i.r(t);var n=i("1258");function o(e,t,i,o,l,a){const r=Object(n["resolveComponent"])("view-grid");return Object(n["openBlock"])(),Object(n["createBlock"])(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("5d3c"),i("1168"),i("ff15");let l={components:{gridHeader:"",gridBody:"",gridFooter:"",modelHeader:"",modelBody:"",modelFooter:""},tableAction:"",buttons:{view:[],box:[],detail:[]},methods:{onInit(){let e={Extra:null,DelKeys:null},t=this.buttons.find(e=>"enableStatus"==e.value);t&&(t.data=[{name:"正常",icon:"el-icon-circle-check",onClick:()=>{e.Extra=0,this.enableStatus(e,"正常")}},{name:"只入",icon:"el-icon-circle-plus-outline",onClick:()=>{e.Extra=1,this.enableStatus(e,"只入")}},{name:"只出",icon:"el-icon-remove-outline",onClick:()=>{e.Extra=2,this.enableStatus(e,"只出")}},{name:"禁用",icon:"el-icon-circle-close",onClick:()=>{e.Extra=3,this.enableStatus(e,"禁用")}}]),this.boxOptions.labelWidth=160,this.labelWidth=160;let i=this.buttons.find(e=>"Enable"==e.value);i&&(i.onClick=function(){let e=this.$refs.table.getSelected();if(0==e.length)return this.$error("请选择巷道!");let t=e.map(e=>e[this.table.key]);if(!t||0==t.Length)return this.$error("未获取到巷道信息!");this.$confirm("是否确认要启用巷道?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",showClose:!0,type:"warning"}).then(()=>{this.http.post("api/RoadwayInfo/RoadwayEnableStatus",t,"正在启用巷道....").then(e=>{if(!e.status)return this.$error(e.message);this.$success("启用巷道成功!"),this.refresh()})})});let n=this.buttons.find(e=>"Disable"==e.value);n&&(n.onClick=function(){let e=this.$refs.table.getSelected();if(0==e.length)return this.$error("请选择巷道!");let t=e.map(e=>e[this.table.key]);if(!t||0==t.Length)return this.$error("未获取到巷道信息!");this.$confirm("是否确认要禁用巷道?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",showClose:!0,type:"warning"}).then(()=>{this.http.post("api/RoadwayInfo/RoadwayDisableStatus",t,"正在禁用巷道....").then(e=>{if(!e.status)return this.$error(e.message);this.$success("禁用巷道成功!"),this.refresh()})})})},enableStatus(e,t){let i=this.$refs.table.getSelected();return 0==i.length?this.$error("请选择巷道!"):(e.DelKeys=i.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/RoadwayInfo/UpdateEnableStatus",e,"正在设置巷道....").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:i}){},modelOpenAfter(e){}}};var a=l,r=Object(n["defineComponent"])({setup(){const e=Object(n["ref"])({key:"id",footer:"Foots",cnName:"巷道信息",name:"roadwayInfo",url:"/roadwayInfo/",sortName:"id"}),t=Object(n["ref"])({roadwayNo:"",AreaId:"",enalbeStatus:"0",deviceNo:"",inStationCode:"",inSCStationCode:"",outStationCode:"",outSCStationCode:""}),i=Object(n["ref"])([[{title:"巷道编号",required:!0,field:"roadwayNo",type:"string"},{title:"设备编号",required:!0,field:"deviceNo",type:"string"}],[{title:"入库站台编号",field:"inStationCode",type:"string"},{title:"堆垛机入库站台编号",field:"inSCStationCode",type:"string"}],[{title:"出库站台编号",field:"outStationCode",type:"string"},{title:"堆垛机出库站台编号",field:"outSCStationCode",type:"string"}]]),o=Object(n["ref"])({roadwayNo:"",AreaId:"",enalbeStatus:"",deviceNo:"",inStationCode:"",inSCStationCode:"",outStationCode:"",outSCStationCode:""}),l=Object(n["ref"])([[{title:"巷道编号",field:"roadwayNo",type:"like"},{title:"仓库主键",field:"AreaId",type:"like"},{title:"禁用状态",field:"enalbeStatus",type:"like"},{title:"设备编号",field:"deviceNo",type:"like"}],[{title:"入库站台编号",field:"inStationCode",type:"like"},{title:"堆垛机入库站台编号",field:"inSCStationCode",type:"like"},{title:"出库站台编号",field:"outStationCode",type:"like"},{title:"堆垛机出库站台编号",field:"outSCStationCode",type:"like"}]]),r=Object(n["ref"])([{field:"id",title:"Id",type:"int",width:90,hidden:!0,readonly:!0,require:!0,align:"left"},{field:"roadwayNo",title:"巷道编号",type:"string",width:90,align:"left"},{field:"enableStatus",title:"禁用状态",type:"string",width:150,align:"left",bind:{key:"enableStatusEnum",data:[]}},{field:"deviceNo",title:"设备编号",type:"decimal",width:90,align:"left"},{field:"inStationCode",title:"入库站台编号",type:"string",width:120,align:"left"},{field:"inSCStationCode",title:"堆垛机入库站台编号",type:"string",width:150,align:"left"},{field:"outStationCode",title:"出库站台编号",type:"decimal",width:120,align:"left"},{field:"outSCStationCode",title:"堆垛机出库站台编号",type:"string",width:150,align:"left"},{field:"creater",title:"创建人",type:"string",width:90,align:"left"},{field:"createDate",title:"创建时间",type:"datetime",width:160,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"}]),d=Object(n["ref"])({cnName:"#detailCnName",table:"",columns:[],sortName:""});return{table:e,extend:a,editFormFields:t,editFormOptions:i,searchFormFields:o,searchFormOptions:l,columns:r,detail:d}}}),d=i("9c21"),s=i.n(d);const c=s()(r,[["render",o]]);t["default"]=c}}]);