(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e3465ecc","chunk-59deb07c"],{"0d63":function(e,t,l){"use strict";l.r(t);var i=l("1258");const o={class:"vol-dialog"},n={key:0,class:"dia-footer"};function a(e,t,l,a,r,c){const d=Object(i["resolveComponent"])("el-scrollbar"),s=Object(i["resolveComponent"])("el-button"),p=Object(i["resolveComponent"])("el-dialog");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",o,[Object(i["createVNode"])(p,{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",n,[Object(i["renderSlot"])(e.$slots,"footer",{},void 0,!0),e.footer?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(s,{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"])(d,{"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 r=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,o=Object(i["ref"])(!0),n=Object(i["ref"])(!1),a=Object(i["ref"])(!1),r=Object(i["ref"])(100);n.value=e.modelValue,a.value=!!t.slots.footer;const c=Object(i["ref"])(200);c.value=e.height;const d=(l,i)=>{let o=e.onModelClose(!!i);!1!==o&&(n.value=!1,t.emit("update:modelValue",!1),l&&l())},s=e=>(c.value=l-30,l/-2+"px");r.value=s(),Object(i["watch"])(()=>e.modelValue,(e,t)=>{n.value=e}),Object(i["watch"])(()=>e.height,(e,t)=>{r.value=s()});const p=Object(i["ref"])(!1),u=()=>{p.value=!p.value,t.emit("fullscreen",p.value)};return{handleClose:d,inited:o,vmodel:n,footer:a,top:r,calcHeight:s,contentHeight:c,fullscreen:p,handleFullScreen:u}}}),c=(l("19bb"),l("a80f"),l("9c21")),d=l.n(c);const s=d()(r,[["render",a],["__scopeId","data-v-0463adc6"]]);t["default"]=s},"19bb":function(e,t,l){"use strict";l("aef5")},"1c2c":function(e,t,l){},"4e3c":function(e,t,l){},"6ba5":function(e,t,l){"use strict";l("4e3c")},"867f":function(e,t,l){"use strict";l.r(t);var i=l("1258");function o(e,t,l,o,n,a){const r=Object(i["resolveComponent"])("view-grid");return Object(i["openBlock"])(),Object(i["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"])}l("5d3c"),l("1168"),l("ff15"),l("fe66");const n={class:"box-table",style:{"margin-top":"1%"}},a={key:0},r={key:1};function c(e,t,l,o,c,d){const s=Object(i["resolveComponent"])("el-table-column"),p=Object(i["resolveComponent"])("el-link"),u=Object(i["resolveComponent"])("el-tooltip"),h=Object(i["resolveComponent"])("el-tag"),f=Object(i["resolveComponent"])("el-table"),b=Object(i["resolveComponent"])("vol-box"),m=Object(i["resolveComponent"])("stock-select"),g=Object(i["resolveComponent"])("selected-stock");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["createVNode"])(b,{modelValue:c.showDetialBox,"onUpdate:modelValue":t[0]||(t[0]=e=>c.showDetialBox=e),lazy:!0,width:"75%",padding:15,title:"货位明细信息"},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",n,[Object(i["createVNode"])(f,{ref:"singleTable",data:c.tableData,style:{width:"100%",height:"100%"},"highlight-current-row":"",onCurrentChange:d.handleCurrentChange,height:"500px",onRowClick:d.handleRowClick,onSelectionChange:d.handleSelectionChange},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(s,{label:"序号",type:"index",fixed:"left",width:"55",align:"center"}),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(c.tableColumns.filter(e=>!e.hidden),(t,l)=>(Object(i["openBlock"])(),Object(i["createBlock"])(s,{key:l,prop:t.prop,label:t.title,width:t.width,align:"center"},{default:Object(i["withCtx"])(l=>["icon"==t.type?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",a,[Object(i["createVNode"])(u,{class:"item",effect:"dark",content:t.title,placement:"bottom"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(p,{type:"primary",disabled:e.getButtonEnable(t.prop,l.row),onClick:i=>e.tableButtonClick(l.row,t)},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("i",{class:Object(i["normalizeClass"])(t.icon),style:{"font-size":"22px"}},null,2)]),_:2},1032,["disabled","onClick"])]),_:2},1032,["content"])])):"tag"==t.type?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",r,[Object(i["createVNode"])(h,{size:"small"},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(d.getDictionary(l.row,t)),1)]),_:2},1024)])):Object(i["createCommentVNode"])("",!0)]),_:2},1032,["prop","label","width"]))),128))]),_:1},8,["data","onCurrentChange","onRowClick","onSelectionChange"])])]),_:1},8,["modelValue"]),Object(i["createVNode"])(m,{ref:"child",onParentCall:d.parentCall},null,8,["onParentCall"]),Object(i["createVNode"])(g,{ref:"selectedStock",onParentCall:d.parentCall},null,8,["onParentCall"])])}l("66d9"),l("2e4f");var d=l("0d63"),s=l("6e5b"),p={components:{VolBox:d["default"],VolForm:s["a"]},data(){return{row:null,showDetialBox:!1,flag:!1,currentRow:null,selection:[],tableData:[],tableColumns:[{prop:"id",title:"主键",type:"string",width:150,hidden:!0},{prop:"locationId",title:"货位主键",type:"string",width:150,hidden:!0},{prop:"locationCode",title:"货位编号",type:"string",width:150},{prop:"beforeStatus",title:"变动前货位状态",type:"tag",width:160,bindKey:"locationStatusEnum"},{prop:"afterStatus",title:"变动后货位状态",type:"tag",width:160,bindKey:"locationStatusEnum"},{prop:"changeType",title:"变动类型",type:"tag",width:150,bindKey:"locationChangeType"},{prop:"orderId",title:"单据主键",type:"string",width:150,hidden:!0},{prop:"orderNo",title:"单据编号",type:"string",width:150},{prop:"taskNum",title:"任务号",type:"string",width:100},{prop:"remark",title:"备注",type:"string",width:100},{prop:"creater",title:"创建者",type:"string",width:150},{prop:"createDate",title:"创建时间",type:"string"}],paginations:{sort:"id",order:"desc",Foots:"",total:0,sizes:[30,60,100,120],size:30,Wheres:[],page:1,rows:30},searchFormOptions:[[{title:"单据编号",field:"allocation_code",type:"like"},{title:"单据类型",field:"allocation_type",type:"select",dataKey:"OrderType",data:[]},{title:"单据状态",field:"allocation_state",type:"select",dataKey:"OrderState",data:[]}]],searchFormFields:{allocation_code:"",allocation_type:"",allocation_state:""},dictionaryList:null}},methods:{open(e){this.row=e,this.showDetialBox=!0,this.getDictionaryData(),this.getData()},getData(){var e=[{name:"locationId",value:this.row.id}],t={page:this.paginations.page,rows:this.paginations.rows,sort:this.paginations.sort,order:this.paginations.order,wheres:JSON.stringify(e)};this.http.post("api/LocationStatusChangeRecord/GetPageData",t,"查询中").then(e=>{this.tableData=e.rows})},setCurrent(e){this.$refs.singleTable.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},parentCall(e){if("function"!=typeof e)return console.log("扩展组件需要传入一个回调方法才能获取父级Vue对象");e(this)},handleRowClick(e){this.$refs.singleTable.toggleRowSelection(e)},handleSelectionChange(e){this.selection=e},getDictionaryData(){if(!this.dictionaryList){var e=[];this.tableColumns.forEach(t=>{"tag"==t.type&&""!=t.bindKey&&e.push(t.bindKey)}),this.http.post("api/Sys_Dictionary/GetVueDictionary",e,"查询中").then(e=>{e.length>0&&(this.dictionaryList=e)})}},getDictionary(e,t){if(this.dictionaryList){var l=this.dictionaryList.find(e=>e.dicNo==t.bindKey);if(l){var i=l.data.find(l=>l.key==e[t.prop]);return i?i.value:e[t.prop]}return e[t.prop]}}}},u=(l("94ae"),l("6ba5"),l("9c21")),h=l.n(u);const f=h()(p,[["render",c],["__scopeId","data-v-608a6ce9"]]);var b=f;let m={components:{gridHeader:"",gridBody:b,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:()=>{this.$message.info("只出"),e.Extra=2,this.enableStatus(e,"只出")}},{name:"禁用",icon:"el-icon-circle-close",onClick:()=>{e.Extra=3,this.enableStatus(e,"禁用")}}]);let l=this.buttons.find(e=>"Enable"==e.value);l&&(l.onClick=function(){this.$message.success("自定义按钮点击事件")});let i=this.buttons.find(e=>"Disable"==e.value);i&&(i.onClick=function(){})},enableStatus(e,t){let l=this.$refs.table.getSelected();return 0==l.length?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/LocationInfo/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:l}){},modelOpenAfter(e){}}};var g=m,y=Object(i["defineComponent"])({setup(){const e=Object(i["ref"])({key:"id",footer:"Foots",cnName:"货位信息",name:"locationInfo",url:"/LocationInfo/",sortName:"id"}),t=Object(i["ref"])({row:"",column:"",layer:"",depth:"",locationType:"",locationStatus:"",enalbeStatus:"",remark:""}),l=Object(i["ref"])([[{title:"货位行",required:!0,field:"row",type:"string"},{title:"货位列",required:!0,field:"column",type:"string"},{title:"货位层",required:!0,field:"layer",type:"string"},{title:"货位深度",required:!0,field:"depth",type:"string"}],[{title:"货位类型",required:!0,field:"locationType",type:"string"},{title:"区域主键",required:!0,field:"areaId",type:"string"},{title:"巷道编号",required:!0,field:"roadwayNo",type:"string"}]]),o=Object(i["ref"])({locationCode:"",locationStatus:"",enableStatus:"",row:"",column:"",layer:""}),n=Object(i["ref"])([[{title:"货位状态",field:"locationStatus",type:"selectList",dataKey:"locationStatusEnum",data:[]},{title:"禁用状态",field:"enableStatus",type:"selectList",dataKey:"enableStatusEnum",data:[]},{title:"货位编号",field:"locationCode",type:"like"}],[{title:"排",field:"row"},{title:"列",field:"column"},{title:"层",field:"layer"}]]),a=Object(i["ref"])([{field:"id",title:"Id",type:"int",width:90,hidden:!0,readonly:!0,require:!0,align:"left"},{field:"areaId",title:"区域主键",type:"string",width:90,align:"left",bind:{key:"areainfo",data:[]}},{field:"locationCode",title:"货位编号",type:"string",width:180,align:"left",sort:"true"},{field:"locationName",title:"货位名称",type:"string",width:220,align:"left"},{field:"roadwayNo",title:"巷道编号",type:"decimal",width:90,align:"left"},{field:"row",title:"货位行",type:"string",width:90,align:"left",hidden:!0},{field:"column",title:"货位列",type:"string",width:90,align:"left",hidden:!0},{field:"layer",title:"货位层",type:"string",width:90,align:"left",hidden:!0},{field:"depth",title:"货位深度",type:"string",width:180,align:"left",hidden:!0},{field:"locationType",title:"货位类型",type:"string",width:120,align:"left",bind:{key:"locationTypeEnum",data:[]}},{field:"locationStatus",title:"货位状态",type:"string",width:200,align:"left",bind:{key:"locationStatusEnum",data:[]}},{field:"enableStatus",title:"禁用状态",type:"string",width:180,align:"left",bind:{key:"enableStatusEnum",data:[]}},{field:"maxQty",title:"最大库存",type:"int",width:90,align:"left"},{field:"currentQty",title:"当前库存",type:"int",width:90,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"}]),r=Object(i["ref"])({cnName:"#detailCnName",table:"",columns:[],sortName:""});return{table:e,extend:g,editFormFields:t,editFormOptions:l,searchFormFields:o,searchFormOptions:n,columns:a,detail:r}}});const O=h()(y,[["render",o]]);t["default"]=O},"94ae":function(e,t,l){"use strict";l("f7a2")},a80f:function(e,t,l){"use strict";l("1c2c")},aef5:function(e,t,l){},f7a2:function(e,t,l){}}]);