| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CommissionTemplate"],{"041d":function(e,t,a){},"095d":function(e,t,a){"use strict";a("a36f")},"1c59":function(e,t,a){"use strict";var n=a("6d61"),i=a("6566");n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"1e5a":function(e,t,a){"use strict";var n=a("23e7"),i=a("9961"),s=a("dad2");n({target:"Set",proto:!0,real:!0,forced:!s("symmetricDifference")},{symmetricDifference:i})},"1e70":function(e,t,a){"use strict";var n=a("23e7"),i=a("a5f7"),s=a("dad2"),r=!s("difference",(function(e){return 0===e.size}));n({target:"Set",proto:!0,real:!0,forced:r},{difference:i})},"2d59":function(e,t,a){"use strict";var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"InfoBox",class:{active:e.dialogInfoCid,active1:e.type},attrs:{id:"GlobalDetailedInfoCid"}},[t("div",{staticClass:"header"},[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.form.cId))]),e._v(" - "),e.form.firstName?t("span",[e._v(e._s(e.form.firstName+" "))]):e._e(),e.form.middle?t("span",[e._v(e._s(e.form.middle+" "))]):e._e(),e.form.lastName?t("span",[e._v(e._s(e.form.lastName))]):e._e()]),t("span",{staticClass:"close crm-cursor",on:{click:e.close}},[t("i",{staticClass:"el-icon-close"})])]),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")}},[e._v(" "+e._s(e.form.cId||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.UserInfo.Email")}},[e._v(" "+e._s(e.form.email||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.UserInfo.Registration")}},[e._v(" "+e._s(e.form.addTime||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.UserInfo.IP")}},[e._v(" "+e._s(e.form.addIp||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Raffle.FundModification.WalletBalance")}},[e._v(" "+e._s(e.form.balance||"0")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.UserInfo.LoginState")}},[t("el-switch",{staticClass:"crm_switch",attrs:{disabled:"","active-value":1,"inactive-value":0,"active-text":e.$t("Btn.Yes"),"inactive-text":e.$t("Btn.No"),"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),e.form.isAgent?t("el-collapse-item",{attrs:{title:e.$t("Label.Ib"),name:"7"}},[t("el-form-item",{attrs:{label:e.$t("Label.AgentNumber")}},[e._v(" "+e._s(e.form.ibNo||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.AgentLevel")}},[e._v(" "+e._s("cn"==e.Session.Get("lang")?e.form.agentLevelName||"--":e.form.agentLevelEnName||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.CommissionBalance")}},[e._v(" "+e._s(e.form.agentBalance||"0")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.Unresolved")}},[e._v(" "+e._s(e.form.unresolved||"0")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.Frozen")}},[e._v(" "+e._s(e.form.frozen||"0")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.AllCommission")}},[e._v(" "+e._s(e.form.allCommission||"0")+" ")]),t("el-form-item",{attrs:{label:e.$t("Dashboard.Profile.AgentShareLink")}},[t("span",{staticClass:"btn-copy",on:{click:e.CopyShareLink}},[e._v(e._s(e.$t("Dashboard.Profile.ConsumerShareLinks")))])])],1):e._e(),e.isTrading?t("el-collapse-item",{attrs:{title:e.$t("Apply_info.TradingAccount.Title"),name:"10"}},e._l(e.form.realList,(function(a,n){return t("el-card",{key:n,staticClass:"box-card"},[t("div",{staticClass:"clearfix crm-cursor",attrs:{slot:"header"},on:{click:function(t){return e.cardTab(n)}},slot:"header"},[t("span",[t("span",[e._v(e._s(n+1)+". ")]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.TradingAccount.Account",expression:"'Apply_info.TradingAccount.Account'"}]}),e._v(" "+e._s(a.login)+" - "),1==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Classic",expression:"'Web_info.Classic'"}]}):e._e(),2==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Senior",expression:"'Web_info.Senior'"}]}):e._e(),3==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Institutions",expression:"'Web_info.Institutions'"}]}):e._e(),5==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Speed",expression:"'Web_info.Speed'"}]}):e._e(),6==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.NewSpeed",expression:"'Web_info.NewSpeed'"}]}):e._e(),7==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.StandardAccount",expression:"'Web_info.StandardAccount'"}]}):e._e(),8==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.CentAccount",expression:"'Web_info.CentAccount'"}]}):e._e()]),t("span",[e.cardIndex==n?t("i",{staticClass:"el-icon-caret-bottom"}):e._e(),e.cardIndex!=n?t("i",{staticClass:"el-icon-caret-right"}):e._e()])]),t("el-collapse-transition",[e.cardIndex==n?t("div",{staticClass:"text item"},[t("el-form-item",{attrs:{label:e.$t("Apply_info.TradingAccount.Trading")}},[e._v(" "+e._s(a.login||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.TradingAccount.Type")}},[1==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Classic",expression:"'Web_info.Classic'"}]}):e._e(),2==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Senior",expression:"'Web_info.Senior'"}]}):e._e(),3==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Institutions",expression:"'Web_info.Institutions'"}]}):e._e(),5==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Speed",expression:"'Web_info.Speed'"}]}):e._e(),6==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.NewSpeed",expression:"'Web_info.NewSpeed'"}]}):e._e(),7==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.StandardAccount",expression:"'Web_info.StandardAccount'"}]}):e._e(),8==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.CentAccount",expression:"'Web_info.CentAccount'"}]}):e._e()]),t("el-form-item",{attrs:{label:e.$t("Apply_info.TradingAccount.Leverage")}},[a.leverage?t("span",[e._v("1:")]):e._e(),e._v(e._s(a.leverage||"0")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.TradingAccount.OutsideCommission")}},[e._v(" "+e._s(a.commission||"0")+" ")]),1!=this.user.departmentId?t("el-form-item",{attrs:{label:e.$t("Apply_info.TradingAccount.Group")}},[e._v(" "+e._s(a.groupCode||"--")+" ")]):e._e(),t("el-form-item",{attrs:{label:e.$t("Apply_info.TradingAccount.Currency")}},[e._v(" "+e._s(a.currency||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.TradingAccount.Time")}},[e._v(" "+e._s(a.addTime||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.TradingAccount.State")}},[t("el-switch",{staticClass:"crm_switch",attrs:{disabled:"","active-value":1,"inactive-value":0,"active-text":e.$t("Btn.Yes"),"inactive-text":e.$t("Btn.No"),"active-color":"#368FEC","inactive-color":"#EB3F57"},model:{value:a.valid,callback:function(t){e.$set(a,"valid",t)},expression:"item.valid"}})],1)],1):e._e()])],1)})),1):e._e(),t("el-collapse-item",{attrs:{title:e.$t("Apply_info.BasicInfo.Title"),name:"2"}},[t("el-form-item",{attrs:{label:e.$t("Label.CustomerType")}},[2==e.form.customType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.CustomerType2",expression:"'Label.CustomerType2'"}]}):e._e(),1==e.form.customType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.CustomerType1",expression:"'Label.CustomerType1'"}]}):e._e(),e.form.customType?e._e():t("span",[e._v(e._s("--"))])]),2==e.form.customType?t("el-form-item",{attrs:{label:e.$t("Label.CompanyName")}},[e._v(" "+e._s(e.form.companyName||"--")+" ")]):e._e(),2==e.form.customType?t("el-form-item",{attrs:{label:e.$t("Label.CorporationName")}},[e.form.firstName?t("span",[e._v(e._s(e.form.firstName+" "))]):e._e(),e.form.middle?t("span",[e._v(e._s(e.form.middle+" "))]):e._e(),e.form.lastName?t("span",[e._v(e._s(e.form.lastName))]):e._e(),e.form.firstName||e.form.lastName||e.form.middle?e._e():t("span",[e._v(e._s("--"))])]):t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.Name")}},[e.form.firstName?t("span",[e._v(e._s(e.form.firstName+" "))]):e._e(),e.form.middle?t("span",[e._v(e._s(e.form.middle+" "))]):e._e(),e.form.lastName?t("span",[e._v(e._s(e.form.lastName))]):e._e(),e.form.firstName||e.form.lastName||e.form.middle?e._e():t("span",[e._v(e._s("--"))])]),t("el-form-item",{attrs:{label:e.$t("system_info.Label.EnglishNames")}},[e._v(" "+e._s(e.form.nameEn||"--")+" ")]),1!=this.user.departmentId?t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.Phone")}},[e._v(" "+e._s(e.form.phone||"--")+" ")]):e._e(),1!=this.user.departmentId?t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.ID")}},[e._v(" "+e._s(e.form.identity||"--")+" ")]):e._e(),1!=this.user.departmentId?t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.IdentityNumber")}},[e._v(" "+e._s(e.form.identityNumber||"--")+" ")]):e._e(),1!=this.user.departmentId?t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.KycIdNumber")}},[e._v(" "+e._s(e.form.kycIdNumber||"--")+" ")]):e._e(),1!=this.user.departmentId?t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.KycNumber")}},[e._v(" "+e._s(e.form.kycNumber||"--")+" ")]):e._e(),1!=this.user.departmentId?t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.KycName")}},[e._v(" "+e._s(e.form.kycName||"--")+" ")]):e._e(),t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.Birthday")}},[e.form.birth?t("span",[e._v(e._s(e.form.birth.split(" ")[0]))]):e._e(),e.form.birth?e._e():t("span",[e._v(e._s("--"))])]),t("el-form-item",{attrs:{label:e.$t("Apply_info.BasicInfo.Gender")}},["1"==e.form.gender?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.BasicInfo.Male",expression:"'Apply_info.BasicInfo.Male'"}]}):e._e(),"2"==e.form.gender?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.BasicInfo.Female",expression:"'Apply_info.BasicInfo.Female'"}]}):e._e(),e.form.gender?e._e():t("span",[e._v(e._s("--"))])])],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")}},[e._v(" "+e._s("cn"==e.form.lang?"中文":"English")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Country")}},[e._v(" "+e._s("cn"==e.Session.Get("lang")?e.form.countryName:e.form.countryEnName)+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Region")}},[e._v(" "+e._s(e.form.state||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.City")}},[e._v(" "+e._s(e.form.city||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.Address")}},[e.form.addressLines?t("span",[e._v(e._s(e.form.addressLines.length?e.form.addressLines[0]:"--"))]):e._e()]),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.standbyAddress")}},[e.form.addressLines?t("span",[e._v(e._s(2==e.form.addressLines.length?e.form.addressLines[1]:"--"))]):e._e()]),t("el-form-item",{attrs:{label:e.$t("Apply_info.AddressInfo.zipCode")}},[t("span",[e._v(e._s(e.form.zipCode||"--"))])])],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")}},[1==e.form.level?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item11",expression:"'Apply_info.FinancialBack.item11'"}]}):e._e(),2==e.form.level?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item12",expression:"'Apply_info.FinancialBack.item12'"}]}):e._e(),3==e.form.level?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item13",expression:"'Apply_info.FinancialBack.item13'"}]}):e._e(),4==e.form.level?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item14",expression:"'Apply_info.FinancialBack.item14'"}]}):e._e(),5==e.form.level?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item15",expression:"'Apply_info.FinancialBack.item15'"}]}):e._e(),e.form.level?e._e():t("span",[e._v(e._s("--"))])]),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.InaugurationSituation")}},[1==e.form.employmentStatus?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item21",expression:"'Apply_info.FinancialBack.item21'"}]}):e._e(),2==e.form.employmentStatus?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item22",expression:"'Apply_info.FinancialBack.item22'"}]}):e._e(),3==e.form.employmentStatus?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item23",expression:"'Apply_info.FinancialBack.item23'"}]}):e._e(),4==e.form.employmentStatus?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item24",expression:"'Apply_info.FinancialBack.item24'"}]}):e._e(),5==e.form.employmentStatus?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item25",expression:"'Apply_info.FinancialBack.item25'"}]}):e._e(),e.form.employmentStatus?e._e():t("span",[e._v(e._s("--"))])]),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.TradingPurposes")}},[1==e.form.tradingObjectives?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item31",expression:"'Apply_info.FinancialBack.item31'"}]}):e._e(),2==e.form.tradingObjectives?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item32",expression:"'Apply_info.FinancialBack.item32'"}]}):e._e(),3==e.form.tradingObjectives?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item33",expression:"'Apply_info.FinancialBack.item33'"}]}):e._e(),4==e.form.tradingObjectives?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item34",expression:"'Apply_info.FinancialBack.item34'"}]}):e._e(),e.form.tradingObjectives?e._e():t("span",[e._v(e._s("--"))])]),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.SourcesFunding")}},[1==e.form.sourceFunding?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item41",expression:"'Apply_info.FinancialBack.item41'"}]}):e._e(),2==e.form.sourceFunding?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item42",expression:"'Apply_info.FinancialBack.item42'"}]}):e._e(),3==e.form.sourceFunding?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item43",expression:"'Apply_info.FinancialBack.item43'"}]}):e._e(),4==e.form.sourceFunding?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item44",expression:"'Apply_info.FinancialBack.item44'"}]}):e._e(),5==e.form.sourceFunding?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item45",expression:"'Apply_info.FinancialBack.item45'"}]}):e._e(),6==e.form.sourceFunding?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item46",expression:"'Apply_info.FinancialBack.item46'"}]}):e._e(),e.form.sourceFunding?e._e():t("span",[e._v(e._s("--"))])]),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.InTotalRevenue")}},[1==e.form.grossAnnualIncome?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item61",expression:"'Apply_info.FinancialBack.item61'"}]}):e._e(),2==e.form.grossAnnualIncome?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item62",expression:"'Apply_info.FinancialBack.item62'"}]}):e._e(),3==e.form.grossAnnualIncome?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item63",expression:"'Apply_info.FinancialBack.item63'"}]}):e._e(),4==e.form.grossAnnualIncome?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item64",expression:"'Apply_info.FinancialBack.item64'"}]}):e._e(),5==e.form.grossAnnualIncome?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item65",expression:"'Apply_info.FinancialBack.item65'"}]}):e._e(),e.form.grossAnnualIncome?e._e():t("span",[e._v(e._s("--"))])]),t("el-form-item",{attrs:{label:e.$t("Apply_info.FinancialBack.TotalAssets")}},[1==e.form.totalNewWorth?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item51",expression:"'Apply_info.FinancialBack.item51'"}]}):e._e(),2==e.form.totalNewWorth?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item52",expression:"'Apply_info.FinancialBack.item52'"}]}):e._e(),3==e.form.totalNewWorth?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item53",expression:"'Apply_info.FinancialBack.item53'"}]}):e._e(),4==e.form.totalNewWorth?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item54",expression:"'Apply_info.FinancialBack.item54'"}]}):e._e(),5==e.form.totalNewWorth?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FinancialBack.item55",expression:"'Apply_info.FinancialBack.item55'"}]}):e._e(),e.form.totalNewWorth?e._e():t("span",[e._v(e._s("--"))])])],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:{disabled:"",label:1},model:{value:e.form.experienceTradingDerivative,callback:function(t){e.$set(e.form,"experienceTradingDerivative",t)},expression:"form.experienceTradingDerivative"}},[e.form.experienceTradingDerivative?t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]}):e._e(),e.form.experienceTradingDerivative?e._e():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:{disabled:"",label:1},model:{value:e.form.experienceTradingForex,callback:function(t){e.$set(e.form,"experienceTradingForex",t)},expression:"form.experienceTradingForex"}},[e.form.experienceTradingForex?t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]}):e._e(),e.form.experienceTradingForex?e._e():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:{disabled:"",label:1},model:{value:e.form.derivativeProducts,callback:function(t){e.$set(e.form,"derivativeProducts",t)},expression:"form.derivativeProducts"}},[e.form.derivativeProducts?t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]}):e._e(),e.form.derivativeProducts?e._e():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:{disabled:"",label:1},model:{value:e.form.experienceQualification,callback:function(t){e.$set(e.form,"experienceQualification",t)},expression:"form.experienceQualification"}},[e.form.experienceQualification?t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]}):e._e(),e.form.experienceQualification?e._e():t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]})])],1)])]),1!=this.user.departmentId?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",[e._v("1")]),t("span",{staticClass:"line"}),t("el-button",{staticStyle:{border:"none"},attrs:{type:"text"}},[1==e.files1.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],on:{click:function(t){return e.imgApprove(1)}}}):e._e(),2==e.files1.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Pass",expression:"'State.Pass'"}],on:{click:function(t){return e.imgApproveDe(1)}}}):e._e(),3==e.files1.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],on:{click:function(t){return e.imgApproveDe(1)}}}):e._e(),4==e.files1.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],on:{click:function(t){return e.imgApprove(1)}}}):e._e(),e.files1.status?e._e():t("span",{directives:[{name:"t",rawName:"v-t",value:"Placeholder.Not",expression:"'Placeholder.Not'"}]})])],1),t("div",{staticClass:"Identity-img"},[t("div",{staticClass:"id-img"},["pdf"==e.url1.substr(-3,3)||"PDF"==e.url1.substr(-3,3)?t("div",{staticClass:"pdfLink"},[t("a",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{href:e.url1,target:"_blank"}},[t("i",{staticClass:"el-icon-document"})])]):t("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.url1,"preview-src-list":[e.url1]}},[t("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t("i",{staticClass:"el-icon-picture-outline"})])])],1)]),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",[e._v("2")]),t("span",{staticClass:"line"}),t("el-button",{staticStyle:{border:"none"},attrs:{type:"text"}},[1==e.files2.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],on:{click:function(t){return e.imgApprove(2)}}}):e._e(),2==e.files2.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Pass",expression:"'State.Pass'"}],on:{click:function(t){return e.imgApproveDe(2)}}}):e._e(),3==e.files2.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],on:{click:function(t){return e.imgApproveDe(2)}}}):e._e(),4==e.files2.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],on:{click:function(t){return e.imgApprove(2)}}}):e._e(),e.files2.status?e._e():t("span",{directives:[{name:"t",rawName:"v-t",value:"Placeholder.Not",expression:"'Placeholder.Not'"}]})])],1),t("div",{staticClass:"Identity-img"},[t("div",{staticClass:"id-img"},["pdf"==e.url2.substr(-3,3)||"PDF"==e.url2.substr(-3,3)?t("div",{staticClass:"pdfLink"},[t("a",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{href:e.url2,target:"_blank"}},[t("i",{staticClass:"el-icon-document"})])]):t("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.url2,"preview-src-list":[e.url2]}},[t("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t("i",{staticClass:"el-icon-picture-outline"})])])],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("el-button",{staticStyle:{border:"none"},attrs:{type:"text"}},[1==e.files3.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],on:{click:function(t){return e.imgApprove(3)}}}):e._e(),2==e.files3.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Pass",expression:"'State.Pass'"}],on:{click:function(t){return e.imgApproveDe(3)}}}):e._e(),3==e.files3.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],on:{click:function(t){return e.imgApproveDe(3)}}}):e._e(),4==e.files3.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],on:{click:function(t){return e.imgApprove(3)}}}):e._e(),e.files3.status?e._e():t("span",{directives:[{name:"t",rawName:"v-t",value:"Placeholder.Not",expression:"'Placeholder.Not'"}]})])],1),t("div",{staticClass:"Identity-img"},[t("div",{staticClass:"id-img"},["pdf"==e.url3.substr(-3,3)||"PDF"==e.url3.substr(-3,3)?t("div",{staticClass:"pdfLink"},[t("a",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{href:e.url3,target:"_blank"}},[t("i",{staticClass:"el-icon-document"})])]):t("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.url3,"preview-src-list":[e.url3]}},[t("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t("i",{staticClass:"el-icon-picture-outline"})])])],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"})]),e._l(e.filesOther,(function(a,n){return t("div",{key:n,staticClass:"Identity-img"},[t("div",{staticClass:"id-img"},["pdf"==a.urlOther.substr(-3,3)||"PDF"==a.urlOther.substr(-3,3)?t("div",{staticClass:"pdfLink"},[t("a",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{href:a.urlOther,target:"_blank"}},[t("i",{staticClass:"el-icon-document"})])]):t("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:a.urlOther,"preview-src-list":[a.urlOther]}},[t("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t("i",{staticClass:"el-icon-picture-outline"})])])],1),t("span",{staticClass:"line"}),t("el-button",{staticStyle:{border:"none"},attrs:{type:"text"}},[1==a.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],on:{click:function(t){return e.imgApprove(5,a.id)}}}):e._e(),2==a.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Pass",expression:"'State.Pass'"}],on:{click:function(t){return e.imgApproveDe(5,a.id)}}}):e._e(),3==a.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],on:{click:function(t){return e.imgApproveDe(5,a.id)}}}):e._e(),4==a.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],on:{click:function(t){return e.imgApprove(5,a.id)}}}):e._e(),a.status?e._e():t("span",{directives:[{name:"t",rawName:"v-t",value:"Placeholder.Not",expression:"'Placeholder.Not'"}]})])],1)}))],2):e._e()],1)],1),t("el-dialog",{attrs:{title:e.$t("Customer_info.Files.Title"),visible:e.dialogCheck,center:"","append-to-body":"","custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck=t},close:e.cancel}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:e.dialogCheck_form,rules:e.rules,"label-width":"135px"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Label.Type")+":"}},[1==e.dialogCheck_form.type||2==e.dialogCheck_form.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.ProofIdentity",expression:"'Apply_info.FileManagement.ProofIdentity'"}]}):e._e(),1==e.dialogCheck_form.type?t("span",[e._v("1")]):e._e(),2==e.dialogCheck_form.type?t("span",[e._v("2")]):e._e(),3==e.dialogCheck_form.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.ProofAddress",expression:"'Apply_info.FileManagement.ProofAddress'"}]}):e._e(),5==e.dialogCheck_form.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.AdditionalProof",expression:"'Apply_info.FileManagement.AdditionalProof'"}]}):e._e()]),t("el-form-item",{attrs:{prop:"status",label:e.$t("Label.CheckResults")+":"}},[t("el-select",{staticClass:"crm_search_down",staticStyle:{width:"400px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.status,callback:function(t){e.$set(e.dialogCheck_form,"status",t)},expression:"dialogCheck_form.status"}},[t("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:3}}),t("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:2}})],1)],1),3==e.dialogCheck_form.status?t("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[t("el-select",{staticClass:"crm_search_down",staticStyle:{width:"400px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Choose"),filterable:"","allow-create":""},on:{change:e.selectChange},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc",t)},expression:"dialogCheck_form.approveDesc"}},e._l(e.reasons,(function(a){return t("el-option",{key:a.id,attrs:{label:"cn"==e.Session.Get("lang")?a.content:a.enContent,value:a.id}})})),1)],1):e._e()],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.toVerified()}}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancel}})],1)],1)]),t("el-dialog",{attrs:{title:e.$t("Customer_info.Files.Title1"),visible:e.dialogCheck1,center:"","append-to-body":"","custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck1=t},close:e.cancel}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:e.dialogCheck_form,rules:e.rules,"label-width":"135px"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Label.Type")+":"}},[1==e.dialogCheck_form.type||2==e.dialogCheck_form.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.ProofIdentity",expression:"'Apply_info.FileManagement.ProofIdentity'"}]}):e._e(),1==e.dialogCheck_form.type?t("span",[e._v("1")]):e._e(),2==e.dialogCheck_form.type?t("span",[e._v("2")]):e._e(),3==e.dialogCheck_form.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.ProofAddress",expression:"'Apply_info.FileManagement.ProofAddress'"}]}):e._e(),5==e.dialogCheck_form.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"Apply_info.FileManagement.AdditionalProof",expression:"'Apply_info.FileManagement.AdditionalProof'"}]}):e._e()]),t("el-form-item",{attrs:{prop:"status",label:e.$t("Label.Action")+":"}},[t("el-select",{staticClass:"crm_search_down",staticStyle:{width:"400px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.status,callback:function(t){e.$set(e.dialogCheck_form,"status",t)},expression:"dialogCheck_form.status"}},[t("el-option",{attrs:{label:e.$t("Customer_info.Real.Umpire"),value:4}})],1)],1),t("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[t("el-select",{staticClass:"crm_search_down",staticStyle:{width:"400px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Choose"),filterable:"","allow-create":""},on:{change:e.selectChange},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc",t)},expression:"dialogCheck_form.approveDesc"}},e._l(e.reasons,(function(a){return t("el-option",{key:a.id,attrs:{label:"cn"==e.Session.Get("lang")?a.content:a.enContent,value:a.id}})})),1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.toVerifiedDe()}}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancel}})],1)],1)]),t("ConsumerShareLink",{ref:"consumerShareLink"})],1)},i=[],s=a("c7eb"),r=a("5530"),o=a("1da1"),l=(a("14d9"),a("e9f5"),a("7d54"),a("b64b"),a("d3b7"),a("3ca3"),a("159b"),a("ddb0"),a("2b3d"),a("bf19"),a("9861"),a("88a7"),a("271a"),a("5494"),a("5217")),c=a("f121"),d=a.n(c),u=a("92c7"),m=d.a.Code,p=d.a.Host85,f=d.a.Host00,g=d.a.Host05,v={name:"DetailedInfoCid",components:{ConsumerShareLink:u["a"]},props:{dialogInfoCid:{type:Boolean,default:!1},type:{default:0},btn:{default:0},isTrading:{default:!1},formInfo:{default:""}},data:function(){return{reasons:{},imgUrl:p,Host00:f,Host85:p,Host05:g,activeNames:["1","2","3","4","5","6","7","10"],form:{},info:{CID:"123456",name:"QYY"},dialogImageUrl:"",imageUrl:"",dialogVisible:!1,tradingAccount:[{id:1,account:"123456",type:"极速账户"},{id:2,account:"123456",type:"高级账户"}],cardIndex:-1,files1:{},files2:{},files3:{},files5:{},filesOther:[],url1:"",url2:"",url3:"",url5:"",srcList5:[],srcList1:[],srcList2:[],srcList3:[],dialogCheck:!1,dialogCheck1:!1,dialogCheck_form:{},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"}]}}},computed:{user:function(){return JSON.parse(this.Session.Get("user",!0))}},methods:{selectChange:function(){this.$forceUpdate()},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleAvatarSuccess:function(e,t){this.imageUrl=URL.createObjectURL(t.raw)},cardTab:function(e){this.cardIndex==e?this.cardIndex=-1:this.cardIndex=e},close:function(){this.$emit("close",!1)},imgApprove:function(e,t){1==e?(this.dialogCheck_form.id=this.files1.id,this.dialogCheck_form.customId=this.form.id):2==e?(this.dialogCheck_form.id=this.files2.id,this.dialogCheck_form.customId=this.form.id):3==e?(this.dialogCheck_form.id=this.files3.id,this.dialogCheck_form.customId=this.form.id):5==e&&(this.dialogCheck_form.id=t,this.dialogCheck_form.customId=this.form.id),this.dialogCheck_form.type=e,this.dialogCheck=!0},toVerified:function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(){var t=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["dialogCheck_form"].validate(function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(a){var n;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=7;break}return e.next=3,l["a"].customFileApprove(Object(r["a"])({},t.dialogCheck_form));case 3:n=e.sent,n.code==m.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.form.files.forEach((function(e){e.id==t.dialogCheck_form.id&&(1==e.type&&(t.files1.status=t.dialogCheck_form.status),2==e.type&&(t.files2.status=t.dialogCheck_form.status),3==e.type&&(t.files3.status=t.dialogCheck_form.status),10==e.type&&t.filesOther.forEach((function(e){e.id==t.dialogCheck_form.id&&(e.status=t.dialogCheck_form.status)})))})),t.cancel()):t.$pigeon.MessageError(n.msg),e.next=8;break;case 7:return e.abrupt("return",!1);case 8: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}(),cancel:function(){this.dialogCheck=!1,this.dialogCheck1=!1,this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields()},imgApproveDe:function(e,t){1==e?(this.dialogCheck_form.id=this.files1.id,this.dialogCheck_form.customId=this.form.id):2==e?(this.dialogCheck_form.id=this.files2.id,this.dialogCheck_form.customId=this.form.id):3==e?(this.dialogCheck_form.id=this.files3.id,this.dialogCheck_form.customId=this.form.id):5==e&&(this.dialogCheck_form.id=t,this.dialogCheck_form.customId=this.form.id),this.dialogCheck_form.type=e,this.dialogCheck1=!0},toVerifiedDe:function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(){var t=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["dialogCheck_form"].validate(function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(a){var n;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=7;break}return e.next=3,l["a"].customFileApproveDe(Object(r["a"])({},t.dialogCheck_form));case 3:n=e.sent,n.code==m.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.form.files.forEach((function(e){e.id==t.dialogCheck_form.id&&(1==e.type&&(t.files1.status=t.dialogCheck_form.status),2==e.type&&(t.files2.status=t.dialogCheck_form.status),3==e.type&&(t.files3.status=t.dialogCheck_form.status),10==e.type&&t.filesOther.forEach((function(e){e.id==t.dialogCheck_form.id&&(e.status=t.dialogCheck_form.status)})))})),t.cancel()):t.$pigeon.MessageError(n.msg),e.next=8;break;case 7:return e.abrupt("return",!1);case 8: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}(),searchReasons:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["a"].reasonsRefusalList({type:1});case 2:a=t.sent,a.code==m.StatusOK?null==a.data?e.reasons={}:e.reasons=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},CopyShareLink:function(){var e=this;this.$nextTick((function(){e.formInfo.isAgent&&e.$refs.consumerShareLink.LinkActivity1({form:e.form,type:2})}))}},mounted:function(){},watch:{dialogInfoCid:function(e){0==e&&(this.$refs["form"]&&this.$refs["form"].resetFields(),this.form={})},formInfo:function(){var e=this;this.searchReasons(),this.form=this.formInfo,this.url1="",this.files1={},this.url2="",this.files2={},this.url3="",this.files3={},this.url5="",this.files5={},this.filesOther=[],this.form.files.length?(this.filesOther=[],this.form.files.forEach((function(t){1==t.type&&(e.files1=t,e.url1=e.Host05+(t.againPath||t.path),e.srcList1.push(e.url1)),2==t.type&&(e.files2=t,e.url2=e.Host05+(t.againPath||t.path),e.srcList2.push(e.url2)),3==t.type&&(e.files3=t,e.url3=e.Host05+(t.againPath||t.path),e.srcList3.push(e.url3)),10==t.type&&(t.urlOther=e.Host05+(t.againPath||t.path),e.filesOther.push(t))}))):(this.url1="",this.files1={},this.url2="",this.files2={},this.url3="",this.files3={},this.url5="",this.files5={},this.filesOther=[])}}},h=v,y=(a("095d"),a("a0fc"),a("2877")),b=Object(y["a"])(h,n,i,!1,null,"1e82c698",null);t["a"]=b.exports},"30f1":function(e,t,a){"use strict";a("dc7d")},"384f":function(e,t,a){"use strict";var n=a("e330"),i=a("5388"),s=a("cb27"),r=s.Set,o=s.proto,l=n(o.forEach),c=n(o.keys),d=c(new r).next;e.exports=function(e,t,a){return a?i({iterator:c(e),next:d},t):l(e,t)}},"395e":function(e,t,a){"use strict";var n=a("dc19"),i=a("cb27").has,s=a("8e16"),r=a("7f65"),o=a("5388"),l=a("2a62");e.exports=function(e){var t=n(this),a=r(e);if(s(t)<a.size)return!1;var c=a.getIterator();return!1!==o(c,(function(e){if(!i(t,e))return l(c,"normal",!1)}))}},"3a82":function(e,t,a){"use strict";a("b0c0");var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"InfoBox",class:{active:e.dialogInfoIbNo},attrs:{id:"TradingDetailedInfo"}},[t("div",{staticClass:"header"},[t("div",[t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.AgentNumber",expression:"'Label.AgentNumber'"}],staticClass:"title"}),t("span",[e._v(":")]),t("span",[e._v(e._s(e.form.ibNo||"--"))])]),t("span",{staticClass:"close crm-cursor",on:{click:e.close}},[t("i",{staticClass:"el-icon-close"})])]),t("el-form",{ref:"form",attrs:{model:e.form,"label-width":"150PX"}},[t("el-form-item",{attrs:{label:e.$t("Label.CidAccount")}},[e._v(" "+e._s(e.form.cId||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.AgentNumber")}},[e._v(" "+e._s(e.form.ibNo||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.AttributionNumber")}},[e._v(" "+e._s(e.form.pIbNo||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.AgentLevel")}},[e._v(" "+e._s("cn"==e.Session.Get("lang")?e.form.agentLevelName:e.form.agentLevelEnName)+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.Name")}},[e._v(" "+e._s(e.form.name||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.Email")}},[e._v(" "+e._s(e.form.email||"--")+" ")]),t("el-form-item",{attrs:{label:e.$t("Label.Amount")}},[e._v(" "+e._s(e.form.balance||"--")+" ")])],1)],1)},i=[],s=a("f121"),r=a.n(s),o={name:"DetailedInfoIbNo",props:{dialogInfoIbNo:{type:Boolean,default:!1},infoType:{default:""},formInfo:{default:""},btn:{type:Boolean,default:!1}},data:function(){return{imgUrl:r.a.Host05,form:{},info:{CID:"",name:"",type:""}}},methods:{close:function(){this.$emit("close",!1)}},mounted:function(){},watch:{formInfo:function(){this.form=this.formInfo}}},l=o,c=(a("99ca"),a("30f1"),a("2877")),d=Object(c["a"])(l,n,i,!1,null,"c648ddc0",null);t["a"]=d.exports},"45a4":function(e,t,a){"use strict";a("aef0")},"46f8":function(e,t,a){},5388:function(e,t,a){"use strict";var n=a("c65b");e.exports=function(e,t,a){var i,s,r=a?e:e.iterator,o=e.next;while(!(i=n(o,r)).done)if(s=t(i.value),void 0!==s)return s}},5396:function(e,t,a){"use strict";a("78ec")},"5ad6":function(e,t,a){},6062:function(e,t,a){"use strict";a("1c59")},6566:function(e,t,a){"use strict";var n=a("7c73"),i=a("edd0"),s=a("6964"),r=a("0366"),o=a("19aa"),l=a("7234"),c=a("2266"),d=a("c6d2"),u=a("4754"),m=a("2626"),p=a("83ab"),f=a("f183").fastKey,g=a("69f3"),v=g.set,h=g.getterFor;e.exports={getConstructor:function(e,t,a,d){var u=e((function(e,i){o(e,m),v(e,{type:t,index:n(null),first:null,last:null,size:0}),p||(e.size=0),l(i)||c(i,e[d],{that:e,AS_ENTRIES:a})})),m=u.prototype,g=h(t),y=function(e,t,a){var n,i,s=g(e),r=b(e,t);return r?r.value=a:(s.last=r={index:i=f(t,!0),key:t,value:a,previous:n=s.last,next:null,removed:!1},s.first||(s.first=r),n&&(n.next=r),p?s.size++:e.size++,"F"!==i&&(s.index[i]=r)),e},b=function(e,t){var a,n=g(e),i=f(t);if("F"!==i)return n.index[i];for(a=n.first;a;a=a.next)if(a.key===t)return a};return s(m,{clear:function(){var e=this,t=g(e),a=t.first;while(a)a.removed=!0,a.previous&&(a.previous=a.previous.next=null),a=a.next;t.first=t.last=null,t.index=n(null),p?t.size=0:e.size=0},delete:function(e){var t=this,a=g(t),n=b(t,e);if(n){var i=n.next,s=n.previous;delete a.index[n.index],n.removed=!0,s&&(s.next=i),i&&(i.previous=s),a.first===n&&(a.first=i),a.last===n&&(a.last=s),p?a.size--:t.size--}return!!n},forEach:function(e){var t,a=g(this),n=r(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:a.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),s(m,a?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),p&&i(m,"size",{configurable:!0,get:function(){return g(this).size}}),u},setStrong:function(e,t,a){var n=t+" Iterator",i=h(t),s=h(n);d(e,t,(function(e,t){v(this,{type:n,target:e,state:i(e),kind:t,last:null})}),(function(){var e=s(this),t=e.kind,a=e.last;while(a&&a.removed)a=a.previous;return e.target&&(e.last=a=a?a.next:e.state.first)?u("keys"===t?a.key:"values"===t?a.value:[a.key,a.value],!1):(e.target=null,u(void 0,!0))}),a?"entries":"values",!a,!0),m(t)}}},"68df":function(e,t,a){"use strict";var n=a("dc19"),i=a("8e16"),s=a("384f"),r=a("7f65");e.exports=function(e){var t=n(this),a=r(e);return!(i(t)>a.size)&&!1!==s(t,(function(e){if(!a.includes(e))return!1}),!0)}},"6d61":function(e,t,a){"use strict";var n=a("23e7"),i=a("cfe9"),s=a("e330"),r=a("94ca"),o=a("cb2d"),l=a("f183"),c=a("2266"),d=a("19aa"),u=a("1626"),m=a("7234"),p=a("861d"),f=a("d039"),g=a("1c7e"),v=a("d44e"),h=a("7156");e.exports=function(e,t,a){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),_=y?"set":"add",C=i[e],x=C&&C.prototype,k=C,A={},I=function(e){var t=s(x[e]);o(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,a){return t(this,0===e?0:e,a),this})},w=r(e,!u(C)||!(b||x.forEach&&!f((function(){(new C).entries().next()}))));if(w)k=a.getConstructor(t,e,y,_),l.enable();else if(r(e,!0)){var $=new k,S=$[_](b?{}:-0,1)!==$,T=f((function(){$.has(1)})),N=g((function(e){new C(e)})),F=!b&&f((function(){var e=new C,t=5;while(t--)e[_](t,t);return!e.has(-0)}));N||(k=t((function(e,t){d(e,x);var a=h(new C,e,k);return m(t)||c(t,a[_],{that:a,AS_ENTRIES:y}),a})),k.prototype=x,x.constructor=k),(T||F)&&(I("delete"),I("has"),y&&I("get")),(F||S)&&I(_),b&&x.clear&&delete x.clear}return A[e]=k,n({global:!0,constructor:!0,forced:k!==C},A),v(k,e),b||a.setStrong(k,e,y),k}},"72c3":function(e,t,a){"use strict";var n=a("23e7"),i=a("e9bc"),s=a("dad2");n({target:"Set",proto:!0,real:!0,forced:!s("union")},{union:i})},"78ec":function(e,t,a){},"79a4":function(e,t,a){"use strict";var n=a("23e7"),i=a("d039"),s=a("953b"),r=a("dad2"),o=!r("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));n({target:"Set",proto:!0,real:!0,forced:o},{intersection:s})},"7f65":function(e,t,a){"use strict";var n=a("59ed"),i=a("825a"),s=a("c65b"),r=a("5926"),o=a("46c4"),l="Invalid size",c=RangeError,d=TypeError,u=Math.max,m=function(e,t){this.set=e,this.size=u(t,0),this.has=n(e.has),this.keys=n(e.keys)};m.prototype={getIterator:function(){return o(i(s(this.keys,this.set)))},includes:function(e){return s(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new d(l);var a=r(t);if(a<0)throw new c(l);return new m(e,a)}},"83b9e":function(e,t,a){"use strict";var n=a("cb27"),i=a("384f"),s=n.Set,r=n.add;e.exports=function(e){var t=new s;return i(e,(function(e){r(t,e)})),t}},"8b00":function(e,t,a){"use strict";var n=a("23e7"),i=a("68df"),s=a("dad2"),r=!s("isSubsetOf",(function(e){return e}));n({target:"Set",proto:!0,real:!0,forced:r},{isSubsetOf:i})},"8e16":function(e,t,a){"use strict";var n=a("7282"),i=a("cb27");e.exports=n(i.proto,"size","get")||function(e){return e.size}},"92c7":function(e,t,a){"use strict";a("498a"),a("9911");var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"consumer-share-link views"},[t("el-dialog",{attrs:{visible:e.dialogLink,center:"",title:e.$t("Ib.Index.CreateLink"),"custom-class":"dialog_header_w dialogLink consumer-share-dialog"},on:{"update:visible":function(t){e.dialogLink=t}}},[t("div",{staticClass:"dia-content"},[t("div",{staticClass:"content"},[t("div",{staticClass:"form-item form-item-name"},[t("label",{staticClass:"form-label"},[e._v(e._s(e.$t("Ib.Index.LinkName")))]),t("el-input",{staticClass:"form-input",attrs:{size:"small",placeholder:e.$t("Ib.Index.LinkName")},model:{value:e.linkName,callback:function(t){e.linkName=t},expression:"linkName"}})],1),t("div",{staticClass:"form-section"},[t("div",{staticClass:"section-title"},[t("i",{staticClass:"el-icon-s-operation"}),e._v(" "+e._s(e.$t("Ib.Index.Spread5"))+" ")]),t("div",{staticClass:"account-type-grid"},[t("div",{staticClass:"account-type-card"},[t("div",{staticClass:"account-type-label"},[e._v(e._s(e.$t("AccountType.StandardAccount")))]),t("el-select",{staticClass:"account-select",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:function(t){return e.handleAccountTypeChange("standard","7")}},model:{value:e.accountTypeSettings.standard.selectedIndex,callback:function(t){e.$set(e.accountTypeSettings.standard,"selectedIndex",t)},expression:"accountTypeSettings.standard.selectedIndex"}},e._l(e.getAvailableSpreads("7"),(function(a,n){return t("el-option",{key:n,attrs:{label:e.getSpreadLabel(a),value:n}})})),1)],1),t("div",{staticClass:"account-type-card"},[t("div",{staticClass:"account-type-label"},[e._v(e._s(e.$t("AccountType.SeniorAccount")))]),t("el-select",{staticClass:"account-select",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:function(t){return e.handleAccountTypeChange("ecn","2")}},model:{value:e.accountTypeSettings.ecn.selectedIndex,callback:function(t){e.$set(e.accountTypeSettings.ecn,"selectedIndex",t)},expression:"accountTypeSettings.ecn.selectedIndex"}},e._l(e.getAvailableSpreads("2"),(function(a,n){return t("el-option",{key:n,attrs:{label:e.getSpreadLabel(a),value:n}})})),1)],1),t("div",{staticClass:"account-type-card"},[t("div",{staticClass:"account-type-label"},[e._v(e._s(e.$t("AccountType.CentAccount")))]),t("el-select",{staticClass:"account-select",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:function(t){return e.handleAccountTypeChange("cent","8")}},model:{value:e.accountTypeSettings.cent.selectedIndex,callback:function(t){e.$set(e.accountTypeSettings.cent,"selectedIndex",t)},expression:"accountTypeSettings.cent.selectedIndex"}},e._l(e.getAvailableSpreads("8"),(function(a,n){return t("el-option",{key:n,attrs:{label:e.getSpreadLabel(a),value:n}})})),1)],1)])]),t("div",{staticClass:"action-row"},[t("el-button",{staticClass:"btn-create",attrs:{type:"primary",size:"small"},on:{click:e.CreateLink}},[t("i",{staticClass:"el-icon-link"}),e._v(" "+e._s(e.$t("Ib.Index.CreateLink"))+" ")])],1),e.link?[t("div",{staticClass:"result-section qr-section"},[t("div",{staticClass:"qr-wrapper"},[t("QrCode",{ref:"qrCode",attrs:{text:e.link,width:200,height:200}})],1)]),t("div",{staticClass:"result-section link-section"},[t("div",{staticClass:"result-label"},[t("i",{staticClass:"el-icon-link"}),e._v(" "+e._s(e.$t("Ib.Index.Copy"))+" ")]),t("div",{staticClass:"link-row"},[t("el-input",{staticClass:"link-input",attrs:{readonly:"",size:"small",id:"custom_link_dialog"},model:{value:e.link,callback:function(t){e.link="string"===typeof t?t.trim():t},expression:"link"}}),t("el-button",{staticClass:"btn-copy",attrs:{size:"small",type:"primary"},on:{click:function(t){return e.CopyShareLink("custom_link_dialog")}}},[t("i",{staticClass:"el-icon-document-copy"}),e._v(" "+e._s(e.$t("Ib.Index.Copy"))+" ")])],1)])]:e._e()],2)]),t("div",{staticClass:"commission-adjust-notice"},[t("div",{staticClass:"commission-adjust-notice__section"},[t("div",{staticClass:"commission-adjust-notice__section-head"},[t("i",{staticClass:"el-icon-info commission-adjust-notice__icon"}),t("span",{staticClass:"commission-adjust-notice__title"},[e._v(e._s(e.$t("Customer_info.Real.CommissionNoticeOpenTitle")))])]),t("p",{staticClass:"commission-adjust-notice__p"},[e._v(" "+e._s(e.$t("Customer_info.Real.CommissionNoticeOpenP1"))+" ")]),t("p",{staticClass:"commission-adjust-notice__p"},[e._v(" "+e._s(e.$t("Customer_info.Real.CommissionNoticeOpenP2"))+" ")])])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogLink=!1}}},[e._v(e._s(e.$t("Btn.Cancel")))]),t("el-button",{attrs:{size:"small",type:"primary",disabled:!e.link},on:{click:e.saveLink}},[e._v(e._s(e.$t("Btn.Confirm")))])],1)])],1)},i=[],s=a("5530"),r=a("c7eb"),o=a("1da1"),l=(a("99af"),a("4de4"),a("7db0"),a("caad"),a("a15b"),a("d81d"),a("14d9"),a("e9f5"),a("910d"),a("f665"),a("7d54"),a("ab43"),a("b64b"),a("d3b7"),a("2532"),a("159b"),a("5d411")),c=a("9630"),d=a("f121"),u=a.n(d),m=u.a.Code,p=u.a.Host80,f={name:"CustomLinkList",components:{QrCode:l["a"]},data:function(){return{pictLoading:!1,dialogLink:!1,tableData:[],linkName:"",excludeList:[],excludeLists:[],excludeListVN:[],spreadList:[],excludeShowLoginTypes:[],selectedSpreadId:"",loginTypes:"",ibInvalid:"B0",link:"",linkValue:"",currentCId:null,currentId:null,accountTypeSettings:{ecn:{selectedIndex:null,selectedItem:null,loginType:"2"},standard:{selectedIndex:null,selectedItem:null,loginType:"7"},cent:{selectedIndex:null,selectedItem:null,loginType:"8"}},accountTypeData:{ecn:[],standard:[],cent:[]},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:10},qrCodeDialogVisible:!1,currentQrCodeLink:""}},computed:{getInfoId:function(){return JSON.parse(this.Session.Get("user",!0)).id}},methods:{LinkActivity1:function(){var e,t,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=null!==(e=null!==(t=null===n||void 0===n?void 0:n.cId)&&void 0!==t?t:null===n||void 0===n||null===(a=n.form)||void 0===a?void 0:a.cId)&&void 0!==e?e:null;this.currentCId=i||null,this.currentId=n&&"id"in n?n.id:null,this.openAddDialog()},openAddDialog:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getCustomLinkTypes();case 2:e.selectedSpreadId="",e.linkName="",e.link="",e.linkValue="",e.accountTypeSettings={ecn:{selectedIndex:null,selectedItem:null,loginType:"2"},standard:{selectedIndex:null,selectedItem:null,loginType:"7"},cent:{selectedIndex:null,selectedItem:null,loginType:"8"}},e.dialogLink=!0;case 8:case"end":return t.stop()}}),t)})))()},getCustomLinkTypes:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var a,n,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.currentId?{ibId:e.currentId}:{},t.next=3,c["a"].getRegisterLinkTypes(a);case 3:n=t.sent,n.code==m.StatusOK?(i=n.data||[],console.log(i,"123"),e.accountTypeData={ecn:i.filter((function(e){return 2===e.loginType||"2"===e.loginType})),standard:i.filter((function(e){return 7===e.loginType||"7"===e.loginType})),cent:i.filter((function(e){return 8===e.loginType||"8"===e.loginType}))}):(e.$pigeon.MessageError(n.msg),e.accountTypeData={ecn:[],standard:[],cent:[]});case 5:case"end":return t.stop()}}),t)})))()},getAvailableSpreads:function(e){return"2"===e?this.accountTypeData.ecn||[]:"7"===e?this.accountTypeData.standard||[]:"8"===e&&this.accountTypeData.cent||[]},handleAccountTypeChange:function(e,t){var a=this.accountTypeSettings[e],n=this.getAvailableSpreads(t);null!==a.selectedIndex&&void 0!==a.selectedIndex?a.selectedItem=n[a.selectedIndex]||null:a.selectedItem=null,this.$forceUpdate()},getSpreadLabel:function(e){return e.groupName||""},loginTypeList:function(){var e=this;return Object(o["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,c["a"].loginTypeList({page:{current:1,row:100}});case 2:a=t.sent,a.code==m.StatusOK?e.spreadList=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},getValidAccountTypes:function(e,t){var a=this.spreadList.find((function(e){return e.id===t})),n={hide:"",commission:"",excludeShowLoginTypes:[]};if(!a)return n;var i=e.filter((function(e){return a.loginTypes.includes(e)})),s=e.filter((function(e){return!a.loginTypes.includes(e)})),r=this.excludeList.filter((function(e){return s.includes(e.value)})).map((function(e){return e.label})),o=this.excludeLists.filter((function(e){return!i.includes(e.value)})).map((function(e){return e.value}));return this.loginTypes=r.join("、"),{hide:a.hide,commission:a.comPoint,excludeShowLoginTypes:o,invalidLabels:r,invalidValues:s}},getLink1:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var a,n,i,o;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=[],n=[],Object.keys(e.accountTypeSettings).forEach((function(t){var i=e.accountTypeSettings[t];i.selectedItem&&(a.push(i.loginType),n.push(i.selectedItem))})),0!==a.length){t.next=7;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Index.Spread5")),e.link="",t.abrupt("return");case 7:return i=Object(s["a"])({loginConfig:n},e.currentId?{ibId:e.currentId}:{}),t.next=10,c["a"].customLinkCode(i);case 10:if(o=t.sent,o.code!==m.StatusOK){t.next=16;break}return e.$pigeon.MessageOK(o.msg),t.abrupt("return",o.data);case 16:return e.$pigeon.MessageError(o.msg),t.abrupt("return","");case 18:case"end":return t.stop()}}),t)})))()},CreateLink:function(){var e=this;return Object(o["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.linkName){t.next=3;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Index.LinkName")),t.abrupt("return");case 3:return t.next=5,e.getLink1();case 5:if(a=t.sent,a){t.next=8;break}return t.abrupt("return");case 8:e.linkValue=a,e.link="".concat(p,"/#/signup/").concat(e.getInfoId,"/").concat(a,"/").concat(e.ibInvalid);case 10:case"end":return t.stop()}}),t)})))()},saveLink:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var a,n,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.linkName){t.next=3;break}return e.$pigeon.MessageWarning(e.$i18n.t("Label.Name")),t.abrupt("return");case 3:if(e.link){t.next=6;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Index.CreateLink")),t.abrupt("return");case 6:if(a=[],Object.keys(e.accountTypeSettings).forEach((function(t){var n=e.accountTypeSettings[t];n.selectedItem&&a.push(n.selectedItem)})),0!==a.length){t.next=11;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Index.Spread5")),t.abrupt("return");case 11:return n={name:e.linkName,link:e.link,linkValue:e.linkValue,loginConfig:a},e.currentCId&&(n.cId=e.currentCId),e.currentId&&(n.ibId=e.currentId),t.next=16,c["a"].customLinkAdd(n);case 16:i=t.sent,i.code===m.StatusOK?(e.$pigeon.MessageOK(i.msg),e.dialogLink=!1,e.currentCId=null,e.currentId=null,e.linkName="",e.link="",e.linkValue="",e.excludeShowLoginTypes=[],e.selectedSpreadId="",e.accountTypeSettings={ecn:{selectedIndex:null,selectedItem:null,loginType:"2"},standard:{selectedIndex:null,selectedItem:null,loginType:"7"},cent:{selectedIndex:null,selectedItem:null,loginType:"8"}},e.$emit("saved")):e.$pigeon.MessageError(i.msg);case 18:case"end":return t.stop()}}),t)})))()},CopyShareLink:function(e){var t=document.getElementById(e);t&&(t.select(),document.execCommand("Copy"),this.$pigeon.MessageOK(this.$i18n.t("card.Msg.m8")))},downloadQrCode:function(){this.$refs.qrCode&&this.$refs.qrCode.downloadQrCode()},showQrCodeDialog:function(e){e&&(this.currentQrCodeLink=e,this.qrCodeDialogVisible=!0)},handleCurrentChange:function(e){this.pagerInfo.current=e,this.getList()},getGroupNameByLoginType:function(e,t){if(!e)return"";var a=e;if("string"===typeof e)try{a=JSON.parse(e)}catch(i){return""}if(!Array.isArray(a))return"";var n=a.find((function(e){return e.loginType===t||e.loginType===String(t)||String(e.loginType)===String(t)}));return n&&n.groupName||""},formatLoginTypes:function(e){if(!e)return"--";var t=e;if("string"===typeof e)try{t=JSON.parse(e)}catch(i){t=e.split(",").map((function(e){return e.trim()}))}Array.isArray(t)||(t=[t]);var a={1:this.$i18n.t("AccountType.ClassicAccount"),2:this.$i18n.t("AccountType.SeniorAccount"),3:this.$i18n.t("AccountType.AgencyAccount"),5:this.$i18n.t("AccountType.SpeedAccount"),6:this.$i18n.t("AccountType.SpeedAccount"),7:this.$i18n.t("AccountType.StandardAccount"),8:this.$i18n.t("AccountType.CentAccount")},n=t.map((function(e){return a[String(e)]||e})).filter(Boolean);return n.length>0?n.join("、"):"--"}},created:function(){var e=this;this.$nextTick((function(){e.excludeLists=[{label:e.$i18n.t("AccountType.SeniorAccount"),value:"2"},{label:e.$i18n.t("AccountType.AgencyAccount"),value:"3"},{label:e.$i18n.t("AccountType.StandardAccount"),value:"7"},{label:e.$i18n.t("AccountType.CentAccount"),value:"8"}],e.excludeLists=e.excludeLists.filter((function(e){return!e.hidden}))}))}},g=f,v=(a("5396"),a("2877")),h=Object(v["a"])(g,n,i,!1,null,"3914491a",null);t["a"]=h.exports},"953b":function(e,t,a){"use strict";var n=a("dc19"),i=a("cb27"),s=a("8e16"),r=a("7f65"),o=a("384f"),l=a("5388"),c=i.Set,d=i.add,u=i.has;e.exports=function(e){var t=n(this),a=r(e),i=new c;return s(t)>a.size?l(a.getIterator(),(function(e){u(t,e)&&d(i,e)})):o(t,(function(e){a.includes(e)&&d(i,e)})),i}},9961:function(e,t,a){"use strict";var n=a("dc19"),i=a("cb27"),s=a("83b9e"),r=a("7f65"),o=a("5388"),l=i.add,c=i.has,d=i.remove;e.exports=function(e){var t=n(this),a=r(e).getIterator(),i=s(t);return o(a,(function(e){c(t,e)?d(i,e):l(i,e)})),i}},"99ca":function(e,t,a){"use strict";a("fe0d")},"9ad4":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("498a");var n=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:"CommissionTemplate","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",[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:t.$i18n.t("Label.IBAccount"),value:1}}),a("el-option",{attrs:{label:t.$i18n.t("system_info.Label.TemplateName"),value:2}})],1)],1),a("el-form-item",{staticStyle:{"margin-right":"10px"}},[1==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.ibNo,callback:function(e){t.$set(t.search,"ibNo","string"===typeof e?e.trim():e)},expression:"search.ibNo"}}):t._e(),2==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.name,callback:function(e){t.$set(t.search,"name",e)},expression:"search.name"}}):t._e()],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-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:t.toSearch}})],1)],1)],1),a("el-form-item",[a("div",{staticClass:"search_action_btn"},[null!==(e=t.display["R-CommissionTemplate-Add"])&&void 0!==e&&e.show?a("span",{staticClass:"crm-cursor",on:{click:t.addVarieties}},[a("i",{staticClass:"el-icon-plus"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]})]):t._e()])])],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mock_tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.CidAccount")},scopedSlots:t._u([{key:"default",fn:function(e){var n;return[e.row.cId&&null!==(n=t.display["R-CommissionTransfer-Single"])&&void 0!==n&&n.show?a("span",{staticClass:"crm-text-underline",on:{click:function(a){return t.accountOpen(e.row.cId)}}},[t._v(t._s(e.row.cId||"--"))]):a("span",[t._v(t._s(e.row.cId||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.IBAccount")},scopedSlots:t._u([{key:"default",fn:function(e){var n;return[e.row.ibNo&&null!==(n=t.display["R-CommissionTransfer-Single"])&&void 0!==n&&n.show?a("span",{staticClass:"crm-text-underline",on:{click:function(a){return t.agentOpen(e.row.ibNo)}}},[t._v(t._s(e.row.ibNo||"--"))]):a("span",[t._v(t._s(e.row.ibNo||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"title",align:"left",label:t.$i18n.t("system_info.Label.TemplateName")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.name||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.ClassicAccount")+"(Forex)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.classicFx||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.SeniorAccount")+"(Forex)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.vipFx||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.StandardAccount")+"(Forex)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.standardFx||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.CentAccount")+"(Forex)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.centFx||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.ClassicAccount")+"(CFD)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.classicCfd||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.SeniorAccount")+"(CFD)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.vipCfd||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.StandardAccount")+"(CFD)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.standardCfd||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.CentAccount")+"(CFD)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.centCfd||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.ClassicAccount")+"(Index)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.classicIndex||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.SeniorAccount")+"(Index)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.vipIndex||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.StandardAccount")+"(Index)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.standardIndex||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.ClassicAccount")+"(Metal)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.classicMetal||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.SeniorAccount")+"(Metal)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.vipMetal||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.SeniorAccount")+"(Metal)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.vipMetal||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.StandardAccount")+"(Metal)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.standardMetal||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.CentAccount")+"(Metal)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.centMetal||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.OutsideCommission")+"(+10)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.comPointOne||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.OutsideCommission")+"(+20)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.comPointTwo||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.OutsideCommission")+"(+30)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.comPointThree||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.NewSpeedAccount")+"(Forex)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.instantFx||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.NewSpeedAccount")+"(Metal)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.instantMetal||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("AccountType.NewSpeedAccount")+"(Index)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.instantIndex||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.ReleaseTime")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.addTime||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Label.Action")},scopedSlots:t._u([{key:"default",fn:function(e){var n;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!==(n=t.display["R-CommissionTemplate-Update"])&&void 0!==n&&n.show?a("el-dropdown-item",{attrs:{command:{type:"editor",row:e.row}}},[a("i",{staticClass:"el-icon-s-operation"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):t._e()],1)],1)]}}])})],1),t.pagerInfo.rowTotal?a("div",{staticClass:"crm_pagination"},[a("div",{staticClass:"crm_page_total"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),a("span",[t._v(t._s(t.pagerInfo.rowTotal))]),a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),a("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":t.pagerInfo.row,total:t.pagerInfo.rowTotal},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1):t._e(),a("detailed-info-cid",{attrs:{dialogInfoCid:t.dialogInfoCid,formInfo:t.formInfo},on:{close:t.close}}),t.dialogInfoCid?a("div",{staticClass:"crm_verified_info_mask",on:{click:t.closeDia}}):t._e(),a("detailed-info-ibNo",{attrs:{dialogInfoIbNo:t.dialogInfoPIbNo,formInfo:t.formInfoPib},on:{close:t.close}}),t.dialogInfoPIbNo?a("div",{staticClass:"crm_verified_info_mask",on:{click:t.closeDia}}):t._e(),a("commissionTemplate-trade-list-add",{attrs:{dialogInfoTradingAdd:t.dialogInfoTradingAdd,editor:t.editor,myInfo:t.myInfo,formList:t.formList},on:{confirmToReload:t.confirmToReload,closeAdd:t.closeAdd}}),t.dialogInfoTradingAdd?a("div",{staticClass:"crm_verified_info_mask",on:{click:t.closeDiaAdd}}):t._e()],1)},i=[],s=a("5530"),r=a("c7eb"),o=a("1da1"),l=a("5217"),c=a("f121"),d=a.n(c),u=a("2d59"),m=a("3a82"),p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"InfoBox",class:{active:e.dialogInfoTradingAdd},attrs:{id:"TradingDetailedInfoAdd"}},[t("div",{staticClass:"header"},[t("div",[t("span",{directives:[{name:"t",rawName:"v-t",value:"R-CommissionTemplate",expression:"'R-CommissionTemplate'"}],staticClass:"title"})]),t("span",{staticClass:"close crm-cursor",on:{click:e.close}},[t("i",{staticClass:"el-icon-close"})])]),t("el-form",{ref:"form",attrs:{rules:e.rules,model:e.form,"label-width":"150PX"}},[t("el-form-item",{attrs:{prop:"name",label:e.$t("Area.item2")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name","string"===typeof t?t.trim():t)},expression:"form.name"}})],1),t("el-form-item",{attrs:{prop:"classicFx",label:e.$t("AccountType.ClassicAccount")+"(Forex)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.classicFx,callback:function(t){e.$set(e.form,"classicFx","string"===typeof t?t.trim():t)},expression:"form.classicFx"}})],1),t("el-form-item",{attrs:{prop:"vipFx",label:e.$t("AccountType.SeniorAccount")+"(Forex)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.vipFx,callback:function(t){e.$set(e.form,"vipFx","string"===typeof t?t.trim():t)},expression:"form.vipFx"}})],1),t("el-form-item",{attrs:{prop:"standardFx",label:e.$t("AccountType.StandardAccount")+"(Forex)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.standardFx,callback:function(t){e.$set(e.form,"standardFx","string"===typeof t?t.trim():t)},expression:"form.standardFx"}})],1),t("el-form-item",{attrs:{prop:"centFx",label:e.$t("AccountType.CentAccount")+"(Forex)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.centFx,callback:function(t){e.$set(e.form,"centFx","string"===typeof t?t.trim():t)},expression:"form.centFx"}})],1),t("el-form-item",{attrs:{prop:"classicCfd",label:e.$t("AccountType.ClassicAccount")+"(CFD)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.classicCfd,callback:function(t){e.$set(e.form,"classicCfd","string"===typeof t?t.trim():t)},expression:"form.classicCfd"}})],1),t("el-form-item",{attrs:{prop:"vipCfd",label:e.$t("AccountType.SeniorAccount")+"(CFD)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.vipCfd,callback:function(t){e.$set(e.form,"vipCfd","string"===typeof t?t.trim():t)},expression:"form.vipCfd"}})],1),t("el-form-item",{attrs:{prop:"standardCfd",label:e.$t("AccountType.StandardAccount")+"(CFD)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.standardCfd,callback:function(t){e.$set(e.form,"standardCfd","string"===typeof t?t.trim():t)},expression:"form.standardCfd"}})],1),t("el-form-item",{attrs:{prop:"centCfd",label:e.$t("AccountType.CentAccount")+"(CFD)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.centCfd,callback:function(t){e.$set(e.form,"centCfd","string"===typeof t?t.trim():t)},expression:"form.centCfd"}})],1),t("el-form-item",{attrs:{prop:"classicIndex",label:e.$t("AccountType.ClassicAccount")+"(Index)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.classicIndex,callback:function(t){e.$set(e.form,"classicIndex","string"===typeof t?t.trim():t)},expression:"form.classicIndex"}})],1),t("el-form-item",{attrs:{prop:"vipIndex",label:e.$t("AccountType.SeniorAccount")+"(Index)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.vipIndex,callback:function(t){e.$set(e.form,"vipIndex","string"===typeof t?t.trim():t)},expression:"form.vipIndex"}})],1),t("el-form-item",{attrs:{prop:"standardIndex",label:e.$t("AccountType.StandardAccount")+"(Index)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.standardIndex,callback:function(t){e.$set(e.form,"standardIndex","string"===typeof t?t.trim():t)},expression:"form.standardIndex"}})],1),t("el-form-item",{attrs:{prop:"classicMetal",label:e.$t("AccountType.ClassicAccount")+"(Metal)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.classicMetal,callback:function(t){e.$set(e.form,"classicMetal","string"===typeof t?t.trim():t)},expression:"form.classicMetal"}})],1),t("el-form-item",{attrs:{prop:"vipMetal",label:e.$t("AccountType.SeniorAccount")+"(Metal)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.vipMetal,callback:function(t){e.$set(e.form,"vipMetal","string"===typeof t?t.trim():t)},expression:"form.vipMetal"}})],1),t("el-form-item",{attrs:{prop:"standardMetal",label:e.$t("AccountType.StandardAccount")+"(Metal)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.standardMetal,callback:function(t){e.$set(e.form,"standardMetal","string"===typeof t?t.trim():t)},expression:"form.standardMetal"}})],1),t("el-form-item",{attrs:{prop:"centMetal",label:e.$t("AccountType.CentAccount")+"(Metal)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.centMetal,callback:function(t){e.$set(e.form,"centMetal","string"===typeof t?t.trim():t)},expression:"form.centMetal"}})],1),t("el-form-item",{attrs:{prop:"comPointOne",label:e.$t("Label.OutsideCommission")+"(+10)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.comPointOne,callback:function(t){e.$set(e.form,"comPointOne","string"===typeof t?t.trim():t)},expression:"form.comPointOne"}})],1),t("el-form-item",{attrs:{prop:"comPointTwo",label:e.$t("Label.OutsideCommission")+"(+20)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.comPointTwo,callback:function(t){e.$set(e.form,"comPointTwo","string"===typeof t?t.trim():t)},expression:"form.comPointTwo"}})],1),t("el-form-item",{attrs:{prop:"comPointThree",label:e.$t("Label.OutsideCommission")+"(+30)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.comPointThree,callback:function(t){e.$set(e.form,"comPointThree","string"===typeof t?t.trim():t)},expression:"form.comPointThree"}})],1),t("el-form-item",{attrs:{prop:"instantFx",label:e.$t("AccountType.NewSpeedAccount")+"(Forex)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.instantFx,callback:function(t){e.$set(e.form,"instantFx","string"===typeof t?t.trim():t)},expression:"form.instantFx"}})],1),t("el-form-item",{attrs:{prop:"instantMetal",label:e.$t("AccountType.NewSpeedAccount")+"(Metal)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.instantMetal,callback:function(t){e.$set(e.form,"instantMetal","string"===typeof t?t.trim():t)},expression:"form.instantMetal"}})],1),t("el-form-item",{attrs:{prop:"instantIndex",label:e.$t("AccountType.NewSpeedAccount")+"(Index)"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.instantIndex,callback:function(t){e.$set(e.form,"instantIndex","string"===typeof t?t.trim():t)},expression:"form.instantIndex"}})],1)],1),t("span",{staticClass:"btn crm-cursor",on:{click:e.confirm}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}]})])],1)},f=[],g=d.a.Code,v={name:"ImportTradeAdd",props:{dialogInfoTradingAdd:{type:Boolean,default:!1},editor:{default:""},myInfo:{default:""},formList:{default:""}},data:function(){return{flag:!1,form:{name:"",type:1,classicFx:"",classicCfd:"",classicIndex:"",classicMetal:"",vipFx:"",vipCfd:"",vipIndex:"",vipMetal:"",instantFx:"",instantMetal:"",instantIndex:"",comPointOne:"",comPointTwo:"",comPointThree:"",standardFx:"",standardCfd:"",standardIndex:"",standardMetal:"",centFx:"",centCfd:"",centMetal:""},pointList:[],rules:{name:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],type:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],classicFx:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],classicCfd:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],classicIndex:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],classicMetal:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],vipFx:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],vipCfd:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],vipIndex:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],vipMetal:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],instantFx:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],instantMetal:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],instantIndex:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],comPointOne:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],comPointTwo:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],comPointThree:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],standardFx:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],standardCfd:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],standardIndex:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],standardMetal:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],centFx:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],centCfd:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],centMetal:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}]}}},methods:{selectChange:function(){this.$forceUpdate()},close:function(){this.$emit("closeAdd",!1)},confirmToReload:function(){this.$emit("confirmToReload",!0)},confirm:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return!1;e.toConfirm()}))},toConfirm:function(){this.editor?this.editor&&this.ImportTradeUpdate():this.ImportTradeAdd()},ImportTradeAdd:function(){var e=this;return Object(o["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,l["a"].CommissionTemplateListAdd(Object(s["a"])({},e.form));case 2:a=t.sent,a.code==g.StatusOK?(e.confirmToReload(),e.$refs["form"].resetFields(),e.$pigeon.MessageOK(e.$i18n.t("Msg.Success"))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},ImportTradeUpdate:function(){var e=this;return Object(o["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,l["a"].CommissionTemplateListUpdate(Object(s["a"])({},e.form));case 2:a=t.sent,a.code==g.StatusOK?(e.confirmToReload(),e.close(),e.$refs["form"].resetFields(),e.$pigeon.MessageOK(e.$i18n.t("Msg.Success"))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},getPointList:function(){var e=this;return Object(o["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,l["a"].arealddListUP({});case 2:a=t.sent,a.code==g.StatusOK?e.pointList=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){},watch:{dialogInfoTradingAdd:function(e){0==e&&this.$refs["form"]&&this.$refs["form"].resetFields(),1==e&&(this.form={name:"",type:1,classicFx:"",classicCfd:"",classicIndex:"",classicMetal:"",vipFx:"",vipCfd:"",vipIndex:"",vipMetal:"",instantFx:"",instantMetal:"",instantIndex:"",comPointOne:"",comPointTwo:"",comPointThree:"",standardFx:"",standardCfd:"",standardIndex:"",standardMetal:"",centFx:"",centCfd:"",centMetal:""})},formList:function(e){this.form=e}}},h=v,y=(a("45a4"),a("2877")),b=Object(y["a"])(h,p,f,!1,null,"6493cae2",null),_=b.exports,C=d.a.Code,x={name:"CommissionTemplate",components:{DetailedInfoCid:u["a"],DetailedInfoIbNo:m["a"],CommissionTemplateTradeListAdd:_},data:function(){return{reasons:{},pictLoading:!1,mock_tableData:[],search:{tag:1,ibNo:"",name:"",date:[],startDate:"",endDate:""},dialogInfo:!1,dialogCheck:!1,dialogCheck_form:{},dialogInfoCid:!1,dialogInfoPIbNo:!1,infoType:"",formInfo:{},formInfoPib:{},dialogInfoTradingAdd:!1,editor:"",addType:"",myInfo:{},formList:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return this.Session.GetDisplay()}},methods:{handleCommand:function(e){"editor"==e.type?(this.editor=1,this.getSymbolSingle(e.row.id)):"delete"==e.type&&this.delete(e.id)},closeDiaAdd:function(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd:function(e){this.dialogInfoTradingAdd=e},addVarieties:function(){this.editor="",this.addType="system_Bank",this.dialogInfoTradingAdd=!0},confirmToReload:function(){this.closeDiaAdd(),this.searchFunc()},getSymbolSingle:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function a(){var n;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].CommissionTemplateSingle({id:e});case 2:n=a.sent,n.code==C.StatusOK?(t.formList=n.data,t.editor=1,t.dialogInfoTradingAdd=!0,t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess"))):t.$pigeon.MessageError(n.msg);case 4:case"end":return a.stop()}}),a)})))()},closeDia:function(){this.dialogInfoCid=!1,this.dialogInfoPIbNo=!1},close:function(e){this.dialogInfoCid=e,this.dialogInfoPIbNo=e},accountOpen:function(e){this.searchSingleCid(e)},agentOpen:function(e){this.searchSinglePIbNo(e)},searchSingleCid:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function a(){var n;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].cidRealSingle({id:e});case 2:n=a.sent,n.code==C.StatusOK?(t.formInfo=n.data,t.dialogInfoCid=!0):t.$pigeon.MessageError(n.msg);case 4:case"end":return a.stop()}}),a)})))()},searchSinglePIbNo:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function a(){var n;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].pIbNoRealSingle({ibNo:e});case 2:n=a.sent,n.code==C.StatusOK?(t.formInfoPib=n.data,t.dialogInfoPIbNo=!0):t.$pigeon.MessageError(n.msg);case 4:case"end":return a.stop()}}),a)})))()},searchFunc:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var a,n;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-CommissionTemplate-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,l["a"].CommissionTemplateList(Object(s["a"])(Object(s["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:n=t.sent,n.code==C.StatusOK?(e.mock_tableData=n.data,null!=n.page?(e.pagerInfo.rowTotal=n.page.rowTotal,e.pagerInfo.pageTotal=n.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(n.msg),e.pictLoading=!1);case 10:case"end":return t.stop()}}),t)})))()},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},getDate:function(){var e,t,a=2,n=(new Date).getTimezoneOffset(),i=(new Date).getTime(),s=new Date(i+60*n*1e3+60*a*60*1e3),r=s.getFullYear(),o=s.getMonth()+1,l=s.getDate();o<10&&(o="0"+o),l<10&&(l="0"+l),e=r+"-"+o+"-01";var c=s.getMonth(),d=++c,u=new Date(s.getFullYear(),d,1),m=864e5,p=new Date(u-m),f=p.getDate();f<10&&(f="0"+f),t=r+"-"+o+"-"+f,this.search.date=[e,t]},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.getDate(),this.searchFunc()},watch:{"search.tag":function(){this.search.name="",this.search.ibNo=""}}},k=x,A=(a("d1f7"),a("bc20"),Object(y["a"])(k,n,i,!1,null,"95f59824",null));t["default"]=A.exports},a0fc:function(e,t,a){"use strict";a("f7f8")},a36f:function(e,t,a){},a4e7:function(e,t,a){"use strict";var n=a("23e7"),i=a("395e"),s=a("dad2"),r=!s("isSupersetOf",(function(e){return!e}));n({target:"Set",proto:!0,real:!0,forced:r},{isSupersetOf:i})},a5f7:function(e,t,a){"use strict";var n=a("dc19"),i=a("cb27"),s=a("83b9e"),r=a("8e16"),o=a("7f65"),l=a("384f"),c=a("5388"),d=i.has,u=i.remove;e.exports=function(e){var t=n(this),a=o(e),i=s(t);return r(t)<=a.size?l(t,(function(e){a.includes(e)&&u(i,e)})):c(a.getIterator(),(function(e){d(t,e)&&u(i,e)})),i}},aef0:function(e,t,a){},b4bc:function(e,t,a){"use strict";var n=a("dc19"),i=a("cb27").has,s=a("8e16"),r=a("7f65"),o=a("384f"),l=a("5388"),c=a("2a62");e.exports=function(e){var t=n(this),a=r(e);if(s(t)<=a.size)return!1!==o(t,(function(e){if(a.includes(e))return!1}),!0);var d=a.getIterator();return!1!==l(d,(function(e){if(i(t,e))return c(d,"normal",!1)}))}},bc20:function(e,t,a){"use strict";a("5ad6")},c1a1:function(e,t,a){"use strict";var n=a("23e7"),i=a("b4bc"),s=a("dad2"),r=!s("isDisjointFrom",(function(e){return!e}));n({target:"Set",proto:!0,real:!0,forced:r},{isDisjointFrom:i})},cb27:function(e,t,a){"use strict";var n=a("e330"),i=Set.prototype;e.exports={Set:Set,add:n(i.add),has:n(i.has),remove:n(i["delete"]),proto:i}},d1f7:function(e,t,a){"use strict";a("041d")},dad2:function(e,t,a){"use strict";var n=a("d066"),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},s=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var a=n("Set");try{(new a)[e](i(0));try{return(new a)[e](i(-1)),!1}catch(o){if(!t)return!0;try{return(new a)[e](s(-1/0)),!1}catch(l){var r=new a;return r.add(1),r.add(2),t(r[e](s(1/0)))}}}catch(l){return!1}}},dbb8:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("498a");var n=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:"system_CommissionTemplate","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-top":"5px"}},[a("el-input",{staticClass:"crm-border-radius-no",attrs:{size:"small",placeholder:t.$t("CommissionTemplateCategory.CategoryName"),clearable:""},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.categoryName,callback:function(e){t.$set(t.search,"categoryName","string"===typeof e?e.trim():e)},expression:"search.categoryName"}},[a("template",{slot:"prepend"},[a("span",{staticClass:"crm-cursor crm-border-radius-no"},[t._v(t._s(t.$t("CommissionTemplateCategory.CategoryName")))])])],2)],1),a("el-form-item",[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",[a("div",{staticClass:"search_action_btn"},[!1!==(null===(e=t.display["R-System-CommissionTemplate-Add"])||void 0===e?void 0:e.show)?a("span",{staticClass:"crm-cursor",on:{click:t.openAddDialog}},[a("i",{staticClass:"el-icon-plus"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]})]):t._e()])])],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mock_tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"categoryName",align:"left",label:t.$t("CommissionTemplateCategory.CategoryName")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.categoryName||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"name",align:"left",label:t.$t("CommissionTemplateCategory.Agent")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.formatAgentIbDisplay(e.row))+" ")]}}])}),a("el-table-column",{attrs:{prop:"displayOrder",align:"left",label:t.$t("CommissionTemplateCategory.DisplayOrder")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(null!=e.row.displayOrder?e.row.displayOrder:"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"display",align:"center",label:t.$t("CommissionTemplateCategory.Display")},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.display?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Yes",expression:"'State.Yes'"}]}):0===e.row.display?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.No",expression:"'State.No'"}]}):a("span",[t._v("--")])]}}])}),a("el-table-column",{attrs:{align:"center",label:t.$t("Label.Action"),width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){var n,i;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!==(n=t.display["R-System-CommissionTemplate-Update"])&&void 0!==n&&n.show?a("el-dropdown-item",{attrs:{command:{type:"edit",row:e.row}}},[a("i",{staticClass:"el-icon-edit"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):t._e(),null!==(i=t.display["R-System-CommissionTemplate-Delete"])&&void 0!==i&&i.show?a("el-dropdown-item",{attrs:{command:{type:"delete",id:e.row.id}}},[a("i",{staticClass:"el-icon-delete"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):t._e()],1)],1)]}}])})],1),t.pagerInfo.rowTotal?a("div",{staticClass:"crm_pagination"},[a("div",{staticClass:"crm_page_total"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),a("span",[t._v(t._s(t.pagerInfo.rowTotal))]),a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),a("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":t.pagerInfo.row,total:t.pagerInfo.rowTotal},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1):t._e(),a("el-dialog",{attrs:{title:t.dialogFormTitle,visible:t.dialogAddVisible,width:"30%","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogAddVisible=e},close:t.resetAddForm}},[a("el-form",{ref:"addForm",staticClass:"add-form-short",attrs:{model:t.addForm,rules:t.addRules,"label-width":"140px"}},[a("el-form-item",{attrs:{prop:"categoryName",label:t.$t("CommissionTemplateCategory.CategoryName")+":"}},[a("el-input",{attrs:{size:"small",placeholder:t.$t("Placeholder.Input"),clearable:""},model:{value:t.addForm.categoryName,callback:function(e){t.$set(t.addForm,"categoryName","string"===typeof e?e.trim():e)},expression:"addForm.categoryName"}})],1),a("el-form-item",{attrs:{prop:"agentId",label:t.$t("CommissionTemplateCategory.Agent")+":"}},[a("el-select",{attrs:{size:"small",filterable:"",remote:"",multiple:"","collapse-tags":"","remote-method":t.remoteSearchAgent,loading:t.agentLoading,placeholder:t.$t("Placeholder.Choose"),clearable:""},model:{value:t.addForm.agentId,callback:function(e){t.$set(t.addForm,"agentId",e)},expression:"addForm.agentId"}},t._l(t.agentList,(function(e){return a("el-option",{key:e.id,attrs:{label:(e.ibNo||e.name||e.id)+"",value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:t.$t("CommissionTemplateCategory.Country")+":"}},[a("el-input",{attrs:{size:"small",disabled:""},model:{value:t.addForm.countryDisplay,callback:function(e){t.$set(t.addForm,"countryDisplay",e)},expression:"addForm.countryDisplay"}})],1),a("el-form-item",{attrs:{label:"Point:",prop:"rebatesPoints"}},[a("div",{staticClass:"rebates-table"},[a("table",{staticClass:"rebates-grid"},[a("thead",[a("tr",t._l(t.rebatesCategories,(function(e){return a("th",{key:e.symbolCategory,staticClass:"rebates-th"},[t._v(" "+t._s(e.name)+" ")])})),0)]),a("tbody",[a("tr",t._l(t.rebatesCategories,(function(e){return a("td",{key:e.symbolCategory,staticClass:"rebates-td"},[a("el-input",{attrs:{size:"small",type:"number",min:0,placeholder:"0"},on:{input:function(a){return t.onRebatesPointInput(e.symbolCategory,a)}},model:{value:t.addForm.rebatesPoints[e.symbolCategory],callback:function(a){t.$set(t.addForm.rebatesPoints,e.symbolCategory,t._n(a))},expression:"addForm.rebatesPoints[cat.symbolCategory]"}})],1)})),0)])])])]),a("el-form-item",{attrs:{label:"Commission:",prop:"commissionsPoints"}},[a("div",{staticClass:"rebates-table"},[a("table",{staticClass:"rebates-grid"},[a("thead",[a("tr",t._l(t.rebatesCategories,(function(e){return a("th",{key:"comm-"+e.symbolCategory,staticClass:"rebates-th"},[t._v(" "+t._s(e.name)+" ")])})),0)]),a("tbody",[a("tr",t._l(t.rebatesCategories,(function(e){return a("td",{key:"comm-"+e.symbolCategory,staticClass:"rebates-td"},[a("el-input",{attrs:{size:"small",type:"number",min:0,placeholder:"0"},on:{input:function(a){return t.onCommissionsPointInput(e.symbolCategory,a)}},model:{value:t.addForm.commissionsPoints[e.symbolCategory],callback:function(a){t.$set(t.addForm.commissionsPoints,e.symbolCategory,t._n(a))},expression:"addForm.commissionsPoints[cat.symbolCategory]"}})],1)})),0)])])])]),a("el-form-item",{attrs:{prop:"displayOrder",label:t.$t("CommissionTemplateCategory.DisplayOrder")+":"}},[a("el-input-number",{attrs:{size:"small",min:0,"controls-position":"right"},model:{value:t.addForm.displayOrder,callback:function(e){t.$set(t.addForm,"displayOrder",e)},expression:"addForm.displayOrder"}})],1),a("el-form-item",{attrs:{prop:"display",label:t.$t("CommissionTemplateCategory.Display")+":"}},[a("el-select",{attrs:{size:"small",placeholder:t.$t("Placeholder.Choose")},model:{value:t.addForm.display,callback:function(e){t.$set(t.addForm,"display",e)},expression:"addForm.display"}},[a("el-option",{attrs:{label:t.$t("State.Yes"),value:1}}),a("el-option",{attrs:{label:t.$t("State.No"),value:0}})],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogAddVisible=!1}}},[t._v(t._s(t.$t("Btn.Cancel")))]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.submitAdd}},[t._v(t._s(t.$t("Btn.Confirm")))])],1)],1)],1)},i=[],s=a("5530"),r=a("c7eb"),o=a("1da1"),l=(a("d9e2"),a("a15b"),a("d81d"),a("14d9"),a("fb6a"),a("e9f5"),a("7d54"),a("ab43"),a("a732"),a("a9e3"),a("d3b7"),a("6062"),a("1e70"),a("79a4"),a("c1a1"),a("8b00"),a("a4e7"),a("1e5a"),a("72c3"),a("3ca3"),a("159b"),a("ddb0"),a("da7c")),c=a("5217"),d=a("f121"),u=a.n(d),m=u.a.Code,p={name:"CommissionTemplate",data:function(){var e=this;return{pictLoading:!1,mock_tableData:[],search:{categoryName:"",cId:""},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},dialogAddVisible:!1,editCategoryId:null,rebatesCategories:[{name:"FX",symbolCategory:1},{name:"CFD",symbolCategory:2},{name:"INDEX",symbolCategory:3},{name:"METAL",symbolCategory:4},{name:"Energy",symbolCategory:5}],addForm:{categoryName:"",agentId:[],country:"CN",countryDisplay:"中国",rebatesPoints:{1:0,2:0,3:0,4:0,5:0},commissionsPoints:{1:0,2:0,3:0,4:0,5:0},displayOrder:0,display:1},addRules:{categoryName:[{required:!0,message:this.$i18n?this.$i18n.t("Placeholder.Input"):"请输入",trigger:"blur"}],agentId:[{validator:function(t,a,n){a&&a.length?n():n(new Error(e.$i18n?e.$i18n.t("Placeholder.Choose"):"请选择"))},trigger:"change"}]},agentList:[],agentLoading:!1}},computed:{display:function(){return this.Session.GetDisplay()},dialogFormTitle:function(){return this.editCategoryId?this.$t("Btn.Editor"):this.$t("Btn.Add")}},methods:{toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()},handleSizeChange:function(e){this.pagerInfo.row=e,this.pagerInfo.current=1,this.searchFunc()},handleCommand:function(e){"edit"===e.type?this.openEditDialog(e.row):"delete"===e.type&&this.deleteRow(e.id)},formatAgentIbDisplay:function(e){return e?null!=e.ibNos&&""!==e.ibNos?Array.isArray(e.ibNos)?e.ibNos.length?e.ibNos.join(", "):"--":String(e.ibNos):null!=e.ibNo&&""!==e.ibNo?String(e.ibNo):"--":"--"},deleteRow:function(e){var t=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(o["a"])(Object(r["a"])().mark((function a(){var n;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].categoryDelete({ids:[e]});case 2:n=a.sent,n.code==m.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.DeleteSuccess")),t.searchFunc()):t.$pigeon.MessageError(n.msg||"删除失败");case 4:case"end":return a.stop()}}),a)}))),(function(){}))},searchFunc:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var a,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["R-System-CommissionTemplate-Search"]&&null!==(a=e.display["R-System-CommissionTemplate-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 t.prev=5,t.next=8,l["a"].categorySearchList({categoryName:e.search.categoryName||void 0,cId:e.search.cId||void 0,page:{current:e.pagerInfo.current,row:e.pagerInfo.row}});case 8:n=t.sent,n.code==m.StatusOK?(e.mock_tableData=n.data||[],n.page&&(e.pagerInfo.rowTotal=n.page.rowTotal||0,e.pagerInfo.pageTotal=n.page.pageTotal||0)):e.$pigeon.MessageError(n.msg||"请求失败"),t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](5),e.$pigeon.MessageError("请求失败");case 15:return t.prev=15,e.pictLoading=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[5,12,15,18]])})))()},openAddDialog:function(){this.editCategoryId=null,this.dialogAddVisible=!0,this.loadDefaultAgentList()},openEditDialog:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function a(){var n;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.display["R-System-CommissionTemplate-Update"]&&null!==(n=t.display["R-System-CommissionTemplate-Update"])&&void 0!==n&&n.show){a.next=3;break}return t.$pigeon.MessageWarning(t.$i18n.t("Msg.NotDisplay")),a.abrupt("return");case 3:return t.agentList=[],t.editCategoryId=e.id,t.mergeAgentsFromDetail(e),t.applyDetailToForm(e),a.next=9,t.ensureAgentOptionsForForm();case 9:t.dialogAddVisible=!0;case 10:case"end":return a.stop()}}),a)})))()},mergeAgentsFromDetail:function(e){var t=this;if(e){var a=e.agents||e.agentList||e.ibList||e.ibVos||[];Array.isArray(a)&&a.forEach((function(e){e&&null!=e.id&&!t.agentList.some((function(t){return t.id===e.id}))&&t.agentList.push(e)}))}},applyDetailToForm:function(e){var t={1:0,2:0,3:0,4:0,5:0},a={1:0,2:0,3:0,4:0,5:0},n=e.rebates||e.rebateList||[],i=e.commissions||e.commissionList||[];n.forEach((function(e){e&&null!=e.symbolCategory&&(t[e.symbolCategory]=Number(e.point)||0)})),i.forEach((function(e){e&&null!=e.symbolCategory&&(a[e.symbolCategory]=Number(e.point)||0)}));var s=[];Array.isArray(e.agentIds)&&e.agentIds.length?s=e.agentIds.map((function(e){return e})):Array.isArray(e.agentId)&&e.agentId.length?s=e.agentId.map((function(e){return e})):null!=e.agentId&&(s=[e.agentId]),this.addForm={categoryName:e.categoryName||"",agentId:s,country:e.country||"CN",countryDisplay:e.countryDisplay||e.countryName||"中国",rebatesPoints:t,commissionsPoints:a,displayOrder:null!=e.displayOrder?e.displayOrder:0,display:void 0!==e.display?e.display:1}},ensureAgentOptionsForForm:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var a,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.loadDefaultAgentList();case 2:a=e.addForm.agentId||[],n=new Set(e.agentList.map((function(e){return e.id}))),a.forEach((function(t){n.has(t)||(e.agentList.push({id:t,ibNo:String(t),name:String(t)}),n.add(t))}));case 5:case"end":return t.stop()}}),t)})))()},resetAddForm:function(){this.editCategoryId=null,this.addForm={categoryName:"",agentId:[],country:"CN",countryDisplay:"中国",rebatesPoints:{1:0,2:0,3:0,4:0,5:0},commissionsPoints:{1:0,2:0,3:0,4:0,5:0},displayOrder:0,display:1},this.$refs.addForm&&this.$refs.addForm.clearValidate(),this.agentList=[]},onRebatesPointInput:function(e,t){var a=null===t||void 0===t?"":String(t).trim();if(""!==a){var n=parseInt(a,10);isNaN(n)||n<0?this.$set(this.addForm.rebatesPoints,e,0):this.$set(this.addForm.rebatesPoints,e,n)}else this.$set(this.addForm.rebatesPoints,e,0)},onCommissionsPointInput:function(e,t){var a=null===t||void 0===t?"":String(t).trim();if(""!==a){var n=parseInt(a,10);isNaN(n)||n<0?this.$set(this.addForm.commissionsPoints,e,0):this.$set(this.addForm.commissionsPoints,e,n)}else this.$set(this.addForm.commissionsPoints,e,0)},loadDefaultAgentList:function(){var e=this;return Object(o["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 e.agentLoading=!0,t.prev=1,t.next=4,c["a"].agentList({page:{current:1,row:10}});case 4:a=t.sent,a.code==m.StatusOK&&a.data?e.agentList=a.data:e.agentList=[],t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),e.agentList=[];case 11:return t.prev=11,e.agentLoading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[1,8,11,14]])})))()},remoteSearchAgent:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function a(){var n;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(""!==e&&null!=e){a.next=3;break}return t.loadDefaultAgentList(),a.abrupt("return");case 3:return t.agentLoading=!0,a.prev=4,a.next=7,c["a"].agentList({ibNo:e,page:{current:1,row:50}});case 7:n=a.sent,n.code==m.StatusOK&&n.data?t.agentList=n.data:t.agentList=[],a.next=14;break;case 11:a.prev=11,a.t0=a["catch"](4),t.agentList=[];case 14:return a.prev=14,t.agentLoading=!1,a.finish(14);case 17:case"end":return a.stop()}}),a,null,[[4,11,14,17]])})))()},submitAdd:function(){var e=this;this.$refs.addForm.validate(function(){var t=Object(o["a"])(Object(r["a"])().mark((function t(a){var n,i,o,c;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a){t.next=2;break}return t.abrupt("return");case 2:if(t.prev=2,n=e.rebatesCategories.map((function(t){return{point:Number(e.addForm.rebatesPoints[t.symbolCategory])||0,symbolCategory:t.symbolCategory}})),i=e.rebatesCategories.map((function(t){return{point:Number(e.addForm.commissionsPoints[t.symbolCategory])||0,symbolCategory:t.symbolCategory}})),o={categoryName:e.addForm.categoryName,agentId:(e.addForm.agentId||[]).slice(),country:"CN",rebates:n,commissions:i,displayOrder:null!=e.addForm.displayOrder?e.addForm.displayOrder:0,display:void 0!==e.addForm.display?e.addForm.display:1},!e.editCategoryId){t.next=12;break}return t.next=9,l["a"].categoryUpdate(Object(s["a"])({id:e.editCategoryId},o));case 9:c=t.sent,t.next=15;break;case 12:return t.next=14,l["a"].categoryAdd(o);case 14:c=t.sent;case 15:c.code==m.StatusOK?(e.$pigeon.MessageOK(e.$i18n?e.$i18n.t("Msg.SearchSuccess"):"操作成功"),e.dialogAddVisible=!1,e.searchFunc()):e.$pigeon.MessageError(c.msg||"操作失败"),t.next=21;break;case 18:t.prev=18,t.t0=t["catch"](2),e.$pigeon.MessageError("操作失败");case 21:case"end":return t.stop()}}),t,null,[[2,18]])})));return function(e){return t.apply(this,arguments)}}())}},created:function(){this.searchFunc()}},f=p,g=(a("feb5"),a("2877")),v=Object(g["a"])(f,n,i,!1,null,"7591f010",null);t["default"]=v.exports},dc19:function(e,t,a){"use strict";var n=a("cb27").has;e.exports=function(e){return n(e),e}},dc7d:function(e,t,a){},e9bc:function(e,t,a){"use strict";var n=a("dc19"),i=a("cb27").add,s=a("83b9e"),r=a("7f65"),o=a("5388");e.exports=function(e){var t=n(this),a=r(e).getIterator(),l=s(t);return o(a,(function(e){i(l,e)})),l}},f7f8:function(e,t,a){},fe0d:function(e,t,a){},feb5:function(e,t,a){"use strict";a("46f8")}}]);
|