2024-08-22 15:49:18 +08:00
|
|
|
import{a6 as Y,C as ee,D as te,w as oe,F as ae,L as le,c as ne,a as se,M as ie,b as re,N as ue,O as pe}from"./element-plus.4a7d92a3.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as me}from"./index.e8a7525f.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.2e523436.js";import{d as z,r as g,Z as $,i as de,af as fe,o as y,c as v,U as e,L as o,u as l,aa as Ce,R as p,a as c,T as he,a9 as ye,a0 as ge,S as r,M as ve,K as we,j as be,n as ke}from"./@vue.18505fe0.js";import{u as xe}from"./usePaging.6a6670f9.js";import{u as Fe}from"./useDictOptions.a15dbba9.js";import{a as Ee}from"./store_product.9f16d82a.js";import{t as De,w as Be}from"./workbench.f2f8ffc4.js";import{_ as Re}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.862d0055.js";import{a as Le}from"./store_category.da22262b.js";import{u as Ve}from"./vue-router.101084e3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.c5cd39ff.js";import"./lodash.9dc701ad.js";import"./pinia.a969beab.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.d1d136a9.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_order.3349b12b.js";const Ae={class:"flex flex-wrap"},$e={class:"mr-2"},ze={class:"text-info"},Se={key:0},Ne={class:"text-2xl mr-2"},Pe={class:"text-2xl mr-2"},Ie={key:1},Te={class:"text-6xl mr-2"},Ue={class:"mt-4"},je={class:"flex mt-4 justify-end"},Ke=z({name:"storeProductLists"}),$t=z({...Ke,setup(Oe){const S=g(!1),R=Ve(),w=g(null),m=$({store_name:"",class_all:"",bar_code:""}),f=async n=>{var a,d;S.value=!0,await ke(),(a=w.value)==null||a.open(),(d=w.value)==null||d.getDetail(n)},N=g([]),P=n=>{N.value=n.map(({id:a})=>a)};Fe("");let L=1;R.query.page_no&&(L=parseInt(R.query.page_no));const{pager:C,getLists:V,resetParams:I,resetPage:b}=xe({page:L,fetchFun:Be,params:m});let k,x;const F=g(!1);let E;const T=n=>(E=n,F.value=!0,A.lazyLoad(x,k),!1),A={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(n,a){k||(k=a),x||(x=n);const d=n.value||0;let _={};F.value?(_={name:E},E||(_={pid:d,page_size:1e4})):_={pid:d,page_size:1e4},Le({..._}).then(D=>{a(D.lists.map(i=>(i.leaf=!0,F.value=!1,i)))})}},U=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],j=g(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),h=$({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u91D1\u989D",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}]}),K=()=>{De({}).then(n=>{h.xAxis.data=[],h.series=[],console.log(n),h.legend.data=Object.values(n.series).map(a=>a.name),h.xAxis.data=n.x,h.series=Object.values(n.series).map(a=>({type:"line",smooth:!0,data:a.value,name:a.name,total_value:a.total_value,rate:a.rate,desc:a.desc,total_money:a.total_money}))})};return de(()=>{V(),K()}),(n,a)=>{const d=ee,_=te,D=Y,i=oe,O=_e,q=ae,B=le,M=me,W=fe("Warning"),Z=ne,G=se,s=ie,H=re,J=ue,Q=ce,X=pe;return y(),v("div",null,[e(B,{class:"
|