moreShopAdmin/dist/admin/assets/index.2e9adab8.js

2 lines
8.8 KiB
JavaScript
Raw Normal View History

2024-08-21 22:51:57 +08:00
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.a63a26dd.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as _e}from"./index.e9b11dfe.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.66098b57.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.798027a7.js";import{a as z}from"./store_product.ad22c96e.js";import{t as De}from"./workbench.652c5043.js";import"./lodash.2473fc51.js";import"./index.4eacc1fd.js";import{_ as Be}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.a19fcebf.js";import{a as Re}from"./store_category.4846b732.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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.51a7d64e.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.58af5558.js";import"./system_store.4ee984bb.js";import"./warehouse_product_storege.74c2a590.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"}),zt=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