moreShopAdmin/build/admin/assets/index.f25a44a4.js

2 lines
4.7 KiB
JavaScript
Raw Normal View History

2024-08-28 20:36:40 +08:00
import{k as g,C as z,D as S,J as j,K as O,w as R,F as $,L as q,M as J,b as Q,N as Z,O as A}from"./element-plus.a63a26dd.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{d as k,Z as H,r as y,i as W,ap as X,o as n,c as b,U as e,L as a,u as t,aa as E,K as _,T as Y,a9 as ee,Q as te,R as C,M as F,a as D,j as oe}from"./@vue.18505fe0.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.9b4eaa00.js";import{u as re,n as se}from"./workbench.870be42b.js";import{a as ne}from"./system_store.a4aef92a.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.709cbd5a.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.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";const ie={class:"mt-4"},ue={class:"flex mt-4 justify-end"},me=k({name:"storeProductLists"}),Ge=k({...me,setup(pe){const r=H({store_name:"",type:1,store_id:""}),u=y(!1),h=y([]),V=(p="")=>{u.value=!0,ne({name:p,page_size:50}).then(l=>{h.value=l.lists,setTimeout(()=>{u.value=!1},300)}).catch(l=>{setTimeout(()=>{u.value=!1},300)})},x=async p=>{re({type:r.type,id:p.id}).then(l=>{g.success("\u64CD\u4F5C\u6210\u529F"),c()}).catch(l=>{g.error("\u64CD\u4F5C\u5931\u8D25")})};le("");const{pager:i,getLists:c,resetParams:B,resetPage:m}=ae({fetchFun:se,params:r});return W(()=>{c()}),(p,l)=>{const v=z,d=S,L=j,K=O,f=R,T=$,w=q,s=J,M=Q,N=Z,P=G,U=X("perms"),I=A;return n(),b("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(T,{class:"mb-[-16px]",model:t(r),inline:""},{default:a(()=>[e(d,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[e(v,{class:"w-[280px]",onKeydown:E(t(m),["enter"]),modelValue:t(r).store_name,"onUpdate:modelValue":l[0]||(l[0]=o=>t(r).store_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),e(d,{label:"\u7C7B\u578B",prop:"type"},{default:a(()=>[e(v,{class:"w-[280px]",onKeydown:E(t(m),["enter"]),modelValue:t(r).type,"onUpdate:modelValue":l[1]||(l[1]=o=>t(r).type=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7C7B\u578B"},null,8,["onKeydown","modelValue"])]),_:1}),t(r).type==2?(n(),_(d,{key:0,label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(K,{modelValue:t(r).store_id,"onUpdate:modelValue":l[2]||(l[2]=o=>t(r).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":V,loading:t(u),style:{width:"240px"},onChange:t(m)},{default:a(()=>[(n(!0),b(Y,null,ee(t(h),o=>(n(),_(L,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1})):te("",!0),e(d,null,{default:a(()=>[e(f,{type:"primary",onClick:t(m)},{default:a(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:t(B)},{default:a(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((n(),_(w,{class:"!border-none",shadow:"never"},{default:a(()=>[D("div",ie,[e(N,{data:t(i).lists},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:o})=>[e(M,{style:{width:"50px",height:"50px"},src:o.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{