documentary-report.fbc7471a.js 29 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["documentary-report"],{"1c45":function(t,e,a){"use strict";var s=a("ff2d");class l extends s["a"]{constructor(){super()}async MamSubsApprove(t={}){let e=await this.postAll("Host90","/mam/subs/approve",t);return e}async MamSubsApply(t={}){let e=await this.postAll("Host90","/mam/subs/apply",t);return e}async MamSubsInfo(t={}){let e=await this.postAll("Host90","/mam/subs/info",t);return e}async MamLeverageApplyAdd(t={}){let e=await this.postAll("Host90","/mam/leverage/apply/add",t);return e}async MamPwdResetAdd(t={}){let e=await this.postAll("Host90","/mam/pwd/reset/add",t);return e}async MamRepwdAdd(t={}){let e=await this.postAll("Host90","/mam/repwd/add",t);return e}async ChangeInvestorOassword(t={}){let e=await this.postAll("Host80","/account/settings/change/investor/password/add",t);return e}async MamList(t={}){let e=await this.postAll("Host90","/mam/list",t);return e}async MamApplyApprove(t={}){let e=await this.postAll("Host90","/mam/apply/approve",t);return e}async MamApplyAdd(t={}){let e=await this.postAll("Host90","/mam/apply/add",t);return e}async MamApplyData(t={}){let e=await this.postAll("Host90","/mam/apply/data",t);return e}async excludeShowLogin(t={}){let e=await this.postAll("Host80","/account/apply/exclude/show/login/type",t);return e}async TradePending(t={}){let e=await this.postAll("Host90","/trade/pending",t);return e}async TradePosition(t={}){let e=await this.postAll("Host90","/trade/position",t);return e}async TradeHistory(t={}){let e=await this.postAll("Host90","/trade/sharding/history",t);return e}async agentBalanceTransfer(t={}){let e=await this.postAll("Host90","/agent/balance/transfer/add/imd",t);return e}async agentBalanceTransferFrom(t={}){let e=await this.postAll("Host90","/agent/balance/transfer/from",t);return e}async agentTransferToList(t={}){let e=await this.postAll("Host90","/account/directAccount",t);return e}async CommissionApplyRecording(t={}){let e=await this.postAll("Host90","/custom/commission/apply/list",t);return e}async agentBalanceTransferRecording(t={}){let e=await this.postAll("Host90","/agent/balance/transfer/search/list",t);return e}async mamSubsApplyRecording(t={}){let e=await this.postAll("Host90","/mam/subs/apply/list",t);return e}async IbData(t={}){let e=await this.postAll("Host90","/ib/data",t);return e}async IbSubs(t={}){let e=await this.postAll("Host90","/ib/subs",t);return e}async accountSubs(t={}){let e=await this.postAll("Host90","/account/list",t);return e}async customerSubs(t={}){let e=await this.postAll("Host90","/custom/info/belongs",t);return e}async customerSubsList(t={}){let e=await this.postAll("Host90","/custom/info/belongs/list",t);return e}async customerSubsStatistics(t={}){let e=await this.postAll("Host90","/custom/info/belongs/statistics",t);return e}async customCommissionApply(t={}){let e=await this.postAll("Host90","/custom/commission/apply/add",t);return e}async customCommissionPoint(t={}){let e=await this.postAll("Host90","/custom/info/update/point",t);return e}async accountBelongChange(t={}){let e=await this.postAll("Host90","/account/belong/change/add",t);return e}async accountBelongChangeIb(t={}){let e=await this.postAll("Host90","/account/belong/change/agents",t);return e}async sysPointList(t={}){let e=await this.postAll("Host90","/sys/point/list",t);return e}async sysPointDelete(t={}){let e=await this.postAll("Host90","/sys/point/delete",t);return e}async sysPointUpdate(t={}){let e=await this.postAll("Host90","/sys/point/update",t);return e}async sysPointSingle(t={}){let e=await this.postAll("Host90","/sys/point/single",t);return e}async AgentPointChangeApply(t={}){let e=await this.postAll("Host90","/agent/point/change/apply",t);return e}async AgentPointChangeData(t={}){let e=await this.postAll("Host90","/agent/point/change/data",t);return e}async SysPointPoints(t={}){let e=await this.postAll("Host90","/sys/point/points",t);return e}async SysCentValid(t={}){let e=await this.postAll("Host90","/sys/point/centValid",t);return e}async SysPointAdd(t={}){let e=await this.postAll("Host90","/sys/point/add",t);return e}async getChartInfo(t={}){let e=await this.postAll("Host80","/index/chart/list",t);return e}async tradeDw(t={}){let e=await this.postAll("Host90","/trade/dw",t);return e}async tradeAccount(t={}){let e=await this.postAll("Host90","/trade/account",t);return e}async tradeAgentCommission(t={}){let e="/trade/agent/commission/vn",a=await this.postAll("Host90",e,t);return a}async tradeIb(t={}){let e=await this.postAll("Host90","/ib/report/new",t);return e}async tradePendingHistory(t={}){let e=await this.postAll("Host90","/trade/pending/history",t);return e}async tradePending(t={}){let e=await this.postAll("Host90","/trade/pending",t);return e}async tradePosition(t={}){let e=await this.postAll("Host90","/trade/position",t);return e}async tradeHistory(t={}){let e=await this.postAll("Host90","/trade/sharding/history",t);return e}async ibReportBalance(t={}){let e=await this.postAll("Host90","/ib/report/balance",t);return e}async tradeSymbolCategory(t={}){let e=await this.postAll("Host90","/trade/symbol/category",t);return e}async mamApplyList(t={}){let e=await this.postAll("Host90","/mam/apply/list",t);return e}async mamLeverageApplyList(t={}){let e=await this.postAll("Host90","/mam/leverage/apply/list",t);return e}async agentBalanceTransferList(t={}){let e=await this.postAll("Host90","/agent/balance/transfer/search/list",t);return e}async customCommissionApplyList(t={}){let e=await this.postAll("Host90","/custom/commission/apply/list",t);return e}async agentBelongChangeList(t={}){let e=await this.postAll("Host90","/account/belong/change/search/list",t);return e}async agentPointChangeList(t={}){let e=await this.postAll("Host90","/agent/point/change/list",t);return e}async agentWithdrawList(t={}){let e=await this.postAll("Host90","/finance/agent/withdraw/search/list",t);return e}async CustomRecordAccount(t={}){let e=await this.postAll("Host80","/custom/apply/list",t);return e}async reasonsRefusalList(t={}){let e=await this.postAll("Host80","/reasons/refusal/list",t);return e}async ibTree(t={}){let e=await this.postAll("Host90","/ib/tree",t);return e}async customUpdateIbInvalid(t={}){let e=await this.postAll("Host90","/custom/info/update/ibInvalid",t);return e}async CustomDropdown(t={}){let e=await this.postAll("Host80","/account/dropdown",t);return e}async accountCustomList(t={}){let e=await this.postAll("Host90","/account/custom/list",t);return e}async agentTransferApply(t={}){let e=await this.postAll("Host04","/agent/transfer/apply",t);return e}async agentTransCtaferApply(t={}){let e=await this.postAll("Host04","/agent/transfer/cta/apply",t);return e}async agentTransferList(t={}){let e=await this.postAll("Host04","/agent/transfer/list",t);return e}async mamApplyPammManagerValid(t={}){let e=await this.postAll("Host90","/mam/apply/pammManagerValid",t);return e}async mamApplyPammManagerLogins(t={}){let e=await this.postAll("Host90","/mam/apply/pamm/logins",t);return e}async mamApplyPammManagerAdd(t={}){let e=await this.postAll("Host90","/mam/apply/add",t);return e}async withdrawCancel(t={}){let e=await this.postAll("Host90","/finance/agent/withdraw/cancel",t);return e}async applyPercent(t={}){let e=await this.postAll("Host90","/pm/percent/change",t);return e}async followDealAgentSearchList(t={}){let e=await this.postAll("Host87","/follow/deal/agent/search/list",t);return e}async followDealAgentUpdate(t={}){let e=await this.postAll("Host87","/follow/deal/agent/update",t);return e}async customUpdateFollowPermissionDisplay(t={}){let e=await this.postAll("Host90","/custom/info/update/follow/permissionDisplay",t);return e}async marketAgentLinkList(t={}){let e=await this.postAll("Host90","/market/agent/link/list",t);return e}async pammListSubs(t={}){let e=await this.postAll("Host90","/pamm/subs",t);return e}async customLink(t={}){let e=await this.postAll("Host90","/custom/register/link/hash",t);return e}async customLinkCode(t={}){let e=await this.postAll("Host90","/custom/register/link/code",t);return e}async customRegisterLinkClue(t={}){let e=await this.postAll("Host90","/custom/register/link/clue",t);return e}async IbAgentSetting(t={}){let e=await this.postAll("Host90","/ib/agent/setting",t);return e}async loginTypeList(t={}){let e=await this.postAll("Host80","/login/type/search/list",t);return e}async tradeSalesHidden(t={}){let e=await this.postAll("Host90","/trade/hidden/rebate",t);return e}async getWebsdkLink1(t={}){let e=await this.postAll("Host04","/agent/withdraw/getWebsdkLink",t);return e}async agentHiddenPointSearchSingle(t={}){let e=await this.postAll("Host90","/agent/hidden/point/search/single",t);return e}async agentHiddenPointAdd(t={}){let e=await this.postAll("Host90","/agent/hidden/point/add",t);return e}async ibTreeForTransfer(t={}){let e=await this.postAll("Host90","/ib/tree",t);return e}async agentBalanceCommissionAdd(t={}){let e=await this.postAll("Host90","/agent/balance/commission/add",t);return e}async agentBalanceCommissionSearchList(t={}){let e=await this.postAll("Host90","/agent/balance/commission/search/list",t);return e}async getVietnamPoints(t={}){let e=await this.postAll("Host90","/agent/point/vn/points",t);return e}async saveVietnamPoints(t={}){let e=await this.postAll("Host90","/agent/point/vn/save",t);return e}async customLinkAdd(t={}){let e=await this.postAll("Host90","/agent/custom/link/add",t);return e}async customLinkSearchList(t={}){let e=await this.postAll("Host90","/agent/custom/link/search/list",t);return e}async customLinkTypes(t={}){let e=await this.postAll("Host90","/custom/register/link/types",t);return e}async agentApplyAddPoint(t={}){let e=await this.postAll("Host80","/agent/apply/add/point",t);return e}async realCustomerUpdatePoint(t={}){let e=await this.postAll("Host90","/custom/info/update/point",t);return e}async getLoginPoint(t={}){let e=await this.postAll("Host90","/custom/info/login/point",t);return e}async getRegisterLinkTypes(t={}){let e=await this.postAll("Host90","/custom/register/link/types",t);return e}}e["a"]=new l},"297b":function(t,e,a){"use strict";a("83a7")},"325c":function(t,e,a){"use strict";a("5e0f")},"5e0f":function(t,e,a){},"7b24":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],attrs:{id:"documentary_report","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[e("div",{staticClass:"crm-title-box"},[e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Home.page_ib.item3",expression:"'Home.page_ib.item3'"}]})]),e("el-select",{staticClass:"crm_search_down_tit",attrs:{size:"small",placeholder:t.$t("placeholder.choose")},model:{value:t.search.type,callback:function(e){t.$set(t.search,"type",e)},expression:"search.type"}},[e("el-option",{attrs:{label:t.$t("Documentary.Report.item1"),value:1}})],1)],1),e("div",{staticClass:"main-content"},[e("div",{staticClass:"search crm_search"},[e("div",{staticClass:"search-btn"},[e("el-form",{ref:"search",attrs:{"label-position":"top",model:t.search,"label-width":""}},[e("el-form-item",{staticStyle:{"margin-right":"10px"}},[e("el-input",{staticClass:"crm-border-radius-no",attrs:{size:"small",placeholder:t.$t("Documentary.TundManagement.item11")},model:{value:t.search.dealLogin,callback:function(e){t.$set(t.search,"dealLogin","string"===typeof e?e.trim():e)},expression:"search.dealLogin"}})],1),e("el-form-item",{staticStyle:{"margin-right":"10px"}},[e("el-input",{staticClass:"crm-border-radius-no",attrs:{size:"small",placeholder:t.$t("Documentary.console.item28")},model:{value:t.search.followLogin,callback:function(e){t.$set(t.search,"followLogin","string"===typeof e?e.trim():e)},expression:"search.followLogin"}})],1),e("el-form-item",{staticStyle:{"margin-right":"10px"},attrs:{prop:"agentId"}},[e("el-cascader",{staticClass:"crm_search_down_special crm-border-radius-no crm_select_icon",attrs:{props:t.props,options:t.agentId_options,placeholder:t.$t("State.All"),size:"small"},on:{"expand-change":t.handleItemChange},scopedSlots:t._u([{key:"default",fn:function({node:a,data:s}){return[e("div",[e("span",[t._v(t._s(s.label))]),s.name?e("span",[t._v(" - "+t._s(s.name)+" ")]):t._e()])]}}]),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),e("el-form-item",{attrs:{prop:"date"}},[e("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":t.$t("placeholder.Start"),"end-placeholder":t.$t("placeholder.End")},model:{value:t.search.date,callback:function(e){t.$set(t.search,"date",e)},expression:"search.date"}})],1),e("el-form-item",[e("el-button",{staticClass:"report",staticStyle:{"margin-left":"10px"},attrs:{size:"small"},on:{click:t.toSearch}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Report.Btn",expression:"'Ib.Report.Btn'"}]})])],1)],1)],1)]),e("div",{staticClass:"tab"},[1==t.search.type?e("el-table",{key:"1",staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:t.mock_tableData,"show-summary":"","summary-method":t.getSummaries1,stripe:""}},[e("el-table-column",{attrs:{prop:"",align:"center",width:t.langs?"100":"",label:t.$i18n.t("Documentary.tradingCenter.item18")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("NumberDesensitization")(e.row.dealLogin))+" ")]}}],null,!1,3190573681)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.console.item28")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.followLogin||"--")+" ")]}}],null,!1,192131727)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.Report.item4")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("NumberFormat")(e.row.dealCommission||"0"))+" ")]}}],null,!1,3361697237)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.Report.item5")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.dealRatio||"0%")+" ")]}}],null,!1,3758470629)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.Report.item8")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.groupCurrency1(e.row.currency))+t._s(t._f("NumberFormat")(e.row.agentCommission||"0"))+" ")]}}],null,!1,3023508457)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.Report.item7")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.agentRatio||"0%")+" ")]}}],null,!1,122021680)}),e("el-table-column",{attrs:{align:"center",label:t.$t("Documentary.Report.item17")}},[e("el-table-column",{attrs:{align:"center",label:t.$t("Documentary.Report.item18")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"sp-div-tab"},[t._v(" "+t._s(t._f("NumberFormat")(a.row.startEquity||"0"))+" ")]),e("div",{staticClass:"sp-div-tab-b"},[t._v(" "+t._s(t._f("NumberFormat")(a.row.endEquity||"0"))+" ")])]}}],null,!1,514051316)})],1)],1):t._e(),2==t.search.type?e("el-table",{key:"2",staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:t.mock_tableData,"show-summary":"","summary-method":t.getSummaries2,stripe:""}},[e("el-table-column",{attrs:{prop:"",align:"center",width:t.langs?"100":"",label:t.$i18n.t("Documentary.tradingCenter.item18")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.ibNo||"--")+" ")]}}],null,!1,3952706871)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.console.item28")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.login||"--")+" ")]}}],null,!1,2055636990)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Label.OrderNumber")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.groupTypeName||"--")+" ")]}}],null,!1,1921744253)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Label.Platform")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.symbol||"--")+" ")]}}],null,!1,754518299)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Label.Type")},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._f("NumberFormat")(a.row.volume||"0"))+"/"),e("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Lot",expression:"'Label.Lot'"}]})]}}],null,!1,718874353)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Label.Varieties")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.groupCurrency1(e.row.currency))+t._s(t._f("NumberFormat")(e.row.rebateAmount||"0"))+" ")]}}],null,!1,1672158324)}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.OpenPrice")}},[e("el-table-column",{attrs:{align:"center",label:t.$t("Label.ClosePrice")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(t._s(a.row.addTime||"--"))]),e("div",[t._v(t._s(a.row.addTime||"--"))])]}}],null,!1,2147964052)})],1),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.OpenTime")}},[e("el-table-column",{attrs:{align:"center",label:t.$t("Label.CloseTime")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(t._s(a.row.addTime||"--"))]),e("div",[t._v(t._s(a.row.addTime||"--"))])]}}],null,!1,2147964052)})],1),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.EP")}},[e("el-table-column",{attrs:{align:"center",label:t.$t("Label.EL")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(t._s(a.row.addTime||"--"))]),e("div",[t._v(t._s(a.row.addTime||"--"))])]}}],null,!1,2147964052)})],1),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.tradingCenter.item106")},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t.groupCurrency1(a.row.currency))+t._s(a.row.rebatePoint||"0")+"/"),e("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Lot",expression:"'Label.Lot'"}]})]}}],null,!1,3741536896)}),e("el-table-column",{attrs:{prop:"",align:"center",width:t.langs?"110":"",label:t.$i18n.t("Documentary.tradingCenter.item99")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.groupCurrency1(e.row.currency))+t._s(t._f("NumberFormat")(e.row.commissionAmount||"0"))+" ")]}}],null,!1,832332252)}),e("el-table-column",{attrs:{prop:"",align:"center",width:t.langs?"110":"",label:t.$i18n.t("Label.ProfitLoss")},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t.groupCurrency1(a.row.currency))+t._s(a.row.commissionPoint||"0")+"/"),e("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Lot",expression:"'Label.Lot'"}]})]}}],null,!1,576580840)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.tradingCenter.item107")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.openTime||"--")+" ")]}}],null,!1,817371356)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.tradingCenter.item108")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.closeTime||"--")+" ")]}}],null,!1,3948988318)}),e("el-table-column",{attrs:{prop:"",align:"center",label:t.$i18n.t("Documentary.tradingCenter.item109")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.closeTime||"--")+" ")]}}],null,!1,3948988318)})],1):t._e()],1),t.pagerInfo.rowTotal?e("div",{staticClass:"crm_pagination"},[e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":t.pagerInfo.row,total:t.pagerInfo.rowTotal},on:{"current-change":t.handleCurrentChange}})],1):t._e()])])},l=[],n=(a("14d9"),a("e9f5"),a("7d54"),a("a907")),o=a("1c45"),i=a("f121"),r=a.n(i);let{Code:c}=r.a;var u={name:"Report",data(){return{flag:!1,pictLoading:!1,mock_tableData:[],search:{type:1,agentId:"",followLogin:"",dealLogin:"",date:[],startDate:"",endDate:""},value:null,agentId_options:[{value:0,label:this.$i18n.t("news_add_field.IbReport.ALL")},{value:-1,label:this.$i18n.t("news_add_field.IbReport.DirectlyUnder")}],props:{value:"value",children:"children",checkStrictly:!0},child:[],combined:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{lang(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1400},langs(){return"en"==this.Session.Get("lang")}},methods:{groupCurrency(t){return"GBP"==t?": £":"USD"==t?": $":"EUR"==t?": €":"USC"==t?": ¢":": $"},groupCurrency1(t){return"GBP"==t?"£":"USD"==t?"$":"EUR"==t?"€":"USC"==t?"¢":"$"},NumberFormatAll(t){if("***"==t)return"***";if(isNaN(t))return 0;let e=t.toString();if(e.indexOf("-")>-1){e=e.split("-")[1];let a=e.split("."),s=a[0].length;if(s<3)return t;let l=0,n="";for(let t=s-3;t>=0;t-=3)n=a[0].substr(t,3)+(""==n?"":",")+n,l=t;return l>0&&(n=a[0].substr(0,l)+(""==n?"":",")+n),"-"+n+(1==a.length?"":"."+a[1])}{let a=e.split("."),s=a[0].length;if(s<3)return t;let l=0,n="";for(let t=s-3;t>=0;t-=3)n=a[0].substr(t,3)+(""==n?"":",")+n,l=t;return l>0&&(n=a[0].substr(0,l)+(""==n?"":",")+n),n+(1==a.length?"":"."+a[1])}},getSummaries1(){let t=[];return 0==Object.keys(this.combined).length||(t=[this.$i18n.t("Label.Total"),"",this.combined.dealCommission?this.NumberFormatAll(this.combined.dealCommission):0,"",this.combined.agentCommission?this.NumberFormatAll(this.combined.agentCommission):0,"",""]),t},getSummaries2(){let t=[];return 0==Object.keys(this.combined).length||(t=[this.$i18n.t("Label.Total"),"","",this.combined.deposit?this.NumberFormatAll(this.combined.deposit):0,this.combined.withdrawal?this.NumberFormatAll(this.combined.withdrawal):0,this.combined.credit?this.NumberFormatAll(this.combined.credit):0,""]),t},getDate(){let t,e,a=2,s=(new Date).getTimezoneOffset(),l=(new Date).getTime(),n=new Date(l+60*s*1e3+60*a*60*1e3),o=n.getFullYear(),i=n.getMonth()+1,r=n.getDate();i<10&&(i="0"+i),r<10&&(r="0"+r),t=o+"-"+i+"-01";let c=n.getMonth(),u=++c,p=new Date(n.getFullYear(),u,1),d=864e5,h=new Date(p-d),m=h.getDate();m<10&&(m="0"+m),e=o+"-"+i+"-"+m,this.search.date=[t,e]},async searchFunc(){if(!this.flag)if(this.flag=!0,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.type){let t=await n["a"].followReportCommission({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==c.StatusOK?(null!=t.sum?this.combined=t.sum:this.combined=[],null!=t.data?this.mock_tableData=t.data:this.mock_tableData=[],null!=t.page?(this.pagerInfo.rowTotal=t.page.rowTotal,this.pagerInfo.pageTotal=t.page.pageTotal):this.pagerInfo.rowTotal=0,this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.pictLoading=!1,this.flag=!1):(this.$pigeon.MessageError(t.msg),this.pictLoading=!1,this.mock_tableData=[],this.flag=!1)}else if(2==this.search.type){let t=await n["a"].followReportCommission({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==c.StatusOK?(null!=t.sum?this.combined=t.sum:this.combined=[],null!=t.data?this.mock_tableData=t.data:this.mock_tableData=[],null!=t.page?(this.pagerInfo.rowTotal=t.page.rowTotal,this.pagerInfo.pageTotal=t.page.pageTotal):this.pagerInfo.rowTotal=0,this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.pictLoading=!1,this.flag=!1):(this.$pigeon.MessageError(t.msg),this.pictLoading=!1,this.mock_tableData=[],this.flag=!1)}},toSearch(){this.pagerInfo.current=1,this.searchFunc()},handleItemChange(t){this.child=this.agentId_options;for(let e=0;e<t.length;e++)this.tree(t[e],this.child)},tree:async function(t,e){for(let a=0;a<e.length;a++){if(null!=e[a].children&&e[a].children.length>0&&e[a].value==t)return void(this.child=e[a].children);if(e[a].value==t){let s=await o["a"].ibTree({pid:t});if(s.code==c.StatusOK){if(null!=s.data)return s.data.forEach(t=>{if(t.ibNo){let s={};s.value=t.id,s.label=t.ibNo,s.name=t.name,s.children=[],e[a].children.push(s)}}),void(this.child=e[a].children)}else this.$pigeon.MessageError(s.msg)}}},async searchIbTree(){let t=await o["a"].ibTree({pid:0});t.code==c.StatusOK?null!=t.data&&t.data.forEach(t=>{if(t.ibNo){let e={};e.value=t.id,e.label=t.ibNo,e.name=t.name,e.children=[],this.agentId_options.push(e)}}):this.$pigeon.MessageError(t.msg)},handleSizeChange(t){this.pagerInfo.row=t,this.searchFunc()},handleCurrentChange(t){this.pagerInfo.current=t,this.searchFunc()}},mounted(){this.searchIbTree()},watch:{"search.type":function(t){this.pagerInfo.current=1,this.mock_tableData=[],this.pagerInfo.rowTotal=0,this.search={type:t,agentId:"",followLogin:"",dealLogin:"",date:[],startDate:"",endDate:""}},value:function(t){if(t){let e=t[t.length-1];this.search.agentId=e}}}},p=u,d=(a("325c"),a("297b"),a("2877")),h=Object(d["a"])(p,s,l,!1,null,"2dcf2444",null);e["default"]=h.exports},"83a7":function(t,e,a){},a907:function(t,e,a){"use strict";var s=a("ff2d");class l extends s["a"]{constructor(){super()}async CustomDropdown(t={}){let e=await this.postAll("Host80","/account/dropdown",t);return e}async CustomDropdownData(t={}){let e=await this.postAll("Host87","/follow/deal/data",t);return e}async followCustomDropdown(t={}){let e=await this.postAll("Host87","/follow/account/dropdown",t);return e}async reasonsRefusalList(t={}){let e=await this.postAll("Host80","/reasons/refusal/list",t);return e}async Country(t={}){let e=await this.postAll("Host80","/country/get",t);return e}async followWalletSingle(t={}){let e=await this.postAll("Host87","/follow/wallet/single",t);return e}async followDealSubscribeInfo(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/info",t);return e}async followDealSubscriSubscribe(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/subscribe",t);return e}async followDealSubscribeLoginList(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/login/list",t);return e}async followDealSubscribeList(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/list",t);return e}async followDealSubscribeUnsubscribe(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/unsubscribe",t);return e}async followDealSubscribeUpdate(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/update",t);return e}async followDealSubscribeDealList(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/deal/list",t);return e}async followDealApply(t={}){let e=await this.postAll("Host87","/follow/deal/apply",t);return e}async followDealUpdate(t={}){let e=await this.postAll("Host87","/follow/deal/update",t);return e}async followDealAgentUpdate(t={}){let e=await this.postAll("Host87","/follow/deal/agent/update",t);return e}async followDealList(t={}){let e=await this.postAll("Host87","/follow/deal/list",t);return e}async followDealSingle(t={}){let e=await this.postAll("Host87","/follow/deal/single",t);return e}async followDealDelete(t={}){let e=await this.postAll("Host87","/follow/deal/delete",t);return e}async followDealLoginList(t={}){let e=await this.postAll("Host87","/follow/deal/login/list",t);return e}async followDealSearchList(t={}){let e=await this.postAll("Host87","/follow/deal/signal/search/list",t);return e}async followDealSignalSearchSingle(t={}){let e=await this.postAll("Host87","/follow/deal/signal/search/single",t);return e}async followDealAgentSearchList(t={}){let e=await this.postAll("Host87","/follow/deal/agent/search/list",t);return e}async followTransferApply(t={}){let e=await this.postAll("Host04","/follow/transfer/apply",t);return e}async followTransferList(t={}){let e=await this.postAll("Host04","/follow/transfer/list",t);return e}async followReportCommission(t={}){let e=await this.postAll("Host87","/follow/report/period/commission",t);return e}async followDailySummary(t={}){let e=await this.postAll("Host87","/follow/daily/summary",t);return e}async followDailyIndex(t={}){let e=await this.postAll("Host87","/follow/daily/index",t);return e}async followDailyChartLine(t={}){let e=await this.postAll("Host87","/follow/daily/chart/line",t);return e}async followDailyChartSymbol(t={}){let e=await this.postAll("Host87","/follow/deal/signal/plChart",t);return e}async followOrderRecordList(t={}){let e=await this.postAll("Host87","/follow/order/record/list",t);return e}async followDealSubscribeSummary(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/summary",t);return e}async followDealCard(t={}){let e=await this.postAll("Host87","/follow/deal/card",t);return e}async followDailyDeal(t={}){let e=await this.postAll("Host87","/follow/daily/deal",t);return e}async followDailyCompare(t={}){let e=await this.postAll("Host87","/follow/daily/compare",t);return e}async followDailySubscribeProfit(t={}){let e=await this.postAll("Host87","/follow/daily/subscribe/profit",t);return e}async collectAdd(t={}){let e=await this.postAll("Host87","/follow/deal/collect/add",t);return e}async collectDelete(t={}){let e=await this.postAll("Host87","/follow/deal/collect/delete",t);return e}async getPeriod(t={}){let e=await this.postAll("Host87","/follow/deal/search/period",t);return e}async getEquityChart(t={}){let e=await this.postAll("Host87","/follow/deal/signal/plChart",t);return e}async getRankingChart(t={}){let e=await this.postAll("Host87","/follow/deal/signal/equityChart",t);return e}async followDealSignalRefreshDate(t={}){let e=await this.postAll("Host87","/follow/deal/signal/refreshDate",t);return e}}e["a"]=new l}}]);