ERP/static/js/chunk-033e.0c9e65d0.js
beyond e4cd916a0c beyond 8.1 version2
beyond 8.1 version2
2019-08-01 19:52:12 +08:00

1 line
23 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-033e"],{"6HaC":function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"d",function(){return a}),r.d(t,"e",function(){return i}),r.d(t,"c",function(){return d}),r.d(t,"a",function(){return l});var n=r("t3Un");function o(e){return Object(n.a)({url:"http://192.168.1.45:8080/country/getcountrylist",method:"post",params:e})}function a(e){return Object(n.a)({url:"http://192.168.1.45:8080/region/detaillist",method:"post",params:e})}function i(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("regionId",e),t.append("pagenum",1),t.append("pagesize",99999),Object(n.a)({url:"http://192.168.1.45:8080/repository/searchRepository",method:"post",data:t})}function d(e){var t=new URLSearchParams;return t.append("countryid",e),Object(n.a)({url:"http://192.168.1.45:8080/country/getprovincelist",method:"post",data:t})}function l(e){var t=new URLSearchParams;return t.append("provinceid",e),Object(n.a)({url:"http://192.168.1.45:8080/country/getcitylist",method:"post",data:t})}},BJvg:function(e,t,r){"use strict";r.d(t,"j",function(){return o}),r.d(t,"e",function(){return a}),r.d(t,"a",function(){return i}),r.d(t,"l",function(){return d}),r.d(t,"h",function(){return l}),r.d(t,"c",function(){return s}),r.d(t,"d",function(){return c}),r.d(t,"n",function(){return u}),r.d(t,"g",function(){return p}),r.d(t,"k",function(){return m}),r.d(t,"b",function(){return v}),r.d(t,"m",function(){return y}),r.d(t,"f",function(){return f}),r.d(t,"i",function(){return h});var n=r("t3Un");function o(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("type",e),t.append("pagenum",1),t.append("pagesize",9999),Object(n.a)({url:"http://192.168.1.45:8080/customer/searchCusCategory",method:"post",data:t})}function a(e){var t=new URLSearchParams;return""!==e.customername&&null!==e.customername&&void 0!==e.customername&&t.append("customername",e.customername),""!==e.level&&null!==e.level&&void 0!==e.level&&t.append("level",e.level),""!==e.createtime&&null!==e.createtime&&void 0!==e.createtime&&t.append("createtime",e.createtime),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.repositoryid&&null!==e.repositoryid&&void 0!==e.repositoryid&&t.append("repositoryid",e.repositoryid),""!==e.source&&null!==e.source&&void 0!==e.source&&t.append("source",e.source),""!==e.customerphone&&null!==e.customerphone&&void 0!==e.customerphone&&t.append("customerphone",e.customerphone),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/customer/customerlist",method:"post",data:t})}function i(e){var t=new URLSearchParams;return""!==e.firstname&&null!==e.firstname&&void 0!==e.firstname&&t.append("firstname",e.firstname),""!==e.middlename&&null!==e.middlename&&void 0!==e.middlename&&t.append("middlename",e.middlename),""!==e.lastname&&null!==e.lastname&&void 0!==e.lastname&&t.append("lastname",e.lastname),""!==e.email&&null!==e.email&&void 0!==e.email&&t.append("email",e.email),""!==e.phone&&null!==e.phone&&void 0!==e.phone&&t.append("phone",e.phone),""!==e.gender&&null!==e.gender&&void 0!==e.gender&&t.append("gender",e.gender),""!==e.countryid&&null!==e.countryid&&void 0!==e.countryid&&t.append("countryid",e.countryid),""!==e.provinceid&&null!==e.provinceid&&void 0!==e.provinceid&&t.append("provinceid",e.provinceid),""!==e.cityid&&null!==e.cityid&&void 0!==e.cityid&&t.append("cityid",e.cityid),""!==e.level&&null!==e.level&&void 0!==e.level&&t.append("level",e.level),""!==e.address&&null!==e.address&&void 0!==e.address&&t.append("address",e.address),""!==e.repositoryid&&null!==e.repositoryid&&void 0!==e.repositoryid&&t.append("repositoryid",e.repositoryid),""!==e.birthday&&null!==e.birthday&&void 0!==e.birthday&&t.append("birthday",e.birthday),""!==e.source&&null!==e.source&&void 0!==e.source&&t.append("source",e.source),""!==e.newold&&null!==e.newold&&void 0!==e.newold&&t.append("newold",e.newold),""!==e.customertype&&null!==e.customertype&&void 0!==e.customertype&&t.append("customertype",e.customertype),Object(n.a)({url:"http://192.168.1.45:8080/customer/addCustomer",method:"post",data:t})}function d(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("customerid",e.id),""!==e.firstName&&null!==e.firstName&&void 0!==e.firstName&&t.append("firstname",e.firstName),""!==e.middleName&&null!==e.middleName&&void 0!==e.middleName&&t.append("middlename",e.middleName),""!==e.lastName&&null!==e.lastName&&void 0!==e.lastName&&t.append("lastname",e.lastName),""!==e.phoneNumber&&null!==e.phoneNumber&&void 0!==e.phoneNumber&&t.append("phone",e.phoneNumber),""!==e.gender&&null!==e.gender&&void 0!==e.gender&&t.append("gender",e.gender),""!==e.countryid&&null!==e.countryid&&void 0!==e.countryid&&t.append("countryid",e.countryid),""!==e.provinceid&&null!==e.provinceid&&void 0!==e.provinceid&&t.append("provinceid",e.provinceid),""!==e.cityid&&null!==e.cityid&&void 0!==e.cityid&&t.append("cityid",e.cityid),""!==e.level&&null!==e.level&&void 0!==e.level&&t.append("level",e.level),""!==e.address&&null!==e.address&&void 0!==e.address&&t.append("address",e.address),""!==e.repositoryid&&null!==e.repositoryid&&void 0!==e.repositoryid&&t.append("repositoryid",e.repositoryid),""!==e.birthday&&null!==e.birthday&&void 0!==e.birthday&&t.append("birthday",e.birthday),""!==e.source&&null!==e.source&&void 0!==e.source&&t.append("source",e.source),""!==e.newOrOld&&null!==e.newOrOld&&void 0!==e.newOrOld&&t.append("newold",e.newOrOld),""!==e.customerType&&null!==e.customerType&&void 0!==e.customerType&&t.append("customertype",e.customerType),Object(n.a)({url:"http://192.168.1.45:8080/customer/updateCustomer",method:"post",data:t})}function l(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("customerids",e),Object(n.a)({url:"http://192.168.1.45:8080/customer/deletecustomer",method:"post",data:t})}function s(e){var t=new URLSearchParams;return""!==e.agentname&&null!==e.agentname&&void 0!==e.agentname&&t.append("agentname",e.agentname),""!==e.phone&&null!==e.phone&&void 0!==e.phone&&t.append("phone",e.phone),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.pinyin&&null!==e.pinyin&&void 0!==e.pinyin&&t.append("pinyin",e.pinyin),""!==e.level&&null!==e.level&&void 0!==e.level&&t.append("level",e.level),""!==e.source&&null!==e.source&&void 0!==e.source&&t.append("source",e.source),""!==e.discount&&null!==e.discount&&void 0!==e.discount&&t.append("discount",e.discount),""!==e.countryid&&null!==e.countryid&&void 0!==e.countryid&&t.append("countryid",e.countryid),""!==e.provinceid&&null!==e.provinceid&&void 0!==e.provinceid&&t.append("provinceid",e.provinceid),""!==e.cityid&&null!==e.cityid&&void 0!==e.cityid&&t.append("cityid",e.cityid),""!==e.introduce&&null!==e.introduce&&void 0!==e.introduce&&t.append("introduce",e.introduce),""!==e.address&&null!==e.address&&void 0!==e.address&&t.append("address",e.address),""!==e.contactname&&null!==e.contactname&&void 0!==e.contactname&&t.append("contactname",e.contactname),""!==e.traderid&&null!==e.traderid&&void 0!==e.traderid&&t.append("traderid",e.traderid),""!==e.transmode&&null!==e.transmode&&void 0!==e.transmode&&t.append("transmode",e.transmode),""!==e.deliverymode&&null!==e.deliverymode&&void 0!==e.deliverymode&&t.append("deliverymode",e.deliverymode),""!==e.createid&&null!==e.createid&&void 0!==e.createid&&t.append("createid",e.createid),""!==e.newold&&null!==e.newold&&void 0!==e.newold&&t.append("newold",e.newold),Object(n.a)({url:"http://192.168.1.45:8080/agent/addagent",method:"post",data:t})}function c(e){var t=new URLSearchParams;return""!==e.agentname&&null!==e.agentname&&void 0!==e.agentname&&t.append("agentname",e.agentname),""!==e.level&&null!==e.level&&void 0!==e.level&&t.append("level",e.level),""!==e.createtime&&null!==e.createtime&&void 0!==e.createtime&&t.append("createtime",e.createtime),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.phone&&null!==e.phone&&void 0!==e.phone&&t.append("phone",e.phone),""!==e.source&&null!==e.source&&void 0!==e.source&&t.append("source",e.source),""!==e.pinyin&&null!==e.pinyin&&void 0!==e.pinyin&&t.append("pinyin",e.pinyin),""!==e.contactname&&null!==e.contactname&&void 0!==e.contactname&&t.append("contactname",e.contactname),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/agent/agentlist",method:"post",data:t})}function u(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("agentid",e.id),""!==e.agentName&&null!==e.agentName&&void 0!==e.agentName&&t.append("agentname",e.agentName),""!==e.phone&&null!==e.phone&&void 0!==e.phone&&t.append("phone",e.phone),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.pinyin&&null!==e.pinyin&&void 0!==e.pinyin&&t.append("pinyin",e.pinyin),""!==e.level&&null!==e.level&&void 0!==e.level&&t.append("level",e.level),""!==e.source&&null!==e.source&&void 0!==e.source&&t.append("source",e.source),""!==e.discount&&null!==e.discount&&void 0!==e.discount&&t.append("discount",e.discount),""!==e.countryid&&null!==e.countryid&&void 0!==e.countryid&&t.append("countryid",e.countryid),""!==e.provinceid&&null!==e.provinceid&&void 0!==e.provinceid&&t.append("provinceid",e.provinceid),""!==e.cityid&&null!==e.cityid&&void 0!==e.cityid&&t.append("cityid",e.cityid),""!==e.introduce&&null!==e.introduce&&void 0!==e.introduce&&t.append("introduce",e.introduce),""!==e.address&&null!==e.address&&void 0!==e.address&&t.append("address",e.address),""!==e.contactName&&null!==e.contactName&&void 0!==e.contactName&&t.append("contactname",e.contactName),""!==e.traderid&&null!==e.traderid&&void 0!==e.traderid&&t.append("traderid",e.traderid),""!==e.transMode&&null!==e.transMode&&void 0!==e.transMode&&t.append("transmode",e.transMode),""!==e.deliveryMode&&null!==e.deliveryMode&&void 0!==e.deliveryMode&&t.append("deliverymode",e.deliveryMode),""!==e.deliveryMode&&null!==e.deliveryMode&&void 0!==e.deliveryMode&&t.append("deliverymode",e.deliveryMode),Object(n.a)({url:"http://192.168.1.45:8080/agent/updateagent",method:"post",data:t})}function p(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("ids",e),Object(n.a)({url:"http://192.168.1.45:8080/agent/deleteagent",method:"post",data:t})}function m(e){var t=new URLSearchParams;return""!==e.categoryname&&null!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.iseffective&&null!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.type&&null!==e.type&&t.append("type",e.type),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/customer/searchCusCategory",method:"post",data:t})}function v(e){var t=new URLSearchParams;return""!==e.categoryname&&null!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.category&&null!==e.category&&t.append("category",e.category),""!==e.iseffective&&null!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.type&&null!==e.type&&t.append("type",e.type),Object(n.a)({url:"http://192.168.1.45:8080/customer/addCusCategory",method:"post",data:t})}function y(e){var t=new URLSearchParams;return""!==e.categoryName&&null!==e.categoryName&&t.append("categoryname",e.categoryName),""!==e.isEffective&&null!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.id&&null!==e.id&&t.append("id",e.id),Object(n.a)({url:"http://192.168.1.45:8080/customer/updateCusCategory",method:"post",data:t})}function f(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("ids",e),Object(n.a)({url:"http://192.168.1.45:8080/customer/delateCusCategory",method:"post",data:t})}function h(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("customerJson",e),Object(n.a)({url:"http://192.168.1.45:8080/customer/manyinsert",method:"post",data:t})}},DNkW:function(e,t,r){var n=r("93I4"),o=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&o(e)===e}},"NtQ+":function(e,t,r){"use strict";var n=r("w5Qb");r.n(n).a},Qtcr:function(e,t,r){"use strict";r.r(t);var n=r("ql3t"),o=r.n(n),a=r("6HaC"),i=r("BJvg"),d={name:"NewCustomer",data:function(){return{nations:[],provinces:[],cities:[],repositories:[],customerForm:{firstname:"",middlename:"",lastname:"",email:"",phone:"",gender:"",countryid:"",provinceid:"",cityid:"",level:"",address:"",repositoryid:"",birthday:"",source:"",newold:"",customertype:""},customerFormrules:{phone:[{required:!0,validator:function(e,t,r){if(!t)return r(new Error("手机号不能为空"));setTimeout(function(){o()(t)?r():r(new Error("请输入数字值"))},1e3)},trigger:"change"}],lastname:[{required:!0,message:"请输入姓氏",trigger:"blur"}],firstname:[{required:!0,message:"请输入名",trigger:"blur"}],countryid:[{required:!0,message:"请选择国家",trigger:"change"}]},customertypes:[],customertyp:1,levels:[],levelstype:2,sources:[],sourcestype:3}},created:function(){this.getnationlist(),this.getCategory()},methods:{getCategory:function(){var e=this;Object(i.j)(this.customertyp).then(function(t){200===t.data.ret?e.customertypes=t.data.data.content.list:e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(i.j)(this.levelstype).then(function(t){200===t.data.ret?e.levels=t.data.data.content.list:e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(i.j)(this.sourcestype).then(function(t){200===t.data.ret?e.sources=t.data.data.content.list:e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(a.e)().then(function(t){200===t.data.ret?e.repositories=t.data.data.content.list:e.$notify.error({title:"错误",message:"出错了",offset:100})})},getnationlist:function(){var e=this;Object(a.b)().then(function(t){200===t.data.ret?e.nations=t.data.data.content:e.$notify.error({title:"错误",message:"出错了",offset:100})})},handlechange:function(e){var t=this;Object(a.c)(e).then(function(e){200===e.data.ret?t.provinces=e.data.data.content:t.$notify.error({title:"错误",message:"出错了",offset:100})})},handlechange2:function(e){var t=this;Object(a.a)(e).then(function(e){console.log(e),200===e.data.ret?t.cities=e.data.data.content:t.$notify.error({title:"错误",message:"出错了",offset:100})})},handlesave:function(){var e=this;this.$refs.customerForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(i.a)(e.customerForm).then(function(t){console.log(t),200===t.data.ret?(e.$notify({title:"成功",message:"保存成功",type:"success",offset:100}),e.restAllForm(),e.$refs.customerForm.clearValidate(),e.$refs.customerForm.resetFields()):e.$notify.error({title:"错误",message:t.data.msg,offset:100})})})},restAllForm:function(){this.customerForm={firstname:"",middlename:"",lastname:"",email:"",phone:"",gender:"",countryid:"",provinceid:"",cityid:"",level:"",address:"",repositoryid:"",birthday:"",source:"",newold:"",customertype:""}},handleentry:function(){var e=this;this.$refs.customerForm.validate(function(t){if(!t){e.$notify.error({title:"错误",message:"信息未填完整",offset:100});var r=e.$refs.geren.offsetTop;return console.log(r),document.documentElement.scrollTop=r-100,!1}Object(i.a)(e.customerForm).then(function(t){if(console.log(t),200===t.data.ret){e.$notify({title:"成功",message:"保存成功",type:"success",offset:100}),e.restAllForm(),e.$refs.customerForm.clearValidate(),e.$refs.customerForm.resetFields();var r=e.$refs.geren.offsetTop;console.log(r),document.documentElement.scrollTop=r-100}else e.$notify.error({title:"错误",message:t.data.msg,offset:100})})})},handlecancel:function(){this.$router.go(-1);this.$store.dispatch("delView",{path:"/Customer/NewCustomer",name:"Customer",fullPath:"/Customer/Customer",title:"Customer"}).then(function(e){e.visitedViews})}}},l=(r("NtQ+"),r("KHd+")),s=Object(l.a)(d,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ERP-container"},[r("div",{staticClass:"app-container"},[r("h2",{ref:"geren",staticClass:"form-name"},[e._v("基本信息")]),e._v(" "),r("div",{staticClass:"container"},[r("el-form",{ref:"customerForm",staticClass:"demo-ruleForm",staticStyle:{"margin-left":"30px"},attrs:{model:e.customerForm,rules:e.customerFormrules,inline:!0,"status-icon":"","label-position":"top","label-width":"300px"}},[r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.firstname"),prop:"firstname"}},[r("el-input",{attrs:{placeholder:"请输入名",clearable:""},model:{value:e.customerForm.firstname,callback:function(t){e.$set(e.customerForm,"firstname",t)},expression:"customerForm.firstname"}})],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.middlename"),prop:"middlename"}},[r("el-input",{attrs:{placeholder:"请输入中间名",clearable:""},model:{value:e.customerForm.middlename,callback:function(t){e.$set(e.customerForm,"middlename",t)},expression:"customerForm.middlename"}})],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%"},attrs:{label:e.$t("Customer.lastname"),prop:"lastname"}},[r("el-input",{attrs:{placeholder:"请输入姓氏",clearable:""},model:{value:e.customerForm.lastname,callback:function(t){e.$set(e.customerForm,"lastname",t)},expression:"customerForm.lastname"}})],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%"},attrs:{label:e.$t("Customer.phone"),prop:"phone"}},[r("el-input",{attrs:{placeholder:"请输入客户电话",clearable:""},model:{value:e.customerForm.phone,callback:function(t){e.$set(e.customerForm,"phone",e._n(t))},expression:"customerForm.phone"}})],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%"},attrs:{label:e.$t("Customer.gender"),prop:"gender"}},[r("el-radio-group",{staticStyle:{width:"80%"},model:{value:e.customerForm.gender,callback:function(t){e.$set(e.customerForm,"gender",t)},expression:"customerForm.gender"}},[r("el-radio",{staticStyle:{width:"50%"},attrs:{label:1}},[e._v(e._s(e.$t("public.male")))]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("public.female")))])],1)],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.customertype")}},[r("el-select",{staticStyle:{width:"100%"},attrs:{value:e.customerForm.customertype,placeholder:"请选择客户类型"},model:{value:e.customerForm.customertype,callback:function(t){e.$set(e.customerForm,"customertype",t)},expression:"customerForm.customertype"}},e._l(e.customertypes,function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.categoryName}})}))],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.level")}},[r("el-select",{staticStyle:{width:"100%"},attrs:{value:e.customerForm.level,placeholder:"请选择客户优质级别"},model:{value:e.customerForm.level,callback:function(t){e.$set(e.customerForm,"level",t)},expression:"customerForm.level"}},e._l(e.levels,function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.categoryName}})}))],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.source")}},[r("el-select",{staticStyle:{width:"100%"},attrs:{value:e.customerForm.source,placeholder:"请选择客户来源"},model:{value:e.customerForm.source,callback:function(t){e.$set(e.customerForm,"source",t)},expression:"customerForm.source"}},e._l(e.sources,function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.categoryName}})}))],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.newold")}},[r("el-select",{staticStyle:{width:"100%"},attrs:{value:e.customerForm.newold,placeholder:"请选择"},model:{value:e.customerForm.newold,callback:function(t){e.$set(e.customerForm,"newold",t)},expression:"customerForm.newold"}},[r("el-option",{attrs:{label:"老",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"新",value:"2"}})],1)],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("public.countyrId"),prop:"countryid"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择国家"},on:{change:e.handlechange},model:{value:e.customerForm.countryid,callback:function(t){e.$set(e.customerForm,"countryid",t)},expression:"customerForm.countryid"}},e._l(e.nations,function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.provinceid")}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择省"},on:{change:e.handlechange2},model:{value:e.customerForm.provinceid,callback:function(t){e.$set(e.customerForm,"provinceid",t)},expression:"customerForm.provinceid"}},e._l(e.provinces,function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.cityid")}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择市"},model:{value:e.customerForm.cityid,callback:function(t){e.$set(e.customerForm,"cityid",t)},expression:"customerForm.cityid"}},e._l(e.cities,function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.address"),prop:"address"}},[r("el-input",{attrs:{placeholder:"请输入地址",clearable:""},model:{value:e.customerForm.address,callback:function(t){e.$set(e.customerForm,"address",t)},expression:"customerForm.address"}})],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Customer.birthday")}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择生日","value-format":"yyyy-MM-dd",clearable:""},model:{value:e.customerForm.birthday,callback:function(t){e.$set(e.customerForm,"birthday",t)},expression:"customerForm.birthday"}})],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%"},attrs:{label:e.$t("Customer.repositoryid"),prop:"repositoryid"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择门店",filterable:""},model:{value:e.customerForm.repositoryid,callback:function(t){e.$set(e.customerForm,"repositoryid",t)},expression:"customerForm.repositoryid"}},e._l(e.repositories,function(e,t){return r("el-option",{key:t,attrs:{label:e.repositoryName,value:e.id}})}))],1)],1)],1),e._v(" "),r("div",{staticClass:"buttons",staticStyle:{"margin-top":"20px"}},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handlesave()}}},[e._v("保存")]),e._v(" "),r("el-button",{attrs:{type:"success"},on:{click:function(t){e.handleentry()}}},[e._v("继续录入")]),e._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handlecancel()}}},[e._v("取消")])],1)])])},[],!1,null,"1f16c6f0",null);s.options.__file="NewCustomer.vue";t.default=s.exports},h5AQ:function(e,t,r){r("hRZT"),e.exports=r("WEpk").Number.isInteger},hRZT:function(e,t,r){var n=r("Y7ZC");n(n.S,"Number",{isInteger:r("DNkW")})},ql3t:function(e,t,r){e.exports={default:r("h5AQ"),__esModule:!0}},w5Qb:function(e,t,r){}}]);