YM-WMS-WCS/dist/js/chunk-ebf8bf38.7ec67829.js
2023-04-23 15:58:54 +08:00

1 line
8.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ebf8bf38","chunk-2a99da18"],{2617:function(e,t,a){"use strict";a.r(t);var o=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)])},r=[],l=(a("b0c0"),a("80b7")),i=a("ed26"),n=a("f44d"),s=[{prop:"createTime",label:"添加时间"},{prop:"anotherName",label:"别名"},{prop:"columnCode",label:"列标"},{prop:"rowCode",label:"行标"},{prop:"regionName",label:"区域名称"},{prop:"direction",label:"方向",filter:Object(n["a"])("direction")},{prop:"isOccupy",label:"是否被占用",filter:Object(n["a"])("isOccupy")},{prop:"positionCode",label:"库位编码"},{prop:"sequence",label:"顺序号"},{prop:"remark",label:"备注"}],c=[{type:"edit",btnName:"编辑"},{type:"delete",btnName:"删除"}],d={mixins:[i["a"]],data:function(){return{urlOptions:{getDataListURL:"/code/mtWarehouseRank/page",deleteURL:"/code/mtWarehouseRank",exportUrl:"/code/mtWarehouseRank/export"},tableProps:s,tableBtn:c,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:l["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)}}}},u=d,p=a("2877"),m=Object(p["a"])(u,o,r,!1,null,null,null);t["default"]=m.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 o=t.data;if(0!==o.code)return e.$message.error(o.msg);e.$set(e.urlOptions.optionArr,"arr".concat(a),o.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()}}}},"80b7":function(e,t,a){"use strict";a.r(t);var o=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":"100px"},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:"anotherName"}},[a("el-input",{attrs:{clearable:"",placeholder:"别名"},model:{value:e.dataForm.anotherName,callback:function(t){e.$set(e.dataForm,"anotherName",t)},expression:"dataForm.anotherName"}})],1),a("el-form-item",{attrs:{label:"列标",prop:"columnCode"}},[a("el-input",{attrs:{clearable:"",placeholder:"列标"},model:{value:e.dataForm.columnCode,callback:function(t){e.$set(e.dataForm,"columnCode",t)},expression:"dataForm.columnCode"}})],1),a("el-form-item",{attrs:{label:"行标",prop:"rowCode"}},[a("el-input",{attrs:{clearable:"",placeholder:"行标"},model:{value:e.dataForm.rowCode,callback:function(t){e.$set(e.dataForm,"rowCode",t)},expression:"dataForm.rowCode"}})],1),a("el-form-item",{attrs:{label:"库位编码",prop:"positionCode"}},[a("el-input",{attrs:{clearable:"",placeholder:"库位编码"},model:{value:e.dataForm.positionCode,callback:function(t){e.$set(e.dataForm,"positionCode",t)},expression:"dataForm.positionCode"}})],1),a("el-form-item",{attrs:{label:"方向",prop:"direction"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择方向"},model:{value:e.dataForm.direction,callback:function(t){e.$set(e.dataForm,"direction",t)},expression:"dataForm.direction"}},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:"isOccupy"}},[a("el-select",{attrs:{clearable:"",placeholder:"是否被占用"},model:{value:e.dataForm.isOccupy,callback:function(t){e.$set(e.dataForm,"isOccupy",t)},expression:"dataForm.isOccupy"}},e._l(e.options1,(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:"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:"sequence"}},[a("el-input",{attrs:{clearable:"",placeholder:"顺序号"},model:{value:e.dataForm.sequence,callback:function(t){e.$set(e.dataForm,"sequence",t)},expression:"dataForm.sequence"}})],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)},r=[],l=a("3d7b"),i={mixins:[l["a"]],data:function(){return{urlOptions:{submitURL:"/code/mtWarehouseRank/",infoURL:"/code/mtWarehouseRank"},isGetCode:!0,dataForm:{id:"",anotherName:"",positionCode:"",columnCode:"",rowCode:"",direction:"",isOccupy:"",regionName:"",sequence:"",remark:""},options:[{value:"L",label:"左"},{value:"R",label:"右"}],options1:[{value:0,label:"可用"},{value:1,label:"被占用"}],dataRule:{anotherName:[{required:!0,message:"别名不能为空",trigger:"blur"}]}}},methods:{getCode:function(){var e=this;this.$http.get("/code/mtWarehouseRank/getCode").then((function(t){var a=t.data;e.dataForm.positionCode=a})).catch((function(){}))}}},n=i,s=a("2877"),c=Object(s["a"])(n,o,r,!1,null,null,null);t["default"]=c.exports},f44d:function(e,t,a){"use strict";a("12cb");var o={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===o||void 0===o||null===(a=o[e])||void 0===a?void 0:a[t]}}}}]);