1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79d4436a","chunk-605f397a"],{"0fd0":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"区域名称",prop:"regionName"}},[a("el-input",{attrs:{clearable:"",placeholder:"区域名称"},model:{value:t.dataForm.regionName,callback:function(e){t.$set(t.dataForm,"regionName",e)},expression:"dataForm.regionName"}})],1),a("el-form-item",{attrs:{label:"区域编码",prop:"regionCode"}},[a("el-input",{attrs:{clearable:"",placeholder:"区域编码"},model:{value:t.dataForm.regionCode,callback:function(e){t.$set(t.dataForm,"regionCode",e)},expression:"dataForm.regionCode"}})],1),a("el-form-item",{attrs:{label:"区域类型",prop:"regionType"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择区域类型"},model:{value:t.dataForm.regionType,callback:function(e){t.$set(t.dataForm,"regionType",e)},expression:"dataForm.regionType"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{clearable:"",placeholder:"备注"},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1)},r=[],n=a("3d7b"),o={mixins:[n["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 t=this;this.$http.get("/code/mtWarehouseRegion/getCode").then((function(e){var a=e.data;t.dataForm.regionCode=a})).catch((function(){}))}}},s=o,l=a("2877"),d=Object(l["a"])(s,i,r,!1,null,null,null);e["default"]=d.exports},"3d7b":function(t,e,a){"use strict";a("99af"),a("4160"),a("159b");e["a"]={data:function(){return{urlOptions:{submitURL:"",infoURL:"",getOption:!1,optionArrUrl:[],optionArr:{}},visible:!1,setData:!1,isGetCode:!1}},created:function(){},activated:function(){},methods:{init:function(t){var e=this;this.dataForm.id=t||"",this.visible=!0,this.urlOptions.getOption&&this.getArr(),this.$nextTick((function(){e.$refs["dataForm"].resetFields(),e.dataForm.id?e.$http.get("".concat(e.urlOptions.infoURL,"/").concat(e.dataForm.id)).then((function(t){var a=t.data;if(0!==a.code)return e.$message.error(a.msg);e.dataForm=a.data,e.setData&&e.setDataForm()})).catch((function(){})):e.isGetCode&&e.getCode()}))},getArr:function(){var t=this;this.urlOptions.optionArrUrl.forEach((function(e,a){t.$http.get(e,{params:{page:1,limit:500}}).then((function(e){var i=e.data;if(0!==i.code)return t.$message.error(i.msg);t.$set(t.urlOptions.optionArr,"arr".concat(a),i.data.list)})).catch((function(){}))}))},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(!e)return!1;t.$http[t.dataForm.id?"put":"post"](t.urlOptions.submitURL,t.dataForm).then((function(e){var a=e.data;if(0!==a.code)return t.$message.error(a.msg);t.$message({message:t.$t("prompt.success"),type:"success",duration:500,onClose:function(){t.visible=!1,t.$emit("successSubmit")}})})).catch((function(){}))}))},formClear:function(){this.$refs.dataForm.resetFields()}}}},"5b16":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[a("div",{staticClass:"mod-sys__user"},[a("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),a("base-table",{attrs:{"table-props":t.tableProps,page:t.listQuery.page,limit:t.listQuery.limi
|