webpackJsonp([31],{"40jY":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("E4LH"),r={data:function(){return{visible:!1,dataForm:{name:"",phone:"",email:"",cName:"",isEnable:"1",remark:""},dataRule:{name:[{required:!0,message:"请输入法人姓名",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{validator:function(n,e,t){Object(a.c)(e)?t():t(new Error("手机号格式错误"))},trigger:"blur"}],email:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],cName:[{required:!0,message:"请输入公司名称",trigger:"blur"}]}}},methods:{init:function(){var n=this;this.visible=!0,this.$nextTick(function(){n.$refs.dataForm.resetFields()})},resetForm:function(){this.$refs.dataForm.resetFields()},dataFormSubmit:function(){var n=this;this.$refs.dataForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;console.log(n.dataForm)})}}},o={render:function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{attrs:{id:"add-bus"}},[t("el-dialog",{attrs:{title:"供应商详情","close-on-click-modal":!1,visible:n.visible},on:{"update:visible":function(e){n.visible=e}}},[t("el-form",{ref:"dataForm",attrs:{model:n.dataForm,rules:n.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&n._k(e.keyCode,"enter",13,e.key,"Enter"))return null;n.dataFormSubmit()}}},[t("el-form-item",{attrs:{label:"法人姓名",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入法人姓名"},model:{value:n.dataForm.name,callback:function(e){n.$set(n.dataForm,"name","string"==typeof e?e.trim():e)},expression:"dataForm.name"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[t("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:n.dataForm.phone,callback:function(e){n.$set(n.dataForm,"phone","string"==typeof e?e.trim():e)},expression:"dataForm.phone"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:n.dataForm.email,callback:function(e){n.$set(n.dataForm,"email","string"==typeof e?e.trim():e)},expression:"dataForm.email"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"公司名称",prop:"cName"}},[t("el-input",{attrs:{placeholder:"请输入公司名称"},model:{value:n.dataForm.cName,callback:function(e){n.$set(n.dataForm,"cName","string"==typeof e?e.trim():e)},expression:"dataForm.cName"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"是否启用",prop:"isEnable"}},[t("el-radio-group",{model:{value:n.dataForm.isEnable,callback:function(e){n.$set(n.dataForm,"isEnable",e)},expression:"dataForm.isEnable"}},[t("el-radio",{attrs:{label:"1"}},[n._v("是")]),n._v(" "),t("el-radio",{attrs:{label:"2"}},[n._v("否")])],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",placeholder:"请输入备注信息"},model:{value:n.dataForm.remark,callback:function(e){n.$set(n.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){n.resetForm()}}},[n._v("重置")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(e){n.dataFormSubmit()}}},[n._v("提交")])],1)],1)],1)},staticRenderFns:[]};var l=t("C7Lr")(r,o,!1,function(n){t("rFhN")},"data-v-3421c5e4",null);e.default=l.exports},jjNb:function(n,e,t){(n.exports=t("UTlt")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},rFhN:function(n,e,t){var a=t("jjNb");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("FIqI")("1134a756",a,!0,{})}});