webpackJsonp([63],{"06zA":function(e,t){},oP83:function(e,t,a){"use strict";Object.defineProperty(t,"__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),d=a("d7EF"),c=a.n(d),h=a("Xxa5"),_=a.n(h),p=a("exGp"),m=a.n(p),f=a("u2KI"),u=a.n(f),y=a("gzej"),g=a("KnvP"),v=a("erru"),x=a("3ivx"),C=a("la//"),L=a("M4fF"),w=a.n(L),S={components:{datePicker:y.a,inputRange:g.a,selfChannel:v.a,switchMpAdq:x.a},data:function(){var e=[this.$getDay(-30,!1),this.$getDay(0,!1)];return{default_time:e,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:u()(["首日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:e,playlet_id:"",closing_date:"",plat_order_type:"",costCover:["",""],sort_field:"paid",sort_type:"desc"},updateTime:"",isShowEmpty:!1}},computed:{isMP:function(){return this.filter.order_type===C.D.MP},isADQ:function(){return this.filter.order_type===C.D.ADQ},isSUM:function(){return this.filter.order_type===C.D.SUM},isShowTimes:function(){return!this.filter.playlet_id},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=C.D.ADQ,C.D.ADQ):this.isShowMpBtn?(this.filter.order_type=C.D.MP,C.D.MP):(this.$message.warning('暂无数据权限,请前往"账号管理"添加配置'),!1)},initTableHeight:function(){this.height=document.documentElement.clientHeight-260>400?document.documentElement.clientHeight-260:400},handleGetUpdateTime:function(){var e=this;return m()(_.a.mark(function t(){var a,i,n,r;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={type:""},e.isMP&&(a.type="playlet_data_trend_mp"),e.isADQ&&(a.type="playlet_data_trend_adq"),e.isSUM&&(a.type="playlet_data_trend"),t.next=7,e.$axios.get(""+e.URL.BASEURL+e.URL.dataBoard_uptime,{params:a});case 7:i=t.sent,n=i.data,(r=void 0===n?{}:n)&&0==r.errno?e.updateTime=r.rst.uptime:4002!=r.errno&&(e.$message.warning(r.err),e.updateTime=""),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),e.updateTime="";case 16:case"end":return t.stop()}},t,e,[[0,13]])}))()},handleGetSummaryList:function(){var e=this;return m()(_.a.mark(function t(){var a,i,n,r,s,o,l,d;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.summaryLoading=!0,a={start_date:e.filter.time[0],end_date:e.filter.time[1],playlet_id:e.filter.playlet_id,closing_date:e.filter.closing_date,plat_order_type:e.filter.plat_order_type},i="",n="",e.isADQ?(a.ad_type=1,i=""+e.URL.BASEURL+e.URL.dataBoard_short_summary,n="isADQ"):e.isMP?(a.ad_type=2,i=""+e.URL.BASEURL+e.URL.dataBoard_short_summary,n="isMP"):e.isSUM&&(a.ad_type=0,i=""+e.URL.BASEURL+e.URL.dataBoard_short_summary,n="isSUM"),t.next=8,e.$axios.post(i,a);case 8:if(r=t.sent,s=r.data,!(o=void 0===s?{}:s)||0!=o.errno){t.next=21;break}return l=[],o.rst.header.forEach(function(e){e.tableName=n,e.name&&e.name.length>6&&(e.min_width=20*e.name.length),l.push(e)}),e.summaryTableCol=u()(l),t.next=17,e.$nextTick();case 17:d=Array.isArray(o.rst.data)?o.rst.data:[o.rst.data],e.$refs.summaryTable.reloadData(d),t.next=22;break;case 21:4002!=o.errno&&(e.$message.warning(o.err),e.$refs.summaryTable.reloadData([]));case 22:t.next=28;break;case 24:t.prev=24,t.t0=t.catch(0),console.log(t.t0),e.$refs.summaryTable.reloadData([]);case 28:return t.prev=28,e.summaryLoading=!1,t.finish(28);case 31:case"end":return t.stop()}},t,e,[[0,24,28,31]])}))()},handleGetList:function(){var e=this;return m()(_.a.mark(function t(){var a,i,n,r,s,o,l,d,c;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.detailLoading=!0,a={page:e.pagination.page,page_size:e.pagination.page_size,start_date:e.filter.time[0],end_date:e.filter.time[1],playlet_id:e.filter.playlet_id,closing_date:e.filter.closing_date,plat_order_type:e.filter.plat_order_type,sort_field:e.filter.sort_field,sort_type:e.filter.sort_type},i="",n="",e.isADQ?(a.ad_type=1,i=""+e.URL.BASEURL+e.URL.dataBoard_short_list,n="isADQ"):e.isMP?(a.ad_type=2,i=""+e.URL.BASEURL+e.URL.dataBoard_short_list,n="isMP"):e.isSUM&&(a.ad_type=0,i=""+e.URL.BASEURL+e.URL.dataBoard_short_list,n="isSUM"),t.next=8,e.$axios.post(i,a);case 8:if(r=t.sent,s=r.data,!(o=void 0===s?{}:s)||0!=o.errno){t.next=27;break}return o.rst.extra[0].fixed="left",o.rst.extra[1].fixed="left",l=[],d=[],o.rst.extra.forEach(function(t){t.tableName=n,t.name.includes("DAY")?d.push(t):(t.name&&t.name.length>6&&(t.min_width=20*t.name.length),"ref_date"===t.column&&e.isShowTimes&&(t.min_width=200),l.push(t))}),e.detailsTableCol=u()(l),e.detailsTableColDays=u()(d),t.next=21,e.$nextTick();case 21:c=Array.isArray(o.rst.data)?o.rst.data:[],e.$refs.detailsTable.reloadData(c),e.pagination.total=o.rst.pageInfo.total,e.pagination.pages=o.rst.pageInfo.pages,t.next=28;break;case 27:4002!=o.errno&&(e.$message.warning(o.err),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0);case 28:t.next=36;break;case 30:t.prev=30,t.t0=t.catch(0),console.log(t.t0),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0;case 36:return t.prev=36,e.detailLoading=!1,t.finish(36);case 39:case"end":return t.stop()}},t,e,[[0,30,36,39]])}))()},handleGetChart:function(){var e=this;return m()(_.a.mark(function t(){var a,i,n,r,s;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.chartLoading=!0,a={start_date:e.filter.time[0],end_date:e.filter.time[1],playlet_id:e.filter.playlet_id,closing_date:e.filter.closing_date,plat_order_type:e.filter.plat_order_type},i="",e.isADQ?(a.ad_type=1,i=""+e.URL.BASEURL+e.URL.dataBoard_short_curve):e.isMP?(a.ad_type=2,i=""+e.URL.BASEURL+e.URL.dataBoard_short_curve):e.isSUM&&(a.ad_type=0,i=""+e.URL.BASEURL+e.URL.dataBoard_short_allCurve),t.next=7,e.$axios.post(i,a);case 7:if(n=t.sent,r=n.data,!(s=void 0===r?{}:r)||0!=s.errno){t.next=17;break}return e.chartDataList=Array.isArray(s.rst.data)?s.rst.data:[],t.next=14,e.$nextTick();case 14:e.handleDrawChart(),t.next=23;break;case 17:if(4002==s.errno){t.next=23;break}return e.$message.warning(s.err),e.chartDataList=[],t.next=22,e.$nextTick();case 22:e.myChart&&e.myChart.clear();case 23:t.next=32;break;case 25:return t.prev=25,t.t0=t.catch(0),console.log(t.t0),e.chartDataList=[],t.next=31,e.$nextTick();case 31:e.myChart&&e.myChart.clear();case 32:return t.prev=32,e.chartLoading=!1,t.finish(32);case 35:case"end":return t.stop()}},t,e,[[0,25,32,35]])}))()},handleDrawChart:function(){var e=this;this.myChart&&this.myChart.clear();var t=this,a=[],i=[],n=this.chartDataList.map(function(e){return e.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(e){return t.percentFields.includes(r.name)?t.$formatNum(e)+"%":t.$NumberHandle(e)}}});var s=e.chartDataList.map(function(e){return e[r.key]||0==e[r.key]?e[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(e,t){e.show=0==t}),a.forEach(function(e,t){e.yAxisIndex=t});var r={title:"",tooltip:{trigger:"axis",show:!0,formatter:function(e){var a=e[0].name+"
";return e.forEach(function(e){t.percentFields.includes(e.seriesName)?a+=""+e.marker+e.seriesName+":"+t.$formatNum(e.value)+"%
":a+=""+e.marker+e.seriesName+":"+t.$formatNum(e.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(e,t){var a=this;return m()(_.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(e){return e.selectFlag})).length||n[0].key!=e.key){i.next=3;break}return i.abrupt("return",a.$message.warning("至少存在一条曲线"));case 3:return(r=w.a.cloneDeep(e)).selectFlag=!r.selectFlag,a.$set(a.legendList,t,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(e){this.filter.time=Array.isArray(e)?e:[],this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onChangePlayletId:function(e){this.filter.playlet_id=e,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(e){this.filter.closing_date=e||"",this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onChangePromotionType:function(e){this.filter.plat_order_type=e,this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},handleCurrentChange:function(e){this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=e,this.handleGetList(),this.handleGetUpdateTime()},handleSizeChange:function(e){this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page_size=e,this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onClickSearch:function(){this.handleGetChart(),this.handleGetSummaryList(),this.pagination.page=1,this.handleGetList(),this.handleGetUpdateTime()},onClickSort:function(e,t){this.filter.sort_field===e?this.filter.sort_type===t?(this.filter.sort_field=this.isShowTimes?"paid":"expense_date",this.filter.sort_type="desc"):this.filter.sort_type=t:(this.filter.sort_field=e,this.filter.sort_type=t),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.playlet_id="",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 e=this;return m()(_.a.mark(function t(){var a,i,n,r,o,d,h,p;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.pagination.total){t.next=2;break}return t.abrupt("return",e.$message.warning("暂无数据可导出"));case 2:return t.prev=2,e.pageLoading=!0,a={summary:"",detail:""},i={start_date:e.filter.time[0],end_date:e.filter.time[1],playlet_id:e.filter.playlet_id,closing_date:e.filter.closing_date,plat_order_type:e.filter.plat_order_type},e.isADQ?(i.ad_type=1,a.summary=""+e.URL.BASEURL+e.URL.dataBoard_short_summary,a.detail=""+e.URL.BASEURL+e.URL.dataBoard_short_list):e.isMP?(i.ad_type=2,a.summary=""+e.URL.BASEURL+e.URL.dataBoard_short_summary,a.detail=""+e.URL.BASEURL+e.URL.dataBoard_short_list):e.isSUM&&(i.ad_type=0,a.summary=""+e.URL.BASEURL+e.URL.dataBoard_short_summary,a.detail=""+e.URL.BASEURL+e.URL.dataBoard_short_list),t.next=9,l.a.all([e.$axios.post(a.summary,i),e.$axios.post(a.detail,s()({},i,{sort_field:e.filter.sort_field,sort_type:e.filter.sort_type,page:1,page_size:e.$store.state.exportNumber}))]);case 9:n=t.sent,r=c()(n,2),o=r[0].data,d=void 0===o?{}:o,h=r[1].data,p=void 0===h?{}:h,d&&0==d.errno&&p&&0==p.errno?e.handleExport({summaryData:d.rst,detailData:p.rst}):4002==d.errno&&4002==p.errno||(e.$message.warning(d.err),e.$message.warning(p.err)),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(2),console.log(t.t0),e.$message.warning("导出失败,请重试");case 22:return t.prev=22,e.pageLoading=!1,t.finish(22);case 25:case"end":return t.stop()}},t,e,[[2,18,22,25]])}))()},handleExport:function(e){var t=e.summaryData,a=void 0===t?{}:t,i=e.detailData,r=void 0===i?{}:i,s=[];s=r.extra.filter(function(e){return e.name.includes("DAY")}),a.header.forEach(function(e){"时间"===e.name?e.column="ref_date":"短剧"===e.name&&(e.column="playlet_name")}),Array.isArray(a.data)&&!a.data.length&&(a.data={}),a.data.ref_date="汇总",a.data.playlet_name="汇总",r.data.forEach(function(e){e.ref_date=e.expense_date+(e.expense_date_end?" ~ "+e.expense_date_end:""),s.forEach(function(t,a){e[t.column]="充: "+(e&&e.day_info&&e.day_info[a]&&(e.day_info[a].pay_money||0==e.day_info[a].pay_money)?e.day_info[a].pay_money:"-")+" 回: "+(e&&e.day_info&&e.day_info[a]&&(e.day_info[a].total_roi||0==e.day_info[a].total_roi)?e.day_info[a].total_roi:"-")+" 增: "+(e&&e.day_info&&e.day_info[a]&&(e.day_info[a].new_roi||0==e.day_info[a].new_roi)?e.day_info[a].new_roi:"-")+" 倍: "+(e&&e.day_info&&e.day_info[a]&&(e.day_info[a].income_times||0==e.day_info[a].income_times)?e.day_info[a].income_times:"-")+" 充值人数: "+(e&&e.day_info&&e.day_info[a]&&(e.day_info[a].charge_user||0==e.day_info[a].charge_user)?e.day_info[a].charge_user:"-")})});var o=[{tHeader:[].concat(n()(a.header.map(function(e){return e.name})),n()(s.map(function(e){return e.name}))),filterVal:[].concat(n()(a.header.map(function(e){return e.column})),n()(s.map(function(e){return e.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"}}}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticClass:"shortDramaTrends-wrap"},[e.isShowEmpty?a("el-empty",{staticClass:"empty-wrap",attrs:{description:"暂无数据权限"}}):[a("div",{staticClass:"screenBox flex"},[a("switchMpAdq",{attrs:{isShowAdqBtn:e.isShowAdqBtn,isShowMpBtn:e.isShowMpBtn,isShowSumBtn:e.isShowSumBtn},on:{change:e.onChangeOrderType},model:{value:e.filter.order_type,callback:function(t){e.$set(e.filter,"order_type",t)},expression:"filter.order_type"}}),e._v(" "),e.isCanExport?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.onClickExport}},[e._v("导出Excel")]):e._e()],1),e._v(" "),a("div",{staticClass:"screenBox filter-wrap"},[a("datePicker",{staticStyle:{"margin-right":"30px"},attrs:{reset:e.reset,title:"自定义",quickFlag:!0,afferent_time:e.default_time,clearFlag:!1},on:{changeTime:e.onChangeTime}}),e._v(" "),a("selfChannel",{staticStyle:{"margin-right":"30px","margin-left":"-30px"},attrs:{reset:e.reset,title:"短剧",type:"dramaList",labelWidth:""},on:{channelDefine:e.onChangePlayletId}}),e._v(" "),a("div",{staticClass:"common-screen-item",staticStyle:{"margin-right":"30px"}},[a("label",{staticClass:"common-screen-label"},[e._v("收益截止日期")]),e._v(" "),a("el-date-picker",{staticStyle:{width:"150px"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",size:"small"},on:{change:e.onChangeClosingDate},model:{value:e.filter.closing_date,callback:function(t){e.$set(e.filter,"closing_date",t)},expression:"filter.closing_date"}})],1),e._v(" "),a("div",{staticClass:"flex"},[a("selfChannel",{staticStyle:{"margin-right":"30px","margin-left":"-30px"},attrs:{reset:e.reset,title:"推广类型",type:"promotionType",labelWidth:""},on:{channelDefine:e.onChangePromotionType}}),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:e.onClickSearch}},[e._v("确定")]),e._v(" "),a("el-button",{attrs:{size:"mini",plain:""},on:{click:e.onClickReset}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"update-time"},[a("i",{staticClass:"el-icon-warning-outline"}),e._v("数据更新时间:"+e._s(e.updateTime||"-"))]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.chartLoading,expression:"chartLoading"}],staticClass:"trendBox mt-10"},[a("div",{staticClass:"legendBox"},e._l(e.legendList,function(t,i){return a("div",{key:i,staticClass:"legendItem",on:{click:function(a){return e.onClickLegend(t,i)}}},[e._v(e._s(t.name)+"\n "),a("div",{class:["checkbox",t.selectFlag?"checkbox_active":""],style:t.selectFlag?"background: "+t.color+";border-color: "+t.color+";":""},[a("i",{staticClass:"el-icon-check"})])])}),0),e._v(" "),a("div",{staticStyle:{width:"100%",height:"250px"},attrs:{id:"trend"}}),e._v(" "),e.chartDataList&&e.chartDataList.length?e._e():a("div",{staticStyle:{"text-align":"center",color:"#333","font-size":"14px",position:"relative",top:"-100px"}},[e._v("暂无数据")])]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.summaryLoading,expression:"summaryLoading"}]},[a("ux-grid",{ref:"summaryTable",staticClass:"summaryTable",attrs:{border:!1,"header-cell-style":e.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},e._l(e.summaryTableCol,function(t){return a("ux-table-column",{key:t.column+t.name+t.tableName,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:140,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[e._v("\n "+e._s(t.name)+"\n "),t.notes?a("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e()],1)]},proxy:!0},{key:"default",fn:function(i){var n=i.row;return["时间"===t.name||"短剧"===t.name?a("div",[a("span",[e._v("汇总")])]):a("span",[e._v(e._s(n[t.column]||0==n[t.column]?e.$formatNum(n[t.column]):"-"))])]}}],null,!0)})}),1)],1),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.detailLoading,expression:"detailLoading"}]},[a("ux-grid",{ref:"detailsTable",staticClass:"detailsTable",attrs:{border:!1,"header-cell-style":e.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini",height:e.height},on:{"row-click":function(){}}},[e._l(e.detailsTableCol,function(t,i){return a("ux-table-column",{key:t.column+t.tableName+t.name,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:140,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[e._v("\n "+e._s(t.name)+"\n "),t.notes?a("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e(),e._v(" "),t.enable_to_sort?a("div",{staticClass:"sort-wrap"},[a("i",{staticClass:"el-icon-caret-top",class:{active:e.filter.sort_field===t.column&&"asc"===e.filter.sort_type},on:{click:function(a){return e.onClickSort(t.column,"asc")}}}),e._v(" "),a("i",{staticClass:"el-icon-caret-bottom",class:{active:e.filter.sort_field===t.column&&"desc"===e.filter.sort_type},on:{click:function(a){return e.onClickSort(t.column,"desc")}}})]):e._e()],1)]},proxy:!0},{key:"default",fn:function(i){var n=i.row;return["ref_date"===t.column?a("div",[a("span",[e._v(e._s(n.expense_date))]),n.expense_date_end?a("span",[e._v(" ~ "+e._s(n.expense_date_end))]):e._e()]):a("span",[e._v(e._s(n[t.column]||0==n[t.column]?e.$formatNum(n[t.column]):"-"))])]}}],null,!0)})}),e._v(" "),e._l(e.detailsTableColDays,function(t,i){return a("ux-table-column",{key:i+t.tableName+t.name,attrs:{width:"120"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[e._v(e._s(t.name)+"\n "),0===i?a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("充:这天的充值金额"),a("br"),e._v("回:截止这天的累计金额/当天消耗"),a("br"),e._v("增:这天回收金额/当天消耗"),a("br"),e._v("倍:累计金额/第一天累计金额"),a("br"),e._v("充值人数:充值总人数")]),e._v(" "),a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e()],1)]},proxy:!0},{key:"default",fn:function(t){var n=t.row;return[a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#2C9841"}},[e._v("充:")]),e._v(" "),a("span",[e._v(e._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].pay_money?n.day_info[i].pay_money:"-"))])]),e._v(" "),a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#EB4315"}},[e._v("回:")]),e._v(" "),a("span",[e._v(e._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].total_roi?n.day_info[i].total_roi:"-"))])]),e._v(" "),a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#F28544"}},[e._v("增:")]),e._v(" "),a("span",[e._v(e._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].new_roi?n.day_info[i].new_roi:"-"))])]),e._v(" "),a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#2983DF"}},[e._v("倍:")]),e._v(" "),a("span",[e._v(e._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].income_times?n.day_info[i].income_times:"-"))])]),e._v(" "),a("div",{staticClass:"day_class_info"},[a("span",{staticClass:"font",staticStyle:{color:"#7366FF"}},[e._v("充值人数:")]),e._v(" "),a("span",[e._v(e._s(n&&n.day_info&&n.day_info[i]&&n.day_info[i].charge_user?n.day_info[i].charge_user:"-"))])])]}}],null,!0)})})],2),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.pagination.total>0,expression:"pagination.total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.pagination.page,layout:"prev, pager, next, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(e.pagination.pages)},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)]],2)},staticRenderFns:[]};var k=a("VU/8")(S,b,!1,function(e){a("06zA"),a("qYr4")},"data-v-734a76d5",null);t.default=k.exports},qYr4:function(e,t){}});