2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
|
import{S as R,w as L,L as V,b as N,M as T,N as P}from"./element-plus.ea2cdc63.js";import{_ as S}from"./index.fe076f48.js";import{a as j,b as G,c as U}from"./workbench.932e0e56.js";import{h as c}from"./moment.40bc58bf.js";import{B as z}from"./vue-echarts.01ad0ec2.js";import{d as b,Z as v,r as C,i as I,o as d,c as _,U as t,L as l,a as o,u as p,j as g,R as B,T as O,a9 as Z,a0 as q,S as F}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ce9f3dae.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const H={class:"workbench"},J={class:"mb-6 flex justify-between items-center"},K=o("span",{class:"text-2xl"},"\u5546\u54C1\u6982\u51B5",-1),Q={class:"flex items-center text-sm"},W=o("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),X={class:"flex flex-wrap"},$={class:"mr-2"},ee={class:"text-info"},te={class:"text-6xl"},oe={class:"mb-6 flex justify-between items-center"},ae=o("span",{class:"text-2xl"},"\u5546\u54C1\u6392\u884C",-1),ne={class:"flex items-center text-sm"},ue=o("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),se=b({name:"product"}),Oe=b({...se,setup(re){const f=[{text:"\u8FD1\u4E00\u5468",value:()=>{const u=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,u]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const u=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,u]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const u=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,u]}}],i=v({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:[{type:"value",name:"\u6570\u91CF",position:"left",axisLabel:{formatter:"{value}"}},{type:"value",name:"\u91D1\u989D",position:"right",axisLabel:{formatter:"{value}"}}],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),w=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1"],h=v([{name:"\u5546\u54C1\u6D4F\u89C8\u91CF",type:"browse",icon:"RectangleCopy21",num:0,percent:0},{name:"\u5546\u54C1\u8BBF\u5BA2\u6570",type:"user",icon:"RectangleCopy5",num:0,percent:0},{name:"\u52A0\u8D2D\u4EF6\u6570",type:"cart",icon:"RectangleCopy13",num:0,percent:0},{name:"\u4E0B\u5355\u4EF6\u6570",type:"order",icon:"RectangleCopy12",num:0,percent:0},{name:"\u652F\u4ED8\u4EF6\u6570",type:"pay",icon:"RectangleCopy15",num:0,percent:0},{name:"\u652F\u4ED8\u91D1\u989D",type:"payPrice",icon:"RectangleCopy14",num:0,percent:0},{name:"\u6210\u672C\u91D1\u989D",type:"cost",icon:"RectangleCopy24",num:0,percent:0},{name:"\u9000\u6B3E\u91D1\u989D",type:"refundPrice",icon:"RectangleCopy32",num:0,percent:0},{name:"\u9000\u6B3E\u4EF6\u6570",type:"refund",icon:"RectangleCopy19",num:0,percent:0},{name:"\u8BBF\u5BA2-\u652F\u4ED8\u8F6C\u5316\u7387",type:"payPercent",icon:"RectangleCopy4",num:0,percent:0}]),a=C(["",""]),m=()=>{let u="";a.value[0]&&a.value[1]&&(u=c(a.value[0]).format("YYYY/MM/DD")+"-"+c(a.value[1]).format("YYYY/MM/DD")),j({date:u}).then(e=>{h.forEach(n=>{n.num=e[n.type].num,n.percent=e[n.type].percent})}),G({date:u}).then(e=>{i.xAxis.data=[],i.series=[],i.legend.data=e.series.map(n=>n.name),e.xAxis.forEach(n=>{i.xAxis.data.push(n)}),i.series=e.series.map(n=>({...n,yAxi
|