moreShopAdmin/dist/admin/assets/index.7b3e8683.js

2 lines
9.1 KiB
JavaScript
Raw Permalink Normal View History

2024-11-11 11:30:56 +08:00
import{a8 as ee,C as oe,D as te,J as le,K as ae,w as ue,F as se,L as re,M as ne,b as pe,t as ie,N as de,O as me}from"./element-plus.7e347b00.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.3570295b.js";import{d as K,s as fe,r as g,Z as Ce,i as he,af as ve,ap as we,o as m,c as be,U as e,L as a,u as o,aa as ge,R as c,M as h,K as C,a as I,j as ye,Q as Ee,n as Fe}from"./@vue.18505fe0.js";import{u as Be}from"./usePaging.6a6670f9.js";import{u as Ve}from"./useDictOptions.dc8aa87e.js";import{a as q,g as De,h as ke}from"./store_product.0382114d.js";import"./lodash.4e6d2a38.js";import{f as xe}from"./index.fd76ab8a.js";import{_ as Se}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.1a50160d.js";import{_ as Ae}from"./copy.vue_vue_type_script_setup_true_name_storeProductEdit_lang.6b7e3500.js";import{a as Pe}from"./store_category.7157b13b.js";import{u as Ue}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.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.1071aff1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./pinia.a969beab.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.b0c09b66.js";import"./system_store.0aadec73.js";import"./warehouse_product_storege.77d813d1.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bfaac421.js";const $e={class:"mt-4"},ze={class:"flex mt-4 justify-end"},Le=K({name:"storeProductLists"}),Po=K({...Le,setup(Re){const A=Ue(),y=fe(),E=g(null),F=g(!1),r=Ce({store_name:"",class_all:"",is_show:"",id:"",bar_code:"",product_type:""}),B=g([]),N=s=>{B.value=s.map(({id:t})=>t)};Ve("");let P=1;A.query.page_no&&(P=parseInt(A.query.page_no));const{pager:_,getLists:b,resetParams:T,resetPage:f}=Be({page:P,fetchFun:q,params:r}),M=async s=>{var t,n;(t=E.value)==null||t.open(),(n=E.value)==null||n.setFormData(s)},j=async s=>{var t,n;F.value=!0,await Fe(),(t=y.value)==null||t.open("edit"),(n=y.value)==null||n.setFormData(s)};let V,D;const k=g(!1);let x;const O=s=>(x=s,k.value=!0,U.lazyLoad(D,V),!1),U={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(s,t){V||(V=t),D||(D=s);const n=s.value||0;let p={};k.value?(p={name:x},x||(p={pid:n,page_size:1e4})):p={pid:n,page_size:1e4},Pe({...p}).then(S=>{t(S.lists.map(i=>(i.leaf=!0,k.value=!1,i)))})}},J=s=>{De({id:s.id,is_show:s.is_show})},$=async s=>{await xe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ke({id:s}),b()};return he(()=>{b()}),(s,t)=>{const n=oe,p=te,S=ee,i=le,z=ae,d=ue,Q=_e,Z=se,L=re,R=ve("router-link"),u=ne,G=pe,H=ie,W=de,X=ce,v=we("perms"),Y=me;return m(),be("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(Z,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(p,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[e(n,{class:"w-[280px]",onKeydown:ge(o(f),["enter"]),modelValue:o(r).store_name,"onUpdate:modelValue":t[0]||(t[0]=l=>o(r).store_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),e(p,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:o(r).bar_code,"onUpdate:modelValue":t[1]||(t[1]=l=>o(r).bar_code=l),clearable:"",placeh