moreShopAdmin/build/admin/assets/index.99d1044a.js

2 lines
9.4 KiB
JavaScript
Raw Normal View History

2024-11-21 17:27:37 +08:00
import{a8 as oe,C as te,D as le,J as ae,K as ue,w as se,F as ne,L as re,M as pe,b as ie,t as de,N as me,O as _e}from"./element-plus.91c68cc0.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.d134accc.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 i,M as b,K as v,a as d,S as g,j as Ee,Q as Fe,n as Be}from"./@vue.76ce7aa3.js";import{u as Ve}from"./usePaging.f8c888e4.js";import{u as De}from"./useDictOptions.1f11cf62.js";import{a as K,g as ke,h as xe}from"./store_product.9ae93a40.js";import"./lodash.4e6d2a38.js";import{f as Se}from"./index.d12b3af4.js";import{_ as Ae}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.1fad8124.js";import{_ as Pe}from"./copy.vue_vue_type_script_setup_true_name_storeProductEdit_lang.6e806ea2.js";import{a as Ue}from"./store_category.b8c1e5ac.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.e03c2e5b.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.de1a4364.js";import"./warehouse_product_storege.03d18b57.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.85ada49c.js";const ze={class:"mt-4"},Le={style:{color:"red"}},Re={style:{color:"red"}},Ie={style:{color:"red"}},qe={class:"mr-1"},Ke={class:"ml-1"},Ne={class:"flex mt-4 justify-end"},Te=N({name:"storeProductLists"}),Io=N({...Te,setup(Me){const U=$e(),F=Ce(),B=E(null),V=E(!1),s=ve({store_name:"",class_all:"",is_show:"",id:"",bar_code:"",product_type:""}),D=E([]),T=u=>{D.value=u.map(({id:e})=>e)};De("");let $=1;U.query.page_no&&($=parseInt(U.query.page_no));const{pager:f,getLists:h,resetParams:M,resetPage:C}=Ve({page:$,fetchFun:K,params:s}),j=async u=>{var e,r;(e=B.value)==null||e.open(),(r=B.value)==null||r.setFormData(u)},O=async u=>{var e,r;V.value=!0,await Be(),(e=F.value)==null||e.open("edit"),(r=F.value)==null||r.setFormData(u)};let k,x;const S=E(!1);let A;const J=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 r=u.value||0;let p={};S.value?(p={name:A},A||(p={pid:r,page_size:1e4})):p={pid:r,page_size:1e4},Ue({...p}).then(P=>{e(P.lists.map(m=>(m.leaf=!0,S.value=!1,m)))})}},Q=u=>{ke({id:u.id,is_show:u.is_show})},L=async u=>{await Se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await xe({id:u}),h()};return be(()=>{h()}),(u,e)=>{const r=te,p=le,P=oe,m=ae,R=ue,_=se,Z=fe,G=ne,I=re,q=ge("router-link"),n=pe,H=ie,W=de,X=me,Y=ce,y=ye("perms"),ee=_e;return c(),we("div",null,[o(I,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(G,{class:"mb-[-16px]",model:l(s),inline:""},{default:a(()=>[o(p,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[o(r,{class:"w-[280px]",onKeydown:he(l(C),["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(p,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:a(()=>[o(