import{i as g,L as x,S}from"./index-D24Y9HKj.js";import{P as w}from"./index-C__Mp2q5.js";/* empty css                  *//* empty css                                                              *//* empty css                        *//* empty css                    *//* empty css               *//* empty css                  *//* empty css                  *//* empty css                             *//* empty css                 *//* empty css                      */import{d as D,r as k,ac as A,c as i,b as _,a as t,u as v,F as y,h as b,o as n,t as r,_ as B}from"./index-hZHbf6Qq.js";const C={class:"page-container"},L={class:"analysis-section"},E={class:"analysis-cards"},F={class:"card-label"},N={class:"card-content"},O={class:"card-value"},P={class:"analysis-section"},R={class:"analysis-cards"},V={class:"card-label"},G={class:"card-content"},I={class:"card-value"},M=D({__name:"index",setup(T){const d=k([]),p=(o,a)=>{o&&(d.value[a]=o)},h=[{value:"12",label:"购买数量(件)"},{value:"3",label:"商品数量(件)"},{value:"45",label:"品牌数量(件)"},{value:"78",label:"三类品类数量(件)"}],f=[{label:"订单平均确认时间(小时)",value:"0.50",data:[30,40,35,50,45,60,55,70,65,80],color:"#e60012",type:"line"},{label:"商品平均出库时间(小时)",value:"7",data:[3,5,4,6,5,7,6,8,7,9,8,7],color:"#3498db",type:"bar"},{label:"商品平均妥投时间(小时)",value:"16.5",data:[40,50,45,60,55,70,65,80,75,90],color:"#f4c542",type:"line"}],u=[{label:"售后商品数量(件)",value:"23",data:[20,30,25,40,35,50,45,60,55,70],color:"#e60012",type:"line"},{label:"平均完成时效(天)",value:"7",data:[2,4,3,5,4,6,5,7,6,8,7,6],color:"#3498db",type:"bar"},{label:"售后商品占比",value:"16.5%",data:[10,15,12,18,14,20,16,22,18,25],color:"#f4c542",type:"line"}];return A(()=>{[...f,...u].forEach((a,s)=>{const e=d.value[s];if(!e)return;const l=g(e);a.type==="line"?l.setOption({grid:{left:0,right:0,top:5,bottom:5},xAxis:{type:"category",show:!1,data:a.data.map((m,c)=>c)},yAxis:{type:"value",show:!1},series:[{type:"line",data:a.data,lineStyle:{color:a.color,width:2},itemStyle:{color:a.color},symbol:"none",smooth:!0,areaStyle:{color:new x(0,0,0,1,[{offset:0,color:a.color+"40"},{offset:1,color:a.color+"10"}])}}]}):l.setOption({grid:{left:0,right:0,top:5,bottom:5},xAxis:{type:"category",show:!1,data:a.data.map((m,c)=>c)},yAxis:{type:"value",show:!1},series:[{type:"bar",data:a.data,itemStyle:{color:a.color},barWidth:4}]})})}),(o,a)=>(n(),i("div",C,[_(v(w),{title:"商品采购明细"}),_(v(S),{data:h}),t("div",L,[a[0]||(a[0]=t("div",{class:"section-title"},"采购效率分析",-1)),t("div",E,[(n(),i(y,null,b(f,(s,e)=>t("div",{class:"analysis-card",key:e},[t("div",F,r(s.label),1),t("div",N,[t("span",O,r(s.value),1),t("div",{class:"mini-chart",ref_for:!0,ref:l=>p(l,e)},null,512)])])),64))])]),t("div",P,[a[1]||(a[1]=t("div",{class:"section-title"},"售后服务分析",-1)),t("div",R,[(n(),i(y,null,b(u,(s,e)=>t("div",{class:"analysis-card",key:e},[t("div",V,r(s.label),1),t("div",G,[t("span",I,r(s.value),1),t("div",{class:"mini-chart",ref_for:!0,ref:l=>p(l,e+3)},null,512)])])),64))])])]))}}),aa=B(M,[["__scopeId","data-v-83faa1c8"]]);export{aa as default};
