chunk-2b83a662.d7f89dec.js
51 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b83a662"],{"0427":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[t._m(0),a("div",{staticClass:"filter-container"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.queryParams}},[a("el-form-item",{attrs:{label:"拓客活动"}},[a("el-select",{style:{width:"100%"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入关键词","remote-method":t.remoteMethod,loading:t.tkhdLoading},model:{value:t.queryParams.eventId,callback:function(e){t.$set(t.queryParams,"eventId",e)},expression:"queryParams.eventId"}},t._l(t.eventList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.eventName,value:t.id}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[t._v("查询")]),a("el-button",{on:{click:t.resetQuery}},[t._v("重置")]),a("el-button",{attrs:{type:"success",icon:"el-icon-camera",loading:t.screenshotLoading},on:{click:t.saveScreenshot}},[t._v("\n 保存截图\n ")])],1)],1)],1),a("div",{staticClass:"tabs-container"},[a("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[a("el-tab-pane",{attrs:{label:"团队数据",name:"team"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.teamLoading,expression:"teamLoading"}],staticClass:"tab-content"},[0===t.teamData.length?a("div",{staticClass:"no-data"},[t._v("\n 暂无数据\n ")]):a("div",[a("div",{staticClass:"statistics-overview"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"stat-card"},[a("div",{staticClass:"stat-icon"},[a("i",{staticClass:"el-icon-s-shop"})]),a("div",{staticClass:"stat-content"},[a("div",{staticClass:"stat-number"},[t._v(t._s(t.teamData.length))]),a("div",{staticClass:"stat-label"},[t._v("参与门店")])])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"stat-card"},[a("div",{staticClass:"stat-icon"},[a("i",{staticClass:"el-icon-s-custom"})]),a("div",{staticClass:"stat-content"},[a("div",{staticClass:"stat-number"},[t._v(t._s(t.getTotalTeams()))]),a("div",{staticClass:"stat-label"},[t._v("参与战队")])])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"stat-card"},[a("div",{staticClass:"stat-icon"},[a("i",{staticClass:"el-icon-s-custom"})]),a("div",{staticClass:"stat-content"},[a("div",{staticClass:"stat-number"},[t._v(t._s(t.getTotalMembers()))]),a("div",{staticClass:"stat-label"},[t._v("参与人员")])])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"stat-card"},[a("div",{staticClass:"stat-icon"},[a("i",{staticClass:"el-icon-trophy-1"})]),a("div",{staticClass:"stat-content"},[a("div",{staticClass:"stat-number"},[t._v(t._s(t.getTotalExpansionCount()))]),a("div",{staticClass:"stat-label"},[t._v("总拓客数")])])])])],1)],1),a("div",{staticClass:"waterfall-container"},t._l(t.sortedTeamData,(function(e){return a("div",{key:e.StoreId,staticClass:"store-card-waterfall"},[a("div",{staticClass:"store-header"},[a("div",{staticClass:"store-title-row"},[a("h4",[t._v(t._s(e.StoreName))]),a("div",{staticClass:"store-summary"},[a("span",{staticClass:"summary-text"},[t._v("\n 目标: "),a("span",{staticClass:"summary-value"},[t._v(t._s(t.getStoreTotalTarget(e)))])]),a("span",{staticClass:"summary-text"},[t._v("\n 完成: "),a("span",{staticClass:"summary-value"},[t._v(t._s(t.getStoreTotalCompleted(e)))])]),a("span",{staticClass:"summary-text"},[t._v("\n 完成率: "),a("span",{staticClass:"summary-value",class:t.getStoreCompletionRateClass(e)},[t._v("\n "+t._s(t.getStoreCompletionRate(e))+"%\n ")])])])])]),a("div",{staticClass:"teams-container"},t._l(e.TeamList,(function(e){return a("div",{key:e.TeamName,staticClass:"team-card"},[a("div",{staticClass:"team-header"},[a("span",{staticClass:"team-name"},[t._v(t._s(e.TeamName))])]),a("div",{staticClass:"team-members"},t._l(e.TeamUserInfo,(function(e){return a("div",{key:e.ExpansionUserId,staticClass:"member-row"},[a("div",{staticClass:"member-info"},[a("span",{staticClass:"member-name"},[t._v(t._s(e.ExpansionUserName))])]),a("div",{staticClass:"member-stats"},[a("span",{staticClass:"target"},[t._v("目标: "+t._s(e.EventTarget))]),a("span",{staticClass:"count"},[t._v("完成: "+t._s(e.ExpansionCount))]),a("span",{staticClass:"rate",class:t.getCompletionRateClass(e.ExpansionCount,e.EventTarget)},[t._v("\n 完成率: "+t._s(t.getCompletionRate(e.ExpansionCount,e.EventTarget))+"%\n ")])])])})),0)])})),0)])})),0)])])]),a("el-tab-pane",{attrs:{label:"排行榜",name:"ranking"}},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"ranking-section"},[a("h3",{staticClass:"ranking-title"},[a("i",{staticClass:"el-icon-s-shop"}),t._v("\n 门店排行榜\n ")]),a("div",{staticClass:"ranking-cards"},t._l(t.topStoreData,(function(e,s){return a("div",{key:e.StoreId,staticClass:"ranking-card",class:"rank-"+(s+1)},[a("div",{staticClass:"rank-number"},[t._v(t._s(s+1))]),a("div",{staticClass:"rank-content"},[a("div",{staticClass:"rank-name"},[t._v(t._s(e.StoreName))]),a("div",{staticClass:"rank-stats"},[a("div",{staticClass:"stat-row"},[a("span",{staticClass:"stat-label"},[t._v("目标")]),a("span",{staticClass:"stat-value target"},[t._v(t._s(e.TotalTarget))])]),a("div",{staticClass:"stat-row"},[a("span",{staticClass:"stat-label"},[t._v("完成")]),a("span",{staticClass:"stat-value completed"},[t._v(t._s(e.CompletedTarget))])]),a("div",{staticClass:"stat-row"},[a("span",{staticClass:"stat-label"},[t._v("完成率")]),a("span",{staticClass:"stat-value rate",class:t.getCompletionRateClass(e.CompletedTarget,e.TotalTarget)},[t._v("\n "+t._s(e.CompletionRate)+"%\n ")])])])]),s<3?a("div",{staticClass:"rank-medal"}):t._e()])})),0)]),a("div",{staticClass:"ranking-section"},[a("h3",{staticClass:"ranking-title"},[a("i",{staticClass:"el-icon-s-custom"}),t._v("\n 个人排行榜\n ")]),a("div",{staticClass:"ranking-cards"},t._l(t.topPersonData,(function(e,s){return a("div",{key:e.UserId,staticClass:"ranking-card person-card",class:"rank-"+(s+1)},[a("div",{staticClass:"rank-number"},[t._v(t._s(s+1))]),a("div",{staticClass:"rank-content"},[a("div",{staticClass:"rank-name"},[t._v(t._s(e.UserName))]),a("div",{staticClass:"rank-store"},[t._v(t._s(e.StoreName)+" - "+t._s(e.TeamName))]),a("div",{staticClass:"rank-stats"},[a("div",{staticClass:"stat-row"},[a("span",{staticClass:"stat-label"},[t._v("目标")]),a("span",{staticClass:"stat-value target"},[t._v(t._s(e.PersonalTarget))])]),a("div",{staticClass:"stat-row"},[a("span",{staticClass:"stat-label"},[t._v("完成")]),a("span",{staticClass:"stat-value completed"},[t._v(t._s(e.CompletedTarget))])]),a("div",{staticClass:"stat-row"},[a("span",{staticClass:"stat-label"},[t._v("完成率")]),a("span",{staticClass:"stat-value rate",class:t.getCompletionRateClass(e.CompletedTarget,e.PersonalTarget)},[t._v("\n "+t._s(e.CompletionRate)+"%\n ")])])])]),s<3?a("div",{staticClass:"rank-medal"}):t._e()])})),0)])])]),a("el-tab-pane",{attrs:{label:"未拓客人员",name:"no-expansion"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.personLoading,expression:"personLoading"}],staticClass:"tab-content"},[0===t.noExpansionData.length?a("div",{staticClass:"no-data"},[t._v("\n 暂无未拓客人员\n ")]):a("div",[a("div",{staticClass:"no-expansion-summary"},[t._v("\n 未拓客人员总数:"+t._s(t.noExpansionData.length)+"人\n ")]),a("div",{staticClass:"no-expansion-table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.noExpansionData,stripe:""}},[a("el-table-column",{attrs:{prop:"UserName",label:"姓名"}}),a("el-table-column",{attrs:{prop:"StoreName",label:"门店"}}),a("el-table-column",{attrs:{prop:"TeamName",label:"团队"}}),a("el-table-column",{attrs:{prop:"PersonalTarget",label:"个人目标",align:"center"}}),a("el-table-column",{attrs:{prop:"CompletedTarget",label:"完成数量",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"zero-count"},[t._v(t._s(e.row.CompletedTarget))])]}}])}),a("el-table-column",{attrs:{label:"完成率","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"progress-container"},[a("div",{staticClass:"progress-bar"},[a("div",{staticClass:"progress-fill zero-progress",style:{width:Math.min(e.row.CompletionRate,100)+"%"}})]),a("span",{staticClass:"progress-text"},[t._v(t._s(e.row.CompletionRate)+"%")])])]}}])}),a("el-table-column",{attrs:{label:"最后拓客时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatTime(e.row.LastExpansionTime))+"\n ")]}}])})],1)],1)])])]),a("el-tab-pane",{attrs:{label:"门店排行榜",name:"store-ranking"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.storeLoading,expression:"storeLoading"}],staticClass:"tab-content"},[0===t.storeData.length?a("div",{staticClass:"no-data"},[t._v("\n 暂无门店数据\n ")]):a("div",[a("div",{staticClass:"store-ranking-summary"},[a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("参与门店总数:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.storeData.length)+"家")])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总目标数:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.getTotalStoreTarget()))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总完成数:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.getTotalStoreCompleted()))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总完成率:")]),a("span",{staticClass:"summary-value",class:t.getTotalCompletionRateClass()},[t._v(t._s(t.getTotalCompletionRate())+"%")])])]),a("div",{staticClass:"store-ranking-table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.sortedStoreData,stripe:""}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"ranking-number",class:t.getRankingClass(e.$index+1)},[t._v("\n "+t._s(e.$index+1)+"\n ")])]}}])}),a("el-table-column",{attrs:{prop:"StoreName",label:"门店","min-width":"120",align:"center"}}),a("el-table-column",{attrs:{prop:"TotalTarget",label:"目标张数",width:"100",align:"center"}}),a("el-table-column",{attrs:{prop:"CompletedTarget",label:"总张数",width:"100",align:"center"}}),a("el-table-column",{attrs:{label:"完成率","min-width":"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"progress-container"},[a("div",{staticClass:"progress-bar"},[a("div",{staticClass:"progress-fill",style:{width:Math.min(e.row.CompletionRate,100)+"%"}})]),a("span",{staticClass:"progress-text"},[t._v("\n "+t._s(e.row.CompletionRate)+"%\n ")])])]}}])}),a("el-table-column",{attrs:{label:"排名",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"ranking",class:t.getRankingClass(e.$index+1)},[t._v("\n "+t._s(e.$index+1)+"\n ")])]}}])}),a("el-table-column",{attrs:{width:"30"}})],1)],1)])])]),a("el-tab-pane",{attrs:{label:"到店情况",name:"store-visit"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.funnelLoading,expression:"funnelLoading"}],staticClass:"tab-content"},[0===t.funnelData.length?a("div",{staticClass:"no-data"},[t._v("\n 暂无到店情况数据\n ")]):a("div",[a("div",{staticClass:"store-visit-summary"},[a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("参与门店总数:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelData.length)+"家")])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总拓客数量:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.total_tk_count||0))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总邀约数量:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.total_yaoy_count||0))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总预约数量:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.total_yy_count||0))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总开单数量:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.total_kd_count||0))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总耗卡数量:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.total_hk_count||0))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总耗卡金额:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.total_hk_amount||0))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总开单金额:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.total_kd_amount||0))])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总到店率:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.overall_yy_conversion_rate||0)+"%")])]),a("div",{staticClass:"summary-item"},[a("span",{staticClass:"summary-label"},[t._v("总成交率:")]),a("span",{staticClass:"summary-value"},[t._v(t._s(t.sortedFunnelStats.overall_hk_conversion_rate||0)+"%")])])]),a("div",{staticClass:"store-visit-table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.sortedFunnelData,stripe:""}},[a("el-table-column",{attrs:{prop:"store_name",label:"门店",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"store-name-link",on:{click:function(a){return t.handleStoreClick(e.row)}}},[t._v("\n "+t._s(e.row.store_name)+"\n ")])]}}])}),a("el-table-column",{attrs:{prop:"tk_count",label:"拓客数量",align:"center"}}),a("el-table-column",{attrs:{prop:"yaoy_count",label:"邀约数量",align:"center"}}),a("el-table-column",{attrs:{prop:"yy_count",label:"预约数量",align:"center"}}),a("el-table-column",{attrs:{prop:"kd_count",label:"开单数量",align:"center"}}),a("el-table-column",{attrs:{prop:"hk_count",label:"耗卡数量",align:"center"}}),a("el-table-column",{attrs:{prop:"hk_amount",label:"耗卡金额",align:"center"}}),a("el-table-column",{attrs:{prop:"kd_amount",label:"开单金额",align:"center"}}),a("el-table-column",{attrs:{prop:"yy_conversion_rate",label:"到店率",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.yy_conversion_rate?e.row.yy_conversion_rate:"0")+"%\n ")]}}])}),a("el-table-column",{attrs:{prop:"hk_conversion_rate",label:"成交率",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.hk_conversion_rate?e.row.hk_conversion_rate:"0")+"%\n ")]}}])})],1)],1)])])])],1)],1),a("div",{staticClass:"report-sections-container",staticStyle:{display:"none"}},[a("div",{staticClass:"report-section"},[t._m(1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.teamLoading,expression:"teamLoading"}],staticClass:"report-content"},[0===t.teamData.length?a("div",{staticClass:"no-data"},[t._v("\n 暂无数据\n ")]):a("div",[a("div",{staticClass:"statistics-overview"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"stat-card"},[a("div",{staticClass:"stat-icon"},[a("i",{staticClass:"el-icon-s-shop"})]),a("div",{staticClass:"stat-content"},[a("div",{staticClass:"stat-number"},[t._v(t._s(t.teamData.length))]),a("div",{staticClass:"stat-label"},[t._v("参与门店")])])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"stat-card"},[a("div",{staticClass:"stat-icon"},[a("i",{staticClass:"el-icon-s-custom"})]),a("div",{staticClass:"stat-content"},[a("div",{staticClass:"stat-number"},[t._v(t._s(t.getTotalTeams()))]),a("div",{staticClass:"stat-label"},[t._v("参与战队")])])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"stat-card"},[a("div",{staticClass:"stat-icon"},[a("i",{staticClass:"el-icon-s-custom"})]),a("div",{staticClass:"stat-content"},[a("div",{staticClass:"stat-number"},[t._v(t._s(t.getTotalMembers()))]),a("div",{staticClass:"stat-label"},[t._v("参与人员")])])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"stat-card"},[a("div",{staticClass:"stat-icon"},[a("i",{staticClass:"el-icon-trophy-1"})]),a("div",{staticClass:"stat-content"},[a("div",{staticClass:"stat-number"},[t._v(t._s(t.getTotalExpansionCount()))]),a("div",{staticClass:"stat-label"},[t._v("总拓客数")])])])])],1)],1),a("div",{staticClass:"waterfall-container"},t._l(t.teamData,(function(e){return a("div",{key:e.StoreId,staticClass:"store-card-waterfall"},[a("div",{staticClass:"store-header"},[a("div",{staticClass:"store-title-row"},[a("h4",[t._v(t._s(e.StoreName))]),a("div",{staticClass:"store-summary"},[a("span",{staticClass:"summary-text"},[t._v("\n 目标: "),a("span",{staticClass:"summary-value"},[t._v(t._s(t.getStoreTotalTarget(e)))])]),a("span",{staticClass:"summary-text"},[t._v("\n 完成: "),a("span",{staticClass:"summary-value"},[t._v(t._s(t.getStoreTotalCompleted(e)))])]),a("span",{staticClass:"summary-text"},[t._v("\n 完成率: "),a("span",{staticClass:"summary-value",class:t.getStoreCompletionRateClass(e)},[t._v("\n "+t._s(t.getStoreCompletionRate(e))+"%\n ")])])])])]),a("div",{staticClass:"teams-container"},t._l(e.TeamList,(function(e){return a("div",{key:e.TeamName,staticClass:"team-card"},[a("div",{staticClass:"team-header"},[a("span",{staticClass:"team-name"},[t._v(t._s(e.TeamName))])]),a("div",{staticClass:"team-members"},t._l(e.TeamUserInfo,(function(e){return a("div",{key:e.ExpansionUserId,staticClass:"member-row"},[a("div",{staticClass:"member-info"},[a("span",{staticClass:"member-name"},[t._v(t._s(e.ExpansionUserName))])]),a("div",{staticClass:"member-stats"},[a("span",{staticClass:"target"},[t._v("目标: "+t._s(e.EventTarget))]),a("span",{staticClass:"count"},[t._v("完成: "+t._s(e.ExpansionCount))]),a("span",{staticClass:"rate",class:t.getCompletionRateClass(e.ExpansionCount,e.EventTarget)},[t._v("\n 完成率: "+t._s(t.getCompletionRate(e.ExpansionCount,e.EventTarget))+"%\n ")])])])})),0)])})),0)])})),0)])])]),a("div",{staticClass:"report-section"},[t._m(2),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.storeLoading,expression:"storeLoading"}],staticClass:"report-content"},[0===t.storeData.length?a("div",{staticClass:"no-data"},[t._v("\n 暂无数据\n ")]):a("div",{staticClass:"store-table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.storeData,stripe:""}},[a("el-table-column",{attrs:{prop:"StoreName",label:"门店名称"}}),a("el-table-column",{attrs:{prop:"TotalTarget",label:"目标数据",align:"center"}}),a("el-table-column",{attrs:{prop:"CompletedTarget",label:"完成数量",align:"center"}}),a("el-table-column",{attrs:{label:"完成率","min-width":"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"progress-container"},[a("div",{staticClass:"progress-bar"},[a("div",{staticClass:"progress-fill",style:{width:e.row.CompletionRate+"%"}})]),a("span",{staticClass:"progress-text"},[t._v(t._s(e.row.CompletionRate)+"%")])])]}}])}),a("el-table-column",{attrs:{prop:"Ranking",label:"排名",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"ranking",class:t.getRankingClass(e.row.Ranking)},[t._v("\n "+t._s(e.row.Ranking)+"\n ")])]}}])})],1)],1)])]),a("div",{staticClass:"report-section"},[t._m(3),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.personLoading,expression:"personLoading"}],staticClass:"report-content"},[0===t.personData.length?a("div",{staticClass:"no-data"},[t._v("\n 暂无数据\n ")]):a("div",{staticClass:"person-table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.personData,stripe:""}},[a("el-table-column",{attrs:{prop:"UserName",label:"姓名"}}),a("el-table-column",{attrs:{prop:"StoreName",label:"门店"}}),a("el-table-column",{attrs:{prop:"TeamName",label:"团队"}}),a("el-table-column",{attrs:{prop:"PersonalTarget",label:"个人目标",align:"center"}}),a("el-table-column",{attrs:{prop:"CompletedTarget",label:"完成数量",align:"center"}}),a("el-table-column",{attrs:{label:"完成率","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"progress-container"},[a("div",{staticClass:"progress-bar"},[a("div",{staticClass:"progress-fill",style:{width:Math.min(e.row.CompletionRate,100)+"%"}})]),a("span",{staticClass:"progress-text"},[t._v(t._s(e.row.CompletionRate)+"%")])])]}}])}),a("el-table-column",{attrs:{prop:"Ranking",label:"排名",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"ranking",class:t.getRankingClass(e.row.Ranking)},[t._v("\n "+t._s(e.row.Ranking)+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"最后拓客时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatTime(e.row.LastExpansionTime))+"\n ")]}}])})],1)],1)])])]),a("el-dialog",{attrs:{title:t.selectedStore?t.selectedStore.store_name+" - 客户详情":"客户详情",visible:t.storeDetailVisible,width:"80%","before-close":t.closeStoreDetail,center:""},on:{"update:visible":function(e){t.storeDetailVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.customerDetailsLoading,expression:"customerDetailsLoading"}],staticClass:"store-detail-content"},[0===t.storeCustomerDetails.length?a("div",{staticClass:"no-data"},[t._v("\n 暂无客户数据\n ")]):a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.storeCustomerDetails,stripe:""}},[a("el-table-column",{attrs:{prop:"customer_name",label:"客户姓名",align:"center"}}),a("el-table-column",{attrs:{prop:"customer_phone",label:"客户电话",align:"center"}}),a("el-table-column",{attrs:{prop:"tk_time",label:"拓客时间",width:"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatCustomerTime(e.row.tk_time))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"yaoy_time",label:"邀约时间",width:"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatCustomerTime(e.row.yaoy_time))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"appointment_time",label:"预约时间",width:"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatCustomerTime(e.row.appointment_time))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"yy_time",label:"到店时间",width:"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatCustomerTime(e.row.yy_time))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"xh_time",label:"耗卡时间",width:"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatCustomerTime(e.row.xh_time))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"appointment_status",label:"预约状态",align:"center"}}),a("el-table-column",{attrs:{prop:"consume_status",label:"耗卡状态",align:"center"}}),a("el-table-column",{attrs:{prop:"consume_amount",label:"消费金额",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.consume_amount||"无")+"\n ")]}}])})],1),t.customerDetailsTotal>0?a("div",{staticClass:"pagination-container"},[a("el-pagination",{attrs:{"current-page":t.customerDetailsPageIndex,"page-sizes":[10,20,50,100],"page-size":t.customerDetailsPageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.customerDetailsTotal},on:{"size-change":t.handleCustomerDetailsPageSizeChange,"current-change":t.handleCustomerDetailsPageChange}})],1):t._e()],1)])]),a("el-dialog",{attrs:{title:"截图预览",visible:t.previewVisible,width:"80%","before-close":t.closePreview,center:""},on:{"update:visible":function(e){t.previewVisible=e}}},[a("div",{staticClass:"screenshot-preview"},[t.screenshotDataUrl?a("img",{staticStyle:{width:"100%","max-height":"70vh","object-fit":"contain"},attrs:{src:t.screenshotDataUrl,alt:"报表截图"}}):t._e()]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closePreview}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.downloadScreenshot}},[t._v("下载图片")])],1)])],1)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-header"},[a("h2",[t._v("拓客活动报表")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"section-header"},[a("h3",[t._v("团队数据报表")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"section-header"},[a("h3",[t._v("门店数据报表")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"section-header"},[a("h3",[t._v("个人数据报表")])])}],r=(a("a481"),a("b85c")),o=(a("ac6a"),a("5df3"),a("3835")),l=(a("7f7f"),a("96cf"),a("1da1")),i=a("2909"),c=(a("55dd"),a("e1df")),u=a("b775"),m={name:"TkjlbReport",data:function(){return{tkhdLoading:!1,queryParams:{eventId:""},eventList:[],teamData:[],storeData:[],personData:[],funnelData:[],overallFunnelStats:{},storeCustomerDetails:[],customerDetailsTotal:0,customerDetailsPageIndex:1,customerDetailsPageSize:10,eventLoading:!1,teamLoading:!1,storeLoading:!1,personLoading:!1,funnelLoading:!1,customerDetailsLoading:!1,screenshotLoading:!1,screenshotDataUrl:"",previewVisible:!1,storeDetailVisible:!1,selectedStore:null,activeTab:"team"}},computed:{sortedTeamData:function(){var t=this;return Object(i["a"])(this.teamData).sort((function(e,a){var s=t.getStoreCompletionRate(e),n=t.getStoreCompletionRate(a);return n-s}))},topStoreData:function(){return this.storeData.slice(0,3)},sortedStoreData:function(){return Object(i["a"])(this.storeData).sort((function(t,e){return e.CompletionRate-t.CompletionRate}))},topPersonData:function(){return this.personData.slice().sort((function(t,e){return e.CompletedTarget-t.CompletedTarget})).slice(0,3)},noExpansionData:function(){return this.personData.filter((function(t){return 0===t.CompletedTarget}))},sortedFunnelData:function(){return Array.isArray(this.funnelData)?Object(i["a"])(this.funnelData).sort((function(t,e){return e.hk_amount-t.hk_amount})):[]},funnelTotals:function(){if(!Array.isArray(this.funnelData)||0===this.funnelData.length)return{tk_count:0,yy_count:0,hk_count:0,hk_amount:0,yy_conversion_rate:0,hk_conversion_rate:0};var t=this.funnelData.reduce((function(t,e){return t.tk_count+=e.tk_count||0,t.yy_count+=e.yy_count||0,t.hk_count+=e.hk_count||0,t.hk_amount+=e.hk_amount||0,t}),{tk_count:0,yy_count:0,hk_count:0,hk_amount:0});return t.yy_conversion_rate=t.tk_count>0?Math.round(t.yy_count/t.tk_count*100):0,t.hk_conversion_rate=t.yy_count>0?Math.round(t.hk_count/t.yy_count*100):0,t},sortedFunnelStats:function(){if(!Array.isArray(this.sortedFunnelData)||0===this.sortedFunnelData.length)return{total_tk_count:0,total_yaoy_count:0,total_yy_count:0,total_kd_count:0,total_hk_count:0,total_hk_amount:0,total_kd_amount:0,overall_yy_conversion_rate:0,overall_hk_conversion_rate:0};var t=this.sortedFunnelData.reduce((function(t,e){return t.total_tk_count+=e.tk_count||0,t.total_yaoy_count+=e.yaoy_count||0,t.total_yy_count+=e.yy_count||0,t.total_kd_count+=e.kd_count||0,t.total_hk_count+=e.hk_count||0,t.total_hk_amount+=e.hk_amount||0,t.total_kd_amount+=e.kd_amount||0,t}),{total_tk_count:0,total_yaoy_count:0,total_yy_count:0,total_kd_count:0,total_hk_count:0,total_hk_amount:0,total_kd_amount:0});return t.overall_yy_conversion_rate=t.total_tk_count>0?Math.round(t.total_yy_count/t.total_tk_count*100*100)/100:0,t.overall_hk_conversion_rate=t.total_yy_count>0?Math.round(t.total_hk_count/t.total_yy_count*100*100)/100:0,t.total_hk_amount=parseFloat((t.total_hk_amount||0).toFixed(2)),t.total_kd_amount=parseFloat((t.total_kd_amount||0).toFixed(2)),t}},created:function(){this.getEventList()},methods:{remoteMethod:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(""===e){t.next=6;break}return this.tkhdLoading=!0,t.next=4,Object(u["a"])({url:"/api/Extend/lqevent?page=1&pageSize=10&eventName="+e,method:"GET"}).then((function(t){a.tkhdLoading=!1,200==t.code&&t.data.list.length>0?a.eventList=t.data.list:a.eventList=[],console.error(a.eventList)}));case 4:t.next=6;break;case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getEventList:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.eventLoading=!0,t.prev=1,console.log("正在获取活动列表..."),t.next=5,Object(c["a"])();case 5:e=t.sent,console.log("活动列表响应:",e),this.eventList=e.data.list||[],this.eventList.length>0&&(this.queryParams.eventId=this.eventList[0].id,console.log("默认选中活动:",this.eventList[0]),this.handleQuery()),t.next=16;break;case 11:t.prev=11,t.t0=t["catch"](1),console.error("获取活动列表失败:",t.t0),this.$message.error("获取活动列表失败: "+t.t0.message),this.eventList=[];case 16:return t.prev=16,this.eventLoading=!1,t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,11,16,19]])})));function e(){return t.apply(this,arguments)}return e}(),handleQuery:function(){this.queryParams.eventId?(this.getTeamData(),this.getStoreData(),this.getPersonData(),this.getFunnelData()):this.$message.warning("请选择拓客活动")},resetQuery:function(){this.eventList.length>0?(this.queryParams.eventId=this.eventList[0].id,this.handleQuery()):(this.queryParams.eventId="",this.teamData=[],this.storeData=[],this.personData=[],this.funnelData=[],this.overallFunnelStats={})},handleTabClick:function(t){this.activeTab=t.name,console.log("切换到选项卡:",t.name)},getTeamData:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.teamLoading=!0,t.prev=1,console.log("正在获取团队数据..."),t.next=5,Object(c["g"])(this.queryParams.eventId);case 5:e=t.sent,console.log("团队数据响应:",e),this.teamData=e.data||[],console.log("团队数据:",this.teamData),t.next=16;break;case 11:t.prev=11,t.t0=t["catch"](1),console.error("获取团队数据失败:",t.t0),this.$message.error("获取团队数据失败: "+t.t0.message),this.teamData=[];case 16:return t.prev=16,this.teamLoading=!1,t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,11,16,19]])})));function e(){return t.apply(this,arguments)}return e}(),getStoreData:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.storeLoading=!0,t.prev=1,console.log("正在获取门店数据..."),t.next=5,Object(c["f"])(this.queryParams.eventId);case 5:e=t.sent,console.log("门店数据响应:",e),this.storeData=e.data||[],console.log("门店数据:",this.storeData),t.next=16;break;case 11:t.prev=11,t.t0=t["catch"](1),console.error("获取门店数据失败:",t.t0),this.$message.error("获取门店数据失败: "+t.t0.message),this.storeData=[];case 16:return t.prev=16,this.storeLoading=!1,t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,11,16,19]])})));function e(){return t.apply(this,arguments)}return e}(),getPersonData:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.personLoading=!0,t.prev=1,console.log("正在获取个人数据..."),t.next=5,Object(c["d"])(this.queryParams.eventId);case 5:e=t.sent,console.log("个人数据响应:",e),this.personData=e.data||[],console.log("个人数据:",this.personData),t.next=16;break;case 11:t.prev=11,t.t0=t["catch"](1),console.error("获取个人数据失败:",t.t0),this.$message.error("获取个人数据失败: "+t.t0.message),this.personData=[];case 16:return t.prev=16,this.personLoading=!1,t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,11,16,19]])})));function e(){return t.apply(this,arguments)}return e}(),getFunnelData:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e,a,s,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.funnelLoading=!0,t.prev=1,console.log("正在获取漏斗统计数据..."),t.next=5,Promise.all([Object(c["b"])(this.queryParams.eventId),Object(c["c"])(this.queryParams.eventId)]);case 5:e=t.sent,a=Object(o["a"])(e,2),s=a[0],n=a[1],console.log("漏斗数据响应:",s),console.log("总体统计响应:",n),Array.isArray(s.data.data)?this.funnelData=s.data.data:this.funnelData=[],this.overallFunnelStats=n.data.data||{},console.log("漏斗数据:",this.funnelData),console.log("总体统计:",this.overallFunnelStats),t.next=23;break;case 17:t.prev=17,t.t0=t["catch"](1),console.error("获取漏斗数据失败:",t.t0),this.$message.error("获取漏斗数据失败: "+t.t0.message),this.funnelData=[],this.overallFunnelStats={};case 23:return t.prev=23,this.funnelLoading=!1,t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[1,17,23,26]])})));function e(){return t.apply(this,arguments)}return e}(),getStoreCustomerDetails:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var a,s,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=r.length>1&&void 0!==r[1]?r[1]:1,s=r.length>2&&void 0!==r[2]?r[2]:20,this.customerDetailsLoading=!0,t.prev=3,console.log("正在获取门店客户详情...",e,a,s),t.next=7,Object(c["e"])(this.queryParams.eventId,e,a,s);case 7:n=t.sent,console.log("门店客户详情响应:",n),this.storeCustomerDetails=n.data.data.list||[],this.customerDetailsTotal=n.data.data.total||0,this.customerDetailsPageIndex=a,this.customerDetailsPageSize=s,console.log("门店客户详情:",this.storeCustomerDetails),console.log("总数量:",this.customerDetailsTotal),t.next=23;break;case 17:t.prev=17,t.t0=t["catch"](3),console.error("获取门店客户详情失败:",t.t0),this.$message.error("获取门店客户详情失败: "+t.t0.message),this.storeCustomerDetails=[],this.customerDetailsTotal=0;case 23:return t.prev=23,this.customerDetailsLoading=!1,t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[3,17,23,26]])})));function e(e){return t.apply(this,arguments)}return e}(),handleStoreClick:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.selectedStore=e,this.storeDetailVisible=!0,this.customerDetailsPageIndex=1,t.next=5,this.getStoreCustomerDetails(e.store_id,1,this.customerDetailsPageSize);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),closeStoreDetail:function(){this.storeDetailVisible=!1,this.selectedStore=null,this.storeCustomerDetails=[],this.customerDetailsTotal=0,this.customerDetailsPageIndex=1},handleCustomerDetailsPageChange:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.selectedStore){t.next=3;break}return t.next=3,this.getStoreCustomerDetails(this.selectedStore.store_id,e,this.customerDetailsPageSize);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleCustomerDetailsPageSizeChange:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.customerDetailsPageSize=e,!this.selectedStore){t.next=4;break}return t.next=4,this.getStoreCustomerDetails(this.selectedStore.store_id,1,e);case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getCompletionRate:function(t,e){return 0===e?0:Math.round(t/e*100)},getCompletionRateClass:function(t,e){var a=this.getCompletionRate(t,e);return a>=100?"rate-excellent":a>=80?"rate-good":a>=60?"rate-normal":"rate-poor"},getRankingClass:function(t){return t<=3?"ranking-top":t<=6?"ranking-good":"ranking-normal"},formatTime:function(t){if(!t)return"无";var e=new Date(t);return e.toLocaleString("zh-CN")},formatCustomerTime:function(t){if(!t)return"无";var e=new Date(t);return e.toLocaleString("zh-CN")},getStoreTotalTarget:function(t){if(!t.TeamList)return 0;var e=0;return t.TeamList.forEach((function(t){t.TeamUserInfo&&t.TeamUserInfo.forEach((function(t){e+=t.EventTarget||0}))})),e},getStoreTotalCompleted:function(t){if(!t.TeamList)return 0;var e=0;return t.TeamList.forEach((function(t){t.TeamUserInfo&&t.TeamUserInfo.forEach((function(t){e+=t.ExpansionCount||0}))})),e},getStoreCompletionRate:function(t){var e=this.getStoreTotalTarget(t),a=this.getStoreTotalCompleted(t);return 0===e?0:Math.round(a/e*100)},getStoreCompletionRateClass:function(t){var e=this.getStoreCompletionRate(t);return e>=100?"rate-excellent":e>=80?"rate-good":e>=60?"rate-normal":"rate-poor"},getTotalTeams:function(){if(!this.teamData||0===this.teamData.length)return 0;var t=0;return this.teamData.forEach((function(e){e.TeamList&&(t+=e.TeamList.length)})),t},getTotalMembers:function(){if(!this.teamData||0===this.teamData.length)return 0;var t=0;return this.teamData.forEach((function(e){e.TeamList&&e.TeamList.forEach((function(e){e.TeamUserInfo&&(t+=e.TeamUserInfo.length)}))})),t},getTotalExpansionCount:function(){if(!this.teamData||0===this.teamData.length)return 0;var t=0;return this.teamData.forEach((function(e){e.TeamList&&e.TeamList.forEach((function(e){e.TeamUserInfo&&e.TeamUserInfo.forEach((function(e){t+=e.ExpansionCount||0}))}))})),t},getTotalStoreTarget:function(){return this.storeData&&0!==this.storeData.length?this.storeData.reduce((function(t,e){return t+(e.TotalTarget||0)}),0):0},getTotalStoreCompleted:function(){return this.storeData&&0!==this.storeData.length?this.storeData.reduce((function(t,e){return t+(e.CompletedTarget||0)}),0):0},getTotalCompletionRate:function(){var t=this.getTotalStoreTarget(),e=this.getTotalStoreCompleted();return 0===t?0:Math.round(e/t*100)},getTotalCompletionRateClass:function(){var t=this.getTotalCompletionRate();return t>=100?"rate-excellent":t>=80?"rate-good":t>=60?"rate-normal":"rate-poor"},addTestData:function(){var t=this;setTimeout((function(){0===t.eventList.length&&(t.eventList=[{id:"740360861859710213",name:"测试拓客活动"}],t.queryParams.eventId=t.eventList[0].id),0===t.teamData.length&&(t.teamData=[{StoreId:"1649328471923847186",StoreName:"绿纤骑士郡店",TeamList:[{TeamName:"咕噜队",TeamUserInfo:[{ExpansionUserId:"17882512738",ExpansionUserName:"梁诗雨",ExpansionCount:6,EventTarget:100},{ExpansionUserId:"admin",ExpansionUserName:"管理员",ExpansionCount:0,EventTarget:6}]}]}]),0===t.storeData.length&&(t.storeData=[{StoreId:"1649328471923847190",StoreName:"绿纤亚洲湾店",TotalTarget:6,CompletedTarget:6,CompletionRate:100,Ranking:1},{StoreId:"1649328471923847169",StoreName:"绿纤紫荆店",TotalTarget:3,CompletedTarget:3,CompletionRate:100,Ranking:2}]),0===t.personData.length&&(t.personData=[{UserId:"19982024821",UserName:"谢珂欣",StoreId:"1649328471923847190",StoreName:"绿纤亚洲湾店",TeamName:"9444",PersonalTarget:1,CompletedTarget:6,CompletionRate:600,Ranking:1,LastExpansionTime:175869973e4},{UserId:"17780181798",UserName:"王任燕",StoreId:"1649328471923847175",StoreName:"绿纤468店",TeamName:"222",PersonalTarget:1,CompletedTarget:3,CompletionRate:300,Ranking:2,LastExpansionTime:1758699412e3}])}),2e3)},saveScreenshot:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e,s,n,o,l,i,c,u,m,d,v,h,p,g,f,_,y,b,C,k,w,S,T,x,D;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.screenshotLoading=!0,t.prev=1,t.next=4,a.e("chunk-2d216257").then(a.t.bind(null,"c0e9",7));case 4:e=t.sent,console.log("当前选中的选项卡:",this.activeTab),n=['.el-tabs__content .el-tab-pane[name="'.concat(this.activeTab,'"] .tab-content'),'.el-tab-pane[name="'.concat(this.activeTab,'"] .tab-content'),'.el-tabs__content .el-tab-pane[aria-labelledby*="'.concat(this.activeTab,'"] .tab-content'),'.el-tab-pane[aria-labelledby*="'.concat(this.activeTab,'"] .tab-content'),".tabs-container .tab-content"],o=0,l=n;case 8:if(!(o<l.length)){t.next=17;break}if(i=l[o],s=document.querySelector(i),!s){t.next=14;break}return console.log("使用选择器找到元素:",i,s),t.abrupt("break",17);case 14:o++,t.next=8;break;case 17:if(s){t.next=39;break}c=document.querySelectorAll(".el-tab-pane"),u=Object(r["a"])(c),t.prev=20,u.s();case 22:if((m=u.n()).done){t.next=31;break}if(d=m.value,!d.classList.contains("is-active")&&"none"===d.style.display){t.next=29;break}if(s=d.querySelector(".tab-content"),!s){t.next=29;break}return console.log("通过活动选项卡找到元素:",s),t.abrupt("break",31);case 29:t.next=22;break;case 31:t.next=36;break;case 33:t.prev=33,t.t0=t["catch"](20),u.e(t.t0);case 36:return t.prev=36,u.f(),t.finish(36);case 39:if(console.log("最终找到的截图元素:",s),s||(s=document.querySelector(".tabs-container"),console.log("使用备用方案 - 整个选项卡容器:",s)),s){t.next=44;break}return this.$message.error("未找到要截图的内容"),t.abrupt("return");case 44:return t.next=46,new Promise((function(t){return setTimeout(t,1e3)}));case 46:return window.scrollTo(0,0),t.next=49,new Promise((function(t){return setTimeout(t,500)}));case 49:return v={height:s.style.height,overflow:s.style.overflow,maxHeight:s.style.maxHeight,position:s.style.position},s.style.height="auto",s.style.overflow="visible",s.style.maxHeight="none",s.style.position="static",h=s.querySelectorAll(".report-section"),h.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.maxHeight="none",t.style.display="block"})),p=s.querySelector(".statistics-overview"),p&&(p.style.height="auto",p.style.overflow="visible",p.style.maxHeight="none",p.style.display="block",p.style.visibility="visible",p.style.opacity="1"),g=s.querySelector(".waterfall-container"),g&&(g.style.height="auto",g.style.overflow="visible",g.style.maxHeight="none"),f=s.querySelectorAll(".store-card-waterfall"),f.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.maxHeight="none"})),s.style.backgroundColor="#ffffff",_=s.querySelectorAll("*"),_.forEach((function(t){t.style.backgroundColor&&"transparent"!==t.style.backgroundColor&&(t.style.backgroundColor="#ffffff")})),y=s.querySelectorAll(".el-table"),y.forEach((function(t){t.style.backgroundColor="#ffffff",t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="none",t.style.tableLayout="auto"})),b=s.querySelectorAll(".el-table td"),b.forEach((function(t){t.style.backgroundColor="#ffffff"})),C=s.querySelectorAll(".el-table th"),C.forEach((function(t){t.style.backgroundColor="#f8f9fa"})),k=s.querySelectorAll(".store-ranking-table, .no-expansion-table, .store-table, .person-table"),k.forEach((function(t){t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="none",t.style.overflow="visible"})),t.next=75,new Promise((function(t){return setTimeout(t,500)}));case 75:return y.forEach((function(t){t.style.width="auto",t.style.minWidth="auto",t.offsetHeight,t.style.width="100%",t.style.minWidth="100%"})),w=Math.max(s.scrollHeight,s.offsetHeight,s.clientHeight),S=Math.max(s.scrollWidth,s.offsetWidth,s.clientWidth),T=s.querySelectorAll(".el-table"),T.forEach((function(t){var e=Math.max(t.scrollWidth,t.offsetWidth,t.clientWidth);e>S&&(S=e)})),console.log("容器尺寸信息:",{scrollWidth:s.scrollWidth,scrollHeight:s.scrollHeight,offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight,clientWidth:s.clientWidth,clientHeight:s.clientHeight,actualHeight:w,actualWidth:S}),x={allowTaint:!0,useCORS:!0,scale:1,backgroundColor:"#ffffff",logging:!0,imageTimeout:3e4,removeContainer:!0,foreignObjectRendering:!1,scrollX:0,scrollY:0,width:S,height:w,windowWidth:S,windowHeight:w,ignoreElements:function(t){return t.classList.contains("el-loading-mask")||t.classList.contains("el-loading-spinner")||t.classList.contains("el-message")||t.classList.contains("el-dialog__wrapper")||t.classList.contains("el-tooltip__popper")},onclone:function(t){var e=t.querySelector(".report-sections-container");e&&(e.style.height="auto",e.style.overflow="visible",e.style.maxHeight="none",e.style.position="static",e.style.width="100%",e.style.backgroundColor="#ffffff");var a=t.querySelectorAll("*");a.forEach((function(t){t.style.backgroundColor&&"transparent"!==t.style.backgroundColor&&(t.style.backgroundColor="#ffffff")}));var s=t.querySelectorAll(".el-table");s.forEach((function(t){t.style.backgroundColor="#ffffff",t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="none",t.style.tableLayout="auto"}));var n=t.querySelectorAll(".el-table td");n.forEach((function(t){t.style.backgroundColor="#ffffff"}));var r=t.querySelectorAll(".el-table th");r.forEach((function(t){t.style.backgroundColor="#f8f9fa"}));var o=t.querySelectorAll(".store-ranking-table, .no-expansion-table, .store-table, .person-table");o.forEach((function(t){t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="none",t.style.overflow="visible"}));var l=t.querySelectorAll(".report-section");l.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.maxHeight="none",t.style.display="block",t.style.visibility="visible",t.style.opacity="1"}));var i=t.querySelector(".statistics-overview");i&&(i.style.height="auto",i.style.overflow="visible",i.style.maxHeight="none",i.style.display="block",i.style.visibility="visible",i.style.opacity="1",i.style.position="static");var c=t.querySelectorAll(".stat-card");c.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.maxHeight="none",t.style.display="flex",t.style.visibility="visible",t.style.opacity="1",t.style.position="static"}));var u=t.querySelectorAll(".el-row");u.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.maxHeight="none"}));var m=t.querySelectorAll(".el-col");m.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.maxHeight="none"}));var d=t.querySelector(".waterfall-container");d&&(d.style.height="auto",d.style.overflow="visible",d.style.maxHeight="none",d.style.display="flex",d.style.flexWrap="wrap");var v=t.querySelectorAll(".store-card-waterfall");v.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.maxHeight="none",t.style.display="block"}));var h=t.querySelectorAll(".team-card");h.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.display="block"}));var p=t.querySelectorAll(".el-table");p.forEach((function(t){t.style.height="auto",t.style.overflow="visible",t.style.maxHeight="none",t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="none",t.style.tableLayout="auto"}));var g=t.querySelectorAll(".el-table__row");g.forEach((function(t){t.style.height="auto",t.style.overflow="visible"}));var f=t.querySelectorAll(".el-table__column");f.forEach((function(t){t.style.width="auto",t.style.minWidth="auto",t.style.maxWidth="none"}));var _=t.querySelectorAll(".el-table__body");_.forEach((function(t){t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="none",t.style.overflow="visible"}));var y=t.querySelectorAll(".el-table__header");y.forEach((function(t){t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="none",t.style.overflow="visible"}));var b=t.querySelectorAll(".el-table__body-wrapper, .el-table__header-wrapper");b.forEach((function(t){t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="none",t.style.overflow="visible"}))}},console.log("开始生成截图,配置选项:",x),t.next=85,e.default(s,x);case 85:D=t.sent,console.log("截图生成完成,画布尺寸:",{width:D.width,height:D.height}),s.style.height=v.height,s.style.overflow=v.overflow,s.style.maxHeight=v.maxHeight,s.style.position=v.position,h.forEach((function(t){t.style.height="",t.style.overflow="",t.style.maxHeight=""})),this.screenshotDataUrl=D.toDataURL("image/png",1),this.previewVisible=!0,this.$message.success("截图生成成功"),t.next=101;break;case 97:t.prev=97,t.t1=t["catch"](1),console.error("截图生成失败:",t.t1),this.$message.error("截图生成失败: "+t.t1.message);case 101:return t.prev=101,this.screenshotLoading=!1,t.finish(101);case 104:case"end":return t.stop()}}),t,this,[[1,97,101,104],[20,33,36,39]])})));function e(){return t.apply(this,arguments)}return e}(),downloadScreenshot:function(){if(this.screenshotDataUrl)try{var t=document.createElement("a");t.download="拓客活动报表_".concat((new Date).toISOString().slice(0,19).replace(/:/g,"-"),".png"),t.href=this.screenshotDataUrl,document.body.appendChild(t),t.click(),document.body.removeChild(t),this.$message.success("图片下载成功")}catch(e){console.error("下载失败:",e),this.$message.error("下载失败,请重试")}else this.$message.error("没有可下载的图片")},closePreview:function(){this.previewVisible=!1,this.screenshotDataUrl=""}}},d=m,v=(a("9214"),a("2877")),h=Object(v["a"])(d,s,n,!1,null,"db92fff2",null);e["default"]=h.exports},"106d":function(t,e,a){},9214:function(t,e,a){"use strict";a("106d")},e1df:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"g",(function(){return r})),a.d(e,"f",(function(){return o})),a.d(e,"d",(function(){return l})),a.d(e,"b",(function(){return i})),a.d(e,"e",(function(){return c})),a.d(e,"c",(function(){return u}));var s=a("b775");function n(){return Object(s["a"])({url:"/api/Extend/lqevent",method:"get"})}function r(t){return Object(s["a"])({url:"/api/Extend/lqevent/team-data/".concat(t),method:"get"})}function o(t){return Object(s["a"])({url:"/api/Extend/lqevent/store-data/".concat(t),method:"get"})}function l(t){return Object(s["a"])({url:"/api/Extend/lqevent/person-data/".concat(t),method:"get"})}function i(t){return Object(s["a"])({url:"/api/Extend/lqtkjlb/GetFunnelStatisticsFast/".concat(t),method:"get"})}function c(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20;return Object(s["a"])({url:"/api/Extend/lqtkjlb/GetStoreCustomerDetailsPaged/".concat(t,"/").concat(e,"?pageIndex=").concat(a,"&pageSize=").concat(n),method:"get"})}function u(t){return Object(s["a"])({url:"/api/Extend/lqtkjlb/GetOverallFunnelStatistics/".concat(t),method:"get"})}}}]);