2025-03-26 17:47:04 +08:00
|
|
|
import{M as Ee,a3 as Fe,Q as he,C as ke,D as we,N as Be,O as De,w as Ve,F as xe,K as Se,G as $e,b as Re,t as Ae,H as Pe,L as Ue,I as Ie}from"./element-plus.8e273e86.js";import{_ as ze}from"./index.vue_vue_type_script_setup_true_name_product_lang.4169abc8.js";import{_ as Le}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as Ke}from"./index.vue_vue_type_script_setup_true_lang.dc11f5d9.js";import{d as ee,r as C,s as H,Z as qe,i as Ne,af as Te,ap as We,o as m,c as Z,U as o,L as u,u as l,aa as je,R as s,M as F,K as f,j as L,a as n,S as v,Q as w,n as J}from"./@vue.76ce7aa3.js";import{u as Me}from"./usePaging.f8c888e4.js";import{u as Ge}from"./useDictOptions.b801ef8f.js";import{a as X,h as Oe,i as Qe,j as He}from"./store_product.38b6e967.js";import"./lodash.41b9567d.js";import{f as Y}from"./index.23ef5f03.js";import{_ as Ze}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.c87cd8e8.js";import{_ as Je}from"./copy.vue_vue_type_script_setup_true_name_storeProductEdit_lang.0712a015.js";import{_ as Xe}from"./copyWarehouse.vue_vue_type_script_setup_true_name_storeProductEdit_lang.4ef95bf2.js";import{a as Ye}from"./store_category.3aeb76f7.js";import{u as eo}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"./store_product_price.fc8f7865.js";import"./moment.40bc58bf.js";import"./vue-echarts.fe276ff7.js";import"./resize-detector.4e96b72b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./index.bfcf3e4f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./system_store.2ac4da80.js";import"./warehouse_product_storege.882d73e4.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.d0a18972.js";import"./warehouse.1799126a.js";const oo={class:"mt-4"},to=["onClick"],lo={style:{color:"red"}},uo={style:{color:"red"}},ao={style:{color:"red"}},so={style:{color:"red"}},no={style:{color:"red"}},ro={style:{color:"red"}},io={class:"mr-1"},po={class:"ml-1"},mo={key:0},_o={class:"flex mt-4 justify-end"},co=ee({name:"storeProductLists"}),Ct=ee({...co,setup(fo){const k=C(!1),K=C(""),q=C(0),oe=a=>{k.value=!0,K.value=a,q.value++},B=C("0"),te=a=>{a==1?r.product_status=1:r.product_status=0,g()},N=eo(),D=H(),V=H(),x=C(null),S=C(!1),$=C(!1),r=qe({store_name:"",class_all:"",is_show:"",id:"",bar_code:"",product_status:0,product_type:""}),R=C([]),le=a=>{R.value=a.map(({id:e})=>e)};Ge("");let T=1;N.query.page_no&&(T=parseInt(N.query.page_no));const{pager:b,getLists:g,resetParams:ue,resetPage:E}=Me({page:T,fetchFun:X,params:r}),ae=async a=>{var e,i;(e=x.value)==null||e.open(),(i=x.value)==null||i.setFormData(a)},se=async a=>{var e,i;S.value=!0,await J(),(e=D.value)==null||e.open("edit"),(i=D.value)==null||i.setFormData(a)},ne=async a=>{var e,i;$.value=!0,await J(),(e=V.value)==null||e.open("edit"),(i=V.value)==null||i.setFormData(a)};let A,P;const U=C(!1);let I;const re=a=>(I=a,U.value=!0,W.lazyLoad(P,A),!1),W={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(a,e){A||(A=e),P||(P=a);const i=a.value||0;let p={};U.value?(p={name:I},I||(p={pid:i,page_size:1e4})):p={pid:i,page_size:1e4},Ye({...p}).then(z=>{e(z.lists.map(_=>(_.leaf=!0,U.value=!1,_)))})}},ie=a=>{Oe({id:a.id,is_show:a.is_show})},j=asyn
|