HistoricalRecords.82ee7f4a.js 47 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["HistoricalRecords"],{"0196":function(e,t,a){},5978:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("498a");var n=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"documentary_HistoricalRecords","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[t("div",{staticClass:"crm_search"},[t("el-form",{ref:"search",attrs:{"label-position":"",model:e.search,"label-width":""}},[t("el-row",[t("el-col",{attrs:{span:24,md:24,lg:24}},[t("el-form-item",[t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.ReportType",expression:"'Label.ReportType'"}]}),t("span",{staticStyle:{"margin-right":"8px"}},[e._v(":")])]),t("el-form-item",{staticStyle:{"margin-right":"10px"}},[t("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",staticStyle:{width:"220px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.reportType,callback:function(t){e.$set(e.search,"reportType",t)},expression:"search.reportType"}},[e.display["Documentary.R-HistoricalRecords-Commission"].show?t("el-option",{attrs:{label:e.$t("Documentary.R-HistoricalRecords-Commission"),value:1}}):e._e(),e.display["Documentary.R-HistoricalRecords-Unsubscribe"].show?t("el-option",{attrs:{label:e.$t("Documentary.R-HistoricalRecords-Unsubscribe"),value:2}}):e._e(),e.display["Documentary.R-HistoricalRecords-dealApprove"].show?t("el-option",{attrs:{label:e.$t("Documentary.R-HistoricalRecords-dealApprove"),value:3}}):e._e()],1)],1),1==e.search.reportType||2==e.search.reportType?t("el-form-item",{staticStyle:{"margin-right":"10px"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Documentary.TundManagement.item11")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch.apply(null,arguments)}},model:{value:e.search.dealLogin,callback:function(t){e.$set(e.search,"dealLogin","string"===typeof t?t.trim():t)},expression:"search.dealLogin"}})],1):e._e(),1==e.search.reportType||2==e.search.reportType?t("el-form-item",{staticStyle:{"margin-right":"10px"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Documentary.console.item28")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch.apply(null,arguments)}},model:{value:e.search.followLogin,callback:function(t){e.$set(e.search,"followLogin","string"===typeof t?t.trim():t)},expression:"search.followLogin"}})],1):e._e(),3==e.search.reportType?t("el-form-item",{staticStyle:{"margin-right":"10px"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Label.TradingAccount")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch.apply(null,arguments)}},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.reportType?t("el-form-item",{staticStyle:{"margin-right":"10px"},attrs:{prop:""}},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("el-input",{staticClass:"crm-border-radius-no",staticStyle:{width:"160px"},attrs:{placeholder:e.$t("Placeholder.Input"),size:"small"},model:{value:e.newIb,callback:function(t){e.newIb="string"===typeof t?t.trim():t},expression:"newIb"}}),t("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.searchIbTreeSearch1(e.newIb)}}}),t("el-cascader",{staticClass:"crm-border-radius-no crm_select_icon",attrs:{props:e.props,options:e.agentId_options,placeholder:e.$t("Enter_info.All"),size:"small"},on:{"expand-change":e.handleItemChange},scopedSlots:e._u([{key:"default",fn:function(a){a.node;var n=a.data;return[t("div",[t("span",[e._v(e._s(n.label))]),n.name?t("span",[e._v(" - "+e._s(n.name)+" ")]):e._e()])]}}],null,!1,3817458562),model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)]):e._e(),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",{attrs:{type:"primary",size:"small"},on:{click:e.allDate}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.All",expression:"'Web_info.All'"}]})])],1)],1)],1),t("el-form-item",[t("el-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",size:"small"},on:{click:e.toSearch}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.GenerateReport",expression:"'Label.GenerateReport'"}]})]),t("el-dropdown",{staticStyle:{margin:"0 8px"},attrs:{trigger:"click"},on:{command:e.handleCommand}},[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"},[e.display["Documentary.R-HistoricalRecords-CommissionE"].show&&"1"==e.type?t("el-dropdown-item",{attrs:{command:{type:"export"}}},[t("i",{staticClass:"el-icon-download"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Export",expression:"'Btn.Export'"}]})]):e._e()],1)],1)],1)],1)],1),1==e.type?t("el-table",{key:"1",staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,"show-summary":"","summary-method":e.getSummaries1,stripe:""}},[t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.AgentNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.ibNo||"--")+" ")]}}],null,!1,2306203287)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Documentary.tradingCenter.item18")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.dealLogin||"--")+" ")]}}],null,!1,1421045522)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Documentary.console.item28")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.followLogin||"--")+" ")]}}],null,!1,3724601903)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Documentary.Report.item4")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("NumberFormat")(t.row.dealCommission||"0"))+" ")]}}],null,!1,4170095445)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Documentary.Report.item5")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.dealRatio||"0%")+" ")]}}],null,!1,332989125)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Documentary.Report.item8")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" $"+e._s(e._f("NumberFormat")(t.row.agentCommission||"0"))+" ")]}}],null,!1,2520246564)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Documentary.Report.item7")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.agentRatio||"0%")+" ")]}}],null,!1,454702800)}),t("el-table-column",{attrs:{align:"center",label:e.$t("Documentary.Report.item17")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("NumberFormat")(t.row.startEquity||"0"))+" ")]}}],null,!1,1944712209)}),t("el-table-column",{attrs:{align:"center",label:e.$t("Documentary.Report.item18")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("NumberFormat")(t.row.endEquity||"0"))+" ")]}}],null,!1,378042814)})],1):e._e(),2==e.type?t("el-table",{key:"2",staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""}},[t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.Label.nickname")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.dealNickname||"--")+" ")]}}],null,!1,4033072089)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.console.item24")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.dealLogin||"--")+" ")]}}],null,!1,1421045522)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.console.item28")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.followLogin||"--")+" ")]}}],null,!1,3724601903)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.AttributionNumber")},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.pIbNo&&e.display["Documentary.R-DocumentaryAccount-Details"].show?t("span",{staticClass:"crm-text-underline",on:{click:function(t){return e.agentOpen(a.row.pIbNo)}}},[e._v(e._s(a.row.pIbNo||"--"))]):t("span",[e._v(e._s(a.row.pIbNo||"--"))])]}}],null,!1,1914032733)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.UserNames")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.followFirstName)+" "+e._s(t.row.followMiddle)+" "+e._s(t.row.followLastName)+" ")]}}],null,!1,636917521)}),t("el-table-column",{attrs:{prop:"followEmail",align:"left",label:e.$i18n.t("Label.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.followEmail||"--")+" ")]}}],null,!1,2644889632)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.LoginType")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[1==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Classic",expression:"'Web_info.Classic'"}]}):e._e(),2==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Senior",expression:"'Web_info.Senior'"}]}):e._e(),3==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Institutions",expression:"'Web_info.Institutions'"}]}):e._e(),5==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Speed",expression:"'Web_info.Speed'"}]}):e._e(),6==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.NewSpeed",expression:"'Web_info.NewSpeed'"}]}):e._e(),7==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.StandardAccount",expression:"'Web_info.StandardAccount'"}]}):e._e(),8==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.CentAccount",expression:"'Web_info.CentAccount'"}]}):e._e(),a.row.dealLoginType?e._e():t("span",[e._v(e._s("--"))])])]}}],null,!1,475356002)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Platform")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.dealPlatform||"--")+" ")]}}],null,!1,2720451406)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.tradingCenter.item30")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.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:"left",label:e.$i18n.t("Documentary.tradingCenter.item31")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.distributionRatio||"0")+"% ")]}}],null,!1,3368837139)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.tradingCenter.item32")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.settlementCycle||"--")+" ")]}}],null,!1,654406432)}),t("el-table-column",{attrs:{prop:"",align:"center",width:"180",label:e.$i18n.t("Documentary.Label.item22")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(e._s(a.row.startTime||"--"))]),t("div",[e._v(e._s(a.row.endTime||"--"))])]}}],null,!1,3808586075)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.Label.item23")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.followProfit||"--")+" ")]}}],null,!1,4228305018)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Descr")},scopedSlots:e._u([{key:"default",fn:function(a){return[e.reasons[a.row.note]?t("span",[e._v(e._s("cn"==e.Session.Get("lang")?e.reasons[a.row.note].content:e.reasons[a.row.note].enContent))]):t("span",[e._v(e._s(a.row.note||"--"))])]}}],null,!1,2856587213)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand2}},[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"},[e.display["Documentary.R-HistoricalRecords-Unsubscribe"].show?t("el-dropdown-item",{attrs:{command:{type:"Details",row:a.row}}},[t("i",{staticClass:"el-icon-document-copy"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.R-DocumentaryAccount-Details",expression:"'Documentary.R-DocumentaryAccount-Details'"}]})]):e._e()],1)],1)]}}],null,!1,3403790953)})],1):e._e(),3==e.type?t("el-table",{key:"3",staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""}},[t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.Label.nickname")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.nickname||"--")+" ")]}}],null,!1,679892181)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.dealCId&&e.display["Documentary.R-SignalSourceApply-Details"].show?t("span",{staticClass:"crm-text-underline",on:{click:function(t){return e.accountOpen(a.row.dealCId)}}},[e._v(e._s(a.row.dealCId||"--"))]):t("span",[e._v(e._s(a.row.dealCId||"--"))])]}}],null,!1,1451507734)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.AttributionNumber")},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.pIbNo&&e.display["Documentary.R-SignalSourceApply-Details"].show?t("span",{staticClass:"crm-text-underline",on:{click:function(t){return e.agentOpen(a.row.pIbNo)}}},[e._v(e._s(a.row.pIbNo||"--"))]):t("span",[e._v(e._s(a.row.pIbNo||"--"))])]}}],null,!1,3398045678)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.TradingAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.dealLogin||"--")+" ")]}}],null,!1,1421045522)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.UserNames")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.firstName)+" "+e._s(t.row.middle)+" "+e._s(t.row.lastName)+" ")]}}],null,!1,450404928)}),t("el-table-column",{attrs:{prop:"email",align:"left",label:e.$i18n.t("Label.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.email||"--")+" ")]}}],null,!1,1132627921)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.LoginType")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[1==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Classic",expression:"'Web_info.Classic'"}]}):e._e(),2==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Senior",expression:"'Web_info.Senior'"}]}):e._e(),3==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Institutions",expression:"'Web_info.Institutions'"}]}):e._e(),5==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.Speed",expression:"'Web_info.Speed'"}]}):e._e(),6==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.NewSpeed",expression:"'Web_info.NewSpeed'"}]}):e._e(),7==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.StandardAccount",expression:"'Web_info.StandardAccount'"}]}):e._e(),8==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Web_info.CentAccount",expression:"'Web_info.CentAccount'"}]}):e._e(),a.row.dealLoginType?e._e():t("span",[e._v(e._s("--"))])])]}}],null,!1,475356002)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Platform")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.dealPlatform||"--")+" ")]}}],null,!1,2720451406)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.Label.OverallSituation")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.row.permissionDisplay?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.Label.item1",expression:"'Documentary.Label.item1'"}]}):e._e(),2==a.row.permissionDisplay?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.Label.item2",expression:"'Documentary.Label.item2'"}]}):e._e(),a.row.permissionDisplay?e._e():t("span",[e._v(e._s("--"))])]}}],null,!1,2256879594)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.tradingCenter.item30")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.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:"left",label:e.$i18n.t("Documentary.tradingCenter.item31")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.distributionRatio||"0")+"% ")]}}],null,!1,3368837139)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Documentary.tradingCenter.item32")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.settlementCycle||"--")+" ")]}}],null,!1,654406432)}),t("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||"--")+" ")]}}],null,!1,457315401)}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Descr")},scopedSlots:e._u([{key:"default",fn:function(a){return[e.reasons[a.row.approveDesc]?t("span",[e._v(e._s("cn"==e.Session.Get("lang")?e.reasons[a.row.approveDesc].content:e.reasons[a.row.approveDesc].enContent))]):t("span",[e._v(e._s(a.row.approveDesc||"--"))])]}}],null,!1,2720758573)}),t("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("Label.State")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[0==a.row.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state crm_state_blue"}):e._e(),1==a.row.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.InTheProcessing",expression:"'State.InTheProcessing'"}],staticClass:"state crm_state_blue"}):e._e(),2==a.row.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Pass",expression:"'State.Pass'"}],staticClass:"state crm_state_gray"}):e._e(),3==a.row.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state crm_state_red"}):e._e()])]}}],null,!1,2011727761)})],1):e._e(),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("div",{staticClass:"crm_page_total"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),t("span",[e._v(e._s(e.pagerInfo.rowTotal))]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[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(),t("el-dialog",{attrs:{visible:e.dialogFllowDetails,center:"",title:e.$t("Documentary.R-HistoricalRecords-Unsubscribe-Details"),"custom-class":"dialog_header_w dialog_header_blue"},on:{"update:visible":function(t){e.dialogFllowDetails=t}}},[t("div",{staticClass:"dia-content"},[t("div",{staticClass:"content",staticStyle:{"font-size":"14px","text-align":"left"}},[t("el-form",{ref:"dialogFllowDetailsData",attrs:{model:e.dialogFllowDetailsData}},[t("el-row",[t("div",{staticClass:"fllow-title"},[t("div",{staticClass:"title"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.Label.item28"),expression:"$t('Documentary.Label.item28')"}]})])]),t("el-col",{staticClass:"col-l",attrs:{span:12,xs:12,sm:12,md:12,lg:12}},[t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item29"),expression:"$t('Documentary.tradingCenter.item29')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.followLogin||"--"))])])]),t("el-col",{staticClass:"col-r",attrs:{span:12,xs:12,sm:12,md:12,lg:12}},[t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item35"),expression:"$t('Documentary.tradingCenter.item35')"}]})]),t("div",{staticClass:"con"},[1==e.dialogFllowDetailsData.followType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.tradingCenter.item116",expression:"'Documentary.tradingCenter.item116'"}]}):e._e(),2==e.dialogFllowDetailsData.followType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.tradingCenter.item117",expression:"'Documentary.tradingCenter.item117'"}]}):e._e(),3==e.dialogFllowDetailsData.followType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.tradingCenter.item118",expression:"'Documentary.tradingCenter.item118'"}]}):e._e()])]),1==e.dialogFllowDetailsData.followType?t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item119"),expression:"$t('Documentary.tradingCenter.item119')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.volume/100||"--"))])]):e._e(),2==e.dialogFllowDetailsData.followType?t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item36"),expression:"$t('Documentary.tradingCenter.item36')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.ratio||"--")+"%")])]):e._e(),t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.Label.item22"),expression:"$t('Documentary.Label.item22')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.startTime||"--"))])]),t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item32"),expression:"$t('Documentary.tradingCenter.item32')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.settlementCycle||"0"))])])]),t("el-col",{staticClass:"fllow-title",attrs:{span:24,xs:24,sm:24,md:24,lg:24}},[t("div",{staticClass:"title"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item28"),expression:"$t('Documentary.tradingCenter.item28')"}]})]),t("div")]),t("el-col",{staticClass:"col-l",attrs:{span:12,xs:12,sm:12,md:12,lg:12}},[t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item29"),expression:"$t('Documentary.tradingCenter.item29')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.dealLogin||"--"))])])]),t("el-col",{staticClass:"col-r",attrs:{span:12,xs:12,sm:12,md:12,lg:12}},[t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item30"),expression:"$t('Documentary.tradingCenter.item30')"}]})]),t("div",{staticClass:"con"},[1==e.dialogFllowDetailsData.distributionType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.TundManagement.item59",expression:"'Documentary.TundManagement.item59'"}]}):e._e()])]),t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item31"),expression:"$t('Documentary.tradingCenter.item31')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.distributionRatio||"0")+"%")])])]),t("el-col",{staticClass:"fllow-title",attrs:{span:24,xs:24,sm:24,md:24,lg:24}},[t("div",{staticClass:"title"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item37"),expression:"$t('Documentary.tradingCenter.item37')"}]})])]),t("el-col",{staticClass:"col-l",attrs:{span:12,xs:12,sm:12,md:12,lg:12}},[t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item38"),expression:"$t('Documentary.tradingCenter.item38')"}]})]),t("div",{staticClass:"con"},[1==e.dialogFllowDetailsData.protectType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.tradingCenter.item120",expression:"'Documentary.tradingCenter.item120'"}]}):e._e(),2==e.dialogFllowDetailsData.protectType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.tradingCenter.item121",expression:"'Documentary.tradingCenter.item121'"}]}):e._e(),e.dialogFllowDetailsData.protectType?e._e():t("span",[e._v(e._s("--"))])])])]),t("el-col",{staticClass:"col-r",attrs:{span:12,xs:12,sm:12,md:12,lg:12}},[1==e.dialogFllowDetailsData.protectType?t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item39"),expression:"$t('Documentary.tradingCenter.item39')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.protectAmount||"--")+"($)")])]):e._e(),2==e.dialogFllowDetailsData.protectType?t("div",{staticClass:"fllow-content"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.$t("Documentary.tradingCenter.item122"),expression:"$t('Documentary.tradingCenter.item122')"}]})]),t("div",{staticClass:"con"},[e._v(e._s(e.dialogFllowDetailsData.protectRatio||"--")+"(%)")])]):e._e()])],1)],1),t("div",{staticClass:"dialog-footer",staticStyle:{display:"flex","justify-content":"center"},attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){e.dialogFllowDetails=!1}}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(t){e.dialogFllowDetails=!1}}})],1)],1)])])],1)},r=[],s=a("5530"),o=a("c7eb"),l=a("1da1"),i=(a("14d9"),a("e9f5"),a("7d54"),a("a732"),a("a9e3"),a("b64b"),a("d3b7"),a("25f0"),a("3ca3"),a("159b"),a("ddb0"),a("2b3d"),a("bf19"),a("9861"),a("88a7"),a("271a"),a("5494"),a("bc3a")),c=a.n(i),u=a("a907"),p=a("4477"),d=a("f121"),m=a.n(d),f=m.a.Code,b={name:"DataReport",data:function(){return{flag:!1,pictLoading:!1,type:"",detail_type:"",mock_tableData:[],search:{reportType:1,detail_type:null,agentId:null,dealLogin:"",followLogin:"",login:"",ibNo:"",platform:null,date:[],startDate:"",endDate:"",startTime:"",endTime:""},newIb:"",activityDrop:{},value:[],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:[],reasons:{},combined:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},dialogFllowDetails:!1,dialogFllowDetailsData:{}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{handleCommand2:function(e){"Details"==e.type&&(this.dialogFllowDetailsData=e.row,this.dialogFllowDetails=!0)},NumberFormatAll:function(e){if("***"==e)return"***";if(isNaN(e))return 0;var t=e.toString();if(t.indexOf("-")>-1){t=t.split("-")[1];var a=t.split("."),n=a[0].length;if(n<3)return e;for(var r=0,s="",o=n-3;o>=0;o-=3)s=a[0].substr(o,3)+(""==s?"":",")+s,r=o;return r>0&&(s=a[0].substr(0,r)+(""==s?"":",")+s),"-"+s+(1==a.length?"":"."+a[1])}var l=t.split("."),i=l[0].length;if(i<3)return e;for(var c=0,u="",p=i-3;p>=0;p-=3)u=l[0].substr(p,3)+(""==u?"":",")+u,c=p;return c>0&&(u=l[0].substr(0,c)+(""==u?"":",")+u),u+(1==l.length?"":"."+l[1])},getSummaries1:function(){var e=[];return 0==Object.keys(this.combined).length||(e=[this.$i18n.t("Label.Total"),"","",this.combined.dealCommission?this.NumberFormatAll(this.combined.dealCommission):0,"",this.combined.agentCommission?this.NumberFormatAll(this.combined.agentCommission):0,"","",""]),e},getDate:function(){var e,t,a=2,n=(new Date).getTimezoneOffset(),r=(new Date).getTime(),s=new Date(r+60*n*1e3+60*a*60*1e3),o=s.getFullYear(),l=s.getMonth()+1,i=s.getDate();l<10&&(l="0"+l),e=o+"-"+l+"-01";var c=s.getMonth(),u=++c,p=new Date(s.getFullYear(),u,1),d=864e5,m=new Date(p-d),f=m.getDate();if(f<10&&(f="0"+f),t=o+"-"+l+"-"+f,2==this.search.reportType)if(1==Number(i)){var b=s.getFullYear(),g=s.getMonth();0==g&&(g=12,b-=1),g<10&&(g="0"+g);var v=new Date(b,g,0),h=b+"-"+g+"-01",w=b+"-"+g+"-"+v.getDate();this.search.date=[h,w]}else{var y=i-1;y<10&&(y="0"+y),t=o+"-"+l+"-"+y,this.search.date=[e,t]}else this.search.date=[e,t]},allDate:function(){var e,t=2,a=(new Date).getTimezoneOffset(),n=(new Date).getTime(),r=new Date(n+60*a*1e3+60*t*60*1e3),s=r.getFullYear(),o=r.getMonth()+1,l=r.getDate();if(o<10&&(o="0"+o),2==this.search.reportType){var i=l-1;i<10&&(i="0"+i),e=s+"-"+o+"-"+i,this.search.date=["1970-01-01",e]}else l<10&&(l="0"+l),e=s+"-"+o+"-"+l,this.search.date=["1970-01-01",e]},chooseLang:function(e){this.search.platform=e,this.searchFunc()},handleItemChange:function(e){this.child=this.agentId_options;for(var t=0;t<e.length;t++)this.tree(e[t],this.child)},tree:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(t,a){var n,r,s,l=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=Object(o["a"])().mark((function e(n){var r;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(null!=a[n].children&&a[n].children.length>0&&a[n].value==t)){e.next=3;break}return l.child=a[n].children,e.abrupt("return",{v:void 0});case 3:if(a[n].value!=t){e.next=15;break}return e.next=6,p["a"].ibTree({pid:t});case 6:if(r=e.sent,r.code!=f.StatusOK){e.next=14;break}if(null==r.data){e.next=12;break}return r.data.forEach((function(e){if(e.ibNo){var t={};t.value=e.id,t.label=e.ibNo,t.name=e.name,t.children=[],a[n].children.push(t)}})),l.child=a[n].children,e.abrupt("return",{v:void 0});case 12:e.next=15;break;case 14:l.$pigeon.MessageError(r.msg);case 15:case"end":return e.stop()}}),e)})),s=0;case 2:if(!(s<a.length)){e.next=10;break}return e.delegateYield(n(s),"t0",4);case 4:if(r=e.t0,!r){e.next=7;break}return e.abrupt("return",r.v);case 7:s++,e.next=2;break;case 10:case"end":return e.stop()}}),e)})));function t(t,a){return e.apply(this,arguments)}return t}(),searchIbTree:function(){var e=this;return Object(l["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["a"].ibTree({pid:0});case 2:a=t.sent,a.code==f.StatusOK?null!=a.data&&a.data.forEach((function(t){if(t.ibNo){var a={};a.value=t.id,a.label=t.ibNo,a.name=t.name,a.children=[],e.agentId_options.push(a)}})):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},searchIbTreeSearch:function(e){var t=this;return Object(l["a"])(Object(o["a"])().mark((function a(){var n,r;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.value=[],a.next=3,p["a"].ibTreeSearch({ibNo:e});case 3:n=a.sent,n.code==f.StatusOK?null!=n.data&&n.data.length?(r=null,n.data.forEach((function(a){if(a.ibNo==e){var n={};n.value=a.id,n.label=a.ibNo,n.name=a.name,n.children=[],t.agentId_options.push(n),t.value.push(a.id),r=a.id}})),r?t.searchFuncType5(r):t.$pigeon.MessageWarning(t.$i18n.t("Msg.ibNoId"))):t.$pigeon.MessageWarning(t.$i18n.t("Msg.ibNoId")):t.$pigeon.MessageError(n.msg),t.pictLoading=!1;case 6:case"end":return a.stop()}}),a)})))()},searchFuncType5:function(e){var t=this;return Object(l["a"])(Object(o["a"])().mark((function a(){var n;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.pictLoading=!0,5!=t.type||!t.search.ibNoId){a.next=8;break}return null==t.search.date||0==t.search.date.length?(t.search.startDate="",t.search.endDate=""):(t.search.startDate=t.search.date[0],t.search.endDate=t.search.date[1]),t.search.agentId=e,a.next=6,p["a"].tradeAccount(Object(s["a"])(Object(s["a"])({},t.search),{},{page:{current:t.pagerInfo.current,row:t.pagerInfo.row}}));case 6:n=a.sent,n.code==f.StatusOK?(null!=n.sum?t.combined=n.sum:t.combined={},null!=n.data?t.mock_tableData=n.data:t.mock_tableData=[],null!=n.page?(t.pagerInfo.rowTotal=n.page.rowTotal,t.pagerInfo.pageTotal=n.page.pageTotal):t.pagerInfo.rowTotal=0,t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess")),t.pictLoading=!1):(t.$pigeon.MessageError(n.msg),t.pictLoading=!1);case 8:t.pictLoading=!1;case 9:case"end":return a.stop()}}),a)})))()},searchIbTreeSearch1:function(e){var t=this;return Object(l["a"])(Object(o["a"])().mark((function a(){var n,r;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e){a.next=2;break}return a.abrupt("return");case 2:if(n=t.agentId_options.some((function(t){return t.label==e})),!n){a.next=5;break}return a.abrupt("return");case 5:return a.next=7,u["a"].ibTreeSearch({ibNo:e});case 7:r=a.sent,r.code==f.StatusOK?(null!=r.data&&r.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.unshift(a)}})),t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess"))):t.$pigeon.MessageError(r.msg);case 9:case"end":return a.stop()}}),a)})))()},handleCommand:function(e){"export"==e.type&&this.exportAgents()},getBlob:function(e){return new Promise((function(t){var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="blob",a.onload=function(){200===a.status&&t(a.response)},a.send()}))},saveAs:function(e,t){window.navigator.msSaveOrOpenBlob&&navigator.msSaveBlob(e,t)},download:function(e,t){var a=this;this.getBlob(e).then((function(e){a.saveAs(e,t)}))},exportAgents:function(){var e=this;return Object(l["a"])(Object(o["a"])().mark((function t(){var a,n,r;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.flag){t.next=4;break}return t.abrupt("return");case 4:e.flag=!0;case 5:if(1!=e.type){t.next=13;break}if(e.search.startDate&&e.search.endDate){t.next=9;break}return e.$pigeon.MessageWarning(e.$i18n.t("vaildate.date.empty")),t.abrupt("return");case 9:a=e.search.startDate.split("-")[0]+e.search.startDate.split("-")[1]+e.search.startDate.split("-")[2],n=e.search.endDate.split("-")[0]+e.search.endDate.split("-")[1]+e.search.endDate.split("-")[2],r="/follow/report/period/commission/export?followLogin="+(e.search.followLogin?e.search.followLogin:"")+"&dealLogin="+(e.search.dealLogin?e.search.dealLogin:"")+"&agentId="+(e.search.agentId?e.search.agentId:0)+"&startDate="+a+"&endDate="+n,c.a.get(r,{responseType:"blob"}).then((function(t){if(t.status==f.StatusOK)if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t.data,"Download.xlsx"),e.flag=!1;else{var a=window.URL.createObjectURL(t.data),n=document.createElement("a");document.body.appendChild(n);var r=t.headers["content-disposition"]?t.headers["content-disposition"].split(";")[1].split("=")[1]:"Download.xlsx";n.href=a,n.download=r,n.click(),window.URL.revokeObjectURL(a),e.flag=!1}else e.$pigeon.MessageError(e.$i18n.t("Msg.Download")),e.flag=!1}));case 13:case"end":return t.stop()}}),t)})))()},searchFunc:function(){var e=this;return Object(l["a"])(Object(o["a"])().mark((function t(){var a,n,r;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,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]),1!=e.type){t.next=9;break}return t.next=5,u["a"].followReportCommission({agentId:e.search.agentId,dealLogin:e.search.dealLogin,followLogin:e.search.followLogin,startDate:e.search.startDate,endDate:e.search.endDate,page:{current:e.pagerInfo.current,row:e.pagerInfo.row}});case 5:a=t.sent,a.code==f.StatusOK?(null!=a.sum?e.combined=a.sum:e.combined={},null!=a.data?e.mock_tableData=a.data:e.mock_tableData=[],null!=a.page?(e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1),t.next=21;break;case 9:if(2!=e.type){t.next=16;break}return t.next=12,u["a"].followDealSubscribeList({dealLogin:e.search.dealLogin,followLogin:e.search.followLogin,followPlatform:null,dealPlatform:null,status:2,startTime:e.search.startDate,endTime:e.search.endDate,page:{current:e.pagerInfo.current,row:e.pagerInfo.row}});case 12:n=t.sent,n.code==f.StatusOK?(null!=n.sum?e.combined=n.sum:e.combined={},null!=n.data?e.mock_tableData=n.data:e.mock_tableData=[],null!=n.page?(e.pagerInfo.rowTotal=n.page.rowTotal,e.pagerInfo.pageTotal=n.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(n.msg),e.pictLoading=!1),t.next=21;break;case 16:if(3!=e.type){t.next=21;break}return t.next=19,u["a"].followDealSearchList({login:e.search.login,platform:null,status:null,startTime:e.search.startDate,endTime:e.search.endDate,page:{current:e.pagerInfo.current,row:e.pagerInfo.row}});case 19:r=t.sent,r.code==f.StatusOK?(null!=r.sum?e.combined=r.sum:e.combined={},null!=r.data?e.mock_tableData=r.data:e.mock_tableData=[],null!=r.page?(e.pagerInfo.rowTotal=r.page.rowTotal,e.pagerInfo.pageTotal=r.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(r.msg),e.pictLoading=!1);case 21:e.pictLoading=!1;case 22:case"end":return t.stop()}}),t)})))()},toSearch:function(){this.type=this.search.reportType,this.detail_type=this.search.detail_type,this.pagerInfo.current=1,this.searchFunc()},searchReasons:function(){var e=this;return Object(l["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,u["a"].reasonsRefusalList({});case 2:a=t.sent,a.code==f.StatusOK?null==a.data?e.reasons={}:e.reasons=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.search.reportType=this.$route.query.type?Number(this.$route.query.type):this.search.reportType,this.searchIbTree(),this.searchReasons()},watch:{"search.reportType":function(e){this.newIb="",this.search={reportType:e,detail_type:null,agentId:null,dealLogin:"",followLogin:"",login:"",ibNo:"",platform:null,date:[],startDate:"",endDate:"",startTime:"",endTime:""},this.value=[],this.mock_tableData=[],this.pagerInfo.rowTotal=0,this.type="",this.agentId_options=[{value:0,label:this.$i18n.t("news_add_field.IbReport.ALL")},{value:-1,label:this.$i18n.t("news_add_field.IbReport.DirectlyUnder")}],this.searchIbTree()},value:function(e){if(e){var t=e[e.length-1]||"";this.search.agentId=t}}}},g=b,v=(a("bb23"),a("6cdc"),a("2877")),h=Object(v["a"])(g,n,r,!1,null,"4ba092df",null);t["default"]=h.exports},"6cdc":function(e,t,a){"use strict";a("e5fb")},a907:function(e,t,a){"use strict";var n=a("c7eb"),r=a("1da1"),s=a("d4ec"),o=a("bee2"),l=a("8f33"),i=a("262e"),c=a("ff2d"),u=a("bc3a"),p=a.n(u),d=a("f121"),m=a.n(d),f=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(l["a"])(this,t),p.a.defaults.baseURL=m.a.Host85,e}return Object(i["a"])(t,e),Object(o["a"])(t,[{key:"reasonsRefusalList",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/reasons/refusal/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSearchList",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSearchSingle",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSearchDelete",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSearchUpdate",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSearchAdd",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSearchApprove",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/approve",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followPeriodRanking",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/search/periodRanking",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followPeriod",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/search/period",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealClearRecommend",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/clear/all/recommend",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealUpdateRecommend",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/recommend/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSubscribeList",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/subscribe/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSubscribeSingle",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/subscribe/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSubscribeDelete",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/subscribe/unsubscribe",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSubscribeUpdate",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/subscribe/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followDealSubscribeAdd",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/deal/subscribe/subscribe",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"followReportCommission",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/follow/report/period/commission",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}])}(c["a"]);t["a"]=new f},bb23:function(e,t,a){"use strict";a("0196")},e5fb:function(e,t,a){}}]);