2026-03-23 17:45:01 +08:00
|
|
|
var O=Object.defineProperty;var N=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var k=(t,e,a)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,y=(t,e)=>{for(var a in e||(e={}))U.call(e,a)&&k(t,a,e[a]);if(N)for(var a of N(e))q.call(e,a)&&k(t,a,e[a]);return t};var m=(t,e,a)=>new Promise((i,l)=>{var h=r=>{try{c(a.next(r))}catch(p){l(p)}},D=r=>{try{c(a.throw(r))}catch(p){l(p)}},c=r=>r.done?i(r.value):Promise.resolve(r.value).then(h,D);c((a=a.apply(t,e)).next())});import{aq as g,at as G,bv as z,ar as j,$ as H,av as A,c2 as Y,ay as I}from"./bootstrap-DhvYQWXT.js";import"./vxe-table-CanfsYTG.js";import{dl as J,cT as L,dj as K,dk as M,d9 as Q,m as X,b9 as S,b7 as Z,ab as v,b2 as b,bJ as d,j as f,u as s,ad as ee,I as te,bb as ae,ac as P,ai as _,br as ie}from"../jse/index-index-rerQU-kO.js";import{g as ne}from"./index-CSeVRo3D.js";import{g as se}from"./index-BRyDEmPg.js";import{g as re}from"./rangePickerProps-D6l-L0aS.js";import{D as F}from"./dict-enum-CaHgMaDZ.js";import{_ as le}from"./content-wrap.vue_vue_type_script_setup_true_lang-DCtffwP4.js";import{u as oe,_ as ue}from"./use-echarts-Dzn7RRgG.js";import{_ as me}from"./page.vue_vue_type_script_setup_true_lang-DQ4lnrNf.js";import{u as de}from"./use-vxe-grid-DYGY_MKq.js";import"./dict-tag.vue_vue_type_script_setup_true_lang-CWMwyFlr.js";function fe(t,e){switch(t){case"businessInversionRateSummary":return V(e);case"businessSummary":return V(e);case"funnel":return ye(e);default:return[]}}function ce(t,e){switch(t){case"businessInversionRateSummary":return ge(e);case"businessSummary":return be(e);case"funnel":return pe(e);default:return[]}}function pe(t){return g.get("/crm/statistics-funnel/get-funnel-summary",{params:t})}function ye(t){return g.get("/crm/statistics-funnel/get-business-summary-by-end-status",{params:t})}function be(t){return g.get("/crm/statistics-funnel/get-business-summary-by-date",{params:t})}function ge(t){return g.get("/crm/statistics-funnel/get-business-inversion-rate-summary-by-date",{params:t})}function V(t){return g.get("/crm/statistics-funnel/get-business-page-by-date",{params:t})}const C=(t={})=>y({top:10},t),R=(t={})=>y({left:20,right:20,bottom:20,containLabel:!0},t),w=(t={})=>y({trigger:"axis",axisPointer:{type:"shadow"}},t);function $(t,e,a){switch(t){case"businessInversionRateSummary":return{color:["#6ca2ff","#6ac9d7","#ff7474"],tooltip:w(),legend:C({data:["赢单转化率","商机总数","赢单商机数"],bottom:"0px",itemWidth:14}),grid:R({top:"40px",left:"40px",right:"40px",bottom:"40px",borderColor:"#fff"}),xAxis:[{type:"category",data:a.map(i=>i.time),axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#BDBDBD"},axisLine:{lineStyle:{color:"#BDBDBD"}},splitLine:{show:!1}}],yAxis:[{type:"value",name:"赢单转化率",axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#BDBDBD",formatter:"{value}%"},axisLine:{lineStyle:{color:"#BDBDBD"}},splitLine:{show:!1}},{type:"value",name:"商机数",axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#BDBDBD",formatter:"{value}个"},axisLine:{lineStyle:{color:"#BDBDBD"}},splitLine:{show:!1}}],series:[{name:"赢单转化率",type:"line",yAxisIndex:0,data:a.map(i=>J(i.businessWinCount,i.businessCount))},{name:"商机总数",type:"bar",yAxisIndex:1,barWidth:15,data:a.map(i=>i.businessCount)},{name:"赢单商机数",type:"bar",yAxisIndex:1,barWidth:15,data:a.map(i=>i.businessWinCount)}]};case"businessSummary":return{grid:R({left:30,right:30}),legend:C(),series:[{name:"新增商机数量",type:"bar",yAxisIndex:0,data:a.map(i=>i.businessCreateCount)},{name:"新增商机金额",type:"bar",yAxisIndex:1,data:a.map(i=>i.totalPrice)}],toolbox:{feature:{dataZoom:{xAxisIndex:!1},brush:{type:["lineX","clear"]},saveAsImage:{show:!0,name:"新增商机分析"}}},tooltip:w(),yAxis:[{type:"value",name:"新增商机数量",min:0,minInterval:1},{type:"value",name:"新增商机金额",min:0,minInterval:1,splitLine:{lineStyle:{type:"dotted",opacity:.7}}}],xAxis:{type:"category",name:"日期",data:a.ma
|