moreShopAdmin/build/admin/assets/index.6778523b.js

2 lines
9.8 KiB
JavaScript
Raw Normal View History

2025-02-07 18:01:06 +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.4beda91c.js";import{d as N,s as Ce,r as F,Z as ve,i as be,af as ye,ap as ge,o as f,c as we,U as o,L as a,u as l,aa as Ee,R as r,M as y,K as b,a as u,S as _,j as Fe,Q as he,n as Be}from"./@vue.76ce7aa3.js";import{u as De}from"./usePaging.f8c888e4.js";import{u as Ve}from"./useDictOptions.d662c0ad.js";import{a as K,g as ke,h as xe}from"./store_product.c1885d8f.js";import"./lodash.41b9567d.js";import{f as Se}from"./index.ed260216.js";import{_ as Ae}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.b53679a9.js";import{_ as Pe}from"./copy.vue_vue_type_script_setup_true_name_storeProductEdit_lang.ff18c0b9.js";import{a as Ue}from"./store_category.9b0c90ca.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.3fe81509.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"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./system_store.66e90d48.js";import"./warehouse_product_storege.c44c7efb.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.da348c05.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={style:{color:"red"}},Te={class:"mr-1"},Me={class:"ml-1"},je={class:"flex mt-4 justify-end"},Oe=N({name:"storeProductLists"}),No=N({...Oe,setup(Ge){const U=$e(),h=Ce(),B=F(null),D=F(!1),n=ve({store_name:"",class_all:"",is_show:"",id:"",bar_code:"",product_type:""}),V=F([]),T=s=>{V.value=s.map(({id:e})=>e)};Ve("");let $=1;U.query.page_no&&($=parseInt(U.query.page_no));const{pager:C,getLists:E,resetParams:M,resetPage:v}=De({page:$,fetchFun:K,params:n}),j=async s=>{var e,p;(e=B.value)==null||e.open(),(p=B.value)==null||p.setFormData(s)},O=async s=>{var e,p;D.value=!0,await Be(),(e=h.value)==null||e.open("edit"),(p=h.value)==null||p.setFormData(s)};let k,x;const S=F(!1);let A;const G=s=>(A=s,S.value=!0,z.lazyLoad(x,k),!1),z={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(s,e){k||(k=e),x||(x=s);const p=s.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=s=>{ke({id:s.id,is_show:s.is_show})},I=async s=>{await Se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await xe({id:s}),E()};return be(()=>{E()}),(s,e)=>{const p=te,d=le,P=oe,m=ae,L=ue,c=se,Q=fe,Z=ne,R=re,q=ye("router-link"),i=ie,J=pe,W=de,X=me,Y=ce,g=ge("perms"),ee=_e;return f(),we("div",null,[o(R,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(Z,{class:"mb-[-16px]",model:l(n),inline:""},{default:a(()=>[o(d,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[o(p,{class:"w-[280px]",onKeydown:Ee(l(v),["enter"]),modelValue:l(n).store_name,"onUpdate:modelValue":e[0]||(e[0]=t=>l(n).store_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1})