2 lines
8.7 KiB
JavaScript
2 lines
8.7 KiB
JavaScript
|
import{a6 as ee,C as te,D as oe,w as ae,F as le,L as ne,c as se,a as ie,M as re,b as ue,N as pe,O as ce}from"./element-plus.4a7d92a3.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as _e}from"./index.0b8c0e9c.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.736d9491.js";import{d as S,r as g,Z as $,i as fe,af as Ce,o as y,c as v,U as e,L as o,u as l,aa as he,R as p,a as c,T as ye,a9 as ge,a0 as ve,S as r,M as we,K as be,j as ke,n as xe}from"./@vue.18505fe0.js";import{u as Fe}from"./usePaging.6a6670f9.js";import{u as Ee}from"./useDictOptions.e88729b2.js";import{a as z}from"./store_product.53ca9b27.js";import{t as De}from"./workbench.272b8812.js";import"./lodash.9dc701ad.js";import"./index.ad844d62.js";import{_ as Be}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.de78c86f.js";import{a as Re}from"./store_category.9b8507b5.js";import{u as Le}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.a05d38d1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.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"./warehouse_product_storege.ad8eb856.js";const Ve={class:"flex flex-wrap"},Ae={class:"mr-2"},$e={class:"text-info"},ze={key:0},Se={class:"text-2xl mr-2"},Ne={class:"text-2xl mr-2"},Pe={key:1},Ie={class:"text-6xl mr-2"},Te={class:"mt-4"},Ue={class:"flex mt-4 justify-end"},je=S({name:"storeProductLists"}),At=S({...je,setup(Ke){const N=g(!1),R=Le(),w=g(null),m=$({store_name:"",class_all:"",bar_code:""}),f=async n=>{var a,d;N.value=!0,await xe(),(a=w.value)==null||a.open(),(d=w.value)==null||d.getDetail(n)},P=g([]),I=n=>{P.value=n.map(({id:a})=>a)};Ee("");let L=1;R.query.page_no&&(L=parseInt(R.query.page_no));const{pager:C,getLists:V,resetParams:T,resetPage:b}=Fe({page:L,fetchFun:z,params:m});let k,x;const F=g(!1);let E;const U=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},Re({..._}).then(D=>{a(D.lists.map(i=>(i.leaf=!0,F.value=!1,i)))})}},j=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],K=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}]}),O=()=>{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 fe(()=>{V(),O()}),(n,a)=>{const d=te,_=oe,D=ee,i=ae,q=de,M=le,B=ne,W=_e,Z=Ce("Warning"),G=se,H=ie,s=re,J=ue,Q=pe,X=me,Y=ce;return y(),v("div",null,[e(B,{c
|