moreShopAdmin/build/admin/assets/index copy.1d53ccb0.js

2 lines
7.6 KiB
JavaScript
Raw Permalink Normal View History

2024-11-21 17:27:37 +08:00
import{U as T,w as N,L as P,b as U,M as j,N as S}from"./element-plus.91c68cc0.js";import{_ as G}from"./index.b8338538.js";import{a as z,b as I,c as O}from"./workbench.ce9f7023.js";import{h as d}from"./moment.40bc58bf.js";import{B as Z}from"./vue-echarts.fe276ff7.js";import{d as k,Z as M,r as D,i as q,o as C,c as _,U as t,L as s,a as n,u as m,j as g,R as B,T as H,a9 as J,a0 as K,S as b}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.d12b3af4.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./resize-detector.4e96b72b.js";const Q={class:"workbench"},W={class:"mb-6 flex justify-between items-center"},X={class:"flex items-center text-sm"},$={class:"flex flex-wrap"},ee={class:"mr-2"},te={class:"text-info"},ne={class:"text-6xl"},ue={class:"mb-6 flex justify-between items-center"},ae={class:"flex items-center text-sm"},oe={class:"mb-6 flex justify-between items-center"},le={class:"flex items-center text-sm"},se=k({name:"product"}),Je=k({...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:"\u672C\u6708",value:()=>{const u=new Date,e=new Date;return e.setDate(1),u.setMonth(u.getMonth()+1),u.setDate(0),[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]}}],c=M({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:[{type:"value",name:"\u91D1\u989D",position:"right",axisLabel:{formatter:"{value}"}},{type:"value",name:"\u6570\u91CF",position:"left",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}]}),A=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1"],h=M([{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}]),r=D([new Date,new Date]),i=D([]),p=D([]),f=()=>{let u="";r.value[0]&&r.value[1]&&(u=d(r.value[0]).format("YYYY/MM/DD")+"-"+d(r.value[1]).format("YYYY/MM/DD")),z({date:u}).then(e=>{h.forEach(a=>{a.num=e[a.type].num,a.percent=e[a.type].percent})})},y=()=>{let u="";i.value[0]&&i.value[1]&&(u=d(i.value[0]).format("YYYY/MM/