ib-customer.de69053a.js 66 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-customer"],{3187:function(e,t,o){"use strict";o("91ec")},"6b22":function(e,t,o){},"763f":function(e,t,o){},"91ec":function(e,t,o){},9527:function(e,t,o){"use strict";o("763f")},d8a9:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("e9f5"),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("910d"),core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("f665"),core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("7d54"),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__),_service_ib__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("1c45"),_config_index__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("f121"),_config_index__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_config_index__WEBPACK_IMPORTED_MODULE_6__),_views_global_Drawer__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("b4f6");let{Code:Code}=_config_index__WEBPACK_IMPORTED_MODULE_6___default.a;__webpack_exports__["a"]={name:"CustomerManagement",components:{Drawer:_views_global_Drawer__WEBPACK_IMPORTED_MODULE_7__["a"]},data(){return{subPoints:null,flag:!1,pictLoading:!1,openType:"",dialogInfoTradingAdd:!1,formInfoRow:{},dialogCheck3:!1,dialogCheck_form3:{},commissionAccountTypeSettings:{ecn:{selectedIndex:null,selectedItem:null,loginType:"2"},standard:{selectedIndex:null,selectedItem:null,loginType:"7"},cent:{selectedIndex:null,selectedItem:null,loginType:"8"}},commissionAccountTypeData:{ecn:[],standard:[],cent:[]},search:{tag:0,platform:"MT4",cId:"",ibNo:"",login:"",name:"",email:"",date:[],startDate:"",endDate:"",belongsType:null},tableData:[],statistics:{unverifiedNum:0,unDepositNum:0,depositNum:0},dialogAllowIb:!1,dialogForm:{},dialogInfoTradingAddTc:!1,dialogInfoTradingAddTcAgree:!1,dialogExclusiveCommission:!1,exclusiveCommissionForm:{agentId:"",selectedPoint:"",pointOptions:[]},dialogVietnamDistribution:!1,vietnamDistributionTableData:[],currentVietnamAgentId:null,dialogAddAgent:!1,addAgentForm:{customerId:""},customerList:[],customerLoading:!1,commissionTemplateTableData:[],isFromApplyIb:!1,applyIbRowData:null,pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},rules:{ibInvalid:[{required:!0,message:this.$i18n.t("placeholder.choose"),trigger:"change"}]}}},computed:{levelNum(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.levelNum},fixedHide(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.fixedHide},getDocumentary(){let e=JSON.parse(this.Session.Get("user",!0)).customInfo.cId.toString(),t=["830526","830527","720095","717687","701441"],o=!1;return-1!=t.indexOf(e)&&(o=!0),o},agentAccountSetting(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.agentAccountSetting},lang(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1300},langs(){return"en"==this.Session.Get("lang")},country(){return JSON.parse(this.Session.Get("user",!0)).customInfo.country}},methods:{handleClick(e){console.log(e)},async getExclusiveCommissionData(row){try{let res=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].agentHiddenPointSearchSingle({agentIds:[row.id]});if(res.data.superPoints=eval("("+res.data.superPoints+")"),res.code==Code.StatusOK&&res.data){res.data.subPoints&&res.data.subPoints.length>0?res.data.subPoints=res.data.subPoints[0]:res.data.subPoints={point:Number(Object.keys(res.data.superPoints)[0]),value:0};const e=res.data.subPoints;this.subPoints=e,this.exclusiveCommissionForm.selectedPoint=e.value;const t=res.data.superPoints,o=[];this.$set(row,"subPoints",e),this.$set(row,"superPoints",t);for(const a in t){const e=t[a]||0;for(let t=0;t<=e;t++)o.push({label:t,value:t})}this.$set(row,"exclusiveCommissionOptions",o)}else this.$set(row,"exclusiveCommissionOptions",[]),this.$set(row,"subPoints",null),this.$set(row,"superPoints",null)}catch(error){console.error("获取专属手续费分配数据失败:",error),this.$set(row,"exclusiveCommissionOptions",[]),this.$set(row,"subPoints",null),this.$set(row,"superPoints",null)}},cancelExclusiveCommission(){this.dialogExclusiveCommission=!1,this.exclusiveCommissionForm.selectedPoint="",this.exclusiveCommissionForm.pointOptions=[]},async confirmExclusiveCommission(){try{const e={point:this.subPoints.point,value:this.exclusiveCommissionForm.selectedPoint},t=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].agentHiddenPointAdd({agentId:this.exclusiveCommissionForm.agentId,points:[e]});t.code==Code.StatusOK&&(this.cancelExclusiveCommission(),this.handleSearch())}catch(e){console.error("专属手续费分配失败:",e)}},selectChange(){this.$forceUpdate()},generateOptions(e){const t=[];for(let o=0;o<=e;o++)t.push(o);return t},handleValueChange(e,t){t&&void 0!==t.groupCategoryId&&this.vietnamDistributionTableData.forEach(o=>{o.groupCategoryId===t.groupCategoryId&&(o.valid=e)})},async saveVietnamDistribution(){try{const e=[],t={};this.vietnamDistributionTableData.forEach(e=>{const o=e.groupCategoryId;t[o]||(t[o]={groupCategoryId:o,commissions:[],rebates:[],valid:void 0!==e.valid?e.valid:1});const a="commissions"===e.dataType?t[o].commissions:t[o].rebates;void 0!==e.forex&&null!==e.forex&&a.push({symbolCategory:1,point:e.forex}),void 0!==e.index&&null!==e.index&&a.push({symbolCategory:2,point:e.index}),void 0!==e.metal&&null!==e.metal&&a.push({symbolCategory:3,point:e.metal}),void 0!==e.energy&&null!==e.energy&&a.push({symbolCategory:4,point:e.energy}),void 0!==e.energy2&&null!==e.energy2&&a.push({symbolCategory:5,point:e.energy2})}),Object.keys(t).forEach(o=>{const a=t[o];(a.commissions.length>0||a.rebates.length>0)&&e.push({groupCategoryId:a.groupCategoryId,commissions:a.commissions.length>0?a.commissions:void 0,rebates:a.rebates.length>0?a.rebates:void 0,valid:a.valid})});const o=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].saveVietnamPoints({agentId:this.currentVietnamAgentId,points:e});o.code==Code.StatusOK?(this.$pigeon.MessageOK(o.msg||this.$t("Ib.Custom.SaveSuccess")),this.dialogVietnamDistribution=!1):this.$pigeon.MessageError(o.msg||this.$t("Ib.Custom.SaveFailed"))}catch(e){console.error("保存越南分配数据失败:",e),this.$pigeon.MessageError(this.$t("Ib.Custom.SaveFailed"))}},async initVietnamDistributionData(e){console.log(e);try{const t=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].getVietnamPoints({agentId:e.id||e.agentId});if(t.code==Code.StatusOK&&t.data&&Array.isArray(t.data)){const e=[];t.data.forEach(t=>{const o=t.groupCategoryName||"--",a=void 0!==t.valid?t.valid:1;if(t.superRebates&&Array.isArray(t.superRebates)&&t.superRebates.length>0){const s={accountGroup:o,groupCategoryId:t.groupCategoryId,dataType:"rebates",type:t.rebateTypeName||"Point",valid:a,forex:0,index:0,metal:0,energy:0,energy2:0,energy2Max:0,forex1:0,index1:0,metal1:0,energy1:0};t.rebates.forEach(e=>{1===e.symbolCategory?s.forex=e.point||0:2===e.symbolCategory?s.index=e.point||0:3===e.symbolCategory?s.metal=e.point||0:4===e.symbolCategory?s.energy=e.point||0:5===e.symbolCategory&&(s.energy2=e.point||0)}),t.superRebates.forEach(e=>{1===e.symbolCategory?s.forex1=e.point||0:2===e.symbolCategory?s.index1=e.point||0:3===e.symbolCategory?s.metal1=e.point||0:4===e.symbolCategory?s.energy1=e.point||0:5===e.symbolCategory&&(s.energy2Max=e.point||0)}),s.forexOptions=this.generateOptions(s.forex1),s.indexOptions=this.generateOptions(s.index1),s.metalOptions=this.generateOptions(s.metal1),s.energyOptions=this.generateOptions(s.energy1),s.energy2Options=this.generateOptions(s.energy2Max),e.push(s)}if(t.superCommissions&&Array.isArray(t.superCommissions)&&t.superCommissions.length>0){const s={accountGroup:o,groupCategoryId:t.groupCategoryId,dataType:"commissions",type:t.commissionTypeName||"Commission",valid:a,forex:0,index:0,metal:0,energy:0,energy2:0,energy2Max:0,forex1:0,index1:0,metal1:0,energy1:0};t.commissions.forEach(e=>{1===e.symbolCategory?s.forex=e.point||0:2===e.symbolCategory?s.index=e.point||0:3===e.symbolCategory?s.metal=e.point||0:4===e.symbolCategory?s.energy=e.point||0:5===e.symbolCategory&&(s.energy2=e.point||0)}),t.superCommissions.forEach(e=>{1===e.symbolCategory?s.forex1=e.point||0:2===e.symbolCategory?s.index1=e.point||0:3===e.symbolCategory?s.metal1=e.point||0:4===e.symbolCategory?s.energy1=e.point||0:5===e.symbolCategory&&(s.energy2Max=e.point||0)}),s.forexOptions=this.generateOptions(s.forex1),s.indexOptions=this.generateOptions(s.index1),s.metalOptions=this.generateOptions(s.metal1),s.energyOptions=this.generateOptions(s.energy1),s.energy2Options=this.generateOptions(s.energy2Max),e.push(s)}}),this.vietnamDistributionTableData=e}else this.vietnamDistributionTableData=[],this.$pigeon.MessageError(t.msg||this.$t("Ib.Custom.GetDataFailed"))}catch(t){console.error("获取越南分配数据失败:",t),this.vietnamDistributionTableData=[],this.$pigeon.MessageError(this.$t("Ib.Custom.GetDataFailed"))}},vietnamTableSpanMethod({row:e,rowIndex:t,columnIndex:o}){if(0===o||1===o){const o=e.accountGroup;let a=0,s=t;for(let e=t;e>=0;e--){if(this.vietnamDistributionTableData[e].accountGroup!==o)break;s=e}if(s===t){for(let e=t;e<this.vietnamDistributionTableData.length;e++){if(this.vietnamDistributionTableData[e].accountGroup!==o)break;a++}return{rowspan:a,colspan:1}}return{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}},handleCommandCustom(e){"adjustCommissions"==e.type?(this.formInfoRow.login=e.row.login,this.formInfoRow.commission=e.row.comPoint,this.formInfoRow.comPoint=e.row.comPoint,this.formInfoRow.oldHide=e.row.hide,this.formInfoRow.type=e.row.type,this.openType="adjustCommissions",this.dialogInfoTradingAdd=!0):"changeOwnership"==e.type&&(this.formInfoRow.login=e.row.login,this.formInfoRow.ibNo=e.row.ibNo,this.openType="changeOwnership",this.dialogInfoTradingAdd=!0)},handleCommandIB(e){"distribution"==e.type?(this.formInfoRow.ibNo=e.row.ibNo,this.formInfoRow.agentId=e.row.id,this.formInfoRow.pointType=e.row.pointType,this.formInfoRow.pointId=e.row.pointId,this.formInfoRow.pointPercent=e.row.pointPercent,this.openType="distribution",this.dialogInfoTradingAdd=!0):"vietnamDistribution"==e.type?(this.currentVietnamAgentId=e.row.id||e.row.agentId,this.dialogVietnamDistribution=!0,this.initVietnamDistributionData(e.row)):"SignalSourceDivision"==e.type?(this.formInfoRow.login=e.row.login,this.formInfoRow.ibNo=e.row.ibNo,this.openType="SignalSourceDivision",this.dialogInfoTradingAdd=!0):"ibAccount"==e.type?(this.formInfoRow.ibNo=e.row.ibNo,this.formInfoRow.id=e.row.id,this.formInfoRow.agentAccountSetting=e.row.agentAccountSetting||0,this.openType="ibAccount",this.dialogInfoTradingAdd=!0):"exclusiveCommission"==e.type&&(this.exclusiveCommissionForm.agentId=e.row.id,this.exclusiveCommissionForm.pointOptions=e.row.exclusiveCommissionOptions||[],this.dialogExclusiveCommission=!0)},async handleCommandAllow(e){"allow"==e.type?(this.dialogForm.cId=e.row.cId,this.dialogForm.id=e.row.id,this.dialogForm.name=e.row.name,this.dialogForm.email=e.row.email,this.dialogForm.ibInvalid=e.row.ibInvalid,this.dialogAllowIb=!0):"documentary"==e.type?(this.formInfoRow.cId=e.row.cId,this.formInfoRow.id=e.row.id,this.formInfoRow.permissionDisplay=e.row.permissionDisplay,this.openType="documentary",this.dialogInfoTradingAdd=!0):"account"==e.type?(this.formInfoRow.cId=e.row.cId,this.formInfoRow.id=e.row.id,this.formInfoRow.excludeShowLoginTypes=e.row.excludeShowLoginTypes,this.openType="account",this.dialogInfoTradingAdd=!0):"adjustCommissions1"==e.type?(this.formInfoRow.id=e.row.id,this.formInfoRow.commission=e.row.comPoint,this.formInfoRow.oldHide=e.row.hide,this.openType="adjustCommissions1",this.dialogInfoTradingAdd=!0):"applyIb"==e.type?(this.isFromApplyIb=!0,this.applyIbRowData=e.row,this.addAgentForm.customerId=e.row.id,this.dialogAddAgent=!0,this.commissionTemplateTableData=[],await this.initCommissionTemplateData(e.row.id)):"Point"==e.type&&(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form3={},this.commissionAccountTypeSettings={ecn:{selectedIndex:null,selectedItem:null,loginType:"2"},standard:{selectedIndex:null,selectedItem:null,loginType:"7"},cent:{selectedIndex:null,selectedItem:null,loginType:"8"}},this.dialogCheck_form3.id=e.row.id,this.dialogCheck_form3.cId=e.row.cId,this.dialogCheck_form3.comPoint1=e.row.comPoint,this.dialogCheck_form3.hide1=e.row.hide,this.loadCommissionAccountTypes(e.row.ibId).then(()=>this.setCommissionDefaultsFromLoginPoint(e.row.id)).then(()=>{this.dialogCheck3=!0}))},async loadCommissionAccountTypes(e){console.log(e,"ibId");const t=e?{ibId:e}:{};let o=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].getRegisterLinkTypes(t);if(o.code==Code.StatusOK){const e=o.data||[];this.commissionAccountTypeData={ecn:e.filter(e=>2===e.loginType||"2"===e.loginType),standard:e.filter(e=>7===e.loginType||"7"===e.loginType),cent:e.filter(e=>8===e.loginType||"8"===e.loginType)}}else this.$pigeon.MessageError(o.msg),this.commissionAccountTypeData={ecn:[],standard:[],cent:[]}},async setCommissionDefaultsFromLoginPoint(e){if(e)try{const t=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].getLoginPoint({id:e});if(t.code!==Code.StatusOK||!Array.isArray(t.data))return;const o=t.data||[],a=e=>2===e||"2"===e?"2":7===e||"7"===e?"7":8===e||"8"===e?"8":null,s={2:[],7:[],8:[]};o.forEach(e=>{const t=a(e.loginType);t&&e.groupName&&s[t].push(e.groupName)}),["2","7","8"].forEach(e=>{const t="2"===e?"ecn":"7"===e?"standard":"cent",o=s[e][0],a=this.getAvailableSpreadsCommission(e),i=null==o?-1:a.findIndex(e=>(e.groupName||"")===o),n=this.commissionAccountTypeSettings[t];i>=0?(n.selectedIndex=i,n.selectedItem=a[i]):(n.selectedIndex=null,n.selectedItem=null)}),this.$forceUpdate()}catch(t){console.error("设置佣金调整默认值失败:",t)}},getAvailableSpreadsCommission(e){return"2"===e?this.commissionAccountTypeData.ecn||[]:"7"===e?this.commissionAccountTypeData.standard||[]:"8"===e&&this.commissionAccountTypeData.cent||[]},getSpreadLabelCommission(e){return e.groupName||""},handleCommissionAccountTypeChange(e,t){const o=this.commissionAccountTypeSettings[e],a=this.getAvailableSpreadsCommission(t);null!==o.selectedIndex&&void 0!==o.selectedIndex?o.selectedItem=a[o.selectedIndex]||null:o.selectedItem=null,this.$forceUpdate()},cancel(){this.dialogCheck3=!1},toVerified:async function(){const e=[];Object.keys(this.commissionAccountTypeSettings).forEach(t=>{const o=this.commissionAccountTypeSettings[t];o.selectedItem&&e.push(o.selectedItem)});let t=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].realCustomerUpdatePoint({id:this.dialogCheck_form3.id,loginConfig:e});t.code==Code.StatusOK?(this.$pigeon.MessageOK(this.$i18n.t("Msg.ModifySuccess")),this.cancel(),this.searchFunc(),this.flag=!1):(this.flag=!1,this.$pigeon.MessageError(t.msg))},handleCommandFllow(e){"DisplaySettings"==e.type&&(this.formInfoRow.dealLogin=e.row.dealLogin,this.formInfoRow.id=e.row.id,this.formInfoRow.permissionDisplay=e.row.permissionDisplay,this.formInfoRow.ibNo=e.row.pIbNo,this.formInfoRow.agentDistributionRatio=null==e.row.agentDistributionRatio?"":e.row.agentDistributionRatio.toString(),this.openType="DisplaySettings",this.dialogInfoTradingAddTc=!0)},dialogInfoTradingAddCanle(){this.dialogInfoTradingAddTc=!1,this.dialogInfoTradingAddTcAgree=!1},dialogInfoTradingAddOpen(){this.dialogInfoTradingAddTcAgree?(this.dialogInfoTradingAddTc=!1,this.dialogInfoTradingAdd=!0,this.dialogInfoTradingAddTcAgree=!1):this.$pigeon.MessageWarning(this.$i18n.t("Msg.Read"))},chooseLang(e){console.log(e),e!=this.search.tag&&(this.flag||(this.flag=!0,this.pagerInfo.current=1,this.search.tag=e,this.search.cId="",this.search.ibNo="",this.search.login="",this.search.name="",this.search.email="",this.search.date=[],this.search.startDate="",this.search.endDate="",this.search.platform=1==e?"MT4":"",3==e?(this.search.belongsType=null,this.getStatistics()):this.search.belongsType=null))},chooseBelongsType(e){this.pagerInfo.current=1,this.$nextTick(()=>{this.search.belongsType==e?this.search.belongsType=null:this.search.belongsType=e,this.handleSearch()})},async getStatistics(){try{let e=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].customerSubsStatistics({});e.code==Code.StatusOK&&e.data&&(this.statistics={unverifiedNum:e.data.unverifiedNum||0,unDepositNum:e.data.unDepositNum||0,depositNum:e.data.depositNum||0})}catch(e){console.error("获取统计数据失败:",e)}},toNewTemplate(){this.openType="addTemplate",this.dialogInfoTradingAdd=!0},closeDiaAdd(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd(e){this.dialogInfoTradingAdd=e},confirmToReload(){this.dialogInfoTradingAdd=!1,this.handleSearch()},toAddTemplate(){this.toNewTemplate()},async toAgree(){this.$refs["dialogForm"].validate(async e=>{if(!e)return!1;{if(this.flag)return;this.flag=!0;let e=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].customUpdateIbInvalid({id:this.dialogForm.id,ibInvalid:Number(this.dialogForm.ibInvalid)});e.code==Code.StatusOK?(this.$pigeon.MessageOK(this.$i18n.t("Msg.ModifySuccess")),this.Cancel(),this.handleSearch(),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1)}})},Cancel(){this.$refs["dialogForm"]&&this.$refs["dialogForm"].resetFields(),this.dialogAllowIb=!1},handleSearch(){this.pagerInfo.current=1,this.searchFunc()},async searchFunc(){if(this.pictLoading=!0,null==this.search.date||0==this.search.date.length?(this.search.startDate="",this.search.endDate=""):(this.search.startDate=this.search.date[0],this.search.endDate=this.search.date[1]),1==this.search.tag){this.search.platform=this.search.platform?this.search.platform:"MT4";let e=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].accountSubs({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==Code.StatusOK?(e.data?(this.tableData=e.data,this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal):this.tableData=[],this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1),this.pictLoading=!1}else if(2==this.search.tag){this.search.platform="";let e=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].IbSubs({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==Code.StatusOK?(e.data?(this.tableData=e.data,this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal):(this.tableData=[],this.pagerInfo.rowTotal=0),this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1),this.pictLoading=!1}else if(3==this.search.tag){this.search.platform="";let e={...this.search};e.belongsType||delete e.belongsType;let t=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].customerSubs({...e,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==Code.StatusOK?(t.data?(this.tableData=t.data,this.pagerInfo.rowTotal=t.page.rowTotal,this.pagerInfo.pageTotal=t.page.pageTotal):this.tableData=[],this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(t.msg),this.flag=!1),this.pictLoading=!1}else if(4==this.search.tag){this.search.platform="";let e=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].followDealAgentSearchList({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==Code.StatusOK?(e.data?(this.tableData=e.data,this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal):this.tableData=[],this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1),this.pictLoading=!1}},handleSizeChange(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange(e){this.pagerInfo.current=e,this.searchFunc()},handleCloseAddAgentDialog(){this.dialogAddAgent=!1,this.isFromApplyIb=!1,this.applyIbRowData=null,this.addAgentForm.customerId="",this.commissionTemplateTableData=[]},async openAddAgentDialog(){this.isFromApplyIb=!1,this.applyIbRowData=null,this.dialogAddAgent=!0,this.addAgentForm.customerId="",this.customerList=[],this.commissionTemplateTableData=[],await this.loadCustomerList()},async loadCustomerList(e=""){this.customerLoading=!0;try{let t=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].customerSubsList({ibStatus:1,name:e||""});t.code==Code.StatusOK?this.customerList=t.data||[]:(this.$pigeon.MessageError(t.msg),this.customerList=[])}catch(t){console.error("加载客户列表失败:",t),this.customerList=[]}finally{this.customerLoading=!1}},async searchCustomer(e){""!==e?await this.loadCustomerList(e):await this.loadCustomerList()},async handleCustomerChange(e){console.log(e),e?await this.initCommissionTemplateData(e):this.commissionTemplateTableData=[]},async initCommissionTemplateData(e){try{const t=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].getVietnamPoints({customId:e});if(t.code==Code.StatusOK&&t.data&&Array.isArray(t.data)){const e=[];t.data.forEach(t=>{const o=t.groupCategoryName||"--",a=void 0!==t.valid?t.valid:1;if(t.superRebates&&Array.isArray(t.superRebates)&&t.superRebates.length>0){const s={accountGroup:o,groupCategoryId:t.groupCategoryId,dataType:"rebates",type:t.rebateTypeName||"Point",valid:a,forex:0,index:0,metal:0,energy:0,energy2:0,energy2Max:0,forex1:0,index1:0,metal1:0,energy1:0};t.rebates.forEach(e=>{1===e.symbolCategory?s.forex=e.point||0:2===e.symbolCategory?s.index=e.point||0:3===e.symbolCategory?s.metal=e.point||0:4===e.symbolCategory?s.energy=e.point||0:5===e.symbolCategory&&(s.energy2=e.point||0)}),t.superRebates.forEach(e=>{1===e.symbolCategory?s.forex1=e.point||0:2===e.symbolCategory?s.index1=e.point||0:3===e.symbolCategory?s.metal1=e.point||0:4===e.symbolCategory?s.energy1=e.point||0:5===e.symbolCategory&&(s.energy2Max=e.point||0)}),s.forexOptions=this.generateOptions(s.forex1),s.indexOptions=this.generateOptions(s.index1),s.metalOptions=this.generateOptions(s.metal1),s.energyOptions=this.generateOptions(s.energy1),s.energy2Options=this.generateOptions(s.energy2Max),e.push(s)}if(t.superCommissions&&Array.isArray(t.superCommissions)&&t.superCommissions.length>0){const s={accountGroup:o,groupCategoryId:t.groupCategoryId,dataType:"commissions",type:t.commissionTypeName||"Commission",valid:a,forex:0,index:0,metal:0,energy:0,energy2:0,energy2Max:0,forex1:0,index1:0,metal1:0,energy1:0};t.commissions.forEach(e=>{1===e.symbolCategory?s.forex=e.point||0:2===e.symbolCategory?s.index=e.point||0:3===e.symbolCategory?s.metal=e.point||0:4===e.symbolCategory?s.energy=e.point||0:5===e.symbolCategory&&(s.energy2=e.point||0)}),t.superCommissions.forEach(e=>{1===e.symbolCategory?s.forex1=e.point||0:2===e.symbolCategory?s.index1=e.point||0:3===e.symbolCategory?s.metal1=e.point||0:4===e.symbolCategory?s.energy1=e.point||0:5===e.symbolCategory&&(s.energy2Max=e.point||0)}),s.forexOptions=this.generateOptions(s.forex1),s.indexOptions=this.generateOptions(s.index1),s.metalOptions=this.generateOptions(s.metal1),s.energyOptions=this.generateOptions(s.energy1),s.energy2Options=this.generateOptions(s.energy2Max),e.push(s)}}),this.commissionTemplateTableData=e}else this.commissionTemplateTableData=[],this.$pigeon.MessageError(t.msg||this.$t("Ib.Custom.GetDataFailed"))}catch(t){console.error("获取佣金模板数据失败:",t),this.commissionTemplateTableData=[],this.$pigeon.MessageError(this.$t("Ib.Custom.GetDataFailed"))}},handleCommissionTemplateValueChange(e,t){t&&void 0!==t.groupCategoryId&&this.commissionTemplateTableData.forEach(o=>{o.groupCategoryId===t.groupCategoryId&&(o.valid=e)})},commissionTemplateTableSpanMethod({row:e,rowIndex:t,columnIndex:o}){if(0===o||1===o){const o=e.accountGroup;let a=0,s=t;for(let e=t;e>=0;e--){if(this.commissionTemplateTableData[e].accountGroup!==o)break;s=e}if(s===t){for(let e=t;e<this.commissionTemplateTableData.length;e++){if(this.commissionTemplateTableData[e].accountGroup!==o)break;a++}return{rowspan:a,colspan:1}}return{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}},buildCommissionTemplatePoints(){const e=[],t={};return this.commissionTemplateTableData.forEach(e=>{const o=e.groupCategoryId;t[o]||(t[o]={groupCategoryId:o,commissions:[],rebates:[],valid:void 0!==e.valid?e.valid:1});const a="commissions"===e.dataType?t[o].commissions:t[o].rebates;void 0!==e.forex&&null!==e.forex&&a.push({symbolCategory:1,point:e.forex}),void 0!==e.index&&null!==e.index&&a.push({symbolCategory:2,point:e.index}),void 0!==e.metal&&null!==e.metal&&a.push({symbolCategory:3,point:e.metal}),void 0!==e.energy&&null!==e.energy&&a.push({symbolCategory:4,point:e.energy}),void 0!==e.energy2&&null!==e.energy2&&a.push({symbolCategory:5,point:e.energy2})}),Object.keys(t).forEach(o=>{const a=t[o];(a.commissions.length>0||a.rebates.length>0)&&e.push({groupCategoryId:a.groupCategoryId,commissions:a.commissions.length>0?a.commissions:void 0,rebates:a.rebates.length>0?a.rebates:void 0,valid:a.valid})}),e},async saveCommissionTemplate(){if(this.addAgentForm.customerId)try{const e=this.buildCommissionTemplatePoints(),t=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].saveVietnamPoints({customId:this.addAgentForm.customerId,points:e});return t.code==Code.StatusOK?(this.$pigeon.MessageOK(t.msg||this.$t("Ib.Custom.SaveSuccess")),!0):(this.$pigeon.MessageError(t.msg||this.$t("Ib.Custom.SaveFailed")),!1)}catch(e){return console.error("保存佣金模板数据失败:",e),this.$pigeon.MessageError(this.$t("Ib.Custom.SaveFailed")),!1}else this.$pigeon.MessageWarning(this.$t("Ib.Custom.PleaseSelectCustomer"))},async confirmAddAgent(){let e,t;if(this.isFromApplyIb){if(!this.applyIbRowData)return void this.$pigeon.MessageWarning(this.$t("Ib.Custom.CustomerNotExist"));e=this.applyIbRowData.id,t=this.applyIbRowData.cId}else{if(!this.addAgentForm.customerId)return void this.$pigeon.MessageWarning(this.$i18n.t("placeholder.choose"));const o=this.customerList.find(e=>e.id===this.addAgentForm.customerId);if(!o)return void this.$pigeon.MessageWarning(this.$t("Ib.Custom.CustomerNotFound"));e=o.id,t=o.cId}try{const o=this.buildCommissionTemplatePoints(),a=await _service_ib__WEBPACK_IMPORTED_MODULE_5__["a"].agentApplyAddPoint({customId:e,cId:t,points:o});a.code==Code.StatusOK?(this.$pigeon.MessageOK(a.msg||this.$t("Ib.Custom.SubmitSuccess")),this.dialogAddAgent=!1,this.isFromApplyIb=!1,this.applyIbRowData=null,this.handleSearch()):this.$pigeon.MessageError(a.msg||this.$t("Ib.Custom.SubmitFailed"))}catch(o){console.error("新增代理失败:",o),this.$pigeon.MessageError(this.$t("Ib.Custom.SubmitFailed"))}}},mounted(){this.search.tag=this.$route.query.type?Number(this.$route.query.type):3,3==this.search.tag&&(this.search.belongsType=null,this.getStatistics())},watch:{"search.tag":function(e){this.$refs["search"]&&(this.search.tag=e),this.$router.push({path:"/ib/customer",query:{type:e}}).catch(e=>e),3==e&&this.getStatistics(),this.pagerInfo.current=1,this.$nextTick(()=>{this.searchFunc()})}}}},e787:function(e,t,o){"use strict";o("f7db")},e7ad:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"ib_CustomerManagement"}},[t("div",{staticClass:"crm-title-box"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Title1",expression:"'Ib.Custom.Title1'"}]})])]),t("div",{staticClass:"main-content"},[t("div",{staticClass:"chooseTab"},[t("div",{staticClass:"chooseLang"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage3",expression:"'Ib.Custom.Manage3'"}],staticClass:"crm-cursor",class:{active:3==e.search.tag},on:{click:function(t){return e.chooseLang(3)}}},[e._v("3")]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage1",expression:"'Ib.Custom.Manage1'"}],staticClass:"crm-cursor",class:{active:1==e.search.tag},on:{click:function(t){return e.chooseLang(1)}}},[e._v("1")]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage2",expression:"'Ib.Custom.Manage2'"}],staticClass:"crm-cursor",class:{active:2==e.search.tag},on:{click:function(t){return e.chooseLang(2)}}},[e._v("2")]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.console.item23",expression:"'Documentary.console.item23'"}],staticClass:"crm-cursor",class:{active:4==e.search.tag},on:{click:function(t){return e.chooseLang(4)}}},[e._v("4")])])]),t("div",{staticClass:"search crm_search"},[t("div",{staticClass:"search-btn",class:{"search-with-tabs":3==e.search.tag||2==e.search.tag}},[t("el-form",{ref:"search",style:2==e.search.tag?"display: flex; align-items: flex-start;":"",attrs:{"label-position":"top",model:e.search,"label-width":"80px"}},[1==e.search.tag?t("el-form-item",{staticStyle:{"margin-right":"10px","max-width":"100px"},attrs:{prop:""}},[t("el-select",{staticClass:"crm-border-radius-no crm_select_icon",attrs:{size:"small",placeholder:e.$t("placeholder.choose")},model:{value:e.search.platform,callback:function(t){e.$set(e.search,"platform",t)},expression:"search.platform"}},[t("el-option",{attrs:{label:"MT4",value:"MT4"},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:"MT5",value:"MT5"},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}})],1)],1):e._e(),1==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"login"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Label.Login")},model:{value:e.search.login,callback:function(t){e.$set(e.search,"login","string"===typeof t?t.trim():t)},expression:"search.login"}})],1):e._e(),1==e.search.tag||3==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"cId"}},[t("el-input",{attrs:{size:"small",placeholder:"CID"},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}})],1):e._e(),2==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"ibNo"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Label.IbAccount")},model:{value:e.search.ibNo,callback:function(t){e.$set(e.search,"ibNo","string"===typeof t?t.trim():t)},expression:"search.ibNo"}})],1):e._e(),2==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"name"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Ib.Custom.NameLabel")},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name","string"===typeof t?t.trim():t)},expression:"search.name"}})],1):e._e(),2==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"cId"}},[t("el-input",{attrs:{size:"small",placeholder:"CID"},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}})],1):e._e(),3!=e.search.tag&&4!=e.search.tag?t("el-form-item",{attrs:{prop:"date"}},[t("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":e.$t("placeholder.Start"),"end-placeholder":e.$t("placeholder.End")},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),t("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.handleSearch}})],1):e._e(),2==e.search.tag?t("el-form-item",{staticStyle:{"margin-left":"auto"}},[t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.openAddAgentDialog}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Report.Title5",expression:"'Ib.Report.Title5'"}]})])],1):e._e(),1!=e.search.tag&&2!=e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"name"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Ib.Custom.NameLabel")},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name","string"===typeof t?t.trim():t)},expression:"search.name"}})],1):e._e(),3==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",attrs:{prop:"email"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Label.Email")},model:{value:e.search.email,callback:function(t){e.$set(e.search,"email","string"===typeof t?t.trim():t)},expression:"search.email"}})],1):e._e(),1!=e.search.tag&&2!=e.search.tag?t("el-form-item",[t("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.handleSearch}})],1):e._e()],1),3==e.search.tag?t("div",{staticClass:"chooseLang subTabs"},[t("span",{staticClass:"crm-cursor",class:{active:1==e.search.belongsType},on:{click:function(t){return e.chooseBelongsType(1)}}},[e._v(" "+e._s(e.$t("Ib.Custom.Unverified"))+" "),void 0!==e.statistics.unverifiedNum?t("span",{staticClass:"count-badge"},[e._v("("+e._s(e.statistics.unverifiedNum)+")")]):e._e()]),t("span",{staticClass:"crm-cursor",class:{active:2==e.search.belongsType},on:{click:function(t){return e.chooseBelongsType(2)}}},[e._v(" "+e._s(e.$t("Ib.Custom.UnDeposit"))+" "),void 0!==e.statistics.unDepositNum?t("span",{staticClass:"count-badge"},[e._v("("+e._s(e.statistics.unDepositNum)+")")]):e._e()]),t("span",{staticClass:"crm-cursor",class:{active:3==e.search.belongsType},on:{click:function(t){return e.chooseBelongsType(3)}}},[e._v(" "+e._s(e.$t("Ib.Custom.Deposited"))+" "),void 0!==e.statistics.depositNum?t("span",{staticClass:"count-badge"},[e._v("("+e._s(e.statistics.depositNum)+")")]):e._e()])]):e._e()],1)]),1==e.search.tag?t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.Login")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.login||"--"))]}}],null,!1,2369587966)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.NameLabel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3701363226)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Platform")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.platform||"--"))]}}],null,!1,2871219458)}),t("el-table-column",{attrs:{prop:"groupName",align:"center",label:e.$t("Label.GroupName")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName||"--"))]}}],null,!1,1224693765)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.LoginType")},scopedSlots:e._u([{key:"default",fn:function(o){return[1==o.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):e._e(),2==o.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):e._e(),5==o.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==o.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==o.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):e._e(),8==o.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()]}}],null,!1,3767327451)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"100":"",label:e.$t("Label.Leverage")},scopedSlots:e._u([{key:"default",fn:function(o){return[o.row.leverage?t("span",[e._v("1:")]):e._e(),e._v(e._s(o.row.leverage||"--"))]}}],null,!1,3785726582)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"100":"",label:e.$t("Label.Currency")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.currency||"--"))]}}],null,!1,1406697946)}),e._e(),e._e(),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.LoginBalance")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("NumberFormat")(t.row.balance||"0")))]}}],null,!1,847567570)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Country")},scopedSlots:e._u([{key:"default",fn:function(o){return[t("div",[e._v(e._s(o.row.countryEnName||"--"))])]}}],null,!1,2181719413)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.registration||"--"))]}}],null,!1,3433116364)})],1)],1):e._e(),2==e.search.tag?t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{prop:"cId",align:"center","header-align":"center",label:e.$t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cId||"--"))]}}],null,!1,2759313139)}),t("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.IbAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ibNo||"--"))]}}],null,!1,959952599)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.NameLabel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3701363226)}),t("el-table-column",{attrs:{prop:"agentNum",align:"center",label:e.$t("Ib.Custom.AgentNum")},scopedSlots:e._u([{key:"default",fn:function(t){var o;return[e._v(e._s(null!==(o=t.row.agentNum)&&void 0!==o?o:"--"))]}}],null,!1,1667450386)}),t("el-table-column",{attrs:{prop:"customNum",align:"center",label:e.$t("Ib.Custom.CustomerNum")},scopedSlots:e._u([{key:"default",fn:function(t){var o;return[e._v(e._s(null!==(o=t.row.customNum)&&void 0!==o?o:"--"))]}}],null,!1,2286195800)}),e._e(),e._e(),e._e(),t("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.addTime||"--"))]}}],null,!1,2916603049)}),t("el-table-column",{attrs:{prop:"lastTime",align:"center",label:e.$t("Ib.Custom.LastActiveTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.lastTime||"--"))]}}],null,!1,3318487426)}),t("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandIB}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"},on:{click:function(t){return e.handleClick(o.row)}}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:{type:"vietnamDistribution",row:o.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit3",expression:"'Ib.Custom.Commit3'"}]})]),o.row.exclusiveCommissionOptions&&o.row.exclusiveCommissionOptions.length>0?t("el-dropdown-item",{attrs:{command:{type:"exclusiveCommission",row:o.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit5",expression:"'Ib.Custom.Commit5'"}]})]):e._e()],1)],1)]}}],null,!1,4216346613)})],1)],1):e._e(),3==e.search.tag?t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cId||"--"))]}}],null,!1,2759313139)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.NameLabel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3701363226)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.email||"--"))]}}],null,!1,2699250801)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.Nationality")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.countryEnName))]}}],null,!1,4198710073)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.addTime||"--"))]}}],null,!1,2916603049)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.CustomerStatus")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.belongsType?e.$t("Ib.Custom.Unverified"):2==t.row.belongsType?e.$t("Ib.Custom.UnDeposit"):3==t.row.belongsType?e.$t("Ib.Custom.Deposited"):"--"))]}}],null,!1,3984805952)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.ApplyAgent")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(2==t.row.ibStatus?e.$t("Ib.Custom.Yes"):e.$t("Ib.Custom.No")))]}}],null,!1,792731387)}),t("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandAllow}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:{type:"documentary",row:o.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item1",expression:"'Documentary.AgentBackground.item1'"}]})]),1==o.row.ibStatus&&1!=o.row.belongsType?t("el-dropdown-item",{attrs:{command:{type:"applyIb",row:o.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.ibTitle",expression:"'Home.msg.ibTitle'"}]})]):e._e(),1!=o.row.belongsType?t("el-dropdown-item",{attrs:{command:{type:"Point",row:o.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.AccountAdjust",expression:"'Ib.Custom.AccountAdjust'"}]})]):e._e()],1)],1)]}}],null,!1,4166517829)})],1)],1):e._e(),4==e.search.tag?t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealCId||"--"))]}}],null,!1,693084927)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.AgentNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.pIbNo||"--"))]}}],null,!1,2414119111)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.console.item20")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.nickname||"--"))]}}],null,!1,3393669845)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.tradingCenter.item18")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealLogin))]}}],null,!1,3271131026)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Platform")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealPlatform||"--"))]}}],null,!1,3192014862)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Leverage")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealLeverage||"--"))]}}],null,!1,1971626522)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.AccountType")},scopedSlots:e._u([{key:"default",fn:function(o){return[1==o.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):e._e(),2==o.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):e._e(),5==o.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==o.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==o.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):e._e(),8==o.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()]}}],null,!1,1686683931)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item11")},scopedSlots:e._u([{key:"default",fn:function(o){return[1==o.row.distributionType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.TundManagement.item59",expression:"'Documentary.TundManagement.item59'"}]}):e._e()]}}],null,!1,307628250)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.Report.item5")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.distributionRatio||"--"))]}}],null,!1,2694370438)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item13")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.settlementCycle||"--"))]}}],null,!1,1894308480)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.ApplyTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.approveTime||"--"))]}}],null,!1,1907542567)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item14")},scopedSlots:e._u([{key:"default",fn:function(o){return[1==o.row.permissionDisplay?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item16",expression:"'Documentary.AgentBackground.item16'"}]}):e._e(),2==o.row.permissionDisplay?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item15",expression:"'Documentary.AgentBackground.item15'"}]}):e._e()]}}],null,!1,1358611863)}),t("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandFllow}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},["1"==o.row.agentUpdatePurview?t("el-dropdown-item",{attrs:{command:{type:"DisplaySettings",row:o.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Btn",expression:"'Ib.Custom.Btn'"}]})]):e._e()],1)],1)]}}],null,!1,3906870169)})],1)],1):e._e(),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","current-page":e.pagerInfo.current,"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}})],1):e._e()]),t("el-dialog",{attrs:{visible:e.dialogAllowIb,center:"",title:e.$t("Ib.Custom.Btn"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogAllowIb=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogForm",staticClass:"dialogForm",attrs:{model:e.dialogForm,rules:e.rules,"label-width":"140px"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Label.CidAccount")+":"}},[e._v(" "+e._s(e.dialogForm.cId||"--")+" ")]),t("el-form-item",{attrs:{prop:"",label:e.$t("Ib.Custom.NameLabelColon")}},[e._v(" "+e._s(e.dialogForm.name||"--")+" ")]),t("el-form-item",{attrs:{prop:"",label:e.$t("Label.Email")+":"}},[e._v(" "+e._s(e.dialogForm.email||"--")+" ")]),t("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{prop:"ibInvalid",label:e.$t("Ib.Custom.Become")+":"}},[t("el-select",{staticStyle:{width:"100%","max-width":"200px"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.dialogForm.ibInvalid,callback:function(t){e.$set(e.dialogForm,"ibInvalid",t)},expression:"dialogForm.ibInvalid"}},[t("el-option",{attrs:{label:e.$t("Ib.Custom.Open"),value:0}}),t("el-option",{attrs:{label:e.$t("Ib.Custom.Close"),value:1}})],1)],1),t("div",{staticClass:"tips"},[t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips",expression:"'Ib.Custom.Tips'"}],staticClass:"tips1"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips1",expression:"'Ib.Custom.Tips1'"}],staticClass:"tips2"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips2",expression:"'Ib.Custom.Tips2'"}],staticClass:"tips2"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips3",expression:"'Ib.Custom.Tips3'"}],staticClass:"tips2"})])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.Cancel}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toAgree}})],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogInfoTradingAddTc,center:"",title:e.$t("Ib.Custom.Btn"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogInfoTradingAddTc=t}}},[t("div",{staticClass:"dia-content"},[t("div",{staticStyle:{"text-align":"initial","line-height":"1.5"}},[t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item1",expression:"'news_add_field1.CustomerManagement.item1'"}],staticStyle:{"margin-bottom":"5px"}}),t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item2",expression:"'news_add_field1.CustomerManagement.item2'"}],staticStyle:{"margin-bottom":"5px"}})]),t("div",{staticClass:"agree"},[t("el-checkbox",{model:{value:e.dialogInfoTradingAddTcAgree,callback:function(t){e.dialogInfoTradingAddTcAgree=t},expression:"dialogInfoTradingAddTcAgree"}}),t("div",{staticClass:"des"},[t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item3",expression:"'news_add_field1.CustomerManagement.item3'"}],staticStyle:{"margin-bottom":"5px"}})])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(t){return e.dialogInfoTradingAddCanle()}}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.dialogInfoTradingAddOpen()}}})],1)])]),t("drawer",{attrs:{dialogInfoTradingAdd:e.dialogInfoTradingAdd,addType:e.openType,formInfo:e.formInfoRow},on:{closeAdd:e.closeAdd,toAddTemplate:e.toAddTemplate,confirmToReload:e.confirmToReload}}),t("el-dialog",{attrs:{visible:e.dialogExclusiveCommission,center:"",title:e.$t("Ib.Custom.Commit5"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogExclusiveCommission=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"exclusiveCommissionForm",staticClass:"dialogForm",attrs:{model:e.exclusiveCommissionForm,"label-width":"240px"}},[t("el-form-item",{attrs:{label:e.$t("Ib.Custom.Commit5")}},[t("el-select",{staticStyle:{width:"100%","max-width":"200px"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},model:{value:e.exclusiveCommissionForm.selectedPoint,callback:function(t){e.$set(e.exclusiveCommissionForm,"selectedPoint",t)},expression:"exclusiveCommissionForm.selectedPoint"}},e._l(e.exclusiveCommissionForm.pointOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.cancelExclusiveCommission}},[e._v(e._s(e.$t("Btn.Cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmExclusiveCommission}},[e._v(e._s(e.$t("Btn.Confirm")))])],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogVietnamDistribution,center:"",title:e.$t("Ib.Custom.Commit3"),"custom-class":"dialog_header_w dialogIb",width:"50%"},on:{"update:visible":function(t){e.dialogVietnamDistribution=t}}},[t("div",{staticClass:"dia-content"},[t("el-table",{staticClass:"crm_tab vietnam-distribution-table",staticStyle:{width:"100%"},attrs:{data:e.vietnamDistributionTableData,size:"small","span-method":e.vietnamTableSpanMethod,"cell-style":{padding:"4px 0"},"header-cell-style":{padding:"4px 0"},border:""}},[t("el-table-column",{attrs:{prop:"valid",align:"center","header-align":"center",label:e.$t("Ib.Custom.Status"),width:"80"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#67C23A"},on:{change:t=>e.handleValueChange(t,o.row)},model:{value:o.row.valid,callback:function(t){e.$set(o.row,"valid",t)},expression:"scope.row.valid"}})]}}])}),t("el-table-column",{attrs:{prop:"accountGroup",align:"center","header-align":"center",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.accountGroup||"--"))]}}])}),t("el-table-column",{attrs:{prop:"type",align:"center","header-align":"center",label:"",width:"160"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("span",[e._v(" "+e._s(o.row.type||"--")+" ")])]}}])}),t("el-table-column",{attrs:{prop:"energy",align:"center","header-align":"center",label:"METAL"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:o.row.energy,callback:function(t){e.$set(o.row,"energy",t)},expression:"scope.row.energy"}},e._l(o.row.energyOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"forex",align:"center","header-align":"center",label:"FX"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:o.row.forex,callback:function(t){e.$set(o.row,"forex",t)},expression:"scope.row.forex"}},e._l(o.row.forexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"energy2",align:"center","header-align":"center",label:"ENERGY"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:o.row.energy2,callback:function(t){e.$set(o.row,"energy2",t)},expression:"scope.row.energy2"}},e._l(o.row.energy2Options,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"index",align:"center","header-align":"center",label:"CFD"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:o.row.index,callback:function(t){e.$set(o.row,"index",t)},expression:"scope.row.index"}},e._l(o.row.indexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"metal",align:"center","header-align":"center",label:"INDEX"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:o.row.metal,callback:function(t){e.$set(o.row,"metal",t)},expression:"scope.row.metal"}},e._l(o.row.metalOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVietnamDistribution=!1}}},[e._v(e._s(e.$t("Ib.Custom.Close")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveVietnamDistribution}},[e._v(e._s(e.$t("Btn.Save")))])],1)],1)]),e.dialogInfoTradingAdd?t("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDiaAdd}}):e._e(),t("el-dialog",{attrs:{visible:e.dialogAddAgent,center:"",title:e.$t("Ib.Report.Title5"),"custom-class":"dialog_header_w dialogIb",width:"50%"},on:{"update:visible":function(t){e.dialogAddAgent=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"addAgentForm",staticClass:"dialogForm",attrs:{model:e.addAgentForm,"label-width":"120px"}},[e.isFromApplyIb?e._e():t("el-form-item",{attrs:{label:e.$t("Ib.Custom.Manage3")+":",prop:"customerId"}},[t("el-select",{attrs:{filterable:"",remote:"","remote-method":e.searchCustomer,loading:e.customerLoading,placeholder:e.$t("placeholder.choose"),clearable:""},on:{change:e.handleCustomerChange},model:{value:e.addAgentForm.customerId,callback:function(t){e.$set(e.addAgentForm,"customerId",t)},expression:"addAgentForm.customerId"}},e._l(e.customerList,(function(o){return t("el-option",{key:o.id,attrs:{label:o.name||o.id,value:o.id}},[t("span",[e._v(e._s(o.name||""))]),e._v("- "),t("span",{staticStyle:{color:"#8492a6","font-size":"13px"}},[e._v(" "+e._s(o.cId)+" ")])])})),1)],1)],1),t("div",{staticStyle:{"margin-top":"20px"}},[t("el-table",{staticClass:"crm_tab commission-template-table",staticStyle:{width:"100%"},attrs:{data:e.commissionTemplateTableData,size:"small","span-method":e.commissionTemplateTableSpanMethod,"cell-style":{padding:"4px 0"},"header-cell-style":{padding:"4px 0"},border:""}},[t("el-table-column",{attrs:{prop:"valid",align:"center","header-align":"center",label:e.$t("Ib.Custom.Status"),width:"80"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#67C23A"},on:{change:t=>e.handleCommissionTemplateValueChange(t,o.row)},model:{value:o.row.valid,callback:function(t){e.$set(o.row,"valid",t)},expression:"scope.row.valid"}})]}}])}),t("el-table-column",{attrs:{prop:"accountGroup",align:"center","header-align":"center",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.accountGroup||"--"))]}}])}),t("el-table-column",{attrs:{prop:"type",align:"center","header-align":"center",label:"",width:"160"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("span",[e._v(" "+e._s(o.row.type||"--")+" ")])]}}])}),t("el-table-column",{attrs:{prop:"energy",align:"center","header-align":"center",label:"METAL"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:o.row.energy,callback:function(t){e.$set(o.row,"energy",t)},expression:"scope.row.energy"}},e._l(o.row.energyOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"forex",align:"center","header-align":"center",label:"FX"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:o.row.forex,callback:function(t){e.$set(o.row,"forex",t)},expression:"scope.row.forex"}},e._l(o.row.forexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"energy2",align:"center","header-align":"center",label:"ENERGY"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:o.row.energy2,callback:function(t){e.$set(o.row,"energy2",t)},expression:"scope.row.energy2"}},e._l(o.row.energy2Options,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"index",align:"center","header-align":"center",label:"CFD"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:o.row.index,callback:function(t){e.$set(o.row,"index",t)},expression:"scope.row.index"}},e._l(o.row.indexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"metal",align:"center","header-align":"center",label:"INDEX"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:o.row.metal,callback:function(t){e.$set(o.row,"metal",t)},expression:"scope.row.metal"}},e._l(o.row.metalOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.handleCloseAddAgentDialog}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.confirmAddAgent}})],1)],1)]),t("el-dialog",{attrs:{title:e.$t("Ib.Custom.AccountAdjust"),visible:e.dialogCheck3,"close-on-click-modal":!1,width:"640px","custom-class":"dialog_header_w dialogIb dialog-account-adjust"},on:{"update:visible":function(t){e.dialogCheck3=t}}},[t("div",{staticClass:"dia-content dialog-account-adjust-body"},[t("div",{staticClass:"account-adjust-cid-row"},[t("span",{staticClass:"account-adjust-cid-label"},[e._v(e._s(e.$t("Label.CidAccount"))+":")]),t("span",{staticClass:"account-adjust-cid-value"},[e._v(e._s(e.dialogCheck_form3.cId||"--"))])]),t("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form dialog-account-adjust-form",attrs:{model:e.dialogCheck_form3,"label-width":"0"}},[t("div",{staticClass:"form-section form-section-commission"},[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",clearable:"",placeholder:e.$t("placeholder.choose")},on:{change:function(t){return e.handleCommissionAccountTypeChange("standard","7")}},model:{value:e.commissionAccountTypeSettings.standard.selectedIndex,callback:function(t){e.$set(e.commissionAccountTypeSettings.standard,"selectedIndex",t)},expression:"commissionAccountTypeSettings.standard.selectedIndex"}},e._l(e.getAvailableSpreadsCommission("7"),(function(o,a){return t("el-option",{key:a,attrs:{label:e.getSpreadLabelCommission(o),value:a}})})),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",clearable:"",placeholder:e.$t("placeholder.choose")},on:{change:function(t){return e.handleCommissionAccountTypeChange("ecn","2")}},model:{value:e.commissionAccountTypeSettings.ecn.selectedIndex,callback:function(t){e.$set(e.commissionAccountTypeSettings.ecn,"selectedIndex",t)},expression:"commissionAccountTypeSettings.ecn.selectedIndex"}},e._l(e.getAvailableSpreadsCommission("2"),(function(o,a){return t("el-option",{key:a,attrs:{label:e.getSpreadLabelCommission(o),value:a}})})),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",clearable:"",placeholder:e.$t("placeholder.choose")},on:{change:function(t){return e.handleCommissionAccountTypeChange("cent","8")}},model:{value:e.commissionAccountTypeSettings.cent.selectedIndex,callback:function(t){e.$set(e.commissionAccountTypeSettings.cent,"selectedIndex",t)},expression:"commissionAccountTypeSettings.cent.selectedIndex"}},e._l(e.getAvailableSpreadsCommission("8"),(function(o,a){return t("el-option",{key:a,attrs:{label:e.getSpreadLabelCommission(o),value:a}})})),1)],1)])])])],1),t("div",{staticClass:"dialog-footer dialog-account-adjust-footer",attrs:{slot:"footer"},slot:"footer"},[t("div",{staticClass:"account-adjust-notes-panel"},[t("div",{staticClass:"account-adjust-notes-section"},[t("div",{staticClass:"account-adjust-notes-title"},[t("i",{staticClass:"el-icon-info account-adjust-notes-title-icon"}),t("span",{staticClass:"account-adjust-notes-title-text"},[e._v(e._s(e.$t("Ib.Custom.AccountAdjustNotesSection2Title")))])]),t("ol",{staticClass:"account-adjust-notes-list"},[t("li",[e._v(e._s(e.$t("Ib.Custom.AccountAdjustNotesSection2Item1")))]),t("li",[e._v(e._s(e.$t("Ib.Custom.AccountAdjustNotesSection2Item2")))])])])]),t("div",{staticClass:"account-adjust-footer-buttons"},[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)},s=[],i=o("d8a9"),n=i["a"],r=(o("ed1d"),o("e787"),o("9527"),o("3187"),o("2877")),l=Object(r["a"])(n,a,s,!1,null,"fa7d9a0c",null);t["default"]=l.exports},ed1d:function(e,t,o){"use strict";o("6b22")},f7db:function(e,t,o){}}]);