2024-11-21 17:27:37 +08:00
|
|
|
import{a8 as ce,C as me,D as de,J as _e,K as fe,w as ye,F as Ce,L as he,c as ge,a as ve,M as we,b as be,N as ke,O as Ee}from"./element-plus.91c68cc0.js";import{_ as Fe}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as De}from"./index.b8338538.js";import{_ as xe}from"./index.vue_vue_type_script_setup_true_lang.d134accc.js";import{d as K,r as f,Z as I,i as Be,af as Re,o as y,c as g,U as e,L as a,u as l,aa as Ve,T,a9 as U,R as p,a as c,a0 as Le,S as m,M as Pe,K as Ae,j as Se,n as P}from"./@vue.76ce7aa3.js";import{u as $e}from"./usePaging.f8c888e4.js";import{u as ze}from"./useDictOptions.1f11cf62.js";import{a as Ne}from"./store_product.9ae93a40.js";import{g as Ie,t as Te,w as Ue}from"./workbench.ce9f7023.js";import{_ as Ke}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.ce674a10.js";import{_ as Oe}from"./stockDetails.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.0f1c547e.js";import{_ as We}from"./warehouseProduct.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.c52a001e.js";import{a as je}from"./store_category.b8c1e5ac.js";import{u as qe}from"./vue-router.10bd5b90.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"./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"./index.e03c2e5b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./store_order.c4fc87ec.js";const Me={class:"flex flex-wrap"},Je={class:"mr-2"},Ze={class:"text-info"},Ge={key:0},He={class:"text-2xl mr-2"},Qe={class:"text-2xl mr-2"},Xe={key:1},Ye={class:"text-6xl mr-2"},et={class:"mt-4"},tt={class:"flex mt-4 justify-end"},ot=K({name:"storeProductLists"}),Xt=K({...ot,setup(at){const O=f(!1),W=f(!1),j=f(!1),A=qe(),b=f(null),k=f(null),E=f(null),i=I({store_name:"",class_all:"",bar_code:"",field:"stock",order_by:""}),q=()=>{Ie({}).then(n=>{})},M=async n=>{var o,r;O.value=!0,await P(),(o=b.value)==null||o.open(),(r=b.value)==null||r.getDetail(n)},S=async(n,o=1)=>{var r,s;W.value=!0,await P(),(r=k.value)==null||r.open(),(s=k.value)==null||s.getDetail(n,o)},F=async(n,o=1)=>{var r,s;j.value=!0,await P(),(r=E.value)==null||r.open(),(s=E.value)==null||s.getDetail(n,o)},J=f([]),Z=n=>{J.value=n.map(({id:o})=>o)};ze("");let $=1;A.query.page_no&&($=parseInt(A.query.page_no));const{pager:C,getLists:z,resetParams:G,resetPage:v}=$e({page:$,fetchFun:Ue,params:i});let D,x;const B=f(!1);let R;const H=n=>(R=n,B.value=!0,N.lazyLoad(x,D),!1),N={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(n,o){D||(D=o),x||(x=n);const r=n.value||0;let s={};B.value?(s={name:R},R||(s={pid:r,page_size:1e4})):s={pid:r,page_size:1e4},je({...s}).then(V=>{o(V.lists.map(w=>(w.leaf=!0,B.value=!1,w)))})}},Q=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],X=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),h=I({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%",containLabe
|