企微助手 ,仓库名 短剧

10.d00e4ac1a85565bec6fb.js 32KB

1
  1. webpackJsonp([10],{"/etu":function(t,e){},"23uh":function(t,e){},"3fVS":function(t,e){},BQSV:function(t,e){},"Jsz+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),s=a.n(i),n=a("exGp"),o=a.n(n),r=a("M4fF"),l=a.n(r),c=a("gzej"),p=a("erru"),d=a("1zIV"),h=a("UtNx"),_={props:{dialogVisible:{type:Boolean,default:function(){return!1}},corpOptions:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1}},computed:{title:function(){return""}},watch:{dialogVisible:function(t){}},methods:{onClickCorp:function(t){this.$emit("confirm",t)},handleCancel:function(){this.$emit("cancel")},handleClearFormData:function(){}}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"dialog-wrap",attrs:{visible:t.dialogVisible,"before-close":t.handleCancel,title:t.title,width:"550px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"content-wrap"},[a("p",{staticClass:"tips"},[t._v("当前数据项包含多个企微,请选择以下其中之一点击跳转至【充值订单管理】")]),t._v(" "),t.corpOptions&&t.corpOptions.length?a("div",{staticClass:"btn-wrap"},t._l(t.corpOptions,function(e){return a("el-button",{key:e.corpid,staticClass:"text-btn",attrs:{type:"text"},on:{click:function(a){return t.onClickCorp(e)}}},[t._v(t._s(e.corp_name))])}),1):t._e()]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleCancel}},[t._v("关 闭")])],1)])},staticRenderFns:[]};var m=a("VU/8")(_,u,!1,function(t){a("Z/5i")},"data-v-15c7dcce",null).exports,g={components:{datePicker:c.a,selfChannel:p.a,colPopover:h.a,selfChannelMultiple:d.a,selectCorpDialog:m},data:function(){return{dataLoading:!1,dataInfoArrs:[{prop:"cost",label:"累计消耗"},{prop:"pay_money",label:"累计充值"},{prop:"qw_cost",label:"企微成本"},{prop:"followers_cost",label:"企微实际加粉成本"},{prop:"new_cost",label:"用户首日下单成本"},{prop:"unique_new_cost",label:"用户首日下单成本(去重)",img:a("N+vA"),duplicateRemoval:!0},{prop:"first_day_pay",label:"新用户首日回收金额",img:a("N+vA")},{prop:"new_pay_uc",label:"新用户首日下单人数",img:a("8tyP")},{prop:"followers_number",label:"企微实际加粉人数",img:a("8tyP")},{prop:"repeat_fans",label:"复粉人数(留存)",img:a("8tyP")},{prop:"repeat_rate",label:"复粉率%(留存)",img:a("Z2ng")},{prop:"first_day_roi",label:"首日ROI"},{prop:"first_roi",label:"首充ROI"},{prop:"profile",label:"总毛利润额"},{prop:"recall_rate",label:"回本率"},{prop:"three_days_rate",label:"3天倍率"},{prop:"seven_days_rate",label:"7天倍率"},{prop:"day3_charge",label:"3天充值金额"},{prop:"day7_charge",label:"7天充值金额"},{prop:"day3_first_day_pay",label:"3天首日充值金额"},{prop:"day7_first_day_pay",label:"7天首日充值金额"}],loading:!1,page:1,pages:0,total:0,page_size:20,sort_field:"",dataInfo:{},default_time:[this.$getDay(0,!1),this.$getDay(0,!1)],time:[],user_id:"",drama_id:"",app_id:[],launch_account_id:"",closing_date:"",gl_loading:!1,desCol:[{prop:"playletTitle",label:"剧集",min_width:160,fixed:"left"},{prop:"official_account_name",label:"公众号",min_width:90},{prop:"user_list_show",label:"使用客服",min_width:250},{prop:"account_name",label:"投放账号",min_width:100},{prop:"balance",label:"账户余额",min_width:100},{prop:"user_name",label:"投手",min_width:90},{prop:"cost",label:"累计消耗",min_width:100,sort:!0},{prop:"first_day_roi",label:"首日ROI",min_width:100,notes:"首日ROI=当日新用户充值之和/累计消耗"},{prop:"first_roi",label:"首充ROI",min_width:90},{prop:"qw_cost",label:"企微成本",min_width:90},{prop:"followers_cost",label:"企微实际加粉成本",min_width:90},{prop:"repeat_rate",label:"复粉率%(留存)",min_width:90},{prop:"new_cost",label:"用户首日下单成本",min_width:90},{prop:"deep_conversions_count",label:"深度目标转化量",min_width:90},{prop:"conversions_count",label:"回传下单人数",notes:"通过广告后台获取到的实际下单人数",min_width:90},{prop:"new_pay_uv",label:"实际下单人数",notes:"猎羽后台统计到的首日首次下单的人数",min_width:90},{prop:"first_charge",label:"首日首单充值金额",min_width:90},{prop:"first_day_pay",label:"首日充值金额",min_width:90},{prop:"scan_follow_total",label:"企微粉丝人数",min_width:90},{prop:"followers_number",label:"企微实际加粉人数",min_width:90},{prop:"repeat_fans",label:"复粉人数(留存)",min_width:90},{prop:"profile",label:"总毛利额",notes:"总毛利额=累计充值-累计消耗",min_width:100},{prop:"recall_rate",label:"回本率%",notes:"回本率=累计充值/累计消耗",min_width:100},{prop:"start_date",label:"开始日期",min_width:100},{prop:"end_date",label:"截止日期",min_width:100},{prop:"pay_money",label:"累计充值",min_width:100},{prop:"three_days_rate",label:"3天倍率",min_width:90},{prop:"seven_days_rate",label:"7天倍率",min_width:90},{prop:"day3_charge",label:"3天充值金额",min_width:90},{prop:"day7_charge",label:"7天充值金额",min_width:90},{prop:"day3_first_day_pay",label:"3天首日充值金额",min_width:90},{prop:"day7_first_day_pay",label:"7天首日充值金额",min_width:90}],height:"",tagType:2,duplicateRemovalData:{flag:!1,loading:!1,data:{}},reset:!1,updateTime:"",selectCorpDialogVisible:!1,currentCorpOptions:[],currentAccountName:""}},computed:{isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},created:function(){this.height=document.documentElement.clientHeight-360>400?document.documentElement.clientHeight-360:400,this.time=this.default_time,this.stat_throwPersonData(),this.init(1),this.handleGetUpdateTime()},methods:{handleGetUpdateTime:function(){var t=this;return o()(s.a.mark(function e(){var a,i,n,o;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a={type:"account_funds"},e.next=4,t.$axios.get(""+t.URL.BASEURL+t.URL.dataBoard_uptime,{params:a});case 4:i=e.sent,n=i.data,(o=void 0===n?{}:n)&&0==o.errno?t.updateTime=o.rst.uptime:4002!=o.errno&&(t.$message.warning(o.err),t.updateTime=""),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),t.updateTime="";case 13:case"end":return e.stop()}},e,t,[[0,10]])}))()},lookDuplicateRemovalData:function(){var t=this;this.duplicateRemovalData.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.statistics_pitcherDataUniqueUser,{params:{pitcher_id:this.user_id,start_date:this.time[0],end_date:this.time[1],playlet_id:this.drama_id,launch_account_id:this.launch_account_id,app_id:this.app_id,closing_date:this.closing_date}}).then(function(e){e=e.data;t.duplicateRemovalData.loading=!1,e&&0==e.errno?(t.duplicateRemovalData.flag=!0,e.rst.new_user_charge_uv_unique?t.duplicateRemovalData.data.unique_new_cost=parseFloat(Number(t.dataInfo.cost)/Number(e.rst.new_user_charge_uv_unique).toFixed(10)).toFixed(2):t.duplicateRemovalData.data.unique_new_cost=""):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.duplicateRemovalData.loading=!1})},headerColor:function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}},changeTime:function(t){!t||t&&0==t.length?this.time=[]:this.time=t,this.duplicateRemovalData.flag=!1,this.stat_throwPersonData(),this.init(1),this.handleGetUpdateTime()},stat_throwPersonData:function(){var t=this;this.gl_loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.stat_throwPersonData,{params:{drama_id:this.drama_id,launch_account_id:this.launch_account_id,app_id:this.app_id,user_id:this.user_id,start:this.time[0],end:this.time[1],closing_date:this.closing_date}}).then(function(e){e=e.data;t.gl_loading=!1,e&&0==e.errno?t.dataInfo=e.rst:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.gl_loading=!1})},init:function(t,e){var a=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.stat_throwPersonList,{params:{drama_id:this.drama_id,launch_account_id:this.launch_account_id,closing_date:this.closing_date,app_id:this.app_id,user_id:this.user_id,start:this.time[0],end:this.time[1],sort_field:this.sort_field,page:"export"==e?1:this.page,pagesize:"export"==e?this.$store.state.exportNumber:this.page_size}}).then(function(t){t=t.data;a.loading=!1,t&&0==t.errno?(t.rst.data.forEach(function(t){t.user_list&&Array.isArray(t.user_list)&&t.user_list.length?t.user_list_show=t.user_list.map(function(t){return t.user_name+"("+t.corp_name+")"}):t.user_list&&Array.isArray(t.user_list)&&t.user_list.length||(t.user_list_show=[])}),"export"==e?a.exportEvent(t.rst.data):(a.datas=t.rst.data,a.$refs.plxTable.reloadData(a.datas),a.total=t.rst.pageInfo.total,a.pages=t.rst.pageInfo.pages)):4002!=t.errno&&a.$message({message:t.err,type:"warning"})}).catch(function(t){a.loading=!1})},handleCurrentChange:function(t){this.init(t),this.handleGetUpdateTime()},handleSizeChange:function(t){this.page_size=t,this.init(1),this.handleGetUpdateTime()},sortFieldEvent:function(t){t===this.sort_field?this.sort_field="":this.sort_field=t,this.init(1),this.handleGetUpdateTime()},exportEvent:function(t){t.forEach(function(t){t.user_list_show=Array.isArray(t.user_list_show)?t.user_list_show.join("、"):t.user_list_show,t.official_account_name=Array.isArray(t.official_account_name)?t.official_account_name.join("、"):t.official_account_name});var e=t,a=[{tHeader:this.desCol.map(function(t){return t.label}),filterVal:this.desCol.map(function(t){return t.prop}),tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:a,name:"投手投放数据(导出时间:"+this.$getDay(0)+")"})},onChangeUserId:function(t){this.duplicateRemovalData.flag=!1,this.user_id=t,this.stat_throwPersonData(),this.init(1),this.handleGetUpdateTime()},onChangeDramaId:function(t){this.duplicateRemovalData.flag=!1,this.drama_id=t,this.stat_throwPersonData(),this.init(1),this.handleGetUpdateTime()},onChangeAppId:function(t){this.duplicateRemovalData.flag=!1,this.app_id=t,this.stat_throwPersonData(),this.init(1),this.handleGetUpdateTime()},onChangeLaunchAccountId:function(t){this.duplicateRemovalData.flag=!1,this.launch_account_id=t,this.stat_throwPersonData(),this.init(1),this.handleGetUpdateTime()},onChangeClosingDate:function(t){this.duplicateRemovalData.flag=!1,this.closing_date=t||"",this.stat_throwPersonData(),this.init(1),this.handleGetUpdateTime()},onClickReset:function(){this.reset=!this.reset,this.sort_field="",this.time=this.default_time,this.user_id="",this.drama_id="",this.app_id=[],this.launch_account_id="",this.closing_date="",this.duplicateRemovalData.flag=!1,this.stat_throwPersonData(),this.init(1),this.handleGetUpdateTime()},onClickAccountName:function(t){var e="https://ad.qq.com/atlas/"+t+'/admanage/adgroup?query={"operation_status":["CALCULATE_STATUS_EXCLUDE_DEL"],"system_status":[]}&tab=adgroup';window.open(e,"_blank")},onClickFirstDayPay:function(t){if(this.currentAccountName=t.account_name,!t.user_list||!t.user_list.length)return this.$message.warning("暂无使用客服"),!1;this.currentCorpOptions=l.a.uniqBy(t.user_list,"corpid"),this.currentCorpOptions.length>1?this.selectCorpDialogVisible=!0:this.handleJumpToCZDDGL({account:this.currentAccountName,corpid:this.currentCorpOptions[0].corpid})},handleJumpToCZDDGL:function(t){var e=t.account,a=t.corpid,i=this.$router.resolve({path:"/charge",query:{account:e,corpid:a}});window.open(i.href,"_blank")},onConfirmSelectCorp:function(t){this.handleJumpToCZDDGL({account:this.currentAccountName,corpid:t.corpid}),this.onCancelSelectCorp()},onCancelSelectCorp:function(){this.selectCorpDialogVisible=!1,this.currentCorpOptions=[],this.currentAccountName=""}}},f={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{staticClass:"screenBox"},[i("div",{staticClass:"flex-align-center",staticStyle:{"flex-wrap":"wrap","margin-right":"40px"}},[i("datePicker",{staticStyle:{"margin-right":"30px"},attrs:{title:"自定义",quickFlag:!0,afferent_time:t.default_time,clearFlag:!1,reset:t.reset},on:{changeTime:t.changeTime}}),t._v(" "),i("selfChannel",{staticStyle:{"margin-left":"-30px","margin-right":"30px"},attrs:{reset:t.reset,title:"投手",type:"pitcher",labelWidth:!0,afferent_params:{corp_id:""}},on:{channelDefine:t.onChangeUserId}}),t._v(" "),i("selfChannel",{staticStyle:{"margin-left":"-30px","margin-right":"30px"},attrs:{reset:t.reset,title:"剧集",type:"dramaList",labelWidth:!0},on:{channelDefine:t.onChangeDramaId}}),t._v(" "),i("selfChannelMultiple",{staticStyle:{"margin-left":"-30px","margin-right":"30px"},attrs:{reset:t.reset,title:"公众号",type:"officialAccount",labelWidth:!0,placeholder:"请选择"},on:{channelDefine:t.onChangeAppId}}),t._v(" "),i("selfChannel",{staticStyle:{"margin-left":"-30px","margin-right":"30px"},attrs:{reset:t.reset,title:"投放账号",type:"adqAccount",labelWidth:!0,placeholder:"请选择"},on:{channelDefine:t.onChangeLaunchAccountId}}),t._v(" "),i("div",{staticClass:"common-screen-item",staticStyle:{"margin-right":"30px"}},[i("label",{staticClass:"common-screen-label"},[t._v("收益截止日期")]),t._v(" "),i("el-date-picker",{staticStyle:{width:"150px"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",size:"small"},on:{change:t.onChangeClosingDate},model:{value:t.closing_date,callback:function(e){t.closing_date=e},expression:"closing_date"}})],1)],1),t._v(" "),i("div",{staticClass:"reset",on:{click:t.onClickReset}},[t._v("重置")]),t._v(" "),t.isCanExport?i("el-button",{staticClass:"export-btn",attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")]):t._e()],1),t._v(" "),i("div",{staticClass:"update-time"},[i("i",{staticClass:"el-icon-warning-outline"}),t._v("账户余额更新时间:"+t._s(t.updateTime||"-"))]),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.dataLoading,expression:"dataLoading"}],staticClass:"dataInfoBox"},t._l(t.dataInfoArrs,function(e,s){return i("div",{key:s,staticClass:"dataInfoItem"},[i("div",{staticClass:"dataItemTitle"},[e.img?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:e.img,alt:""}}):["cost"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("s0AP"),alt:""}}):t._e(),t._v(" "),"pay_money"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"17px"},attrs:{src:a("Wk2b"),alt:""}}):t._e(),t._v(" "),"day3_charge"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"17px"},attrs:{src:a("Wk2b"),alt:""}}):t._e(),t._v(" "),"day7_charge"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"17px"},attrs:{src:a("Wk2b"),alt:""}}):t._e(),t._v(" "),"day3_first_day_pay"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"17px"},attrs:{src:a("Wk2b"),alt:""}}):t._e(),t._v(" "),"day7_first_day_pay"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"17px"},attrs:{src:a("Wk2b"),alt:""}}):t._e(),t._v(" "),"first_day_roi"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("Vu/q"),alt:""}}):t._e(),t._v(" "),"first_roi"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("Vu/q"),alt:""}}):t._e(),t._v(" "),"profile"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("mTuD"),alt:""}}):t._e(),t._v(" "),"recall_rate"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"16px"},attrs:{src:a("Z2ng"),alt:""}}):t._e(),t._v(" "),"three_days_rate"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"16px"},attrs:{src:a("Z2ng"),alt:""}}):t._e(),t._v(" "),"seven_days_rate"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"16px"},attrs:{src:a("Z2ng"),alt:""}}):t._e(),t._v(" "),"qw_cost"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"12px"},attrs:{src:a("JZEC"),alt:""}}):t._e(),t._v(" "),"followers_cost"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"12px"},attrs:{src:a("JZEC"),alt:""}}):t._e(),t._v(" "),"new_cost"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"15px"},attrs:{src:a("N+vA"),alt:""}}):t._e()],t._v(" "),i("span",[t._v(t._s(e.label))])],2),t._v(" "),e.duplicateRemoval?i("div",{staticClass:"dataItem-data"},[t.duplicateRemovalData.loading?i("i",{staticClass:"el-icon-loading c-00b38a"}):t.duplicateRemovalData.flag?i("span",[t._v(t._s(t.duplicateRemovalData.data&&(t.duplicateRemovalData.data[e.prop]||0==t.duplicateRemovalData.data[e.prop])?t.$formatNum(t.duplicateRemovalData.data[e.prop]):"-"))]):i("span",{staticClass:"f14 c-00b38a pointer",on:{click:t.lookDuplicateRemovalData}},[t._v("查看\n "),i("i",{staticClass:"el-icon-thumb",staticStyle:{transform:"rotate(270deg) rotateY(180deg)"}})])]):i("div",{staticClass:"dataItem-data"},[t._v("\n "+t._s(t.dataInfo&&(t.dataInfo[e.prop]||0==t.dataInfo[e.prop])?t.$formatNum(t.dataInfo[e.prop]):"-")+"\n ")])])}),0),t._v(" "),i("ux-grid",{ref:"plxTable",staticClass:"throwPersonPuton-list throwPerson",attrs:{border:!1,"header-cell-style":t.headerColor,height:t.height,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},t._l(t.desCol,function(e){return i("ux-table-column",{key:e.prop,attrs:{resizable:!0,field:e.prop,title:e.label,"min-width":e.min_width?e.min_width:120,align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",{class:["flex-align-jus-center",e.sort?"pointer":"",t.sort_field==e.prop?"sortFieldStyle":""],on:{click:function(a){e.sort&&t.sortFieldEvent(e.prop)}}},[i("span",{style:{"font-size":e.fontSize||"14px"}},[t._v(t._s(e.label))]),t._v(" "),e.sort?i("i",{staticClass:"el-icon-caret-bottom"}):t._e(),t._v(" "),e.notes?i("el-tooltip",{attrs:{content:e.notes,placement:"top"}},[i("div",[i("i",{staticClass:"el-icon-question"})])]):t._e()],1)]},proxy:!0},{key:"default",fn:function(a){var s=a.row;return["account_name"===e.prop?i("span",{class:t.sort_field==e.prop?"sortFieldStyle":"",staticStyle:{color:"#00b38a",cursor:"pointer"},on:{click:function(a){return t.onClickAccountName(s[e.prop])}}},[t._v(t._s(s[e.prop]))]):"first_day_pay"===e.prop?i("span",{staticStyle:{color:"#00b38a",cursor:"pointer"},on:{click:function(e){return t.onClickFirstDayPay(s)}}},[t._v(t._s(s[e.prop]))]):"official_account_name"===e.prop?i("div",{staticStyle:{padding:"4px 0"}},[s.official_account_name&&s.official_account_name.length?[i("colPopover",{attrs:{list:s.official_account_name,maxLength:4,width:220}})]:i("span",[t._v(" - ")])],2):"user_list_show"===e.prop?i("div",{staticStyle:{padding:"4px 0"}},[s.user_list_show&&s.user_list_show.length?[i("colPopover",{attrs:{list:s.user_list_show,maxLength:4,width:280}})]:i("span",[t._v(" - ")])],2):"day3_charge"===e.prop||"day7_charge"===e.prop?i("span",[t._v(t._s(s[e.prop]))]):i("span",{class:t.sort_field==e.prop?"sortFieldStyle":""},[t._v(t._s(s[e.prop]||0==s[e.prop]?t.$formatNum(s[e.prop]):"-"))])]}}],null,!0)})}),1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination"},[i("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1),t._v(" "),i("selectCorpDialog",{attrs:{dialogVisible:t.selectCorpDialogVisible,corpOptions:t.currentCorpOptions},on:{cancel:t.onCancelSelectCorp,confirm:t.onConfirmSelectCorp}})],1)},staticRenderFns:[]};var v=a("VU/8")(g,f,!1,function(t){a("3fVS"),a("23uh"),a("LN77")},"data-v-eb47efd0",null).exports,y={components:{datePicker:c.a,selfChannel:p.a},data:function(){return{loading:!1,page:1,pages:0,total:0,page_size:20,sort_field:"roi",dataInfo:{},default_time:[this.$getDay(0,!1),this.$getDay(0,!1)],time:[],user_id:"",drama_id:"",gl_loading:!1,dataLoading:!1,dataInfoArrs:[{prop:"sum_paid",label:"累计消耗"},{prop:"sum_charge",label:"累计充值"},{prop:"qw_cost",label:"企微成本"},{prop:"followers_cost",label:"企微实际加粉成本"},{prop:"sum_roi",label:"首日ROI"},{prop:"first_roi",label:"首日首单ROI"},{prop:"new_cost",label:"用户首日下单成本"},{prop:"unique_new_cost",label:"用户首日下单成本(去重)",img:a("N+vA"),duplicateRemoval:!0},{prop:"sum_day_charge",label:"新用户首日回收金额",img:a("N+vA")},{prop:"new_pay_uc",label:"新用户首日下单人数",img:a("8tyP")},{prop:"sum_profit",label:"总毛利润额"},{prop:"sum_recover_rate",label:"回本率"}],desCol:[{prop:"user_name",label:"投手",min_width:90,fixed:"left"},{prop:"day_paid",label:"累计消耗",sort:!0,min_width:110},{prop:"charge_total",label:"累计充值",sort:!0,min_width:110},{prop:"qw_cost",label:"企微成本",sort:!0,min_width:110},{prop:"followers_cost",label:"企微实际加粉成本",sort:!0,min_width:110},{prop:"roi",label:"首日ROI",notes:"首日ROI=当日新用户充值之和/累计消耗",sort:!0,min_width:110},{prop:"first_roi",label:"首日首单ROI",min_width:110},{prop:"new_cost",label:"用户首日下单成本",sort:!0,min_width:100},{prop:"unique_new_cost",label:"用户首日下单成本(去重)",min_width:110},{prop:"new_user_charge_total",label:"新用户首日下单金额",min_width:100},{prop:"date_num",label:"投放天数",min_width:100,sort:!0},{prop:"app_num",label:"投放公众号数",min_width:100,sort:!0},{prop:"profit",label:"总毛利额",notes:"总毛利额=累计充值-累计消耗",sort:!0},{prop:"recover_rate",label:"回本率%",notes:"回本率=累计充值/累计消耗",sort:!0}],height:"",duplicateRemovalData:{flag:!1,loading:!1,data:{}}}},computed:{isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},created:function(){this.height=document.documentElement.clientHeight-340>400?document.documentElement.clientHeight-340:400,this.time=this.default_time,this.init(1)},methods:{lookDuplicateRemovalData:function(){var t=this;this.duplicateRemovalData.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.statistics_pitcherDataUniqueUser,{params:{pitcher_id:this.user_id,start_date:this.time[0],end_date:this.time[1]}}).then(function(e){e=e.data;t.duplicateRemovalData.loading=!1,e&&0==e.errno?(t.duplicateRemovalData.flag=!0,e.rst.new_user_charge_uv_unique?t.duplicateRemovalData.data.unique_new_cost=parseFloat(Number(t.dataInfo.sum_paid)/Number(e.rst.new_user_charge_uv_unique).toFixed(10)).toFixed(2):t.duplicateRemovalData.data.unique_new_cost=""):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.duplicateRemovalData.loading=!1})},headerColor:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{backgroundColor:"#FFFFFF !important",border:"none!important"}},changeTime:function(t){!t||t&&0==t.length?this.time=[]:this.time=t,this.duplicateRemovalData.flag=!1,this.init(1)},init:function(t,e){var a=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.pitcherData,{params:{user_id:this.user_id,st_date:this.time[0],en_date:this.time[1],sort_field:this.sort_field,page:"export"==e?1:this.page,page_size:"export"==e?this.$store.state.exportNumber:this.page_size}}).then(function(t){t=t.data;a.loading=!1,t&&0==t.errno?"export"==e?a.exportEvent(t.rst.data.list):(a.datas=t.rst.data.list,a.$refs.plxTable.reloadData(a.datas),a.dataInfo=t.rst.data.summary,a.total=t.rst.pageInfo.total,a.pages=t.rst.pageInfo.pages):4002!=t.errno&&a.$message({message:t.err,type:"warning"})}).catch(function(t){a.loading=!1})},handleCurrentChange:function(t){this.init(t)},handleSizeChange:function(t){this.page_size=t,this.init(1)},sortFieldEvent:function(t){this.sort_field=t,this.init(1)},exportEvent:function(t){var e=t,a=[{tHeader:this.desCol.map(function(t){return t.label}),filterVal:this.desCol.map(function(t){return t.prop}),tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:a,name:"投手数据(导出时间:"+this.$getDay(0)+")"})},onChangeUserId:function(t){this.user_id=t,this.duplicateRemovalData.flag=!1,this.init(1)}}},w={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.gl_loading,expression:"gl_loading"}],staticClass:"screenBox flex"},[i("div",{staticClass:"flex"},[i("datePicker",{attrs:{title:"自定义",quickFlag:!0,afferent_time:t.default_time,clearFlag:!1},on:{changeTime:t.changeTime}}),t._v(" "),i("selfChannel",{staticStyle:{"margin-left":"20px"},attrs:{title:"投手",type:"pitcher",labelWidth:!0,afferent_params:{corp_id:""}},on:{channelDefine:t.onChangeUserId}})],1),t._v(" "),t.isCanExport?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")]):t._e()],1),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.dataLoading,expression:"dataLoading"}],staticClass:"dataInfoBox"},t._l(t.dataInfoArrs,function(e,s){return i("div",{key:s,staticClass:"dataInfoItem"},[i("div",{staticClass:"dataItemTitle"},[e.img?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:e.img,alt:""}}):["sum_paid"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("s0AP"),alt:""}}):t._e(),t._v(" "),"sum_charge"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"17px"},attrs:{src:a("Wk2b"),alt:""}}):t._e(),t._v(" "),"sum_roi"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("Vu/q"),alt:""}}):t._e(),t._v(" "),"first_roi"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("Vu/q"),alt:""}}):t._e(),t._v(" "),"sum_profit"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("mTuD"),alt:""}}):t._e(),t._v(" "),"sum_recover_rate"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:a("Z2ng"),alt:""}}):t._e(),t._v(" "),"qw_cost"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"12px"},attrs:{src:a("JZEC"),alt:""}}):t._e(),t._v(" "),"followers_cost"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"12px"},attrs:{src:a("JZEC"),alt:""}}):t._e(),t._v(" "),"new_cost"==e.prop?i("img",{staticClass:"titleIcon",staticStyle:{height:"15px"},attrs:{src:a("N+vA"),alt:""}}):t._e()],t._v(" "),i("span",[t._v(t._s(e.label))])],2),t._v(" "),e.duplicateRemoval?i("div",{staticClass:"dataItem-data"},[t.duplicateRemovalData.loading?i("i",{staticClass:"el-icon-loading c-00b38a"}):t.duplicateRemovalData.flag?i("span",[t._v(t._s(t.duplicateRemovalData.data&&(t.duplicateRemovalData.data[e.prop]||0==t.duplicateRemovalData.data[e.prop])?t.$formatNum(t.duplicateRemovalData.data[e.prop]):"-"))]):i("span",{staticClass:"f14 c-00b38a pointer",on:{click:t.lookDuplicateRemovalData}},[t._v("查看\n "),i("i",{staticClass:"el-icon-thumb",staticStyle:{transform:"rotate(270deg) rotateY(180deg)"}})])]):i("div",{staticClass:"dataItem-data"},[t._v("\n "+t._s(t.dataInfo&&(t.dataInfo[e.prop]||0==t.dataInfo[e.prop])?t.$formatNum(t.dataInfo[e.prop]):"-")+"\n ")])])}),0),t._v(" "),i("ux-grid",{ref:"plxTable",staticClass:"uxGridBox throwPerson",attrs:{border:!1,"header-cell-style":t.headerColor,height:t.height,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},t._l(t.desCol,function(e){return i("ux-table-column",{key:e.prop,attrs:{resizable:!0,field:e.prop,title:e.label,"min-width":e.min_width?e.min_width:120,fixed:e.fixed?e.fixed:"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",{class:["flex-align-jus-center",e.sort?"pointer":"",t.sort_field==e.prop?"sortFieldStyle":""],on:{click:function(a){e.sort&&t.sortFieldEvent(e.prop)}}},[t._v("\n "+t._s(e.label)+"\n "),e.sort?i("i",{staticClass:"el-icon-caret-bottom"}):t._e(),t._v(" "),e.notes?i("el-tooltip",{attrs:{content:e.notes,placement:"top"}},[i("div",[i("i",{staticClass:"el-icon-question"})])]):t._e()],1)]},proxy:!0},{key:"default",fn:function(a){var s=a.row;return[i("span",{class:t.sort_field==e.prop?"sortFieldStyle":""},[t._v(t._s(s[e.prop]||0==s[e.prop]?t.$formatNum(s[e.prop]):"-"))])]}}],null,!0)})}),1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination"},[i("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next, sizes","page-sizes":[20,50,100],"page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)],1)},staticRenderFns:[]};var C={components:{throwPersonSon:a("VU/8")(y,w,!1,function(t){a("BQSV"),a("t95l")},"data-v-154570aa",null).exports,throwPersonPuton:v},name:"index",data:function(){return{tagType:2}},methods:{changeType:function(t){this.tagType=t}}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"topTagBox flex"},[a("div",{staticClass:"left flex-align-center"},[a("div",{class:["tagItem",2==t.tagType?"tagItem_active":""],on:{click:function(e){return t.changeType(2)}}},[t._v("投手投放数据")]),t._v(" "),a("div",{class:["tagItem",1==t.tagType?"tagItem_active":""],on:{click:function(e){return t.changeType(1)}}},[t._v("投手数据")])])]),t._v(" "),2==t.tagType?a("throwPersonPuton"):t._e(),t._v(" "),1==t.tagType?a("throwPersonSon"):t._e()],1)},staticRenderFns:[]};var x=a("VU/8")(C,b,!1,function(t){a("/etu")},"data-v-fc48f194",null);e.default=x.exports},LN77:function(t,e){},UtNx:function(t,e,a){"use strict";var i={props:{list:{type:Array,required:!0,default:function(){return[]}},maxLength:{type:Number,default:function(){return 5}},width:{type:Number,default:function(){return 200}}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.list.length<t.maxLength+1?t._l(t.list,function(e,i){return a("div",{key:i},[t._v("\n "+t._s(e)+"\n ")])}):[a("el-popover",{attrs:{placement:"top-start",width:t.width||200,trigger:"hover"}},[t._l(t.list,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(t.list,function(e,i){return a("div",{key:i},[i<t.maxLength?a("span",[t._v(t._s(e))]):t._e()])}),t._v(" "),a("div",[t._v(" ... ")])],2)],2)]],2)},staticRenderFns:[]};var n=a("VU/8")(i,s,!1,function(t){a("vCwT")},null,null);e.a=n.exports},"Z/5i":function(t,e){},Z2ng:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAA6BJREFUSA3tVk1IVFEUPueNmRrzZjL6hyCjRQUtoiCKiMrMUVEzhWphi8CioE2LJAj6X0W0iAhrE1gEFY5ajhRhFEXQHwYR/QpptOjvzWj+je+ezhPvzHv3vRknF23qwnDOd/6+e++7594B+NcG/smC6VFNbu+3WJEpcAMSzCWEmSx/AdJnQHytAbToFe1vMqmZEXG0vSYfhmKHBGEdEOWNU7jTh9ohvTLSmi5uXGKjqWQLoHmRCILpCqk+LnxH8+dt0wubvqs+C6clNsLF9QB0kknTxnkVHi2O0KUhhry2P2VBo6l4JwFdTFV0PDsiDPKEcxDwI+b6VwSKr/2w5/B5cA+jddMytp5zezKzMGkHE+63onnyBTQYu6xmehKDCac4IVsNHg/z9sURtfpsyNlBREdlPK+8ONoSCklsySw7sHSjJbSeTLFOtTsw4ktEPO8DfMUtpZtCbESiRaD5DgbKp7wwmns7OH6aPYfE6EQi0uYiBiG2SqeX5C1sCARW7sV1h0ds/ptSN8KhE9xyaySWkndguXGztCBYduujZXMRE0CpDFYlr7ItWNm+C6BddSUxid1J4NQoLsrZcsayOr7x6EVBMMcZnkSoweEk8tYI8aG3x+pd/hxjw0GM8cEZ0uEl9QX+Ti+7w4Zwz4HtAGmehA5iU4zkSocq+dsOw8BU/hLphyYwnjqCG21sOIizJkGPdKjSai+j+9Nq1a5iQlql2hKY+DEZGw5if0nkK9v7pFOVfLjSEveGQ4v5yqhW8yRGDbuk7iC2jLylt6XTIRFjoGVdcdhsoL+1bK4JopkvC1enJMK0rERtVxDfPDeIzKpE8JjCl/0efc7snp/hTUf4Qy1lHOZpvhcIk0mItcNmfB+TpnnB8Ite1vpEvksuYn3hlOvRd7HjXGR+khwbuRWeRrs/PWbbMuuEmUSV1k0sR1KTFqfkz3Saf4kw91YvuTbM3c3PYXJwQp9J8JwPmPV4TGBgTyAw86w9MXG87UZL5y29xAuqVe1/ipkg7tN8hf6Ktvv2XNeKpTOYrdXx/6gHEk9EctcSaNpeldSqlZIYSyJDwcCsIj4MjRMh5Un38/VZHayIXPDKT7nV9uBoOFQrQBzj+SeuPLtf1XmlYW2S74Be2vZW9UmcEbEVTG2hycYwbgcSFdzsG+3/Nrn3BUd84FU2A/muBjffeiYJUsmMie0F+G3F3rtV+TAwMl0QDAW4v3F5Q5o72p79X//LO/AbMQQiCJ8in60AAAAASUVORK5CYII="},t95l:function(t,e){},vCwT:function(t,e){}});