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

2 lines
6.5 KiB
JavaScript
Raw Permalink Normal View History

2025-01-18 17:19:02 +08:00
import{a3 as H,Q as Z,a0 as J,N as W,O as X,D as Y,C as ee,w as te,F as oe,K as ae,G as le,b as ue,H as se,I as ne}from"./element-plus.8e273e86.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{d as A,s as ie,r as g,Z as me,ap as pe,o as n,c as b,U as t,L as l,u as a,T as V,a9 as S,K as i,aa as de,R as r,M as x,a as h,Q as y,j as _e}from"./@vue.76ce7aa3.js";import{u as fe}from"./usePaging.f8c888e4.js";import{u as ce}from"./useDictOptions.0dd5e671.js";import{b as Ee,d as ge,e as Ce}from"./system_store_storage.57df84eb.js";import{a as be}from"./system_store.205c69d8.js";import"./lodash.4e6d2a38.js";import{f as ye}from"./index.91315c44.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.3b1cde05.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"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.8d65305c.js";import"./index.2d5cf0a7.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const Fe={class:"mt-4"},Be={class:"flex mt-4 justify-end"},we=A({name:"systemStoreStorageLists"}),ct=A({...we,setup(ke){const L=ie(),v=g(!1),u=me({store_id:"",admin_name:"",staff_name:"",status:"",product_name:"",type:1}),R=g([]),T=m=>{R.value=m.map(({id:e})=>e)},{dictData:U}=ce(""),{pager:p,getLists:d,resetParams:K,resetPage:_}=fe({fetchFun:Ce,params:u}),N=async m=>{await ye.confirm("\u786E\u5B9A\u8981\u5165\u5E93\u5417\uFF1F"),Ee({id:m.id}).then(e=>{d()})},I=async()=>{await ge(u),d()};d();const f=g(!1),F=g([]),P=(m="")=>{f.value=!0,be({name:m,page_size:50}).then(e=>{F.value=e.lists,setTimeout(()=>{f.value=!1},300)}).catch(e=>{setTimeout(()=>{f.value=!1},300)})};return(m,e)=>{const B=W,w=X,c=Y,$=ee,E=te,j=oe,k=ae,D=H,G=Z,s=le,M=ue,C=J,O=se,Q=re,q=pe("perms"),z=ne;return n(),b("div",null,[t(k,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[t(j,{class:"mb-[-16px]",model:a(u),inline:""},{default:l(()=>[t(c,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[t(w,{modelValue:a(u).store_id,"onUpdate:modelValue":e[0]||(e[0]=o=>a(u).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:a(f),style:{width:"240px"},onChange:a(_)},{default:l(()=>[(n(!0),b(V,null,S(a(F),o=>(n(),i(B,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(c,{label:"\u5546\u54C1\u540D\u79F0",prop:"product_name"},{default:l(()=>[t($,{class:"w-[280px]",modelValue:a(u).product_name,"onUpdate:modelValue":e[1]||(e[1]=o=>a(u).product_name=o),onKeydown:de(a(_),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),t(c,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[t(w,{modelValue:a(u).status,"onUpdate:modelValue":e[2]||(e[2]=o=>a(u).status=o),placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22",style:{width:"240px"},onChange:a(_)},{default:l(()=>[(n(),b(V,null,S([{id:1,name:"\u5DF2\u5165\u5E93"},{id:0,name:"\u5F85\u786E\u8BA4"},{id:-1,name:"\u5E93\u5B58\u4E0D\u8DB3"}],o=>t(B,{key:o.id,label:o.name,value:o.id},null,8,["label","value"])),64))]),_:1},8,["modelValue