webpackJsonp([60],{QCax:function(t,e){},R28Q:function(t,e){},sBsN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Gu7T"),n=a.n(i),r=a("Dd8w"),s=a.n(r),o=a("//Fk"),l=a.n(o),c=a("d7EF"),d=a.n(c),h=a("Xxa5"),_=a.n(h),u=a("exGp"),p=a.n(u),m=a("u2KI"),f=a.n(m),y=a("gzej"),g=a("KnvP"),v=a("erru"),x=a("1zIV"),C=a("3ivx"),L=a("la//"),w=a("M4fF"),S=a.n(w),b={components:{datePicker:y.a,inputRange:g.a,selfChannel:v.a,selfChannelMultiple:x.a,switchMpAdq:C.a},data:function(){var t=[this.$getDay(-30,!1),this.$getDay(0,!1)];return{default_time:t,reset:!1,height:"",pageLoading:!1,chartLoading:!1,myChart:null,chartDataList:[],legendList:[{name:"消耗",key:"paid",color:"#2983DF",selectFlag:!0},{name:"首日roi",key:"first_roi",color:"#EB4315",selectFlag:!0},{name:"首日新增用户充值金额",key:"pay_money",color:"#EFAF47",selectFlag:!0},{name:"付费成本",key:"first_charge_user_cost",color:"#00B38A",selectFlag:!0},{name:"当日付费用户arpu值",key:"day_paid_user_arpu",color:"#84CDFC",selectFlag:!0},{name:"3天倍率",key:"three_days_rate",color:"#AED570",selectFlag:!0},{name:"7天倍率",key:"seven_days_rate",color:"#7366FF",selectFlag:!0},{name:"15天倍率",key:"fifteen_days_rate",color:"#F28544",selectFlag:!0},{name:"30天倍率",key:"thirty_days_rate",color:"#E360C8",selectFlag:!0}],percentFields:f()(["首日roi","3天倍率","7天倍率","15天倍率","30天倍率"]),summaryLoading:!1,summaryTableCol:[],detailLoading:!1,detailsTableCol:[],detailsTableColDays:[],pagination:{page:1,page_size:20,pages:0,total:0},filter:{order_type:"",time:t,account_id:[],account_id_adq:[],account_id_sum:[],closing_date:"",plat_order_type:"",costCover:["",""],sort_field:"paid",sort_type:"desc"},updateTime:"",isShowEmpty:!1}},computed:{isMP:function(){return this.filter.order_type===L.D.MP},isADQ:function(){return this.filter.order_type===L.D.ADQ},isSUM:function(){return this.filter.order_type===L.D.SUM},isShowTimes:function(){return!(this.isMP&&this.filter.account_id&&this.filter.account_id.length||this.isADQ&&this.filter.account_id_adq&&this.filter.account_id_adq.length||this.isSUM&&this.filter.account_id_sum&&this.filter.account_id_sum.length)},isShowAdqBtn:function(){return!!this.$store.state.dataBoardAuth.adq_auth},isShowMpBtn:function(){return!!this.$store.state.dataBoardAuth.mp_auth},isShowSumBtn:function(){return this.isShowAdqBtn&&this.isShowMpBtn},isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},created:function(){this.getDefaultOrderType()?(this.initTableHeight(),this.handleGetChart(),this.handleGetSummaryList(),this.handleGetList(),this.handleGetUpdateTime()):this.isShowEmpty=!0},beforeDestroy:function(){this.myChart&&this.myChart.clear()},methods:{getDefaultOrderType:function(){return this.isShowAdqBtn?(this.filter.order_type=L.D.ADQ,L.D.ADQ):this.isShowMpBtn?(this.filter.order_type=L.D.MP,L.D.MP):(this.$message.warning('暂无数据权限,请前往"账号管理"添加配置'),!1)},initTableHeight:function(){this.height=document.documentElement.clientHeight-200>400?document.documentElement.clientHeight-200:400},handleGetUpdateTime:function(){var t=this;return p()(_.a.mark(function e(){var a,i,n,r;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a={type:""},t.isMP&&(a.type="account_data_trend_mp"),t.isADQ&&(a.type="account_data_trend_adq"),t.isSUM&&(a.type="account_data_trend"),e.next=7,t.$axios.get(""+t.URL.BASEURL+t.URL.dataBoard_uptime,{params:a});case 7:i=e.sent,n=i.data,(r=void 0===n?{}:n)&&0==r.errno?t.updateTime=r.rst.uptime:4002!=r.errno&&(t.$message.warning(r.err),t.updateTime=""),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),t.updateTime="";case 16:case"end":return e.stop()}},e,t,[[0,13]])}))()},handleGetSummaryList:function(){var t=this;return p()(_.a.mark(function e(){var a,i,n,r,s,o,l,c,d,h,u,p;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.summaryLoading=!0,a={start_date:t.filter.time[0],end_date:t.filter.time[1],closing_date:t.filter.closing_date,plat_order_type:t.filter.plat_order_type,cost_cover_min:t.filter.costCover[0],cost_cover_max:t.filter.costCover[1]},i="",n="",r=t.filter,s=r.account_id_adq,o=r.account_id,l=r.account_id_sum,t.isADQ?(a.account_id=s&&s.length?s.join(","):"",a.ad_type=1,i=""+t.URL.BASEURL+t.URL.dataBoard_allAccountSummary,n="isADQ"):t.isMP?(a.account_id=o&&o.length?o.join(","):"",a.ad_type=2,i=""+t.URL.BASEURL+t.URL.dataBoard_allAccountSummary,n="isMP"):t.isSUM&&(a.account_id=l&&l.length?l.join(","):"",a.ad_type="",i=""+t.URL.BASEURL+t.URL.dataBoard_allAccountSummary,n="isSUM"),e.next=9,t.$axios.post(i,a);case 9:if(c=e.sent,d=c.data,!(h=void 0===d?{}:d)||0!=h.errno){e.next=22;break}return u=[],h.rst.header.forEach(function(t){t.tableName=n,t.name&&t.name.length>6&&(t.min_width=20*t.name.length),u.push(t)}),t.summaryTableCol=f()(u),e.next=18,t.$nextTick();case 18:p=Array.isArray(h.rst.data)?h.rst.data:[h.rst.data],t.$refs.summaryTable.reloadData(p),e.next=23;break;case 22:4002!=h.errno&&(t.$message.warning(h.err),t.$refs.summaryTable.reloadData([]));case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(0),console.log(e.t0),t.$refs.summaryTable.reloadData([]);case 29:return e.prev=29,t.summaryLoading=!1,e.finish(29);case 32:case"end":return e.stop()}},e,t,[[0,25,29,32]])}))()},handleGetList:function(){var t=this;return p()(_.a.mark(function e(){var a,i,n,r,s,o,l,c,d,h,u,p,m;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.detailLoading=!0,a={page:t.pagination.page,page_size:t.pagination.page_size,start_date:t.filter.time[0],end_date:t.filter.time[1],closing_date:t.filter.closing_date,plat_order_type:t.filter.plat_order_type,cost_cover_min:t.filter.costCover[0],cost_cover_max:t.filter.costCover[1],sort_field:t.filter.sort_field,sort_type:t.filter.sort_type},i="",n="",r=t.filter,s=r.account_id_adq,o=r.account_id,l=r.account_id_sum,t.isADQ?(a.account_id=s&&s.length?s.join(","):"",a.ad_type=1,i=""+t.URL.BASEURL+t.URL.dataBoard_allAccount,n="isADQ"):t.isMP?(a.account_id=o&&o.length?o.join(","):"",a.ad_type=2,i=""+t.URL.BASEURL+t.URL.dataBoard_allAccount,n="isMP"):t.isSUM&&(a.account_id=l&&l.length?l.join(","):"",a.ad_type="",i=""+t.URL.BASEURL+t.URL.dataBoard_allAccount,n="isSUM"),e.next=9,t.$axios.post(i,a);case 9:if(c=e.sent,d=c.data,!(h=void 0===d?{}:d)||0!=h.errno){e.next=28;break}return h.rst.extra[0].fixed="left",h.rst.extra[1].fixed="left",u=[],p=[],h.rst.extra.forEach(function(e){e.tableName=n,e.name.includes("DAY")?p.push(e):(e.name&&e.name.length>6&&(e.min_width=20*e.name.length),"ref_date"===e.column&&t.isShowTimes&&(e.min_width=200),u.push(e))}),t.detailsTableCol=f()(u),t.detailsTableColDays=f()(p),e.next=22,t.$nextTick();case 22:m=Array.isArray(h.rst.data)?h.rst.data:[],t.$refs.detailsTable.reloadData(m),t.pagination.total=h.rst.pageInfo.total,t.pagination.pages=h.rst.pageInfo.pages,e.next=29;break;case 28:4002!=h.errno&&(t.$message.warning(h.err),t.$refs.detailsTable.reloadData([]),t.pagination.total=0,t.pagination.pages=0);case 29:e.next=37;break;case 31:e.prev=31,e.t0=e.catch(0),console.log(e.t0),t.$refs.detailsTable.reloadData([]),t.pagination.total=0,t.pagination.pages=0;case 37:return e.prev=37,t.detailLoading=!1,e.finish(37);case 40:case"end":return e.stop()}},e,t,[[0,31,37,40]])}))()},handleGetChart:function(){var t=this;return p()(_.a.mark(function e(){var a,i,n,r,s,o,l,c,d;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.chartLoading=!0,a={start_date:t.filter.time[0],end_date:t.filter.time[1],closing_date:t.filter.closing_date,plat_order_type:t.filter.plat_order_type,cost_cover_min:t.filter.costCover[0],cost_cover_max:t.filter.costCover[1]},i="",n=t.filter,r=n.account_id_adq,s=n.account_id,o=n.account_id_sum,t.isADQ?(a.account_id=r&&r.length?r.join(","):"",a.ad_type=1,i=""+t.URL.BASEURL+t.URL.dataBoard_allAccountCurve):t.isMP?(a.account_id=s&&s.length?s.join(","):"",a.ad_type=2,i=""+t.URL.BASEURL+t.URL.dataBoard_allAccountCurve):t.isSUM&&(a.account_id=o&&o.length?o.join(","):"",a.ad_type="",i=""+t.URL.BASEURL+t.URL.dataBoard_allAccountCurve),e.next=8,t.$axios.post(i,a);case 8:if(l=e.sent,c=l.data,!(d=void 0===c?{}:c)||0!=d.errno){e.next=18;break}return t.chartDataList=Array.isArray(d.rst.data)?d.rst.data:[],e.next=15,t.$nextTick();case 15:t.handleDrawChart(),e.next=24;break;case 18:if(4002==d.errno){e.next=24;break}return t.$message.warning(d.err),t.chartDataList=[],e.next=23,t.$nextTick();case 23:t.myChart&&t.myChart.clear();case 24:e.next=33;break;case 26:return e.prev=26,e.t0=e.catch(0),console.log(e.t0),t.chartDataList=[],e.next=32,t.$nextTick();case 32:t.myChart&&t.myChart.clear();case 33:return e.prev=33,t.chartLoading=!1,e.finish(33);case 36:case"end":return e.stop()}},e,t,[[0,26,33,36]])}))()},handleDrawChart:function(){var t=this;this.myChart&&this.myChart.clear();var e=this,a=[],i=[],n=this.chartDataList.map(function(t){return t.expense_date});this.legendList.forEach(function(r){if(r.selectFlag){i.push({type:"value",name:"",show:!1,position:"left",axisTick:{show:!1},splitLine:{lineStyle:{color:"#F2F2f2",type:"dashed"}},axisLine:{show:!0,lineStyle:{color:"#F2F2f2"}},nameTextStyle:{color:"#999999",fontSize:13},axisLabel:{color:"#999999",fontSize:12,show:!0,formatter:function(t){return e.percentFields.includes(r.name)?e.$formatNum(t)+"%":e.$NumberHandle(t)}}});var s=t.chartDataList.map(function(t){return t[r.key]||0==t[r.key]?t[r.key]:"-"});a.push({type:"line",smooth:!0,name:r.name,yAxisIndex:0,data:s,lineStyle:{width:2},symbol:1==n.length?"emptyCircle":"none",itemStyle:{color:r.color,borderType:"emptyCircle"}})}}),i.forEach(function(t,e){t.show=0==e}),a.forEach(function(t,e){t.yAxisIndex=e});var r={title:"",tooltip:{trigger:"axis",show:!0,formatter:function(t){var a=t[0].name+"
";return t.forEach(function(t){e.percentFields.includes(t.seriesName)?a+=""+t.marker+t.seriesName+":"+e.$formatNum(t.value)+"%
":a+=""+t.marker+t.seriesName+":"+e.$formatNum(t.value)+"
"}),a}},legend:{itemWidth:8,itemHeight:2,icon:"plain",show:!1,textStyle:{fontSize:12,color:"#666666"}},grid:{top:"6%",left:"5%",right:"4%",bottom:"16%",containLabel:!1},xAxis:[{type:"category",data:n,boundaryGap:!1,axisLine:{show:!0,lineStyle:{color:"#F2F2f2"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:"#666",fontSize:10,rotate:30}}],yAxis:i,series:a};this.myChart=this.myChart?this.myChart:this.$echarts.init(document.getElementById("trend")),this.myChart.setOption(r)},onClickLegend:function(t,e){var a=this;return p()(_.a.mark(function i(){var n,r;return _.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(1!=(n=a.legendList.filter(function(t){return t.selectFlag})).length||n[0].key!=t.key){i.next=3;break}return i.abrupt("return",a.$message.warning("至少存在一条曲线"));case 3:return(r=S.a.cloneDeep(t)).selectFlag=!r.selectFlag,a.$set(a.legendList,e,r),i.next=8,a.$nextTick();case 8:a.handleDrawChart();case 9:case"end":return i.stop()}},i,a)}))()},onChangeOrderType:function(){this.handleGetChart(),this.handleGetSummaryList(),this.filter.sort_field=this.isShowTimes?"paid":"expense_date",this.filter.sort_type="desc",this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onChangeTime:function(t){this.filter.time=Array.isArray(t)?t:[],this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onChangeAccountId:function(t){this.filter.account_id=t,this.handleGetChart(),this.handleGetSummaryList(),this.filter.sort_field=this.isShowTimes?"paid":"expense_date",this.filter.sort_type="desc",this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onChangeAccountIdAdq:function(t){this.filter.account_id_adq=t,this.handleGetChart(),this.handleGetSummaryList(),this.filter.sort_field=this.isShowTimes?"paid":"expense_date",this.filter.sort_type="desc",this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onChangeAccountIdSum:function(t){this.filter.account_id_sum=t,this.handleGetChart(),this.handleGetSummaryList(),this.filter.sort_field=this.isShowTimes?"paid":"expense_date",this.filter.sort_type="desc",this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onChangeClosingDate:function(t){this.filter.closing_date=t||"",this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onChangePromotionType:function(t){this.filter.plat_order_type=t,this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},handleCurrentChange:function(t){this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=t,this.handleGetList(),this.handleGetUpdateTime()},handleSizeChange:function(t){this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page_size=t,this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onClickSearch:function(){this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onClickSort:function(t,e){this.filter.sort_field===t?this.filter.sort_type===e?(this.filter.sort_field=this.isShowTimes?"paid":"expense_date",this.filter.sort_type="desc"):this.filter.sort_type=e:(this.filter.sort_field=t,this.filter.sort_type=e),this.pagination.page=1,this.handleGetList(),this.handleGetChart(),this.handleGetSummaryList(),this.handleGetUpdateTime()},onClickReset:function(){this.reset=!this.reset,this.filter.order_type=this.getDefaultOrderType(),this.filter.time=this.default_time,this.filter.account_id=[],this.filter.account_id_adq=[],this.filter.account_id_sum=[],this.filter.closing_date="",this.filter.plat_order_type="",this.filter.costCover=["",""],this.filter.sort_field="paid",this.filter.sort_type="desc",this.pagination.page=1,this.handleGetChart(),this.handleGetSummaryList(),this.handleGetList(),this.handleGetUpdateTime()},onClickExport:function(){var t=this;return p()(_.a.mark(function e(){var a,i,n,r,o,c,h,u,p,m,f,y;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.pagination.total){e.next=2;break}return e.abrupt("return",t.$message.warning("暂无数据可导出"));case 2:return e.prev=2,t.pageLoading=!0,a={summary:"",detail:""},i={start_date:t.filter.time[0],end_date:t.filter.time[1],closing_date:t.filter.closing_date,plat_order_type:t.filter.plat_order_type,cost_cover_min:t.filter.costCover[0],cost_cover_max:t.filter.costCover[1]},n=t.filter,r=n.account_id_adq,o=n.account_id,c=n.account_id_sum,t.isADQ?(i.account_id=r&&r.length?r.join(","):"",i.ad_type=1,a.summary=""+t.URL.BASEURL+t.URL.dataBoard_allAccountSummary,a.detail=""+t.URL.BASEURL+t.URL.dataBoard_allAccount):t.isMP?(i.account_id=o&&o.length?o.join(","):"",i.ad_type=2,a.summary=""+t.URL.BASEURL+t.URL.dataBoard_allAccountSummary,a.detail=""+t.URL.BASEURL+t.URL.dataBoard_allAccount):t.isSUM&&(i.account_id=c&&c.length?c.join(","):"",i.ad_type="",a.summary=""+t.URL.BASEURL+t.URL.dataBoard_allAccountSummary,a.detail=""+t.URL.BASEURL+t.URL.dataBoard_allAccount),e.next=10,l.a.all([t.$axios.post(a.summary,i),t.$axios.post(a.detail,s()({},i,{sort_field:t.filter.sort_field,sort_type:t.filter.sort_type,page:1,page_size:t.$store.state.exportNumber}))]);case 10:h=e.sent,u=d()(h,2),p=u[0].data,m=void 0===p?{}:p,f=u[1].data,y=void 0===f?{}:f,m&&0==m.errno&&y&&0==y.errno?t.handleExport({summaryData:m.rst,detailData:y.rst}):4002==m.errno&&4002==y.errno||(t.$message.warning(m.err),t.$message.warning(y.err)),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(2),console.log(e.t0),t.$message.warning("导出失败,请重试");case 23:return e.prev=23,t.pageLoading=!1,e.finish(23);case 26:case"end":return e.stop()}},e,t,[[2,19,23,26]])}))()},handleExport:function(t){var e=t.summaryData,a=void 0===e?{}:e,i=t.detailData,r=void 0===i?{}:i,s=[];s=r.extra.filter(function(t){return t.name.includes("DAY")}),a.header.forEach(function(t){"时间"===t.name?t.column="ref_date":"账户"===t.name&&(t.column="app_name")}),a.data.ref_date="汇总",a.data.app_name="汇总",r.data.forEach(function(t){t.ref_date=t.expense_date+(t.expense_date_end?" ~ "+t.expense_date_end:""),t.app_name=t.app_name||t.account_name||t.account_id,s.forEach(function(e,a){t[e.column]="充: "+(t&&t.day_info&&t.day_info[a]&&(t.day_info[a].pay_money||0==t.day_info[a].pay_money)?t.day_info[a].pay_money:"-")+" 回: "+(t&&t.day_info&&t.day_info[a]&&(t.day_info[a].total_roi||0==t.day_info[a].total_roi)?t.day_info[a].total_roi:"-")+" 增: "+(t&&t.day_info&&t.day_info[a]&&(t.day_info[a].new_roi||0==t.day_info[a].new_roi)?t.day_info[a].new_roi:"-")+" 倍: "+(t&&t.day_info&&t.day_info[a]&&(t.day_info[a].income_times||0==t.day_info[a].income_times)?t.day_info[a].income_times:"-")+" 充值人数: "+(t&&t.day_info&&t.day_info[a]&&(t.day_info[a].charge_user||0==t.day_info[a].charge_user)?t.day_info[a].charge_user:"-")})});var o=[{tHeader:[].concat(n()(a.header.map(function(t){return t.name})),n()(s.map(function(t){return t.name}))),filterVal:[].concat(n()(a.header.map(function(t){return t.column})),n()(s.map(function(t){return t.column}))),tableDatas:[a.data].concat(n()(r.data)),sheetName:""}];this.$exportOrder({excelDatas:o,name:"账号数据趋势(导出时间:"+this.$getDay(0)+")"})},getHeaderCellStyle:function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}}}},k={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pageLoading,expression:"pageLoading"}],staticClass:"accountTrends-wrap"},[t.isShowEmpty?a("el-empty",{staticClass:"empty-wrap",attrs:{description:"暂无数据权限"}}):[a("div",{staticClass:"screenBox flex"},[a("switchMpAdq",{attrs:{isShowAdqBtn:t.isShowAdqBtn,isShowMpBtn:t.isShowMpBtn,isShowSumBtn:t.isShowSumBtn},on:{change:t.onChangeOrderType},model:{value:t.filter.order_type,callback:function(e){t.$set(t.filter,"order_type",e)},expression:"filter.order_type"}}),t._v(" "),t.isCanExport?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.onClickExport}},[t._v("导出Excel")]):t._e()],1),t._v(" "),a("div",{staticClass:"screenBox filter-wrap"},[a("datePicker",{staticStyle:{"margin-right":"30px"},attrs:{reset:t.reset,title:"自定义",quickFlag:!0,afferent_time:t.default_time,clearFlag:!1},on:{changeTime:t.onChangeTime}}),t._v(" "),a("selfChannelMultiple",{directives:[{name:"show",rawName:"v-show",value:t.isMP,expression:"isMP"}],staticStyle:{"margin-right":"30px","margin-left":"-30px"},attrs:{reset:t.reset,title:"账号",type:"thePublic",labelWidth:""},on:{channelDefine:t.onChangeAccountId}}),t._v(" "),a("selfChannelMultiple",{directives:[{name:"show",rawName:"v-show",value:t.isADQ,expression:"isADQ"}],staticStyle:{"margin-right":"30px","margin-left":"-30px"},attrs:{reset:t.reset,title:"账号",type:"adqAccount",labelWidth:""},on:{channelDefine:t.onChangeAccountIdAdq}}),t._v(" "),a("selfChannelMultiple",{directives:[{name:"show",rawName:"v-show",value:t.isSUM,expression:"isSUM"}],staticStyle:{"margin-right":"30px","margin-left":"-30px"},attrs:{reset:t.reset,title:"账号",type:"allAccount",labelWidth:""},on:{channelDefine:t.onChangeAccountIdSum}}),t._v(" "),a("div",{staticClass:"common-screen-item",staticStyle:{"margin-right":"30px"}},[a("label",{staticClass:"common-screen-label"},[t._v("收益截止日期")]),t._v(" "),a("el-date-picker",{staticStyle:{width:"150px"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",size:"small"},on:{change:t.onChangeClosingDate},model:{value:t.filter.closing_date,callback:function(e){t.$set(t.filter,"closing_date",e)},expression:"filter.closing_date"}})],1),t._v(" "),a("div",{staticClass:"flex"},[a("selfChannel",{staticStyle:{"margin-right":"30px","margin-left":"-30px"},attrs:{reset:t.reset,title:"推广类型",type:"promotionType",labelWidth:""},on:{channelDefine:t.onChangePromotionType}}),t._v(" "),a("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:t.onClickSearch}},[t._v("确定")]),t._v(" "),a("el-button",{attrs:{size:"mini",plain:""},on:{click:t.onClickReset}},[t._v("重置")])],1)],1),t._v(" "),a("div",{staticClass:"update-time"},[a("i",{staticClass:"el-icon-warning-outline"}),t._v("数据更新时间:"+t._s(t.updateTime||"-"))]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.chartLoading,expression:"chartLoading"}],staticClass:"trendBox mt-10"},[a("div",{staticClass:"legendBox"},t._l(t.legendList,function(e,i){return a("div",{key:i,staticClass:"legendItem",on:{click:function(a){return t.onClickLegend(e,i)}}},[t._v(t._s(e.name)+"\n "),a("div",{class:["checkbox",e.selectFlag?"checkbox_active":""],style:e.selectFlag?"background: "+e.color+";border-color: "+e.color+";":""},[a("i",{staticClass:"el-icon-check"})])])}),0),t._v(" "),a("div",{staticStyle:{width:"100%",height:"250px"},attrs:{id:"trend"}}),t._v(" "),t.chartDataList&&t.chartDataList.length?t._e():a("div",{staticStyle:{"text-align":"center",color:"#333","font-size":"14px",position:"relative",top:"-100px"}},[t._v("暂无数据")])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.summaryLoading,expression:"summaryLoading"}]},[a("ux-grid",{ref:"summaryTable",staticClass:"summaryTable",attrs:{border:!1,"header-cell-style":t.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},t._l(t.summaryTableCol,function(e,i){return a("ux-table-column",{key:e.column+e.name+e.tableName,attrs:{resizable:!0,field:e.column,title:e.name,"min-width":e.min_width?e.min_width:140,fixed:e.fixed?e.fixed:"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[t._v("\n "+t._s(e.name)+"\n "),e.notes?a("el-tooltip",{attrs:{content:e.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):t._e()],1)]},proxy:!0},{key:"default",fn:function(i){var n=i.row;return["时间"===e.name||"账户"===e.name?a("div",[a("span",[t._v("汇总")])]):a("span",[t._v(t._s(n[e.column]||0==n[e.column]?t.$formatNum(n[e.column]):"-"))])]}}],null,!0)})}),1)],1),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.detailLoading,expression:"detailLoading"}]},[a("ux-grid",{ref:"detailsTable",staticClass:"detailsTable",attrs:{border:!1,"header-cell-style":t.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini",height:t.height},on:{"row-click":function(){}}},[t._l(t.detailsTableCol,function(e,i){return a("ux-table-column",{key:e.column+e.name+e.tableName,attrs:{resizable:!0,field:e.column,title:e.name,"min-width":e.min_width?e.min_width:140,fixed:e.fixed?e.fixed:"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[t._v("\n "+t._s(e.name)+"\n "),e.notes?a("el-tooltip",{attrs:{content:e.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):t._e(),t._v(" "),e.enable_to_sort?a("div",{staticClass:"sort-wrap"},[a("i",{staticClass:"el-icon-caret-top",class:{active:t.filter.sort_field===e.column&&"asc"===t.filter.sort_type},on:{click:function(a){return t.onClickSort(e.column,"asc")}}}),t._v(" "),a("i",{staticClass:"el-icon-caret-bottom",class:{active:t.filter.sort_field===e.column&&"desc"===t.filter.sort_type},on:{click:function(a){return t.onClickSort(e.column,"desc")}}})]):t._e()],1)]},proxy:!0},{key:"default",fn:function(i){var n=i.row;return["ref_date"===e.column?a("div",[a("span",[t._v(t._s(n.expense_date))]),n.expense_date_end?a("span",[t._v(" ~ "+t._s(n.expense_date_end))]):t._e()]):"account_id"===e.column?a("span",[t._v("\n "+t._s(n.account_id||"-")+"\n ")]):"account_name"===e.column?a("div",[n.account_name.split(",")&&n.account_name.split(",").length>1?[n.account_name.split(",").length<6?t._l(n.account_name.split(","),function(e,i){return a("div",{key:i},[t._v("\n "+t._s(e)+"\n ")])}):[a("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"hover"}},[t._l(n.account_name.split(","),function(e,i){return a("div",{key:i},[t._v("\n "+t._s(e)+"\n ")])}),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[t._l(n.account_name.split(","),function(e,i){return a("div",{key:i},[i<4?a("span",[t._v(t._s(e))]):t._e()])}),t._v(" "),a("div",[t._v(" ... ")])],2)],2)]]:a("span",[t._v("\n "+t._s(n.account_name||"-")+"\n ")])],2):a("span",[t._v(t._s(n[e.column]||0==n[e.column]?t.$formatNum(n[e.column]):"-"))])]}}],null,!0)})}),t._v(" "),t._l(t.detailsTableColDays,function(e,i){return a("ux-table-column",{key:i+e.tableName+e.name,attrs:{width:"120"},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[t._v(t._s(e.name)+"\n "),0===i?a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("充:这天的充值金额"),a("br"),t._v("回:截止这天的累计金额/当天消耗"),a("br"),t._v("增:这天回收金额/当天消耗"),a("br"),t._v("倍:累计金额/第一天累计金额"),a("br"),t._v("充值人数:充值总人数")]),t._v(" "),a("div",[a("i",{staticClass:"el-icon-question"})])]):t._e()],1)]},proxy:!0},{key:"default",fn:function(e){var n=e.row;return[a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#2C9841"}},[t._v("充:")]),t._v(" "),a("span",[t._v(t._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].pay_money?n.day_info[i].pay_money:"-"))])]),t._v(" "),a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#EB4315"}},[t._v("回:")]),t._v(" "),a("span",[t._v(t._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].total_roi?n.day_info[i].total_roi:"-"))])]),t._v(" "),a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#F28544"}},[t._v("增:")]),t._v(" "),a("span",[t._v(t._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].new_roi?n.day_info[i].new_roi:"-"))])]),t._v(" "),a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#2983DF"}},[t._v("倍:")]),t._v(" "),a("span",[t._v(t._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].income_times?n.day_info[i].income_times:"-"))])]),t._v(" "),a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#7366FF"}},[t._v("充值人数:")]),t._v(" "),a("span",[t._v(t._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].charge_user?n.day_info[i].charge_user:"-"))])])]}}],null,!0)})})],2),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.pagination.total>0,expression:"pagination.total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.pagination.page,layout:"prev, pager, next, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(t.pagination.pages)},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)]],2)},staticRenderFns:[]};var A=a("VU/8")(b,k,!1,function(t){a("R28Q"),a("QCax")},"data-v-95d5acd0",null);e.default=A.exports}});