| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["agent"],{2034:function(e,t,a){},"3a82":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"InfoBox",class:{active:e.dialogInfoIbNo},attrs:{id:"TradingDetailedInfo"}},[a("div",{staticClass:"header"},[a("div",[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.AgentNumber",expression:"'Label.AgentNumber'"}],staticClass:"title"}),a("span",[e._v(":")]),a("span",[e._v(e._s(e.form.ibNo||"--"))])]),a("span",{staticClass:"close crm-cursor",on:{click:e.close}},[a("i",{staticClass:"el-icon-close"})])]),a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"150PX"}},[a("el-form-item",{attrs:{label:e.$t("Label.CidAccount")}},[e._v(" "+e._s(e.form.cId||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.AgentNumber")}},[e._v(" "+e._s(e.form.ibNo||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.AttributionNumber")}},[e._v(" "+e._s(e.form.pIbNo||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.AgentLevel")}},[e._v(" "+e._s("cn"==e.Session.Get("lang")?e.form.agentLevelName:e.form.agentLevelEnName)+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.Name")}},[e._v(" "+e._s(e.form.name||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.Email")}},[e._v(" "+e._s(e.form.email||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.Amount")}},[e._v(" "+e._s(e.form.balance||"--")+" ")])],1)],1)},i=[],r=a("f121"),n=a.n(r),l={name:"DetailedInfoIbNo",props:{dialogInfoIbNo:{type:Boolean,default:!1},infoType:{default:""},formInfo:{default:""},btn:{type:Boolean,default:!1}},data:function(){return{imgUrl:n.a.Host85,form:{},info:{CID:"",name:"",type:""}}},methods:{close:function(){this.$emit("close",!1)}},mounted:function(){},watch:{formInfo:function(){this.form=this.formInfo}}},s=l,c=(a("c7cf"),a("89d0"),a("2877")),d=Object(c["a"])(s,o,i,!1,null,"39a3abd0",null);t["a"]=d.exports},"63f1":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"customer_Agent","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:e.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:e.$t("Placeholder.Choose")},model:{value:e.search.tag,callback:function(t){e.$set(e.search,"tag",t)},expression:"search.tag"}},[a("el-option",{attrs:{label:"CID",value:1}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Email"),value:2}}),a("el-option",{attrs:{label:e.$t("Label.AgentNumber"),value:3}}),a("el-option",{attrs:{label:e.$t("Label.Name"),value:4}}),a("el-option",{attrs:{label:e.$t("Label.Encode"),value:5}})],1)],1),a("el-form-item",{staticStyle:{"margin-right":"10px"}},[1==e.search.tag?a("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}}):e._e(),2==e.search.tag?a("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.email,callback:function(t){e.$set(e.search,"email","string"===typeof t?t.trim():t)},expression:"search.email"}}):e._e(),3==e.search.tag?a("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.ibNo,callback:function(t){e.$set(e.search,"ibNo","string"===typeof t?t.trim():t)},expression:"search.ibNo"}}):e._e(),4==e.search.tag?a("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name",t)},expression:"search.name"}}):e._e(),5==e.search.tag?a("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.salesNo,callback:function(t){e.$set(e.search,"salesNo","string"===typeof t?t.trim():t)},expression:"search.salesNo"}}):e._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":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"}}),a("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1),a("el-form-item",[a("div",{staticClass:"search_action_btn"})]),a("el-form-item",[e.display["R-Agent-Export"].show?a("el-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",size:"small"},on:{click:e.exportAgents}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Export",expression:"'Btn.Export'"}]})]):e._e()],1)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.cId&&e.display["R-Agent-Single"].show?a("span",{staticClass:"crm-text-underline",on:{click:function(a){return e.accountOpen(t.row.cId)}}},[e._v(e._s(t.row.cId||"--"))]):a("span",[e._v(e._s(t.row.cId||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.AttributionNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.pIbNo&&e.display["R-Agent-Single"].show?a("span",{staticClass:"crm-text-underline",on:{click:function(a){return e.agentOpen(t.row.pIbNo)}}},[e._v(e._s(t.row.pIbNo||"--"))]):a("span",[e._v(e._s(t.row.pIbNo||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.AgentNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.ibNo||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Encode")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.salesNo||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"title",align:"left",label:e.$i18n.t("Label.Level")},scopedSlots:e._u([{key:"default",fn:function(t){return[1e3==t.row.agentLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Level1",expression:"'Label.Level1'"}]}):e._e(),1001==t.row.agentLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Level2",expression:"'Label.Level2'"}]}):e._e(),1002==t.row.agentLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Level3",expression:"'Label.Level3'"}]}):e._e(),1003==t.row.agentLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Level4",expression:"'Label.Level4'"}]}):e._e(),1004==t.row.agentLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Level5",expression:"'Label.Level5'"}]}):e._e(),1005==t.row.agentLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Level6",expression:"'Label.Level6'"}]}):e._e(),1006==t.row.agentLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Level7",expression:"'Label.Level7'"}]}):e._e(),1007==t.row.agentLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Level8",expression:"'Label.Level8'"}]}):e._e(),t.row.agentLevel?e._e():a("span",[e._v(e._s("--"))])]}}])}),a("el-table-column",{attrs:{prop:"title",align:"left",label:e.$i18n.t("Label.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.email||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Region")},scopedSlots:e._u([{key:"default",fn:function(t){return["cn"==e.Session.Get("lang")?a("span",[e._v(e._s(t.row.groupName||"--"))]):e._e(),"cn"!=e.Session.Get("lang")?a("span",[e._v(e._s(t.row.groupEnName||"--"))]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"balance",sortable:"",align:"left",label:e.$i18n.t("Label.CommissionBalance")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" $"+e._s(t.row.balance||"0")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.ApplyTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addTime||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("R-Agent-pammManagerValid")},scopedSlots:e._u([{key:"default",fn:function(e){return[1==e.row.pammManagerValid?a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]}):a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]})]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("R-Agent-PAMMValid")},scopedSlots:e._u([{key:"default",fn:function(e){return[1==e.row.pammValid?a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]}):a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]})]}}])}),e.display["R-Agent-CloseFunction"].show?a("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("news_add_field.Label.CloseFunction")},scopedSlots:e._u([{key:"default",fn:function(t){return["-1"!=t.row.closeFunctions.indexOf("5")?a("span",{},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Enter_info.type_dynamic9",expression:"'Enter_info.type_dynamic9'"}]}),a("span",[e._v(",")])]):e._e(),t.row.closeFunctions.length?e._e():a("span",[e._v(e._s("--"))])]}}],null,!1,3787964472)}):e._e(),a("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("Label.State")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.valid?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Normal",expression:"'State.Normal'"}],staticClass:"state crm_state_blue"}):e._e(),0==t.row.valid?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Freeze",expression:"'State.Freeze'"}],staticClass:"state crm_state_red"}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.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"},[e.display["R-Agent-Delete"].show?a("el-dropdown-item",{attrs:{command:{type:"delete",id:t.row.id}}},[a("i",{staticClass:"el-icon-delete"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e(),e.display["R-Agent-Action"].show?a("el-dropdown-item",{attrs:{command:{type:"balance",row:t.row}}},[a("i",{staticClass:"el-icon-s-tools"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.BalanceOperating",expression:"'Btn.BalanceOperating'"}]})]):e._e(),e.display["R-Agent-Hide"].show?a("el-dropdown-item",{attrs:{command:{type:"hide",row:t.row}}},[a("i",{staticClass:"el-icon-setting"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Hide",expression:"'Btn.Hide'"}]})]):e._e(),e.display["R-Agent-Commission"].show?a("el-dropdown-item",{attrs:{command:{type:"commission",row:t.row}}},[a("i",{staticClass:"el-icon-finished"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-Commission",expression:"'R-Agent-Commission'"}]})]):e._e(),e.display["R-Agent-Rebate"].show?a("el-dropdown-item",{attrs:{command:{type:"Rebate",row:t.row}}},[a("i",{staticClass:"el-icon-search"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-Rebate",expression:"'R-Agent-Rebate'"}]})]):e._e(),e.display["R-Agent-AdjustmentAttribution"].show?a("el-dropdown-item",{attrs:{command:{type:"Adjustment",row:t.row}}},[a("i",{staticClass:"el-icon-s-custom"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-AdjustmentAttribution",expression:"'R-Agent-AdjustmentAttribution'"}]})]):e._e(),e.display["R-Agent-Frozen"].show?a("el-dropdown-item",{attrs:{command:{type:"frozen",row:t.row}}},[a("i",{staticClass:"el-icon-lock"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-Frozen",expression:"'R-Agent-Frozen'"}]})]):e._e(),e.display["R-Notice-Send"].show?a("el-dropdown-item",{attrs:{command:{type:"notice",row:t.row}}},[a("i",{staticClass:"el-icon-s-promotion"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Notice",expression:"'R-Notice'"}]})]):e._e(),e.display["R-Agent-GroupSettings"].show?a("el-dropdown-item",{attrs:{command:{type:"group",row:t.row}}},[a("i",{staticClass:"el-icon-price-tag"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-GroupSettings",expression:"'R-Agent-GroupSettings'"}]})]):e._e(),e.display["R-Agent-AccountSetup"].show?a("el-dropdown-item",{attrs:{command:{type:"account",row:t.row}}},[a("i",{staticClass:"el-icon-circle-plus-outline"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-AccountSetup",expression:"'R-Agent-AccountSetup'"}]})]):e._e(),e.display["R-Agent-pammManagerValid"].show?a("el-dropdown-item",{attrs:{command:{type:"pammManagerValid",row:t.row}}},[a("i",{staticClass:"el-icon-user"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-pammManagerValid",expression:"'R-Agent-pammManagerValid'"}]})]):e._e(),e.display["R-Agent-PAMMValid"].show?a("el-dropdown-item",{attrs:{command:{type:"PAMMValid",row:t.row}}},[a("i",{staticClass:"el-icon-user-solid"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-PAMMValid",expression:"'R-Agent-PAMMValid'"}]})]):e._e(),e.display["R-Agent-CloseFunction"].show?a("el-dropdown-item",{attrs:{command:{type:"CloseFunction",row:t.row}}},[a("i",{staticClass:"el-icon-error"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-CloseFunction",expression:"'R-Agent-CloseFunction'"}]})]):e._e(),a("el-dropdown-item",{attrs:{command:{type:"Level",row:t.row}}},[a("i",{staticClass:"el-icon-search"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"R-Agent-Level",expression:"'R-Agent-Level'"}]})])],1)],1)]}}])})],1),e.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",[e._v(e._s(e.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":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e(),a("el-dialog",{attrs:{title:e.dialogCheckTit,visible:e.dialogCheck,center:"","custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck=t}}},[a("div",{staticClass:"dia-content"},[a("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:e.dialogCheck_form,rules:e.rules,"label-width":"190px"}},[a("el-form-item",{attrs:{prop:"",label:e.$t("Label.AgentNumber")+":"}},[e._v(" "+e._s(e.dialogCheck_form.ibNo)+" ")]),0==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"type",label:e.$t("Label.ActionType")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.dialogCheck_form.type,callback:function(t){e.$set(e.dialogCheck_form,"type",t)},expression:"dialogCheck_form.type"}},[a("el-option",{attrs:{label:e.$t("Customer_info.Agent.Add"),value:1}}),a("el-option",{attrs:{label:e.$t("Customer_info.Agent.Reduce"),value:2}})],1)],1):e._e(),0==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"balanceType",label:e.$t("Label.CommissionType")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.dialogCheck_form.balanceType,callback:function(t){e.$set(e.dialogCheck_form,"balanceType",t)},expression:"dialogCheck_form.balanceType"}},[a("el-option",{attrs:{label:e.$t("Customer_info.Agent.OutsideCommission"),value:1}}),a("el-option",{attrs:{label:e.$t("Customer_info.Agent.Commission"),value:2}})],1)],1):e._e(),0==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"amount",label:e.$t("Label.Amount")+":"}},[a("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.dialogCheck_form.amount,callback:function(t){e.$set(e.dialogCheck_form,"amount","string"===typeof t?t.trim():t)},expression:"dialogCheck_form.amount"}})],1):e._e(),0==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"comment",label:e.$t("Label.Descr")+":"}},[a("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.dialogCheck_form.comment,callback:function(t){e.$set(e.dialogCheck_form,"comment",t)},expression:"dialogCheck_form.comment"}})],1):e._e(),1==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"hide",label:e.$t("Label.Hide")+":"},on:{change:e.selectChange}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.hide,callback:function(t){e.$set(e.dialogCheck_form,"hide",t)},expression:"dialogCheck_form.hide"}},[a("el-option",{attrs:{label:0,value:0}}),a("el-option",{attrs:{label:5,value:5}}),a("el-option",{attrs:{label:10,value:10}}),a("el-option",{attrs:{label:20,value:20}}),a("el-option",{attrs:{label:30,value:30}})],1)],1):e._e(),2==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"",label:e.$t("Label.State")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.commissionApproval,callback:function(t){e.$set(e.dialogCheck_form,"commissionApproval",t)},expression:"dialogCheck_form.commissionApproval"}},[a("el-option",{attrs:{label:e.$t("Btn.No"),value:0}}),a("el-option",{attrs:{label:e.$t("Btn.Yes"),value:1}})],1)],1):e._e(),3==e.dialogCheck_form.hideType?a("div",[a("el-form-item",{attrs:{prop:"",label:e.$t("Apply_info.VerifiedUser.Type")+":"}},[e._v(" "+e._s(e.dialogCheck_form.typeName||"--")+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$t("system_info.Label.TemplateName")+":"}},[e._v(" "+e._s(e.dialogCheck_form.templateName||"--")+" ")]),2==e.dialogCheck_form.type?a("el-form-item",{attrs:{prop:"",label:e.$t("Label.AgentNumber")+":"}},[e._v(" %"+e._s(e.dialogCheck_form.percent)+" ")]):e._e(),1==e.dialogCheck_form.type?a("div",[a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.ClassicAccount")+"(Forex):"}},[e._v(" "+e._s(e.dialogCheck_form.classicFx)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.SeniorAccount")+"(Forex):"}},[e._v(" "+e._s(e.dialogCheck_form.vipFx)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.ClassicAccount")+"(CFD):"}},[e._v(" "+e._s(e.dialogCheck_form.classicCfd)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.SeniorAccount")+"(CFD):"}},[e._v(" "+e._s(e.dialogCheck_form.vipCfd)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.ClassicAccount")+"(Index):"}},[e._v(" "+e._s(e.dialogCheck_form.classicIndex)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.SeniorAccount")+"(Index):"}},[e._v(" "+e._s(e.dialogCheck_form.vipIndex)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.ClassicAccount")+"(Metal):"}},[e._v(" "+e._s(e.dialogCheck_form.classicMetal)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.SeniorAccount")+"(Metal):"}},[e._v(" "+e._s(e.dialogCheck_form.vipMetal)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("Label.OutsideCommission")+"(+10):"}},[e._v(" "+e._s(e.dialogCheck_form.comPointOne)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("Label.OutsideCommission")+"(+20):"}},[e._v(" "+e._s(e.dialogCheck_form.comPointTwo)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.NewSpeedAccount")+"(Forex):"}},[e._v(" "+e._s(e.dialogCheck_form.instantFx)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.NewSpeedAccount")+"(Metal):"}},[e._v(" "+e._s(e.dialogCheck_form.instantMetal)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$i18n.t("AccountType.NewSpeedAccount")+"(Index):"}},[e._v(" "+e._s(e.dialogCheck_form.instantIndex)+" ")])],1):e._e(),a("el-form-item",{attrs:{prop:"",label:e.$t("Label.ProcessingDate")+":"}},[e._v(" "+e._s(e.dialogCheck_form.validTime||"--")+" ")])],1):e._e(),5==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"amount",label:e.$t("Label.AmountMoney")+":"}},[a("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.dialogCheck_form.amount,callback:function(t){e.$set(e.dialogCheck_form,"amount","string"===typeof t?t.trim():t)},expression:"dialogCheck_form.amount"}})],1):e._e(),5==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"type",label:e.$t("Label.State")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.type,callback:function(t){e.$set(e.dialogCheck_form,"type",t)},expression:"dialogCheck_form.type"}},[a("el-option",{attrs:{label:e.$t("news_add_field.State.Frozen"),value:1}}),a("el-option",{attrs:{label:e.$t("news_add_field.State.Thaw"),value:2}})],1)],1):e._e(),6==e.dialogCheck_form.hideType?a("div",[a("el-form-item",{attrs:{prop:"selectLoginTypes",label:e.$t("news_add_field.Label.SelectAccountType")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",multiple:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.selectLoginTypes,callback:function(t){e.$set(e.dialogCheck_form,"selectLoginTypes",t)},expression:"dialogCheck_form.selectLoginTypes"}},[a("el-option",{attrs:{label:e.$t("AccountType.ClassicAccount"),value:"1"}}),a("el-option",{attrs:{label:e.$t("AccountType.SeniorAccount"),value:"2"}}),a("el-option",{attrs:{label:e.$t("AccountType.AgencyAccount"),value:"3"}}),a("el-option",{attrs:{label:e.$t("AccountType.SpeedAccount"),value:"5"}}),a("el-option",{attrs:{label:e.$t("AccountType.NewSpeedAccount"),value:"6"}})],1)],1),a("el-form-item",{attrs:{prop:"excludeLoginTypes",label:e.$t("news_add_field.Label.ExclusionAccountType")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",multiple:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.excludeLoginTypes,callback:function(t){e.$set(e.dialogCheck_form,"excludeLoginTypes",t)},expression:"dialogCheck_form.excludeLoginTypes"}},[a("el-option",{attrs:{label:e.$t("AccountType.ClassicAccount"),value:"1"}}),a("el-option",{attrs:{label:e.$t("AccountType.SeniorAccount"),value:"2"}}),a("el-option",{attrs:{label:e.$t("AccountType.AgencyAccount"),value:"3"}}),a("el-option",{attrs:{label:e.$t("AccountType.SpeedAccount"),value:"5"}}),a("el-option",{attrs:{label:e.$t("AccountType.NewSpeedAccount"),value:"6"}})],1)],1),a("el-form-item",{attrs:{prop:"selectGroupType",label:e.$t("news_add_field.Label.SelectGroupType")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",clearable:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.selectGroupType,callback:function(t){e.$set(e.dialogCheck_form,"selectGroupType",t)},expression:"dialogCheck_form.selectGroupType"}},e._l(e.groupType_options,(function(t){return a("el-option",{key:t.name,attrs:{label:"cn"==e.Session.Get("lang")?t.name:t.enName,value:t.id}})})),1)],1),a("el-form-item",{attrs:{prop:"defaultGroupType",label:e.$t("news_add_field.Label.DefaultGroupType")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",clearable:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.defaultGroupType,callback:function(t){e.$set(e.dialogCheck_form,"defaultGroupType",t)},expression:"dialogCheck_form.defaultGroupType"}},e._l(e.groupType_options,(function(t){return a("el-option",{key:t.name,attrs:{label:"cn"==e.Session.Get("lang")?t.name:t.enName,value:t.id}})})),1)],1)],1):e._e(),7==e.dialogCheck_form.hideType?a("div",[a("el-form-item",{attrs:{prop:"excludeLoginTypes",label:e.$t("news_add_field.Label.ExclusionAccountType")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",multiple:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.excludeShowLoginTypes,callback:function(t){e.$set(e.dialogCheck_form,"excludeShowLoginTypes",t)},expression:"dialogCheck_form.excludeShowLoginTypes"}},[a("el-option",{attrs:{label:e.$t("AccountType.ClassicAccount"),value:"1"}}),a("el-option",{attrs:{label:e.$t("AccountType.SeniorAccount"),value:"2"}}),a("el-option",{attrs:{label:e.$t("AccountType.AgencyAccount"),value:"3"}}),a("el-option",{attrs:{label:e.$t("AccountType.SpeedAccount"),value:"5"}}),a("el-option",{attrs:{label:e.$t("AccountType.NewSpeedAccount"),value:"6"}})],1)],1)],1):e._e(),8==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"",label:e.$t("Label.State")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.pammManagerValid,callback:function(t){e.$set(e.dialogCheck_form,"pammManagerValid",t)},expression:"dialogCheck_form.pammManagerValid"}},[a("el-option",{attrs:{label:e.$t("Btn.No"),value:0}}),a("el-option",{attrs:{label:e.$t("Btn.Yes"),value:1}})],1)],1):e._e(),10==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"",label:e.$t("Label.State")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.pammValid,callback:function(t){e.$set(e.dialogCheck_form,"pammValid",t)},expression:"dialogCheck_form.pammValid"}},[a("el-option",{attrs:{label:e.$t("Btn.No"),value:0}}),a("el-option",{attrs:{label:e.$t("Btn.Yes"),value:1}})],1)],1):e._e(),9==e.dialogCheck_form.hideType?a("el-form-item",{attrs:{prop:"closeFunctions",label:e.$t("news_add_field.Label.CloseFunction")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",multiple:"",clearable:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.closeFunctions,callback:function(t){e.$set(e.dialogCheck_form,"closeFunctions",t)},expression:"dialogCheck_form.closeFunctions"}},[a("el-option",{attrs:{label:e.$t("Enter_info.type_dynamic9"),value:"5"}})],1)],1):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.toVerified()}}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancel}})],1)],1)]),a("el-dialog",{attrs:{title:e.dialogCheckTit,visible:e.dialogCheck1,center:"","close-on-click-modal":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck1=t}}},[a("div",{staticClass:"dia-content"},[a("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:e.dialogCheck_form1,rules:e.rules,"label-width":"190px"}},[a("el-form-item",{attrs:{prop:"",label:e.$t("Label.AgentNumber")+":"}},[e._v(" "+e._s(e.dialogCheck_form1.ibNo)+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$t("Label.AttributionNumber")+":"}},[e._v(" "+e._s(e.dialogCheck_form1.pIbNo)+" ")]),a("el-form-item",{attrs:{prop:"",label:""}},[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("el-input",{staticClass:"crm-border-radius-no",attrs:{placeholder:e.$t("Placeholder.Input"),size:"small"},model:{value:e.dialogCheck_form.newIb,callback:function(t){e.$set(e.dialogCheck_form,"newIb","string"===typeof t?t.trim():t)},expression:"dialogCheck_form.newIb"}}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Search",expression:"'Btn.Search'"}],staticClass:"dialogCheckSearch crm-cursor crm_state_blue",on:{click:function(t){return e.searchIbTreeSearch(e.dialogCheck_form.newIb)}}})],1)]),a("el-form-item",{attrs:{prop:"",label:e.$t("Label.NewAttributionNumber")+":"}},[a("el-cascader",{staticClass:"crm_search_down",attrs:{props:e.props,options:e.agentId_options,placeholder:e.$t("Placeholder.Choose"),size:"small"},on:{"expand-change":e.handleItemChange},scopedSlots:e._u([{key:"default",fn:function(t){t.node;var o=t.data;return[a("div",[a("span",[e._v(e._s(o.label))]),o.name?a("span",[e._v(" - "+e._s(o.name)+" ")]):e._e()])]}}]),model:{value:e.dialogCheck_form1.agentId,callback:function(t){e.$set(e.dialogCheck_form1,"agentId",t)},expression:"dialogCheck_form1.agentId"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.toVerified()}}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancel}})],1)],1)]),a("el-dialog",{attrs:{title:e.$t("R-Agent-Level"),visible:e.dialogCheck1level,center:"","close-on-click-modal":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck1level=t}}},[a("div",{staticClass:"dia-content"},[a("el-table",{key:e.indexLeval,staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.agentId_level,stripe:"","row-key":"id",lazy:"",load:e.load,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{prop:"",label:"CID"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.cId||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",label:e.$i18n.t("Label.AgentNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.ibNo||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",label:e.$i18n.t("Label.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name||"--")+" ")]}}])})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){e.dialogCheck1level=!1}}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(t){e.dialogCheck1level=!1}}})],1)],1)]),a("detailed-info-cid",{attrs:{dialogInfoCid:e.dialogInfoCid,formInfo:e.formInfo},on:{close:e.close}}),e.dialogInfoCid?a("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDia}}):e._e(),a("detailed-info-ibNo",{attrs:{dialogInfoIbNo:e.dialogInfoPIbNo,formInfo:e.formInfoPib},on:{close:e.close}}),e.dialogInfoPIbNo?a("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDia}}):e._e()],1)},i=[],r=(a("4160"),a("b0c0"),a("d3b7"),a("ac1f"),a("3ca3"),a("841c"),a("1276"),a("159b"),a("ddb0"),a("2b3d"),a("53ca")),n=a("5530"),l=(a("96cf"),a("1da1")),s=a("bc3a"),c=a.n(s),d=a("5217"),m=a("f121"),p=a.n(m),u=a("2d59"),h=a("3a82"),g=p.a.Code,f={name:"Agent",inject:["reload"],components:{DetailedInfoCid:u["a"],DetailedInfoIbNo:h["a"]},data:function(){return{flag:!1,pictLoading:!1,mock_tableData:[],search:{tag:1,cId:"",email:"",ibNo:"",name:"",salesNo:"",date:[],startDate:"",endDate:""},tag_options:[{name:this.$i18n.t("Web_info.All"),id:" "},{name:this.$i18n.t("Web_info.Announcement"),id:"1"},{name:this.$i18n.t("Web_info.Notice"),id:"2"},{name:this.$i18n.t("Web_info.Announcement"),id:"3"},{name:this.$i18n.t("Web_info.Notice"),id:"4"}],dialogInfo:!1,dialogInfoCid:!1,dialogInfoPIbNo:!1,infoType:"",formInfo:{},formInfoPib:{},groupType_options:{},value:null,agentId_options:[],props:{value:"value",children:"children",checkStrictly:!0},child:[],dialogCheck1:!1,dialogCheck_form1:{agentId:[]},dialogCheck:!1,dialogCheck_form:{},dialogCheckTit:"",dialogCheck1level:!1,agentId_level:[],indexLeval:0,pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},rules:{amount:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],type:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}],balanceType:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}],comment:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}]}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{selectChange:function(){this.$forceUpdate()},handleCommand:function(e){"editor"==e.type?(this.dialogInfoTradingAdd=!0,this.editor=1,this.btn=1):"delete"==e.type?this.delete(e.id):"balance"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheck=!0,this.dialogCheckTit=this.$i18n.t("Customer_info.Agent.Title"),this.dialogCheck_form.hideType=0,this.dialogCheck_form.agentId=e.row.id,this.dialogCheck_form.ibNo=e.row.ibNo):"hide"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheck=!0,this.dialogCheckTit=this.$i18n.t("R-Agent-Hide"),this.dialogCheck_form.hideType=1,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.hide=e.row.hide,this.dialogCheck_form.ibNo=e.row.ibNo):"commission"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheck=!0,this.dialogCheckTit=this.$i18n.t("R-Agent-Commission"),this.dialogCheck_form.hideType=2,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.commissionApproval=e.row.commissionApproval,this.dialogCheck_form.ibNo=e.row.ibNo):"Rebate"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheckTit=this.$i18n.t("R-Agent-Rebate"),this.dialogCheck_form.id=e.row.id,this.searchPoint(this.dialogCheck_form.id,e.row.ibNo)):"Adjustment"==e.type?(this.searchIbTree(),this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheckTit=this.$i18n.t("R-Agent-AdjustmentAttribution"),this.dialogCheck_form.hideType=4,this.dialogCheck1=!0,this.dialogCheck_form1.id=e.row.id,this.dialogCheck_form1.ibNo=e.row.ibNo,this.dialogCheck_form1.pIbNo=e.row.pIbNo):"frozen"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheck=!0,this.dialogCheckTit=this.$i18n.t("R-Agent-Frozen"),this.dialogCheck_form.hideType=5,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.ibNo=e.row.ibNo):"notice"==e.type?this.$router.push({path:"/web/notice",query:{cid:e.row.cId}}).catch((function(e){return e})):"group"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheckTit=this.$i18n.t("R-Agent-GroupSettings"),this.dialogCheck_form.hideType=6,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.ibNo=e.row.ibNo,this.dialogCheck_form.selectLoginTypes=e.row.selectLoginTypes,this.dialogCheck_form.excludeLoginTypes=e.row.excludeLoginTypes,this.dialogCheck_form.selectGroupType=e.row.selectGroupType,this.dialogCheck_form.defaultGroupType=e.row.defaultGroupType,this.customGroupType()):"account"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheckTit=this.$i18n.t("R-Agent-AccountSetup"),this.dialogCheck_form.hideType=7,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.ibNo=e.row.ibNo,this.dialogCheck_form.excludeShowLoginTypes=e.row.excludeShowLoginTypes,this.dialogCheck=!0):"pammManagerValid"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheck=!0,this.dialogCheckTit=this.$i18n.t("R-Agent-pammManagerValid"),this.dialogCheck_form.hideType=8,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.pammManagerValid=e.row.pammManagerValid,this.dialogCheck_form.ibNo=e.row.ibNo):"CloseFunction"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheck=!0,this.dialogCheckTit=this.$i18n.t("R-Agent-CloseFunction"),this.dialogCheck_form.hideType=9,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.closeFunctions=e.row.closeFunctions,this.dialogCheck_form.ibNo=e.row.ibNo):"PAMMValid"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck_form={},this.dialogCheck=!0,this.dialogCheckTit=this.$i18n.t("R-Agent-PAMMValid"),this.dialogCheck_form.hideType=10,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.pammValid=e.row.pammValid,this.dialogCheck_form.ibNo=e.row.ibNo):"Level"==e.type&&(this.agentId_level=[],this.dialogCheck1level=!0,this.searchIbTreeLevel(e.row.id))},load:function(e,t,a){var o=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].ibTree({pid:e.id});case 2:i=t.sent,i.code==g.StatusOK?null!=i.data&&(i.data.forEach((function(e){e.children=[],e.hasChildren=!0})),a(i.data||[])):(o.$pigeon.MessageError(i.msg),a([]));case 4:case"end":return t.stop()}}),t)})))()},searchIbTreeLevel:function(e){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,d["a"].ibTree({pid:e});case 2:o=a.sent,o.code==g.StatusOK?null!=o.data&&(t.agentId_level=o.data||[],t.agentId_level.forEach((function(e){e.children=[],e.hasChildren=!0}))):t.$pigeon.MessageError(o.msg);case 4:case"end":return a.stop()}}),a)})))()},toVerified:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["dialogCheck_form"].validate(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(a){var o,i,r,l,s,c,m,p,u,h,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=83;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:if(1!=t.dialogCheck_form.hideType){e.next=13;break}return e.next=9,d["a"].hideAction(Object(n["a"])({},t.dialogCheck_form));case 9:o=e.sent,o.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(o.msg)),e.next=81;break;case 13:if(0!=t.dialogCheck_form.hideType){e.next=20;break}return e.next=16,d["a"].agentAction(Object(n["a"])({},t.dialogCheck_form));case 16:i=e.sent,i.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(i.msg)),e.next=81;break;case 20:if(2!=t.dialogCheck_form.hideType){e.next=27;break}return e.next=23,d["a"].commissionAction(Object(n["a"])({},t.dialogCheck_form));case 23:r=e.sent,r.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(r.msg)),e.next=81;break;case 27:if(3!=t.dialogCheck_form.hideType){e.next=32;break}t.cancel(),t.flag=!1,e.next=81;break;case 32:if(4!=t.dialogCheck_form.hideType){e.next=41;break}return l=null,t.dialogCheck_form1.agentId&&t.dialogCheck_form1.agentId.length&&(l=t.dialogCheck_form1.agentId[t.dialogCheck_form1.agentId.length-1]),e.next=37,d["a"].AdjustmentAttributionAgent({agentId:t.dialogCheck_form1.id,newAgentId:l});case 37:s=e.sent,s.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(s.msg)),e.next=81;break;case 41:if(5!=t.dialogCheck_form.hideType){e.next=48;break}return e.next=44,d["a"].agentBalanceFrozenAdd({agentId:t.dialogCheck_form.id,amount:t.dialogCheck_form.amount,type:t.dialogCheck_form.type});case 44:c=e.sent,c.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(c.msg)),e.next=81;break;case 48:if(6!=t.dialogCheck_form.hideType){e.next=55;break}return e.next=51,d["a"].ibGroup({id:t.dialogCheck_form.id,selectLoginTypes:t.dialogCheck_form.selectLoginTypes||null,excludeLoginTypes:t.dialogCheck_form.excludeLoginTypes||null,selectGroupType:t.dialogCheck_form.selectGroupType||null,defaultGroupType:t.dialogCheck_form.defaultGroupType||null});case 51:m=e.sent,m.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(m.msg)),e.next=81;break;case 55:if(7!=t.dialogCheck_form.hideType){e.next=62;break}return e.next=58,d["a"].ibAccount({id:t.dialogCheck_form.id,excludeShowLoginTypes:t.dialogCheck_form.excludeShowLoginTypes||null});case 58:p=e.sent,p.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(p.msg)),e.next=81;break;case 62:if(8!=t.dialogCheck_form.hideType){e.next=69;break}return e.next=65,d["a"].ibUpdatePammManagerValid(Object(n["a"])({},t.dialogCheck_form));case 65:u=e.sent,u.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(u.msg)),e.next=81;break;case 69:if(9!=t.dialogCheck_form.hideType){e.next=76;break}return e.next=72,d["a"].ibUpdateCloseFunctions(Object(n["a"])({},t.dialogCheck_form));case 72:h=e.sent,h.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(h.msg)),e.next=81;break;case 76:if(10!=t.dialogCheck_form.hideType){e.next=81;break}return e.next=79,d["a"].ibUpdatePAMMValid(Object(n["a"])({},t.dialogCheck_form));case 79:f=e.sent,f.code==g.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.ModifySuccess")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(f.msg));case 81:e.next=84;break;case 83:return e.abrupt("return",!1);case 84: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.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),4==this.dialogCheck_form.hideType&&this.reload()},handleItemChange:function(e){this.child=this.agentId_options;for(var t=0;t<e.length;t++)this.tree(e[t],this.child)},tree:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t,a){var o,i,n,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=regeneratorRuntime.mark((function e(o){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(null!=a[o].children&&a[o].children.length>0&&a[o].value==t)){e.next=3;break}return l.child=a[o].children,e.abrupt("return",{v:void 0});case 3:if(a[o].value!=t){e.next=15;break}return e.next=6,d["a"].ibTree({pid:t});case 6:if(i=e.sent,i.code!=g.StatusOK){e.next=14;break}if(null==i.data){e.next=12;break}return i.data.forEach((function(e){if(e.ibNo){var t={};t.value=e.id,t.label=e.ibNo,t.name=e.name,t.children=[],a[o].children.push(t)}})),l.child=a[o].children,e.abrupt("return",{v:void 0});case 12:e.next=15;break;case 14:l.$pigeon.MessageError(i.msg);case 15:case"end":return e.stop()}}),e)})),i=0;case 2:if(!(i<a.length)){e.next=10;break}return e.delegateYield(o(i),"t0",4);case 4:if(n=e.t0,"object"!==Object(r["a"])(n)){e.next=7;break}return e.abrupt("return",n.v);case 7:i++,e.next=2;break;case 10:case"end":return e.stop()}}),e)})));function t(t,a){return e.apply(this,arguments)}return t}(),searchIbTree:function(){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].ibTree({pid:0});case 2:a=t.sent,a.code==g.StatusOK?null!=a.data&&a.data.forEach((function(t){if(t.ibNo){var a={};a.value=t.id,a.label=t.ibNo,a.name=t.name,a.children=[],e.agentId_options.push(a)}})):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},searchIbTreeSearch:function(e){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,d["a"].ibTreeSearch({ibNo:e});case 2:o=a.sent,o.code==g.StatusOK?(null!=o.data&&o.data.forEach((function(e){if(e.ibNo){var a={};a.value=e.id,a.label=e.ibNo,a.name=e.name,a.children=[],t.agentId_options.push(a)}})),t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess"))):t.$pigeon.MessageError(o.msg);case 4:case"end":return a.stop()}}),a)})))()},closeDiaAdd:function(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd:function(e){this.dialogInfoTradingAdd=e},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(l["a"])(regeneratorRuntime.mark((function a(){var o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,d["a"].cidRealSingle({id:e});case 2:o=a.sent,o.code==g.StatusOK?(t.formInfo=o.data,t.dialogInfoCid=!0):t.$pigeon.MessageError(o.msg);case 4:case"end":return a.stop()}}),a)})))()},searchSinglePIbNo:function(e){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,d["a"].pIbNoRealSingle({ibNo:e});case 2:o=a.sent,o.code==g.StatusOK?(t.formInfoPib=o.data,t.dialogInfoPIbNo=!0):t.$pigeon.MessageError(o.msg);case 4:case"end":return a.stop()}}),a)})))()},searchPoint:function(e,t){var a=this;return Object(l["a"])(regeneratorRuntime.mark((function o(){var i;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,d["a"].ibPoint({agentId:e});case 2:i=o.sent,i.code==g.StatusOK?(a.dialogCheck_form=i.data,a.dialogCheck_form.ibNo=t,a.dialogCheck_form.hideType=3,a.dialogCheck=!0):a.$pigeon.MessageError(i.msg);case 4:case"end":return o.stop()}}),o)})))()},customGroupType:function(){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].customGroupTypeList({});case 2:a=t.sent,a.code==g.StatusOK?(e.groupType_options=a.data,e.dialogCheck=!0):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},delete:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(l["a"])(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d["a"].agentDelete({id:t});case 2:o=e.sent,o.code==g.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(o.msg);case 4:case"end":return e.stop()}}),e)}))),(function(){}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),chooseLang:function(e){this.search.platform=e},exportAgents:function(){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var a,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.search.startDate&&e.search.endDate){t.next=3;break}return e.$pigeon.MessageWarning(e.$i18n.t("vaildate.date.empty")),t.abrupt("return");case 3:a=e.search.startDate.split("-")[0]+e.search.startDate.split("-")[1]+e.search.startDate.split("-")[2],o=e.search.endDate.split("-")[0]+e.search.endDate.split("-")[1]+e.search.endDate.split("-")[2],i="/ib/search/list/export?startDate="+a+"&endDate="+o+"&email="+(e.search.email?e.search.email:"")+"&ibNo="+(e.search.ibNo?e.search.ibNo:"")+"&cId="+(e.search.cId?e.search.cId:"")+"&name="+(e.search.name?e.search.name:"")+"&salesNo="+(e.search.salesNo?e.search.salesNo:""),c.a.get(i,{responseType:"blob"}).then((function(t){if(t.status==g.StatusOK)if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t.data,"Download.xlsx");else{var a=window.URL.createObjectURL(t.data),o=document.createElement("a");document.body.appendChild(o);var i=t.headers["content-disposition"]?t.headers["content-disposition"].split(";")[1].split("=")[1]:"Download.xlsx";o.href=a,o.download=i,o.click(),window.URL.revokeObjectURL(a)}else e.$pigeon.MessageError(e.$i18n.t("Msg.Download"))}));case 7:case"end":return t.stop()}}),t)})))()},searchFunc:function(){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["R-Agent-Search"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=8,d["a"].agentList(Object(n["a"])(Object(n["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:a=t.sent,a.code==g.StatusOK?(a.data?(e.mock_tableData=a.data,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess"))):e.mock_tableData=[],null!=a.page?(e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):null==a.page&&(e.pagerInfo.rowTotal=0),e.pictLoading=!1):(e.$pigeon.MessageError(a.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=3,o=(new Date).getTimezoneOffset(),i=(new Date).getTime(),r=new Date(i+60*o*1e3+60*a*60*1e3),n=r.getFullYear(),l=r.getMonth()+1,s=r.getDate();l<10&&(l="0"+l),s<10&&(s="0"+s),e=n+"-"+l+"-01";var c=r.getMonth(),d=++c,m=new Date(r.getFullYear(),d,1),p=864e5,u=new Date(m-p),h=u.getDate();h<10&&(h="0"+h),t=n+"-"+l+"-"+h,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.cId="",this.search.email="",this.search.ibNo="",this.search.name="",this.search.salesNo=""}}},_=f,b=(a("7930"),a("8cd0"),a("2877")),C=Object(b["a"])(_,o,i,!1,null,"06002ea7",null);t["default"]=C.exports},7930:function(e,t,a){"use strict";a("7def")},"7def":function(e,t,a){},"89d0":function(e,t,a){"use strict";a("ea8d")},"8cd0":function(e,t,a){"use strict";a("2034")},"9ce4":function(e,t,a){},c7cf:function(e,t,a){"use strict";a("9ce4")},ea8d:function(e,t,a){}}]);
|