2025-01-18 17:19:02 +08:00
|
|
|
import{M as oe,C as te,D as le,N as ae,O as ue,w as se,F as ne,K as re,G as ie,b as pe,t as de,H as me,I as _e}from"./element-plus.8e273e86.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.c25efc57.js";import{d as N,s as Ce,r as E,Z as ve,i as be,af as ge,ap as ye,o as c,c as we,U as o,L as a,u as l,aa as he,R as r,M as g,K as b,a as n,S as f,j as Ee,Q as Fe,n as Be}from"./@vue.76ce7aa3.js";import{u as De}from"./usePaging.f8c888e4.js";import{u as Ve}from"./useDictOptions.cc192734.js";import{a as K,g as ke,h as xe}from"./store_product.67945300.js";import"./lodash.4e6d2a38.js";import{f as Se}from"./index.4eb92b1c.js";import{_ as Ae}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.cd1b03e0.js";import{_ as Pe}from"./copy.vue_vue_type_script_setup_true_name_storeProductEdit_lang.11447ea8.js";import{a as Ue}from"./store_category.cc2e27cb.js";import{u as $e}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.63ba074e.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.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"./system_store.aa0e1610.js";import"./warehouse_product_storege.4ecd1622.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.45278fa9.js";const ze={class:"mt-4"},Ie={style:{color:"red"}},Le={style:{color:"red"}},Re={style:{color:"red"}},qe={style:{color:"red"}},Ke={style:{color:"red"}},Ne={class:"mr-1"},Te={class:"ml-1"},Me={class:"flex mt-4 justify-end"},je=N({name:"storeProductLists"}),Ko=N({...je,setup(Oe){const U=$e(),F=Ce(),B=E(null),D=E(!1),s=ve({store_name:"",class_all:"",is_show:"",id:"",bar_code:"",product_type:""}),V=E([]),T=u=>{V.value=u.map(({id:e})=>e)};Ve("");let $=1;U.query.page_no&&($=parseInt(U.query.page_no));const{pager:C,getLists:h,resetParams:M,resetPage:v}=De({page:$,fetchFun:K,params:s}),j=async u=>{var e,p;(e=B.value)==null||e.open(),(p=B.value)==null||p.setFormData(u)},O=async u=>{var e,p;D.value=!0,await Be(),(e=F.value)==null||e.open("edit"),(p=F.value)==null||p.setFormData(u)};let k,x;const S=E(!1);let A;const G=u=>(A=u,S.value=!0,z.lazyLoad(x,k),!1),z={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(u,e){k||(k=e),x||(x=u);const p=u.value||0;let d={};S.value?(d={name:A},A||(d={pid:p,page_size:1e4})):d={pid:p,page_size:1e4},Ue({...d}).then(P=>{e(P.lists.map(m=>(m.leaf=!0,S.value=!1,m)))})}},H=u=>{ke({id:u.id,is_show:u.is_show})},I=async u=>{await Se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await xe({id:u}),h()};return be(()=>{h()}),(u,e)=>{const p=te,d=le,P=oe,m=ae,L=ue,_=se,Q=fe,Z=ne,R=re,q=ge("router-link"),i=ie,J=pe,W=de,X=me,Y=ce,y=ye("perms"),ee=_e;return c(),we("div",null,[o(R,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(Z,{class:"mb-[-16px]",model:l(s),inline:""},{default:a(()=>[o(d,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[o(p,{class:"w-[280px]",onKeydown:he(l(v),["enter"]),modelValue:l(s).store_name,"onUpdate:modelValue":e[0]||(e[0]=t=>l(s).store_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),o(d,{label:"\u5546\u54C1
|