PotentialCustomer.a4c471ee.js 63 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PotentialCustomer"],{"0959":function(e,t,a){"use strict";a("14da")},"14da":function(e,t,a){},"26ff":function(e,t,a){},2909:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var i=a("6b75");function s(e){if(Array.isArray(e))return Object(i["a"])(e)}a("a4d3"),a("e01a"),a("d28b"),a("a630"),a("d3b7"),a("3ca3"),a("ddb0");function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var r=a("06c5");a("d9e2");function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){return s(e)||n(e)||Object(r["a"])(e)||l()}},"70c6":function(e,t,a){"use strict";a("e16d")},a11d:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("498a");var i=function(){var e,t=this,a=t._self._c;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"enter_PotentialCustomer","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"crm_search"},[a("el-form",{ref:"form",attrs:{"label-position":"",model:t.search,"label-width":""}},[a("el-row",[a("el-col",{attrs:{span:24,md:24,lg:24}},[a("el-form-item",{staticStyle:{"margin-right":"15px"}},[a("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:t.$t("Placeholder.Choose")},model:{value:t.search.potentialStatus,callback:function(e){t.$set(t.search,"potentialStatus",e)},expression:"search.potentialStatus"}},[a("el-option",{attrs:{label:t.$t("State.All"),value:null},nativeOn:{click:function(e){return t.toSearch.apply(null,arguments)}}}),a("el-option",{attrs:{label:t.$t("State.NotApply"),value:0},nativeOn:{click:function(e){return t.toSearch.apply(null,arguments)}}}),a("el-option",{attrs:{label:t.$t("State.Refused"),value:1},nativeOn:{click:function(e){return t.toSearch.apply(null,arguments)}}})],1)],1),a("el-form-item",{staticStyle:{"margin-right":"15px"}},[a("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:t.$t("Placeholder.Choose")},model:{value:t.search.sourceCode,callback:function(e){t.$set(t.search,"sourceCode",e)},expression:"search.sourceCode"}},[a("el-option",{attrs:{label:t.$t("State.All"),value:null},nativeOn:{click:function(e){return t.toSearch.apply(null,arguments)}}}),t._l(t.sourceList,(function(e,i){return a("el-option",{key:i,attrs:{label:"cn"==t.lang?e.name:e.nameEn,value:e.code},nativeOn:{click:function(e){return t.toSearch.apply(null,arguments)}}})}))],2)],1),a("el-form-item",[a("el-select",{staticClass:"crm_search_down crm-border-radius-no",attrs:{size:"small",placeholder:t.$t("Placeholder.Choose")},model:{value:t.search.tag,callback:function(e){t.$set(t.search,"tag",e)},expression:"search.tag"}},[a("el-option",{attrs:{label:"CID",value:1}}),a("el-option",{attrs:{label:t.$t("Enter_info.Email"),value:2}}),a("el-option",{attrs:{label:t.$t("Enter_info.AgentNumber"),value:3}}),a("el-option",{attrs:{label:t.$t("Apply_info.VerifiedUser.Identification"),value:4}})],1)],1),a("el-form-item",{staticStyle:{"margin-right":"10px"}},[1==t.search.tag?a("el-input",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",placeholder:t.$t("Placeholder.Input")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toSearch.apply(null,arguments)}},model:{value:t.search.cid,callback:function(e){t.$set(t.search,"cid","string"===typeof e?e.trim():e)},expression:"search.cid"}}):t._e(),2==t.search.tag?a("el-input",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",placeholder:t.$t("Placeholder.Input")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toSearch.apply(null,arguments)}},model:{value:t.search.email,callback:function(e){t.$set(t.search,"email","string"===typeof e?e.trim():e)},expression:"search.email"}}):t._e(),3==t.search.tag?a("el-input",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",placeholder:t.$t("Placeholder.Input")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toSearch.apply(null,arguments)}},model:{value:t.search.ibNo,callback:function(e){t.$set(t.search,"ibNo","string"===typeof e?e.trim():e)},expression:"search.ibNo"}}):t._e(),4==t.search.tag?a("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:t.$t("Placeholder.Input")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toSearch.apply(null,arguments)}},model:{value:t.search.identity,callback:function(e){t.$set(t.search,"identity",e)},expression:"search.identity"}}):t._e()],1),a("el-form-item",{staticStyle:{"margin-right":"10px","margin-top":"5px"}},[a("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toSearch.apply(null,arguments)}},model:{value:t.search.name,callback:function(e){t.$set(t.search,"name","string"===typeof e?e.trim():e)},expression:"search.name"}},[a("template",{slot:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Name",expression:"'Label.Name'"}]})])],2)],1),a("el-form-item",[a("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":t.$t("Placeholder.Start"),"end-placeholder":t.$t("Placeholder.End")},model:{value:t.search.date,callback:function(e){t.$set(t.search,"date",e)},expression:"search.date"}}),a("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:t.toSearch}})],1)],1)],1),a("el-form-item",[null!==(e=t.display["R-PotentialCustomer-Export"])&&void 0!==e&&e.show?a("el-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",size:"small"},on:{click:t.exportAgents}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Export",expression:"'Btn.Export'"}]})]):t._e()],1)],1)],1),a("ConfigurableTable",{attrs:{data:t.mock_tableData,columns:t.tableColumns,"pager-info":t.pagerInfo,"row-key":"id"},on:{"page-change":t.handlePageChange,"expand-change":t.onExpandChange},scopedSlots:t._u([{key:"expand",fn:function(e){var i=e.row;return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.expandApproveData[i.id]||[],border:"",size:"small"}},[a("el-table-column",{attrs:{label:t.$i18n.t("Label.Note"),"min-width":"200","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.formatNote(e.row.approveDesc))+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:t.$i18n.t("Label.AddName"),width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.addName||"--")+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:t.$i18n.t("Label.ApproveTime"),width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.addTime||"--")+" ")]}}],null,!0)})],1)]}},{key:"action",fn:function(e){var i,s,n,r,l=e.row;return[a("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link crm-cursor"},[a("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[null!==(i=t.display["R-PotentialCustomer-Update"])&&void 0!==i&&i.show?a("el-dropdown-item",{attrs:{command:{type:"editor",cId:l.cId}}},[a("i",{staticClass:"el-icon-s-operation"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):t._e(),null!==(s=t.display["R-PotentialCustomer-Delete"])&&void 0!==s&&s.show?a("el-dropdown-item",{attrs:{command:{type:"delete",id:l.id}}},[a("i",{staticClass:"iconfont iconshanchu"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):t._e(),null!==(n=t.display["R-PotentialCustomer-AdjustmentAttribution"])&&void 0!==n&&n.show?a("el-dropdown-item",{attrs:{command:{type:"Adjustment",row:l}}},[a("i",{staticClass:"el-icon-s-custom"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-PotentialCustomer-AdjustmentAttribution",expression:"'R-PotentialCustomer-AdjustmentAttribution'"}]})]):t._e(),null!==(r=t.display["R-PotentialCustomer-Verification"])&&void 0!==r&&r.show?a("el-dropdown-item",{attrs:{command:{type:"Verification",id:l.id}}},[a("i",{staticClass:"el-icon-setting"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-PotentialCustomer-Verification",expression:"'R-PotentialCustomer-Verification'"}]})]):t._e()],1)],1)]}}])}),a("el-dialog",{attrs:{title:t.dialogCheckTit,visible:t.dialogCheck1,center:"","close-on-click-modal":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(e){t.dialogCheck1=e}}},[a("div",{staticClass:"dia-content"},[a("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:t.dialogCheck_form1,rules:t.rules,"label-width":"190px"}},[a("el-form-item",{attrs:{prop:"",label:t.$t("Label.CidAccount")+":"}},[t._v(" "+t._s(t.dialogCheck_form1.cId)+" ")]),a("el-form-item",{attrs:{prop:"",label:t.$t("Label.AttributionNumber")+":"}},[t._v(" "+t._s(t.dialogCheck_form1.pIbNo)+" ")]),a("el-form-item",{attrs:{prop:"",label:""}},[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("el-input",{staticClass:"crm-border-radius-no",attrs:{placeholder:t.$t("Placeholder.Input"),size:"small"},model:{value:t.dialogCheck_form.newIb,callback:function(e){t.$set(t.dialogCheck_form,"newIb","string"===typeof e?e.trim():e)},expression:"dialogCheck_form.newIb"}}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Search",expression:"'Btn.Search'"}],staticClass:"dialogCheckSearch crm-cursor crm_state_blue",on:{click:function(e){return t.searchIbTreeSearch(t.dialogCheck_form.newIb)}}})],1)]),a("el-form-item",{attrs:{prop:"",label:t.$t("Label.NewAttributionNumber")+":"}},[a("el-cascader",{staticClass:"crm_search_down",attrs:{props:t.props,options:t.agentId_options,placeholder:t.$t("Placeholder.Choose"),size:"small"},on:{"expand-change":t.handleItemChange},scopedSlots:t._u([{key:"default",fn:function(e){e.node;var i=e.data;return[a("div",[a("span",[t._v(t._s(i.label))]),i.name?a("span",[t._v(" - "+t._s(i.name)+" ")]):t._e()])]}}]),model:{value:t.dialogCheck_form1.agentId,callback:function(e){t.$set(t.dialogCheck_form1,"agentId",e)},expression:"dialogCheck_form1.agentId"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(e){return t.toVerified()}}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.cancel}})],1)],1)]),a("detailed-info-add",{attrs:{dialogInfoAdd:t.dialogInfoAdd,editor:t.editor,btn:t.btn,formList:t.formList},on:{closeAdd:t.closeAdd,confirmToReload:t.confirmToReload}}),t.dialogInfoAdd?a("div",{staticClass:"crm_verified_info_mask",on:{click:t.closeDiaAdd}}):t._e()],1)},s=[],n=a("5530"),r=a("c7eb"),l=a("1da1"),o=(a("d9e2"),a("14d9"),a("e9f5"),a("7d54"),a("a732"),a("d3b7"),a("00b4"),a("3ca3"),a("159b"),a("ddb0"),a("2b3d"),a("bf19"),a("9861"),a("88a7"),a("271a"),a("5494"),a("bc3a")),c=a.n(o),d=a("9630"),u=a("5217"),p=a("f121"),f=a.n(p),m=function(){var e=this,t=e._self._c;return t("div",{staticClass:"InfoBox",class:{active:e.dialogInfoAdd},attrs:{id:"GlobalDetailedInfoAdd"}},[t("div",{staticClass:"header"},["personalInfo"==e.type?t("div",[t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.CidAccount",expression:"'Label.CidAccount'"}],staticClass:"title"}),e._v(":"),t("span",[e._v(e._s(e.info.CID))]),e._v("- "),t("span",[e._v(e._s(e.info.name))])]):e._e(),t("span",{staticClass:"close crm-cursor",on:{click:e.close}},[t("i",{staticClass:"el-icon-close"})])]),"personalInfo"==e.type?t("el-form",{ref:"form",attrs:{model:e.form,"label-width":"150PX"}},[t("el-collapse",{staticClass:"crm_collapse_info",model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:e.$t("Apply_info.UserInfo.Title"),name:"1"}},[t("el-form-item",{attrs:{label:e.$t("Apply_info.UserInfo.CID")}},[t("el-input",{attrs:{size:"small",disabled:"",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.cId,callback:function(t){e.$set(e.form,"cId","string"===typeof t?t.trim():t)},expression:"form.cId"}})],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.UserInfo.Email")}},[t("el-input",{attrs:{size:"small",disabled:"",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email","string"===typeof t?t.trim():t)},expression:"form.email"}})],1),e._e(),t("el-form-item",{attrs:{label:e.$t("Apply_info.UserInfo.Relegation")}},[t("el-input",{attrs:{size:"small",disabled:"",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.ibNo,callback:function(t){e.$set(e.form,"ibNo","string"===typeof t?t.trim():t)},expression:"form.ibNo"}})],1),t("el-form-item",{attrs:{label:e.$t("news_add_field.Label.QuantityLimit")}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.loginNumberLimit,callback:function(t){e.$set(e.form,"loginNumberLimit","string"===typeof t?t.trim():t)},expression:"form.loginNumberLimit"}})],1),e._e(),t("el-form-item",{attrs:{label:e.$t("Apply_info.UserInfo.LoginState")}},[t("el-switch",{staticClass:"crm_switch crm_switch_width",attrs:{"active-value":1,"inactive-value":0,"active-text":e.$t("State.Normal"),"inactive-text":e.$t("State.Freeze"),"active-color":"#368FEC","inactive-color":"#EB3F57"},model:{value:e.form.valid,callback:function(t){e.$set(e.form,"valid",t)},expression:"form.valid"}})],1)],1),t("el-collapse-item",{attrs:{title:e.$t("Apply_info.BasicInfo.Title"),name:"2"}},[t("el-form-item",{attrs:{label:e.$t("Label.CustomerType")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.customType,callback:function(t){e.$set(e.form,"customType",t)},expression:"form.customType"}},[t("el-option",{attrs:{label:e.$t("Label.CustomerType1"),value:1}}),t("el-option",{attrs:{label:e.$t("Label.CustomerType2"),value:2}})],1)],1),2==e.form.customType?t("el-form-item",{attrs:{label:e.$t("Label.CompanyName")}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.companyName,callback:function(t){e.$set(e.form,"companyName",t)},expression:"form.companyName"}})],1):e._e(),2==e.form.customType?t("el-form-item",{attrs:{label:e.$t("Label.CorporationName")}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.FirstName")},model:{value:e.form.firstName,callback:function(t){e.$set(e.form,"firstName",t)},expression:"form.firstName"}})],1),t("el-col",{attrs:{span:12}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.LastName")},model:{value:e.form.lastName,callback:function(t){e.$set(e.form,"lastName",t)},expression:"form.lastName"}})],1)],1)],1):t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.Name")}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.FirstName")},model:{value:e.form.firstName,callback:function(t){e.$set(e.form,"firstName",t)},expression:"form.firstName"}})],1),t("el-col",{attrs:{span:12}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.LastName")},model:{value:e.form.lastName,callback:function(t){e.$set(e.form,"lastName",t)},expression:"form.lastName"}})],1)],1)],1),t("el-form-item",{attrs:{label:e.$t("Placeholder.Middle")}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Middle")},model:{value:e.form.middle,callback:function(t){e.$set(e.form,"middle",t)},expression:"form.middle"}})],1),t("el-form-item",{attrs:{label:e.$t("system_info.Label.EnglishNames")}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.nameEn,callback:function(t){e.$set(e.form,"nameEn",t)},expression:"form.nameEn"}})],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.Phone")}},[t("el-row",[t("el-col",{attrs:{span:8}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.AreaCode")},model:{value:e.form.areaCode,callback:function(t){e.$set(e.form,"areaCode","string"===typeof t?t.trim():t)},expression:"form.areaCode"}})],1),t("el-col",{attrs:{span:16}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Phone")},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone","string"===typeof t?t.trim():t)},expression:"form.phone"}})],1)],1)],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.ID")}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.identity,callback:function(t){e.$set(e.form,"identity",t)},expression:"form.identity"}})],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.Birthday")}},[t("el-date-picker",{attrs:{type:"date",size:"small","value-format":"yyyy-MM-dd",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.birth,callback:function(t){e.$set(e.form,"birth",t)},expression:"form.birth"}})],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.Gender")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.gender,callback:function(t){e.$set(e.form,"gender",t)},expression:"form.gender"}},[t("el-option",{attrs:{label:e.$t("Apply_info.BasicInfo.Male"),value:1}}),t("el-option",{attrs:{label:e.$t("Apply_info.BasicInfo.Female"),value:2}})],1)],1)],1),t("el-collapse-item",{attrs:{title:e.$t("Apply_info.AddressInfo.Title"),name:"3"}},[t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Lang")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.lang,callback:function(t){e.$set(e.form,"lang",t)},expression:"form.lang"}},[t("el-option",{attrs:{label:"中文简体",value:"cn"}}),t("el-option",{attrs:{label:"English",value:"en"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Country")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",filterable:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.changeCountry},model:{value:e.form.country,callback:function(t){e.$set(e.form,"country",t)},expression:"form.country"}},e._l(e.countries,(function(a){return t("el-option",{key:a.id,attrs:{label:"cn"==e.Session.Get("lang")?a.name:a.enName,value:a.code}})})),1)],1),"CN"==e.form.country||"CNX"==e.form.country||"CNA"==e.form.country||"CNT"==e.form.country?t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Region")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",filterable:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.changeState},model:{value:e.form.state,callback:function(t){e.$set(e.form,"state",t)},expression:"form.state"}},e._l(e.states,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1):e._e(),"CN"!=e.form.country&&"CNX"!=e.form.country&&"CNA"!=e.form.country&&"CNT"!=e.form.country?t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Region")}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.state,callback:function(t){e.$set(e.form,"state",t)},expression:"form.state"}})],1):e._e(),"CN"==e.form.country||"CNX"==e.form.country||"CNA"==e.form.country||"CNT"==e.form.country?t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.City")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",filterable:"",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1):e._e(),"CN"!=e.form.country&&"CNX"!=e.form.country&&"CNA"!=e.form.country&&"CNT"!=e.form.country?t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.City")}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}})],1):e._e(),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Address")+"1"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},on:{input:e.selectChange},model:{value:e.form.addressLines1,callback:function(t){e.$set(e.form,"addressLines1",t)},expression:"form.addressLines1"}})],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Address")+"2"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},on:{input:e.selectChange},model:{value:e.form.addressLines2,callback:function(t){e.$set(e.form,"addressLines2",t)},expression:"form.addressLines2"}})],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.zipCode")}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},on:{input:e.selectChange},model:{value:e.form.zipCode,callback:function(t){e.$set(e.form,"zipCode",t)},expression:"form.zipCode"}})],1)],1),t("el-collapse-item",{attrs:{title:e.$t("Apply_info.FinancialBack.Title"),name:"4"}},[t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.EducationBackground")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.level,callback:function(t){e.$set(e.form,"level",t)},expression:"form.level"}},[t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item11"),value:"1"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item12"),value:"2"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item13"),value:"3"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item14"),value:"4"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item15"),value:"5"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.InaugurationSituation")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.employmentStatus,callback:function(t){e.$set(e.form,"employmentStatus",t)},expression:"form.employmentStatus"}},[t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item21"),value:"1"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item22"),value:"2"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item23"),value:"3"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item24"),value:"4"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item25"),value:"5"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.TradingPurposes")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.tradingObjectives,callback:function(t){e.$set(e.form,"tradingObjectives",t)},expression:"form.tradingObjectives"}},[t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item31"),value:"1"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item32"),value:"2"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item33"),value:"3"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item34"),value:"4"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.SourcesFunding")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.totalNewWorth,callback:function(t){e.$set(e.form,"totalNewWorth",t)},expression:"form.totalNewWorth"}},[t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item41"),value:"1"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item42"),value:"2"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item43"),value:"3"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item44"),value:"4"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item45"),value:"5"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item46"),value:"6"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.InTotalRevenue")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.grossAnnualIncome,callback:function(t){e.$set(e.form,"grossAnnualIncome",t)},expression:"form.grossAnnualIncome"}},[t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item61"),value:"1"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item62"),value:"2"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item63"),value:"3"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item64"),value:"4"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item65"),value:"5"}})],1)],1),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.TotalAssets")}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.form.sourceFunding,callback:function(t){e.$set(e.form,"sourceFunding",t)},expression:"form.sourceFunding"}},[t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item51"),value:"1"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item52"),value:"2"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item53"),value:"3"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item54"),value:"4"}}),t("el-option",{attrs:{label:e.$t("Apply_info.FinancialBack.item55"),value:"5"}})],1)],1)],1),t("el-collapse-item",{attrs:{title:e.$t("Apply_info.ExperienceTrading.Title"),name:"5"}},[t("div",{staticStyle:{"text-align":"left",margin:"10px 0"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.ExperienceTrading.Item1",expression:"'Apply_info.ExperienceTrading.Item1'"}]}),t("div",[t("el-radio",{attrs:{label:1},model:{value:e.form.experienceQualification,callback:function(t){e.$set(e.form,"experienceQualification",t)},expression:"form.experienceQualification"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]})]),t("el-radio",{attrs:{label:2},model:{value:e.form.experienceQualification,callback:function(t){e.$set(e.form,"experienceQualification",t)},expression:"form.experienceQualification"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]})])],1)]),t("div",{staticStyle:{"text-align":"left",margin:"10px 0"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.ExperienceTrading.Item2",expression:"'Apply_info.ExperienceTrading.Item2'"}]}),t("div",[t("el-radio",{attrs:{label:1},model:{value:e.form.experienceTradingDerivative,callback:function(t){e.$set(e.form,"experienceTradingDerivative",t)},expression:"form.experienceTradingDerivative"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]})]),t("el-radio",{attrs:{label:2},model:{value:e.form.experienceTradingDerivative,callback:function(t){e.$set(e.form,"experienceTradingDerivative",t)},expression:"form.experienceTradingDerivative"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]})])],1)]),t("div",{staticStyle:{"text-align":"left",margin:"10px 0"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.ExperienceTrading.Item3",expression:"'Apply_info.ExperienceTrading.Item3'"}]}),t("div",[t("el-radio",{attrs:{label:1},model:{value:e.form.experienceTradingForex,callback:function(t){e.$set(e.form,"experienceTradingForex",t)},expression:"form.experienceTradingForex"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]})]),t("el-radio",{attrs:{label:2},model:{value:e.form.experienceTradingForex,callback:function(t){e.$set(e.form,"experienceTradingForex",t)},expression:"form.experienceTradingForex"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]})])],1)]),t("div",{staticStyle:{"text-align":"left",margin:"10px 0"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.ExperienceTrading.Item4",expression:"'Apply_info.ExperienceTrading.Item4'"}]}),t("div",[t("el-radio",{attrs:{label:1},model:{value:e.form.derivativeProducts,callback:function(t){e.$set(e.form,"derivativeProducts",t)},expression:"form.derivativeProducts"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]})]),t("el-radio",{attrs:{label:2},model:{value:e.form.derivativeProducts,callback:function(t){e.$set(e.form,"derivativeProducts",t)},expression:"form.derivativeProducts"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]})])],1)])]),t("el-collapse-item",{attrs:{title:e.$t("Apply_info.FileManagement.Title"),name:"6"}},[t("div",{staticClass:"Identity"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.ProofIdentity",expression:"'Apply_info.FileManagement.ProofIdentity'"}],staticClass:"title"}),t("span",{staticClass:"line"})]),t("div",{staticClass:"Identity-img"},[t("div",{staticClass:"id-img"},[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.actionID1,headers:e.AccessToken,"show-file-list":!1,"on-success":e.handleAvatarSuccess1,"before-upload":e.beforeAvatarUploadFiles}},[t("div",{staticStyle:{width:"100%",height:"100%"}},[e.fileListID1.againPath&&"pdf"!=e.fileListID1.againPath.substr(-3,3)&&"PDF"!=e.fileListID1.againPath.substr(-3,3)||e.fileListID1.path&&"pdf"!=e.fileListID1.path.substr(-3,3)&&"PDF"!=e.fileListID1.path.substr(-3,3)?t("img",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:e.imgUrl+(e.fileListID1.againPath||e.fileListID1.path)}}):e._e(),e.fileListID1.againPath&&("pdf"==e.fileListID1.againPath.substr(-3,3)||"PDF"==e.fileListID1.againPath.substr(-3,3))||e.fileListID1.path&&("pdf"==e.fileListID1.path.substr(-3,3)||"PDF"==e.fileListID1.path.substr(-3,3))?t("div",{staticStyle:{height:"100%",width:"100%","font-size":"24px","line-height":"80px"}},[t("i",{staticClass:"el-icon-document"})]):e._e(),e.fileListID1.againPath||e.fileListID1.path?e._e():t("i",{staticClass:"el-icon-picture-outline avatar-uploader-icon",staticStyle:{"line-height":"80px"}})])])],1),t("div",{staticClass:"id-img"},[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.actionID2,headers:e.AccessToken,"show-file-list":!1,"on-success":e.handleAvatarSuccess2,"before-upload":e.beforeAvatarUploadFiles}},[t("div",{staticStyle:{width:"100%",height:"100%"}},[e.fileListID2.againPath&&"pdf"!=e.fileListID2.againPath.substr(-3,3)&&"PDF"!=e.fileListID2.againPath.substr(-3,3)||e.fileListID2.path&&"pdf"!=e.fileListID2.path.substr(-3,3)&&"PDF"!=e.fileListID2.path.substr(-3,3)?t("img",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:e.imgUrl+(e.fileListID2.againPath||e.fileListID2.path)}}):e._e(),e.fileListID2.againPath&&("pdf"==e.fileListID2.againPath.substr(-3,3)||"PDF"==e.fileListID2.againPath.substr(-3,3))||e.fileListID1.path&&("pdf"==e.fileListID2.path.substr(-3,3)||"PDF"==e.fileListID2.path.substr(-3,3))?t("div",{staticStyle:{height:"100%",width:"100%","font-size":"24px","line-height":"80px"}},[t("i",{staticClass:"el-icon-document"})]):e._e(),e.fileListID2.againPath||e.fileListID2.path?e._e():t("i",{staticClass:"el-icon-picture-outline avatar-uploader-icon",staticStyle:{"line-height":"80px"}})])])],1)]),t("div",{staticClass:"Identity"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.ProofAddress",expression:"'Apply_info.FileManagement.ProofAddress'"}],staticClass:"title"}),t("span",{staticClass:"line"})]),t("div",{staticClass:"Identity-img"},[t("div",{staticClass:"id-img"},[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.actionAdd1,headers:e.AccessToken,"show-file-list":!1,"on-success":e.handleAvatarSuccess3,"before-upload":e.beforeAvatarUploadFiles}},[t("div",{staticStyle:{width:"100%",height:"100%"}},[e.fileListAdd1.againPath&&"pdf"!=e.fileListAdd1.againPath.substr(-3,3)&&"PDF"!=e.fileListAdd1.againPath.substr(-3,3)||e.fileListAdd1.path&&"pdf"!=e.fileListAdd1.path.substr(-3,3)&&"PDF"!=e.fileListAdd1.path.substr(-3,3)?t("img",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:e.imgUrl+(e.fileListAdd1.againPath||e.fileListAdd1.path)}}):e._e(),e.fileListAdd1.againPath&&("pdf"==e.fileListAdd1.againPath.substr(-3,3)||"PDF"==e.fileListAdd1.againPath.substr(-3,3))||e.fileListAdd1.path&&("pdf"==e.fileListAdd1.path.substr(-3,3)||"PDF"==e.fileListAdd1.path.substr(-3,3))?t("div",{staticStyle:{height:"100%",width:"100%","font-size":"24px","line-height":"80px"}},[t("i",{staticClass:"el-icon-document"})]):e._e(),e.fileListAdd1.againPath||e.fileListAdd1.path?e._e():t("i",{staticClass:"el-icon-picture-outline avatar-uploader-icon",staticStyle:{"line-height":"80px"}})])])],1)]),t("div",{staticClass:"Identity"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.AdditionalProof",expression:"'Apply_info.FileManagement.AdditionalProof'"}],staticClass:"title"}),t("span",{staticClass:"line"})]),t("div",{staticClass:"Identity-img"},[t("el-upload",{staticClass:"avatar-uploaderOther fileOther",attrs:{action:e.actionOtherAdd,headers:e.AccessToken,"show-file-list":!1,"on-success":e.handleAvatarSuccessOther,"before-upload":e.beforeAvatarUploadFiles}},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Upload",expression:"'Btn.Upload'"}],attrs:{size:"",type:"primary"}})],1),e._l(e.fileListOthers,(function(a,i){return t("div",{key:i,attrs:{id:"files"}},[t("el-upload",{staticClass:"avatar-uploaderOther fileOthers",attrs:{action:e.actionOtherAdd+"/"+a.id,headers:e.AccessToken,"show-file-list":!1,"on-success":e.handleAvatarSuccessOther1,"before-upload":e.beforeAvatarUploadFiles}},[t("div",{staticClass:"file",staticStyle:{width:"100%",height:"100%"}},[a.againPath&&"pdf"!=a.againPath.substr(-3,3)&&"PDF"!=a.againPath.substr(-3,3)||a.path&&"pdf"!=a.path.substr(-3,3)&&"PDF"!=a.path.substr(-3,3)?t("img",{staticClass:"avatar",staticStyle:{height:"100%",width:"100%"},attrs:{src:e.imgUrl+a.path}}):t("div",{staticStyle:{height:"100%",width:"100%","font-size":"24px","line-height":"60px"}},[t("i",{staticClass:"el-icon-document"})])])]),t("div",{staticClass:"options"},[t("el-button",{attrs:{size:"small",type:""}},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Btn.Detailed",expression:"'Btn.Detailed'"}],attrs:{href:e.imgUrl+(a.againPath||a.path),target:"_blank"}})])],1)],1)}))],2)])],1),t("span",{staticClass:"btn crm-cursor",on:{click:e.toUpdate}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}]})])],1):e._e()],1)},h=[],g=f.a.Code,b={name:"PotentialInfoAdd",props:{dialogInfoAdd:{type:Boolean,default:!1},type:{default:"personalInfo"},btn:{default:0},headData:[],formList:{},editor:{default:""}},data:function(){return{activeNames:["1","2","3","4","5","6","10"],form:{item:"",item1:"",region:"",valid:1,valid1:1,valid2:1,valid3:1,radio:1,radio1:1,radio2:1},info:{CID:"123456",name:"QYY"},options:[{name:"CWG/B/300/ACC",id:"2"},{name:"CWG/A/300/ACC",id:"1"}],mock_options:[],tradingAccount:[{id:1,account:"123456",type:"极速账户"},{id:2,account:"123456",type:"高级账户"}],dialogImageUrl:"",imageUrl:"",dialogVisible:!1,cardIndex:-1,countries:[],states:[],cities:[],fileListID1:{againPath:"",id:null,path:"",status:null,type:null},fileListID2:{againPath:"",id:null,path:"",status:null,type:null},fileListAdd1:{againPath:"",id:null,path:"",status:null,type:null},fileListAdd2:{againPath:"",id:null,path:"",status:null,type:null},fileListOthers:[],fileListOther:{againPath:"",id:null,path:"",status:null,type:null},actionID1:"",actionID2:"",actionAdd1:"",actionAdd2:"",actionOtherAdd:"",actionOther:"",imageUrl1:"",imageUrl2:"",imageUrl3:"",imageUrl4:"",imageUrl5:"",mobile:"",imgUrl:f.a.Host05,Host85:f.a.Host85,websock:null}},computed:{AccessToken:function(){return{"Access-Token":this.Session.Get("access_token")}},IncludeChinese:function(){return/.*[\u4e00-\u9fa5]+.*$/.test(this.form.firstName)||/.*[\u4e00-\u9fa5]+.*$/.test(this.form.lastName)}},methods:{selectChange:function(){this.$forceUpdate()},handleRemove:function(e,t){console.log(e,t)},confirmToReload:function(){this.$emit("confirmToReload",!0)},toUpdate:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.editor){t.next=10;break}return e.form.addressLines=[],e.form.addressLines1&&e.form.addressLines.push(e.form.addressLines1),e.form.addressLines2&&e.form.addressLines.push(e.form.addressLines2),e.form.addressLines1||e.form.addressLines2||(e.form.addressLines=[]),2!=e.form.customType&&(e.form.companyName=""),t.next=8,d["a"].customPotentialUpdate(Object(n["a"])({customId:e.form.id},e.form));case 8:a=t.sent,a.code==g.StatusOK?e.confirmToReload():e.$pigeon.MessageError(a.msg);case 10:case"end":return t.stop()}}),t)})))()},actionType:function(){this.fileListID1.id?this.actionID1=this.Host85+"/custom/file/upload/"+this.form.id+"/1/"+this.fileListID1.id:this.actionID1=this.Host85+"/custom/file/upload/"+this.form.id+"/1",this.fileListID2.id?this.actionID2=this.Host85+"/custom/file/upload/"+this.form.id+"/2/"+this.fileListID2.id:this.actionID2=this.Host85+"/custom/file/upload/"+this.form.id+"/2",this.fileListAdd1.id?this.actionAdd1=this.Host85+"/custom/file/upload/"+this.form.id+"/3/"+this.fileListAdd1.id:this.actionAdd1=this.Host85+"/custom/file/upload/"+this.form.id+"/3",this.fileListAdd2.id?this.actionAdd2=this.Host85+"/custom/file/upload/"+this.form.id+"/4/"+this.fileListAdd2.id:this.actionAdd2=this.Host85+"/custom/file/upload/"+this.form.id+"/4",this.actionOtherAdd=this.Host85+"/custom/file/upload/"+this.form.id+"/10"},handleAvatarSuccess1:function(e){200==e.code?(this.$pigeon.MessageOK(e.msg),this.fileListID1.path=e.data.againPath||e.data.path):this.$pigeon.MessageError(e.msg)},handleAvatarSuccess2:function(e){200==e.code?(this.$pigeon.MessageOK(e.msg),this.fileListID2.path=e.data.againPath||e.data.path):this.$pigeon.MessageError(e.msg)},handleAvatarSuccess3:function(e){200==e.code?(this.$pigeon.MessageOK(e.msg),this.fileListAdd1.path=e.data.againPath||e.data.path):this.$pigeon.MessageError(e.msg)},handleAvatarSuccess4:function(e){200==e.code?(this.$pigeon.MessageOK(e.msg),this.fileListAdd2.path=e.data.againPath||e.data.path):this.$pigeon.MessageError(e.msg)},handleAvatarSuccess5:function(e){200==e.code?(this.$pigeon.MessageOK(e.msg),this.fileListOther.path=e.data.againPath||e.data.path):this.$pigeon.MessageError(e.msg)},handleAvatarSuccessOther:function(e){200==e.code?(this.$pigeon.MessageOK(e.msg),this.fileListOthers.push(e.data)):this.$pigeon.MessageError(e.msg)},handleAvatarSuccessOther1:function(e){200==e.code?(this.$pigeon.MessageOK(e.msg),this.fileListOthers.forEach((function(t){t.againPath?t.id==e.data.id&&(t.againPath=e.data.againPath):t.id==e.data.id&&(t.path=e.dara.path)}))):this.$pigeon.MessageError(e.msg)},beforeAvatarUploadFiles:function(e){var t=-1!=["jpeg","JPEG","png","PNG","jpg","JPG","pdf","PDF"].indexOf(e.name.split(".")[1]),a=e.size/1024/1024<10;return t||this.$pigeon.MessageError(this.$i18n.t("Msg.JPG")),a||this.$pigeon.MessageError(this.$i18n.t("Msg.10IMG")),t&&a},fileOtherDelete:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(t){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(l["a"])(Object(r["a"])().mark((function e(){var i,s;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d["a"].customFileDelete({ids:[t]});case 2:i=e.sent,i.code==g.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),s=[],a.fileListOthers.forEach((function(e){e.id!=t&&s.push(e)})),a.fileListOthers=s):a.$pigeon.MessageError(i.msg);case 4:case"end":return e.stop()}}),e)}))),(function(){}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),cardTab:function(e){this.cardIndex==e?this.cardIndex=-1:this.cardIndex=e},getCountry:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,u["a"].Country({});case 2:a=t.sent,a.code==g.StatusOK?(e.countries=a.data,e.form.country&&e.countries.forEach((function(t){t.code==e.form.country&&e.getState(t.id)}))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},getState:function(e){var t=this;return Object(l["a"])(Object(r["a"])().mark((function a(){var i;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,u["a"].Country({pid:e});case 2:i=a.sent,i.code==g.StatusOK?(t.states=i.data,t.form.state&&t.states.forEach((function(e){e.code==t.form.state&&t.getCity(e.id)}))):t.$pigeon.MessageError(i.msg);case 4:case"end":return a.stop()}}),a)})))()},getCity:function(e){var t=this;return Object(l["a"])(Object(r["a"])().mark((function a(){var i;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,u["a"].Country({pid:e});case 2:i=a.sent,i.code==g.StatusOK?t.cities=i.data:t.$pigeon.MessageError(i.msg);case 4:case"end":return a.stop()}}),a)})))()},changeCountry:function(e){this.form.state="",this.form.city="",this.states=[],this.cities=[];var t={};this.countries.forEach((function(a){a.code!=e||(t=a)})),this.getState(t.id)},changeState:function(e){this.form.city="";var t={};this.states.forEach((function(a){a.name!=e||(t=a)})),this.getCity(t.id)},close:function(){this.$emit("closeAdd",!1)}},mounted:function(){},watch:{dialogInfoAdd:function(e){var t=this;if(0==e&&this.$refs["form"])this.$refs["form"].resetFields(),this.form={};else if(1==e){if(this.editor){this.form=this.formList,null!=this.form.addressLines&&this.form.addressLines.length&&(this.form.addressLines1=this.form.addressLines[0]||"",this.form.addressLines2=this.form.addressLines[1]||"");var a=this.form.files;this.fileListOthers=[],this.fileListID1={againPath:"",id:null,path:"",status:null,type:null},this.fileListID2={againPath:"",id:null,path:"",status:null,type:null},this.fileListAdd1={againPath:"",id:null,path:"",status:null,type:null},this.fileListAdd2={againPath:"",id:null,path:"",status:null,type:null},a.forEach((function(e){1==e.type?t.fileListID1=e:2==e.type?t.fileListID2=e:3==e.type?t.fileListAdd1=e:4==e.type?t.fileListAdd2=e:10==e.type&&t.fileListOthers.push(e)})),this.actionType()}this.getCountry()}},formList:function(e){this.form=e}}},v=b,y=(a("b968"),a("0959"),a("2877")),C=Object(y["a"])(v,m,h,!1,null,"35e41953",null),$=C.exports,w=a("a134"),_=f.a.Code,x={name:"PotentialCustomer",inject:["reload"],components:{DetailedInfoAdd:$,ConfigurableTable:w["a"]},data:function(){var e=this;return{reasons:{},flag:!1,pictLoading:!1,mock_tableData:[],expandApproveData:{},search:{tag:1,potentialStatus:null,sourceCode:null,cid:"",email:"",ibNo:"",identity:"",name:"",date:[],startDate:"",endDate:""},sourceList:[],dialogInfoAdd:!1,btn:"",formList:{},editor:"",dialogCheckTitle:"",dialogCheck1:!1,dialogCheck_form1:{agentId:[]},dialogCheckTit:"",value:null,agentId_options:[],props:{value:"value",children:"children",checkStrictly:!0},child:[],dialogCheck_form:{agentId:[]},rules:{status:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}],approveDesc:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}],ibInvalid:[{required:!0,message:this.$i18n.t("Placeholder.Choose"),trigger:"change"}],password:[{validator:function(t,a,i){e.Config.Pattern.Password.test(a)?i():i(new Error(e.$i18n.t("vaildate.password.format")))},trigger:"blur"}],password1:[{validator:function(t,a,i){""===a?i(new Error(e.$i18n.t("vaildate.password.again"))):a!==e.dialogFormPwd.password?i(new Error(e.$i18n.t("vaildate.password.same"))):i()},trigger:"blur"}]},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return this.Session.GetDisplay()},lang:function(){return this.Session.Get("lang")},tableColumns:function(){var e=this;return[{prop:"cId",label:"Label.CidAccount",align:"center"},{prop:"pIbNo",label:"Label.AttributionNumber",align:"center"},{prop:"email",label:"Label.Email",align:"center"},{prop:"countryName",label:"Label.Nationality",align:"center",formatter:function(t,a){return e.formatNationality(a)}},{prop:"lastIp",label:"Label.RegisteredIP",align:"center"},{prop:"addTime",label:"Label.RegistrationTime",align:"center"},{prop:"sourceName",label:"Label.Source",align:"center",formatter:function(t,a){return e.formatSource(a)}},{prop:"status",label:"Label.State",align:"center",width:110,formatter:function(t,a){return e.getStateHtml(a)},tooltip:!1},{prop:"valid",label:"Label.LoginStatus",align:"center",width:120,formatter:function(t){return e.getLoginStatusHtml(t)},tooltip:!1},{prop:"approveDesc",label:"Label.Note",align:"center",formatter:function(t){return e.formatNote(t)},tooltipFormatter:function(t){return e.formatNote(t)}},{prop:"approveTime",label:"Label.ProcessingDate",align:"center"},{label:"Label.Action",align:"center",slot:"action"}]}},methods:{onExpandChange:function(e,t){var a=this;return Object(l["a"])(Object(r["a"])().mark((function i(){var s,n;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(s=t.some((function(t){return t.id===e.id})),s&&e.id){i.next=3;break}return i.abrupt("return");case 3:if(!a.expandApproveData[e.id]){i.next=5;break}return i.abrupt("return");case 5:return i.next=7,d["a"].approveSearchList({approveId:e.id,approveType:1});case 7:n=i.sent,n.code==_.StatusOK?a.$set(a.expandApproveData,e.id,n.data||[]):(a.$set(a.expandApproveData,e.id,[]),a.$pigeon.MessageError(n.msg));case 9:case"end":return i.stop()}}),i)})))()},approveDesc:function(e){var t=this,a="";if(e){var i=e.split(",");i.forEach((function(e){t.reasons[e]&&(a=a+(a?",":"")+("cn"==t.Session.Get("lang")?t.reasons[e].content:t.reasons[e].enContent))})),a||(a=e)}else a="--";return a},handleCommand:function(e){"delete"==e.type?this.toDelete(e.id):"editor"==e.type?(this.editor=1,this.searchSingleCid(e.cId)):"Adjustment"==e.type?(this.searchIbTree(),this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheck_form.active_type=2,this.dialogCheckTit=this.$i18n.t("R-PotentialCustomer-AdjustmentAttribution"),this.dialogCheck1=!0,this.dialogCheck_form1.id=e.row.id,this.dialogCheck_form1.cId=e.row.cId,this.dialogCheck_form1.pIbNo=e.row.pIbNo):"Verification"==e.type&&this.toVerification(e.id)},cancel:function(){this.$refs["dialogCheck_form"].resetFields(),2==this.dialogCheck_form.active_type&&this.reload()},toVerified:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(){var t=this;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["dialogCheck_form"].validate(function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(a){var i,s;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:if(2!=t.dialogCheck_form.active_type){e.next=13;break}return i=null,t.dialogCheck_form1.agentId&&t.dialogCheck_form1.agentId.length&&(i=t.dialogCheck_form1.agentId[t.dialogCheck_form1.agentId.length-1]),e.next=11,d["a"].customPotentialUpdateAgent({id:t.dialogCheck_form1.id,agentId:i});case 11:s=e.sent,s.code==_.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(s.msg));case 13:e.next=16;break;case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleItemChange:function(e){this.child=this.agentId_options;for(var t=0;t<e.length;t++)this.tree(e[t],this.child)},tree:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(t,a){var i,s,n,l=this;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=Object(r["a"])().mark((function e(i){var s;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(null!=a[i].children&&a[i].children.length>0&&a[i].value==t)){e.next=3;break}return l.child=a[i].children,e.abrupt("return",{v:void 0});case 3:if(a[i].value!=t){e.next=15;break}return e.next=6,u["a"].ibTree({pid:t});case 6:if(s=e.sent,s.code!=_.StatusOK){e.next=14;break}if(null==s.data){e.next=12;break}return s.data.forEach((function(e){if(e.ibNo){var t={};t.value=e.id,t.label=e.ibNo,t.name=e.name,t.children=[],a[i].children.push(t)}})),l.child=a[i].children,e.abrupt("return",{v:void 0});case 12:e.next=15;break;case 14:l.$pigeon.MessageError(s.msg);case 15:case"end":return e.stop()}}),e)})),n=0;case 2:if(!(n<a.length)){e.next=10;break}return e.delegateYield(i(n),"t0",4);case 4:if(s=e.t0,!s){e.next=7;break}return e.abrupt("return",s.v);case 7:n++,e.next=2;break;case 10:case"end":return e.stop()}}),e)})));function t(t,a){return e.apply(this,arguments)}return t}(),searchIbTree:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,u["a"].ibTree({pid:0});case 2:a=t.sent,a.code==_.StatusOK?null!=a.data&&a.data.forEach((function(t){if(t.ibNo){var a={};a.value=t.id,a.label=t.ibNo,a.name=t.name,a.children=[],e.agentId_options.push(a)}})):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},searchIbTreeSearch:function(e){var t=this;return Object(l["a"])(Object(r["a"])().mark((function a(){var i;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,u["a"].ibTreeSearch({ibNo:e});case 2:i=a.sent,i.code==_.StatusOK?(null!=i.data&&i.data.forEach((function(e){if(e.ibNo){var a={};a.value=e.id,a.label=e.ibNo,a.name=e.name,a.children=[],t.agentId_options.push(a)}})),t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess"))):t.$pigeon.MessageError(i.msg);case 4:case"end":return a.stop()}}),a)})))()},closeDiaAdd:function(){this.dialogInfoAdd=!1},closeAdd:function(e){this.dialogInfoAdd=e},openInfo:function(e){this.dialogInfo=e},confirmToReload:function(){this.closeDiaAdd(),this.searchFunc()},searchSingleCid:function(e){var t=this;return Object(l["a"])(Object(r["a"])().mark((function a(){var i;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,d["a"].customPotentialSingle({id:e});case 2:i=a.sent,i.code==_.StatusOK?(t.formList=i.data,t.dialogInfoAdd=!0):t.$pigeon.MessageError(i.msg);case 4:case"end":return a.stop()}}),a)})))()},searchFunc:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,null!==(a=e.display["R-PotentialCustomer-Search"])&&void 0!==a&&a.show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=8,d["a"].PotentialCustomersList(Object(n["a"])(Object(n["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:i=t.sent,i.code==_.StatusOK?(e.expandApproveData={},e.mock_tableData=i.data,null!=i.page?(e.pagerInfo.rowTotal=i.page.rowTotal,e.pagerInfo.pageTotal=i.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(i.msg),e.pictLoading=!1);case 10:case"end":return t.stop()}}),t)})))()},searchReasons:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].reasonsRefusalList({type:null});case 2:a=t.sent,a.code==_.StatusOK?null==a.data?e.reasons={}:e.reasons=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},searchSourceList:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].sourceList({});case 2:a=t.sent,a.code==_.StatusOK?e.sourceList=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},toDelete:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(t){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.flag){e.next=4;break}return e.abrupt("return");case 4:this.flag=!0;case 5:a=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(l["a"])(Object(r["a"])().mark((function e(){var i,s;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=[],i.push(t),e.next=4,d["a"].customPotentialDelete({ids:i});case 4:s=e.sent,s.code==_.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc(),a.flag=!1):(a.$pigeon.MessageError(s.msg),a.flag=!1);case 6:case"end":return e.stop()}}),e)}))),(function(){a.flag=!1}));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),toVerification:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(t){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.flag){e.next=4;break}return e.abrupt("return");case 4:this.flag=!0;case 5:a=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.GiftStatus1"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(l["a"])(Object(r["a"])().mark((function e(){var i;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d["a"].customApplyReal({customId:t});case 2:i=e.sent,i.code==_.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.Success")),a.searchFunc(),a.flag=!1):(a.$pigeon.MessageError(i.msg),a.flag=!1);case 4:case"end":return e.stop()}}),e)}))),(function(){a.flag=!1}));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getDate:function(){var e,t,a=2,i=(new Date).getTimezoneOffset(),s=(new Date).getTime(),n=new Date(s+60*i*1e3+60*a*60*1e3),r=n.getFullYear(),l=n.getMonth()+1,o=n.getDate();l<10&&(l="0"+l),o<10&&(o="0"+o),e=r+"-"+l+"-01";var c=n.getMonth(),d=++c,u=new Date(n.getFullYear(),d,1),p=864e5,f=new Date(u-p),m=f.getDate();m<10&&(m="0"+m),t=r+"-"+l+"-"+m,this.search.date=[e,t]},exportAgents:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a,i,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.search.startDate&&e.search.endDate){t.next=3;break}return e.$pigeon.MessageWarning(e.$i18n.t("vaildate.date.empty")),t.abrupt("return");case 3:a=e.search.startDate.split("-")[0]+e.search.startDate.split("-")[1]+e.search.startDate.split("-")[2],i=e.search.endDate.split("-")[0]+e.search.endDate.split("-")[1]+e.search.endDate.split("-")[2],s="/custom/potential/export?cId="+(e.search.cId?e.search.cId:"")+"&email="+(e.search.email?e.search.email:"")+"&name="+(e.search.name?e.search.name:"")+"&potentialStatus="+(e.search.potentialStatus?e.search.potentialStatus:"")+"&sourceCode="+(e.search.sourceCode?e.search.sourceCode:"")+"&ibNo="+(e.search.ibNo?e.search.ibNo:"")+"&status=&identity="+(e.search.identity?e.search.identity:"")+"&startDate="+a+"&endDate="+i,c.a.get(s,{responseType:"blob"}).then((function(t){if(t.status==_.StatusOK)if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t.data,"Download.xlsx");else{var a=window.URL.createObjectURL(t.data),i=document.createElement("a");document.body.appendChild(i);var s=t.headers["content-disposition"]?t.headers["content-disposition"].split(";")[1].split("=")[1]:"Download.xlsx";i.href=a,i.download=s,i.click(),window.URL.revokeObjectURL(a)}else e.$pigeon.MessageError(e.$i18n.t("Msg.Download"))}));case 7:case"end":return t.stop()}}),t)})))()},formatNationality:function(e){return"en"==this.Session.Get("lang")?e.countryEnName||"--":e.countryName||"--"},formatSource:function(e){return"cn"==this.lang?e.sourceName||"--":e.sourceNameEn||"--"},getStateHtml:function(e){return 0==e.applyRealStatus&&1==e.status?{html:'<span class="state crm_state_gray">'.concat(this.$t("State.NotApply"),"</span>"),text:this.$t("State.NotApply")}:3==e.applyRealStatus||3==e.status?{html:'<span class="state crm_state_red">'.concat(this.$t("State.Refused"),"</span>"),text:this.$t("State.Refused")}:{html:"<span>--</span>",text:"--"}},getLoginStatusHtml:function(e){return 1==e?{html:'<span class="state crm_state_blue">'.concat(this.$t("State.Normal"),"</span>"),text:this.$t("State.Normal")}:0==e?{html:'<span class="state crm_state_red">'.concat(this.$t("State.Freeze"),"</span>"),text:this.$t("State.Freeze")}:{html:"<span>--</span>",text:"--"}},formatNote:function(e){return e?this.reasons[e]?"cn"==this.Session.Get("lang")?this.reasons[e].content:this.reasons[e].enContent:this.approveDesc(e):"--"},handlePageChange:function(e){var t=e.type,a=e.value;"current"===t?this.pagerInfo.current=a:"size"===t&&(this.pagerInfo.row=a),this.searchFunc()}},mounted:function(){this.getDate(),this.searchFunc(),this.searchReasons(),this.searchSourceList()},watch:{"search.tag":function(){this.search.cid="",this.search.email="",this.search.ibNo="",this.search.identity=""}}},k=x,A=(a("d554"),Object(y["a"])(k,i,s,!1,null,"35196fa6",null));t["default"]=A.exports},a134:function(e,t,a){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"configurable-table-wrapper"},[t("el-table",{class:e.tableClass,staticStyle:{width:"100%"},attrs:{data:e.processedTableData,stripe:"",border:e.border,"row-key":e.tableRowKey,"row-class-name":e.getRowClassName},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange,"expand-change":e.handleExpandChange}},[e.$scopedSlots.expand?t("el-table-column",{attrs:{type:"expand",width:"48"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("expand",null,{row:t.row})]}}],null,!0)}):e._e(),e.showSelection?t("el-table-column",{attrs:{type:"selection",width:e.selectionWidth,align:e.selectionAlign}}):e._e(),e._l(e.columns,(function(a,i){return t("el-table-column",{key:i,attrs:{prop:a.prop||void 0,label:e.getLabel(a),"min-width":a.minWidth,width:a.width,align:a.align||"center","header-align":a.headerAlign||a.align||"center",sortable:!!a.sortable&&"custom"},scopedSlots:e._u([{key:"default",fn:function(i){return[a.slot?e._t(a.slot,null,{row:i.row,column:a,index:i.$index}):[e.isHtmlValue(i.row,a)?[t("span",{domProps:{innerHTML:e._s(e.getCellHtml(i.row,a))}})]:[!1!==a.tooltip?t("el-tooltip",{attrs:{content:e.getTooltipContent(i.row,a),placement:"top",disabled:e.isTooltipDisabled(i.row,a)}},[t("span",[e._v(e._s(e.getCellText(i.row,a)))])]):t("span",[e._v(e._s(e.getCellText(i.row,a)))])]]]}}],null,!0)})}))],2),e.pagerInfo&&e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("div",{staticClass:"crm_page_total"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),t("span",[e._v(e._s(e.pagerInfo.rowTotal))]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":e.pageSizes,"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()],1)},s=[],n=a("b85c"),r=a("53ca"),l=a("ade3"),o=a("5530"),c=a("2909"),d=(a("7db0"),a("caad"),a("14d9"),a("e9f5"),a("d866"),a("f665"),a("a9e3"),a("b680"),a("b64b"),a("d3b7"),a("2532"),{name:"ConfigurableTable",props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,required:!0,validator:function(e){return e.every((function(e){return e.prop||e.label}))}},pagerInfo:{type:Object,default:null},summaryRow:{type:Object,default:null},summaryRowKey:{type:String,default:"_isSummary"},summaryRowClass:{type:String,default:"summary-row"},tableClass:{type:String,default:"configurable-table"},border:{type:Boolean,default:!0},pageSizes:{type:Array,default:function(){return[10,20,50,100]}},sortMapper:{type:Function,default:null},rowKey:{type:[String,Function],default:null},showSelection:{type:Boolean,default:!1},selectionWidth:{type:[Number,String],default:55},selectionAlign:{type:String,default:"left"}},computed:{tableRowKey:function(){return null!=this.rowKey&&""!==this.rowKey?this.rowKey:void 0},processedTableData:function(){var e=Object(c["a"])(this.data);if(this.summaryRow&&Object.keys(this.summaryRow).length>0){var t=Object(o["a"])(Object(o["a"])({},this.summaryRow),{},Object(l["a"])({},this.summaryRowKey,!0));e.push(t)}return e}},methods:{getLabel:function(e){return e.label?"string"===typeof e.label&&(e.label.includes(".")||e.label.includes("-"))?this.$t(e.label):e.label:""},formatCellValue:function(e,t){var a=this.getFieldValue(e,t.prop);return t.formatter&&"function"===typeof t.formatter?t.formatter(a,e,t):"number"===t.type?this.formatNumber(a,t):a||(void 0!==t.emptyText?t.emptyText:"--")},isHtmlValue:function(e,t){var a=this.formatCellValue(e,t);return a&&"object"===Object(r["a"])(a)&&a.html},getCellHtml:function(e,t){var a=this.formatCellValue(e,t);return a&&"object"===Object(r["a"])(a)&&a.html?a.html:""},getCellText:function(e,t){var a=this.formatCellValue(e,t);return a&&"object"===Object(r["a"])(a)&&a.html?a.text||"":a},getFieldValue:function(e,t){if(!t)return"";var a,i=t.split("."),s=e,r=Object(n["a"])(i);try{for(r.s();!(a=r.n()).done;){var l=a.value;if(null==s)return"";s=s[l]}}catch(o){r.e(o)}finally{r.f()}return s},formatNumber:function(e,t){if(null==e||""===e)return void 0!==t.emptyText?t.emptyText:t.allowEmpty?"--":"0.00";var a=parseFloat(e);if(isNaN(a))return void 0!==t.emptyText?t.emptyText:"--";var i=void 0!==t.decimals?t.decimals:2;return a.toFixed(i)},getTooltipContent:function(e,t){var a=this.getFieldValue(e,t.prop);if(t.tooltipFormatter&&"function"===typeof t.tooltipFormatter){var i=t.tooltipFormatter(a,e,t);return null!=i?String(i):"--"}if("number"===t.type){var s=this.formatNumber(a,t);return"".concat(s)}return null==a?void 0!==t.emptyText?String(t.emptyText):"--":String(a)},isTooltipDisabled:function(e,t){var a=this.getFieldValue(e,t.prop);return t.tooltipDisabled&&"function"===typeof t.tooltipDisabled?t.tooltipDisabled(a,e,t):!a||"--"===a||""===a},getRowClassName:function(e){var t=e.row;return t[this.summaryRowKey]?this.summaryRowClass:""},handleSortChange:function(e){var t=e.prop,a=e.order;if(a){var i=this.columns.find((function(e){return e.prop===t})),s=i&&i.sortProp?i.sortProp:t,n=this.sortMapper?this.sortMapper(s):s;this.$emit("sort-change",{prop:n,order:"ascending"===a?"asc":"desc"})}else this.$emit("sort-change",{prop:null,order:null})},handleCurrentChange:function(e){this.$emit("page-change",{type:"current",value:e})},handleSizeChange:function(e){this.$emit("page-change",{type:"size",value:e})},handleSelectionChange:function(e){this.$emit("selection-change",e)},handleExpandChange:function(e,t){this.$emit("expand-change",e,t)}}}),u=d,p=(a("70c6"),a("2877")),f=Object(p["a"])(u,i,s,!1,null,"bd425fe6",null);t["a"]=f.exports},b968:function(e,t,a){"use strict";a("cf22")},cf22:function(e,t,a){},d554:function(e,t,a){"use strict";a("26ff")},d866:function(e,t,a){"use strict";var i=a("23e7"),s=a("c65b"),n=a("2266"),r=a("59ed"),l=a("825a"),o=a("46c4"),c=a("2a62"),d=a("f99f"),u=d("every",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(e){l(this);try{r(e)}catch(i){c(this,"throw",i)}if(u)return s(u,this,e);var t=o(this),a=0;return!n(t,(function(t,i){if(!e(t,a++))return i()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},e16d:function(e,t,a){}}]);