webpackJsonp([3],{33:function(e,r,a){function t(e){a(753)}var o=a(29)(a(621),a(848),t,null,null);e.exports=o.exports},621:function(e,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={data:function(){return{ruleForm:{areaNo:"",areaName:"",areaType:"",desc:""},rules:{areaNo:[{required:!0,message:"请输入库区编号",trigger:"blur"},{min:1,max:10,message:"长度在 1 到 10 个字符",trigger:"change,blur"}],areaName:[{required:!0,message:"请输入库区名称",trigger:"blur"},{min:1,max:10,message:"长度在 1 到 10 个字符",trigger:"change,blur"}],areaType:[{required:!0,message:"请选择库区类型",trigger:"change"}],desc:[{min:0,max:200,message:"长度在 200 个字符以内",trigger:"change,blur"}]}}},activated:function(){console.log(this.$route.params)},deactivated:function(){this.$refs.ruleForm.resetFields()},methods:{submitForm:function(e){console.log(this.ruleForm.classify),this.$refs[e].validate(function(e){if(!e)return!1;alert("submit!")})},resetForm:function(e){this.$refs[e].resetFields()}}}},686:function(e,r,a){r=e.exports=a(94)(!0),r.push([e.i,".form-container{height:auto;overflow:hidden}.form-container .form-content{height:auto;overflow:hidden;padding:15px;background:#fff}.form-container .form-content .form-wraper{width:500px}.form-container .form-content .form-wraper .line{text-align:center}","",{version:3,sources:["E:/wmsAdmin/src/components/baseinfo/location/editeArea.vue"],names:[],mappings:"AACA,gBACE,YAAa,AACb,eAAiB,CAClB,AACD,8BACE,YAAa,AACb,gBAAiB,AACjB,aAAc,AACd,eAAiB,CAClB,AACD,2CACE,WAAa,CACd,AACD,iDACE,iBAAmB,CACpB",file:"editeArea.vue",sourcesContent:["\n.form-container {\n  height: auto;\n  overflow: hidden;\n}\n.form-container .form-content {\n  height: auto;\n  overflow: hidden;\n  padding: 15px;\n  background: #fff;\n}\n.form-container .form-content .form-wraper {\n  width: 500px;\n}\n.form-container .form-content .form-wraper .line {\n  text-align: center;\n}\n"],sourceRoot:""}])},753:function(e,r,a){var t=a(686);"string"==typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);a(95)("9caea810",t,!0)},848:function(e,r){e.exports={render:function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("div",{staticClass:"form-container"},[a("div",{staticClass:"page-bread"},[a("el-breadcrumb",{attrs:{separator:"/"}},[a("el-breadcrumb-item",{attrs:{to:{path:"/baseinfo/location_manage"}}},[e._v("库区库位")]),e._v(" "),a("el-breadcrumb-item",[e._v(e._s(this.$route.params.areaId?"编辑库区":"新增库区"))])],1)],1),e._v(" "),a("div",{staticClass:"form-content"},[a("el-form",{ref:"ruleForm",staticClass:"form-wraper",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"140px"}},[a("el-form-item",{attrs:{label:"库区编号",prop:"areaNo"}},[a("el-input",{model:{value:e.ruleForm.areaNo,callback:function(r){e.ruleForm.areaNo=r},expression:"ruleForm.areaNo"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"库区名称",prop:"areaName"}},[a("el-input",{model:{value:e.ruleForm.areaName,callback:function(r){e.ruleForm.areaName=r},expression:"ruleForm.areaName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"库区类型",prop:"areaType"}},[a("el-select",{staticStyle:{display:"block"},attrs:{placeholder:"库区类型"},model:{value:e.ruleForm.areaType,callback:function(r){e.ruleForm.areaType=r},expression:"ruleForm.areaType"}},[a("el-option",{attrs:{label:"区域一",value:"shanghai"}}),e._v(" "),a("el-option",{attrs:{label:"区域二",value:"beijing"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"desc"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.ruleForm.desc,callback:function(r){e.ruleForm.desc=r},expression:"ruleForm.desc"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(r){e.submitForm("ruleForm")}}},[e._v("提交")]),e._v(" "),a("el-button",{on:{click:function(r){e.resetForm("ruleForm")}}},[e._v("取消")])],1)],1)],1)])},staticRenderFns:[]}}});
//# sourceMappingURL=3.df39b58da741668b2e12.js.map