webpackJsonp([12],{"27o1":function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t={name:"add-clerk-page",components:{clerkInfo:n("oncj").a},data:function(){return{}}},o={render:function(){var e=this.$createElement,r=this._self._c||e;return r("div",{staticClass:"add-clerk-page"},[r("clerk-info")],1)},staticRenderFns:[]};var l=n("VU/8")(t,o,!1,function(e){n("8nhi")},null,null);r.default=l.exports},"8nhi":function(e,r){},ame2:function(e,r){},oncj:function(e,r,n){"use strict";var t={name:"clerk-info-form",props:{clerkInfo:{type:Object,default:function(){return{}}}},data:function(){return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,r,n){if(!r)return n(new Error("请输入手机号"));return/^1[34578]\d{9}$/.test(r)?void 0:n(new Error("手机号格式不正确"))},trigger:"blur"}],code:[{required:!0,message:"请输入code",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]}}},methods:{save:function(e){this.$refs.clerk_info.validate(function(e){console.log(e,"valid")})}}},o={render:function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"form-container bdr-box"},[n("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"姓名",prop:"name"}},[n("el-input",{model:{value:e.clerkInfo.name,callback:function(r){e.$set(e.clerkInfo,"name",r)},expression:"clerkInfo.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[n("el-input",{model:{value:e.clerkInfo.phoneNumber,callback:function(r){e.$set(e.clerkInfo,"phoneNumber",r)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"门店"}},[n("el-input",{model:{value:e.clerkInfo.storeName,callback:function(r){e.$set(e.clerkInfo,"storeName",r)},expression:"clerkInfo.storeName"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"code",prop:"code"}},[n("el-input",{model:{value:e.clerkInfo.code,callback:function(r){e.$set(e.clerkInfo,"code",r)},expression:"clerkInfo.code"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[n("el-input",{model:{value:e.clerkInfo.positionName,callback:function(r){e.$set(e.clerkInfo,"positionName",r)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),n("div",{staticClass:"btn-box"},[n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(r){e.save(!0)}}},[e._v("保存并继续添加")]),e._v(" "),n("el-button",[e._v("取消")])],1)],1)},staticRenderFns:[]};var l=n("VU/8")(t,o,!1,function(e){n("ame2")},null,null);r.a=l.exports}});
//# sourceMappingURL=12.3e35015a33afea0a9e23.js.map