moreShopAdmin/build/admin/assets/index.4514c774.js

2 lines
8.6 KiB
JavaScript
Raw Normal View History

2024-09-16 22:01:57 +08:00
import{a6 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.a63a26dd.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.efe648dd.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 l,u as o,aa as ge,R as c,M as C,K as f,a as q,j as ye,Q as Ee,n as Fe}from"./@vue.18505fe0.js";import{u as Be}from"./usePaging.6a6670f9.js";import{u as ke}from"./useDictOptions.1ff41454.js";import{a as I,g as Ve,h as De}from"./store_product.88b61be2.js";import"./lodash.2473fc51.js";import{f as xe}from"./index.79885fb7.js";import{_ as Se}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.d3da8d19.js";import{_ as Ae}from"./copy.vue_vue_type_script_setup_true_name_storeProductEdit_lang.37f81694.js";import{a as Pe}from"./store_category.9b1021ea.js";import{u as $e}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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.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.0480155e.js";import"./warehouse_product_storege.a82fd3ce.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7c8ed79c.js";const ze={class:"mt-4"},Le={class:"flex mt-4 justify-end"},Ue=K({name:"storeProductLists"}),xo=K({...Ue,setup(Re){const A=$e(),y=fe(),E=g(null),F=g(!1),r=Ce({store_name:"",class_all:"",is_show:"",bar_code:"",product_type:""}),B=g([]),N=u=>{B.value=u.map(({id:t})=>t)};ke("");let P=1;A.query.page_no&&(P=parseInt(A.query.page_no));const{pager:_,getLists:b,resetParams:T,resetPage:h}=Be({page:P,fetchFun:I,params:r}),M=async u=>{var t,n;(t=E.value)==null||t.open(),(n=E.value)==null||n.setFormData(u)},j=async u=>{var t,n;F.value=!0,await Fe(),(t=y.value)==null||t.open("edit"),(n=y.value)==null||n.setFormData(u)};let k,V;const D=g(!1);let x;const O=u=>(x=u,D.value=!0,$.lazyLoad(V,k),!1),$={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(u,t){k||(k=t),V||(V=u);const n=u.value||0;let p={};D.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,D.value=!1,i)))})}},J=u=>{Ve({id:u.id,is_show:u.is_show})},z=async u=>{await xe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await De({id:u}),b()};return he(()=>{b()}),(u,t)=>{const n=oe,p=te,S=ee,i=le,L=ae,d=ue,Q=_e,Z=se,U=re,R=ve("router-link"),s=ne,G=pe,H=ie,W=de,X=ce,v=we("perms"),Y=me;return m(),be("div",null,[e(U,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(Z,{class:"mb-[-16px]",model:o(r),inline:""},{default:l(()=>[e(p,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:l(()=>[e(n,{class:"w-[280px]",onKeydown:ge(o(h),["enter"]),modelValue:o(r).store_name,"onUpdate:modelValue":t[0]||(t[0]=a=>o(r).store_name=a),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:l(()=>[e(n,{class:"w-[280px]",modelValue:o(r).bar_code,"onUpdate:modelValue":t[1]||(t[1]=a=>o(r).bar_code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(p,{labe