moreShopAdmin/dist/admin/assets/index.30a930e8.js

2 lines
5.0 KiB
JavaScript

import{k as y,C as S,D as j,J as O,K as R,w as $,F as q,L as A,M as J,b as Q,N as Z,O as G}from"./element-plus.7e347b00.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{d as B,Z as W,r as b,i as X,ap as Y,o as s,c as h,U as e,L as a,u as o,aa as ee,T as F,a9 as D,K as _,Q as te,R as C,M as k,a as V,j as oe}from"./@vue.18505fe0.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.27e62ca7.js";import{u as re,n as ne}from"./workbench.5efaee2c.js";import{a as se}from"./system_store.32aba01c.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.833ab2f2.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.101084e3.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";const ue={class:"mt-4"},ie={class:"flex mt-4 justify-end"},me=B({name:"storeProductLists"}),Xe=B({...me,setup(pe){const r=W({store_name:"",type:1,store_id:""}),i=b(!1),v=b([]),x=(p="")=>{i.value=!0,se({name:p,page_size:50}).then(l=>{v.value=l.lists,setTimeout(()=>{i.value=!1},300)}).catch(l=>{setTimeout(()=>{i.value=!1},300)})},L=async p=>{re({type:r.type,id:p.id}).then(l=>{y.success("\u64CD\u4F5C\u6210\u529F"),c()}).catch(l=>{y.error("\u64CD\u4F5C\u5931\u8D25")})};le("");const{pager:u,getLists:c,resetParams:T,resetPage:m}=ae({fetchFun:ne,params:r});return X(()=>{c()}),(p,l)=>{const K=S,d=j,g=O,w=R,f=$,M=q,E=A,n=J,N=Q,P=Z,U=H,I=Y("perms"),z=G;return s(),h("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(M,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(d,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[e(K,{class:"w-[280px]",onKeydown:ee(o(m),["enter"]),modelValue:o(r).store_name,"onUpdate:modelValue":l[0]||(l[0]=t=>o(r).store_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),e(d,{label:"\u7C7B\u578B",prop:"type"},{default:a(()=>[e(w,{modelValue:o(r).type,"onUpdate:modelValue":l[1]||(l[1]=t=>o(r).type=t),placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",style:{width:"240px"},onChange:o(m)},{default:a(()=>[(s(),h(F,null,D([{id:1,name:"\u9ED8\u8BA4"},{id:2,name:"\u95E8\u5E97"},{id:3,name:"\u4ED3\u5E93"}],t=>e(g,{key:t.id,label:t.name,value:t.id},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"])]),_:1}),o(r).type==2?(s(),_(d,{key:0,label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(w,{modelValue:o(r).store_id,"onUpdate:modelValue":l[2]||(l[2]=t=>o(r).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":x,loading:o(i),style:{width:"240px"},onChange:o(m)},{default:a(()=>[(s(!0),h(F,null,D(o(v),t=>(s(),_(g,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1})):te("",!0),e(d,null,{default:a(()=>[e(f,{type:"primary",onClick:o(m)},{default:a(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:o(T)},{default:a(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),k((s(),_(E,{class:"!border-none",shadow:"never"},{default:a(()=>[V("div",ue,[e(P,{data:o(u).lists},{default:a(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:t})=>[e(N,{style:{width:"50px",height:"50px"},src:t.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(n,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(n,{label:"\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","min-width":"200","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"180",fixed:"right"},{default:a(({row:t})=>[k((s(),_(f,{type:"primary",link:"",onClick:de=>L(t)},{default:a(()=>[C(" \u5F52\u96F6 ")]),_:2},1032,["onClick"])),[[I,["statistics.negative/update_negative_zero"]]])]),_:1})]),_:1},8,["data"])]),V("div",ie,[e(U,{modelValue:o(u),"onUpdate:modelValue":l[3]||(l[3]=t=>oe(u)?u.value=t:null),onChange:o(c)},null,8,["modelValue","onChange"])])]),_:1})),[[z,o(u).loading]])])}}});export{Xe as default};