1 line
7.0 KiB
JavaScript
1 line
7.0 KiB
JavaScript
|
(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.limi
|