(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1906b817","chunk-605f397a"],{"0fd0":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"区域名称",prop:"regionName"}},[a("el-input",{attrs:{clearable:"",placeholder:"区域名称"},model:{value:e.dataForm.regionName,callback:function(t){e.$set(e.dataForm,"regionName",t)},expression:"dataForm.regionName"}})],1),a("el-form-item",{attrs:{label:"区域编码",prop:"regionCode"}},[a("el-input",{attrs:{clearable:"",placeholder:"区域编码"},model:{value:e.dataForm.regionCode,callback:function(t){e.$set(e.dataForm,"regionCode",t)},expression:"dataForm.regionCode"}})],1),a("el-form-item",{attrs:{label:"区域类型",prop:"regionType"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择区域类型"},model:{value:e.dataForm.regionType,callback:function(t){e.$set(e.dataForm,"regionType",t)},expression:"dataForm.regionType"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{clearable:"",placeholder:"备注"},model:{value:e.dataForm.remark,callback:function(t){e.$set(e.dataForm,"remark",t)},expression:"dataForm.remark"}})],1)],1)},o=[],i=a("3d7b"),n={mixins:[i["a"]],data:function(){return{urlOptions:{submitURL:"/code/mtWarehouseRegion/",infoURL:"/code/mtWarehouseRegion"},isGetCode:!0,dataForm:{id:"",regionName:"",regionCode:"",regionType:"",remark:""},options:[{value:"0",label:"普通库位"},{value:"1",label:"高库位"},{value:"2",label:"扩展库位"}],dataRule:{regionName:[{required:!0,message:"区域名称不能为空",trigger:"blur"}]}}},methods:{getCode:function(){var e=this;this.$http.get("/code/mtWarehouseRegion/getCode").then((function(t){var a=t.data;e.dataForm.regionCode=a})).catch((function(){}))}}},l=n,s=a("2877"),d=Object(s["a"])(l,r,o,!1,null,null,null);t["default"]=d.exports},"3d7b":function(e,t,a){"use strict";a("99af"),a("4160"),a("159b");t["a"]={data:function(){return{urlOptions:{submitURL:"",infoURL:"",getOption:!1,optionArrUrl:[],optionArr:{}},visible:!1,setData:!1,isGetCode:!1}},created:function(){},activated:function(){},methods:{init:function(e){var t=this;this.dataForm.id=e||"",this.visible=!0,this.urlOptions.getOption&&this.getArr(),this.$nextTick((function(){t.$refs["dataForm"].resetFields(),t.dataForm.id?t.$http.get("".concat(t.urlOptions.infoURL,"/").concat(t.dataForm.id)).then((function(e){var a=e.data;if(0!==a.code)return t.$message.error(a.msg);t.dataForm=a.data,t.setData&&t.setDataForm()})).catch((function(){})):t.isGetCode&&t.getCode()}))},getArr:function(){var e=this;this.urlOptions.optionArrUrl.forEach((function(t,a){e.$http.get(t,{params:{page:1,limit:500}}).then((function(t){var r=t.data;if(0!==r.code)return e.$message.error(r.msg);e.$set(e.urlOptions.optionArr,"arr".concat(a),r.data.list)})).catch((function(){}))}))},dataFormSubmit:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(!t)return!1;e.$http[e.dataForm.id?"put":"post"](e.urlOptions.submitURL,e.dataForm).then((function(t){var a=t.data;if(0!==a.code)return e.$message.error(a.msg);e.$message({message:e.$t("prompt.success"),type:"success",duration:500,onClose:function(){e.visible=!1,e.$emit("successSubmit")}})})).catch((function(){}))}))},formClear:function(){this.$refs.dataForm.resetFields()}}}},"5b16":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[a("div",{staticClass:"mod-sys__user"},[a("search-bar",{ref:"searchBarForm",attrs:{formConfigs:e.formConfig},on:{headBtnClick:e.buttonClick}}),a("base-table",{attrs:{"table-props":e.tableProps,page:e.listQuery.page,limit:e.listQuery.limit,"table-data":e.tableData}},[e.tableBtn.length?a("method-btn",{attrs:{slot:"handleBtn",width:80,label:"操作","method-list":e.tableBtn},on:{clickBtn:e.handleClick},slot:"handleBtn"}):e._e()],1),a("pagination",{attrs:{limit:e.listQuery.limit,page:e.listQuery.page,total:e.listQuery.total},on:{"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},"update:page":function(t){return e.$set(e.listQuery,"page",t)},pagination:e.getDataList}}),a("base-dialog",{attrs:{dialogTitle:e.addOrEditTitle,dialogVisible:e.addOrUpdateVisible,"before-close":e.handleCancel},on:{cancel:e.handleCancel,confirm:e.handleConfirm}},[a("add-or-update",{ref:"addOrUpdate",on:{successSubmit:e.successSubmit}})],1)],1)])},o=[],i=(a("b0c0"),a("0fd0")),n=a("ed26"),l=a("f44d"),s=[{prop:"createTime",label:"添加时间"},{prop:"regionName",label:"区域名称"},{prop:"regionCode",label:"区域编码"},{prop:"regionType",label:"区域类型",filter:Object(l["a"])("regionType")},{prop:"remark",label:"备注"}],d=[{type:"edit",btnName:"编辑"},{type:"delete",btnName:"删除"}],u={mixins:[n["a"]],data:function(){return{urlOptions:{getDataListURL:"/code/mtWarehouseRegion/page",deleteURL:"/code/mtWarehouseRegion",statusUrl:"/code/mtWarehouseRegion/status",exportUrl:"/code/mtWarehouseRegion/export"},tableProps:s,tableBtn:d,tableData:[],formConfig:[{type:"input",label:"名称",placeholder:"请输入名称",param:"name"},{type:"input",label:"编码",placeholder:"请输入编码",param:"code"},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"新增",name:"add",color:"primary",plain:!0},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}]}},components:{AddOrUpdate:i["default"]},methods:{buttonClick:function(e){switch(e.btnName){case"search":this.listQuery.name=e.name,this.listQuery.code=e.code,this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;case"export":this.exportHandle("仓库区域管理");break;default:console.log(e)}}}},c=u,m=a("2877"),p=Object(m["a"])(c,r,o,!1,null,null,null);t["default"]=p.exports},f44d:function(e,t,a){"use strict";a("12cb");var r={sex:{0:"男",1:"女"},logStatus:{0:"写入设备",1:"接受设备信息"},logType:{0:"wcs-to-wms",1:"wms-to-wcs"},isEmpty:{0:"空",1:"有货"},positionStatus:{"-1":"不可用",0:"空库位",1:"空货架",2:"货物正常",3:"货物预入库",4:"货物预出库"},isHeight:{0:"不超高",1:"超高"},isWeight:{0:"不超重",1:"超重"},detStatus:{0:"接收数据",1:"数据接收中",2:"数据接收完成",4:"等待接收数据"},taskType:{0:"出库",1:"入库",2:"移库"},productType:{1:"成品",2:"半成品",3:"原材料"},eStatus:{0:"初始化",1:"损坏",2:"工作中"},regionType:{0:"普通库位",1:"高库位",2:"扩展库位"},direction:{L:"左",R:"右"},isOccupy:{0:"可用",1:"被占用"}};t["a"]=function(e){return function(t){var a;return null===r||void 0===r||null===(a=r[e])||void 0===a?void 0:a[t]}}}}]);