| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["personal-information"],{"109f":function(e,a,t){},"1c60":function(e,a,t){"use strict";t.r(a);t("b0c0"),t("498a");var n=function(){var e=this,a=e._self._c;return a("div",{attrs:{id:"cus_personal-information"}},[a("div",{staticClass:"promotion-box pb-3"},[a("div",{staticClass:"container"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("div",{staticClass:"promotion-box-white mt-1"},[a("div",{staticClass:"announcement-box personal-info-form pt-2"},[a("div",{staticClass:"form-heading"},[a("h5",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Title.BasicInformation",expression:"'PersonalManagement.Title.BasicInformation'"}],staticClass:"ml-3"}),a("span",{staticClass:"hd-line"})]),a("div",{staticClass:"con-box"},[a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.UserCID",expression:"'PersonalManagement.Label.UserCID'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.cId,callback:function(a){e.$set(e.PersonalInformation,"cId","string"===typeof a?a.trim():a)},expression:"PersonalInformation.cId"}})],1),e.PersonalInformation.customType?a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.CustomerType",expression:"'PersonalManagement.Label.CustomerType'"}]})]),a("el-select",{staticClass:"crm_search_down crm_select_icon crm-select",attrs:{filterable:"",disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.customType,callback:function(a){e.$set(e.PersonalInformation,"customType",a)},expression:"PersonalInformation.customType"}},[a("el-option",{attrs:{label:e.$t("ImproveImmediately.Label.CustomerType1"),value:1}}),a("el-option",{attrs:{label:e.$t("ImproveImmediately.Label.CustomerType2"),value:2}})],1)],1):e._e(),e.PersonalInformation.companyName?a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"ImproveImmediately.Label.CompanyName",expression:"'ImproveImmediately.Label.CompanyName'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.companyName,callback:function(a){e.$set(e.PersonalInformation,"companyName",a)},expression:"PersonalInformation.companyName"}})],1):e._e(),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.Gender",expression:"'PersonalManagement.Label.Gender'"}]})]),a("el-select",{staticClass:"crm_search_down crm_select_icon crm-select",attrs:{filterable:"",disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.gender,callback:function(a){e.$set(e.PersonalInformation,"gender",a)},expression:"PersonalInformation.gender"}},[a("el-option",{attrs:{label:e.$t("PersonalManagement.Label.Women"),value:2}}),a("el-option",{attrs:{label:e.$t("PersonalManagement.Label.Men"),value:1}})],1)],1),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.Nationality",expression:"'PersonalManagement.Label.Nationality'"}]})]),a("el-select",{staticClass:"crm_search_down crm_select_icon crm-select",attrs:{filterable:"",disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.nationality,callback:function(a){e.$set(e.PersonalInformation,"nationality",a)},expression:"PersonalInformation.nationality"}},e._l(e.countries,(function(e,t){return a("el-option",{key:t,attrs:{label:e.enName,value:e.code}})})),1)],1),2==e.PersonalInformation.customType?a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"ImproveImmediately.Label.CorporationLastName",expression:"'ImproveImmediately.Label.CorporationLastName'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.lastName,callback:function(a){e.$set(e.PersonalInformation,"lastName",a)},expression:"PersonalInformation.lastName"}})],1):a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.LastName",expression:"'PersonalManagement.Label.LastName'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.lastName,callback:function(a){e.$set(e.PersonalInformation,"lastName",a)},expression:"PersonalInformation.lastName"}})],1),2==e.PersonalInformation.customType?a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"ImproveImmediately.Label.CorporationName",expression:"'ImproveImmediately.Label.CorporationName'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.firstName,callback:function(a){e.$set(e.PersonalInformation,"firstName",a)},expression:"PersonalInformation.firstName"}})],1):a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.Name",expression:"'PersonalManagement.Label.Name'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.firstName,callback:function(a){e.$set(e.PersonalInformation,"firstName",a)},expression:"PersonalInformation.firstName"}})],1),"cn"!=e.PersonalInformation.lang&&2==e.PersonalInformation.customType?a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"ImproveImmediately.Label.CorporationMName",expression:"'ImproveImmediately.Label.CorporationMName'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.middle,callback:function(a){e.$set(e.PersonalInformation,"middle",a)},expression:"PersonalInformation.middle"}})],1):e._e(),"cn"!=e.PersonalInformation.lang&&2!=e.PersonalInformation.customType?a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"placeholder.middle",expression:"'placeholder.middle'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.middle,callback:function(a){e.$set(e.PersonalInformation,"middle",a)},expression:"PersonalInformation.middle"}})],1):e._e(),"cn"==e.PersonalInformation.lang?a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.NamePinYin",expression:"'PersonalManagement.Label.NamePinYin'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.nameEn,callback:function(a){e.$set(e.PersonalInformation,"nameEn",a)},expression:"PersonalInformation.nameEn"}})],1):e._e(),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.Phone",expression:"'PersonalManagement.Label.Phone'"}]})]),a("div",{staticStyle:{display:"flex"}},[a("el-input",{staticClass:"crm-input",staticStyle:{"max-width":"100px"},attrs:{disabled:"",placeholder:e.$t("placeholder.areaCode")},model:{value:e.PersonalInformation.areaCode,callback:function(a){e.$set(e.PersonalInformation,"areaCode",a)},expression:"PersonalInformation.areaCode"}}),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.phone,callback:function(a){e.$set(e.PersonalInformation,"phone",a)},expression:"PersonalInformation.phone"}})],1)]),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.Email",expression:"'PersonalManagement.Label.Email'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.email,callback:function(a){e.$set(e.PersonalInformation,"email","string"===typeof a?a.trim():a)},expression:"PersonalInformation.email"}})],1),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.IdentityID",expression:"'PersonalManagement.Label.IdentityID'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.identity,callback:function(a){e.$set(e.PersonalInformation,"identity",a)},expression:"PersonalInformation.identity"}})],1)])])]),a("div",{staticClass:"promotion-box-white mt-3"},[a("div",{staticClass:"announcement-box personal-info-form pt-2"},[a("div",{staticClass:"form-heading"},[a("h5",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Title.AddressInformation",expression:"'PersonalManagement.Title.AddressInformation'"}],staticClass:"ml-3"}),a("span",{staticClass:"hd-line"})]),a("div",{staticClass:"con-box"},[a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.CountryRegionOfResidence",expression:"\n 'PersonalManagement.Label.CountryRegionOfResidence'\n "}]})]),a("el-select",{staticClass:"crm_search_down crm_select_icon crm-select",attrs:{filterable:"",disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.country,callback:function(a){e.$set(e.PersonalInformation,"country",a)},expression:"PersonalInformation.country"}},e._l(e.countries,(function(e,t){return a("el-option",{key:t,attrs:{label:e.enName,value:e.code}})})),1)],1),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.ProvinceRegion",expression:"'PersonalManagement.Label.ProvinceRegion'"}]})]),a("el-select",{staticClass:"crm_search_down crm_select_icon crm-select",attrs:{filterable:"",disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.state,callback:function(a){e.$set(e.PersonalInformation,"state",a)},expression:"PersonalInformation.state"}},e._l(e.states,(function(t,n){return a("el-option",{key:n,attrs:{label:-1!=["cn","zhHant"].indexOf(e.Session.Get("lang"))?t.name:t.enName,value:-1!=["cn","zhHant"].indexOf(e.Session.Get("lang"))?t.name:t.enName}})})),1)],1),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.City",expression:"'PersonalManagement.Label.City'"}]})]),a("el-select",{staticClass:"crm_search_down crm_select_icon crm-select",attrs:{filterable:"",disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.city,callback:function(a){e.$set(e.PersonalInformation,"city",a)},expression:"PersonalInformation.city"}},e._l(e.cities,(function(t,n){return a("el-option",{key:n,attrs:{label:-1!=["cn","zhHant"].indexOf(e.Session.Get("lang"))?t.name:t.enName,value:-1!=["cn","zhHant"].indexOf(e.Session.Get("lang"))?t.name:t.enName}})})),1)],1),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.DetailedAddress",expression:"'PersonalManagement.Label.DetailedAddress'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.addressLines1,callback:function(a){e.$set(e.PersonalInformation,"addressLines1",a)},expression:"PersonalInformation.addressLines1"}})],1),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.DetailedAddressStandby",expression:"'PersonalManagement.Label.DetailedAddressStandby'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.addressLines2,callback:function(a){e.$set(e.PersonalInformation,"addressLines2",a)},expression:"PersonalInformation.addressLines2"}})],1),a("div",{staticClass:"select"},[a("div",{staticClass:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"PersonalManagement.Label.ZipCode",expression:"'PersonalManagement.Label.ZipCode'"}]})]),a("el-input",{staticClass:"crm-input",attrs:{disabled:"",placeholder:e.$t("placeholder.Not")},model:{value:e.PersonalInformation.zipCode,callback:function(a){e.$set(e.PersonalInformation,"zipCode",a)},expression:"PersonalInformation.zipCode"}})],1)])])])])])])])])},s=[],o=t("c7eb"),r=t("1da1"),l=(t("e9f5"),t("7d54"),t("d3b7"),t("159b"),t("1dff")),i=t("f121"),c=t.n(i),m=c.a.Code,d={name:"cus_personal-information",data:function(){return{pictLoadingImg:!1,flag:!1,pictLoading:!1,timer:59,interval:null,getCodeString:"",PersonalInformation:{},countries:[],states:[],cities:[]}},computed:{},methods:{getLoginInfo:function(){var e=this;return Object(r["a"])(Object(o["a"])().mark((function a(){var t;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].CustomLoginInfo();case 2:t=a.sent,t.code==m.StatusOK?(e.$store.commit("InitInfo",t.data),e.PersonalInformation=t.data.customInfo,null!=e.PersonalInformation.addressLines&&e.PersonalInformation.addressLines.length&&(e.PersonalInformation.addressLines1=e.PersonalInformation.addressLines[0],e.PersonalInformation.addressLines2=e.PersonalInformation.addressLines[1]),e.getCountry()):e.$pigeon.MessageError(e.$i18n.t("Msg.SystemError"));case 4:case"end":return a.stop()}}),a)})))()},getCountry:function(){var e=this;return Object(r["a"])(Object(o["a"])().mark((function a(){var t;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].Country({});case 2:t=a.sent,t.code==m.StatusOK?(e.countries=t.data,e.PersonalInformation.country&&e.countries.forEach((function(a){a.code==e.PersonalInformation.country&&e.getState(a.id)}))):e.$pigeon.MessageError(t.msg);case 4:case"end":return a.stop()}}),a)})))()},getState:function(e){var a=this;return Object(r["a"])(Object(o["a"])().mark((function t(){var n;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["a"].Country({pid:e});case 2:n=t.sent,n.code==m.StatusOK?(a.states=n.data,a.PersonalInformation.state&&a.states.forEach((function(e){e.code==a.PersonalInformation.state&&a.getCity(e.id)}))):a.$pigeon.MessageError(n.msg);case 4:case"end":return t.stop()}}),t)})))()},getCity:function(e){var a=this;return Object(r["a"])(Object(o["a"])().mark((function t(){var n;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["a"].Country({pid:e});case 2:n=t.sent,n.code==m.StatusOK?a.cities=n.data:a.$pigeon.MessageError(n.msg);case 4:case"end":return t.stop()}}),t)})))()},changeCountry:function(e){this.PersonalInformation.state="",this.PersonalInformation.city="";var a={};this.countries.forEach((function(t){t.code!=e||(a=t)})),this.getState(a.id)},changeState:function(e){this.PersonalInformation.city="";var a={};this.states.forEach((function(t){t.name!=e&&t.enName!=e||(a=t)})),this.getCity(a.id)}},mounted:function(){this.getLoginInfo()}},p=d,u=(t("cceb"),t("bb70d"),t("2877")),f=Object(u["a"])(p,n,s,!1,null,"be8a8866",null);a["default"]=f.exports},"498a":function(e,a,t){"use strict";var n=t("23e7"),s=t("58a8").trim,o=t("c8d2");n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return s(this)}})},"9f26":function(e,a,t){},bb70d:function(e,a,t){"use strict";t("109f")},c8d2:function(e,a,t){"use strict";var n=t("5e77").PROPER,s=t("d039"),o=t("5899"),r="
";e.exports=function(e){return s((function(){return!!o[e]()||r[e]()!==r||n&&o[e].name!==e}))}},cceb:function(e,a,t){"use strict";t("9f26")}}]);
|