moreShopAdmin/dist/admin/assets/index.ccb21139.js

2 lines
6.5 KiB
JavaScript

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.cc192734.js";import{b as Ee,d as ge,e as Ce}from"./system_store_storage.f2c2a4a6.js";import{a as be}from"./system_store.aa0e1610.js";import"./lodash.4e6d2a38.js";import{f as ye}from"./index.4eb92b1c.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.7e63f228.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.63ba074e.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","onChange"])]),_:1}),t(c,null,{default:l(()=>[t(E,{type:"primary",onClick:a(_)},{default:l(()=>e[6]||(e[6]=[r("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(E,{onClick:a(K)},{default:l(()=>e[7]||(e[7]=[r("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),x((n(),i(k,{class:"!border-none",shadow:"never"},{default:l(()=>[t(G,{modelValue:a(u).type,"onUpdate:modelValue":e[3]||(e[3]=o=>a(u).type=o),onChange:a(_)},{default:l(()=>[t(D,{label:1,value:1},{default:l(()=>e[8]||(e[8]=[r("\u552E\u5356\u5E93\u5B58")])),_:1}),t(D,{label:2,value:2},{default:l(()=>e[9]||(e[9]=[r("\u5151\u6362\u5E93\u5B58")])),_:1})]),_:1},8,["modelValue","onChange"]),t(E,{class:"mt-[6px]",onClick:I},{default:l(()=>e[10]||(e[10]=[r("\u4E00\u952E\u5165\u5E93")])),_:1}),h("div",Fe,[t(O,{data:a(p).lists,onSelectionChange:T},{default:l(()=>[t(s,{label:"\u95E8\u5E97",prop:"system_store_name"}),t(s,{label:"\u5BFC\u5165\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),t(s,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"staff_name","show-overflow-tooltip":""}),t(s,{label:"\u5546\u54C1\u56FE",prop:"image","show-overflow-tooltip":""},{default:l(({row:o})=>[t(M,{class:"w-[40px] h-[40px]",src:o.image},null,8,["src"])]),_:1}),t(s,{label:"\u5546\u54C1",prop:"store_name"}),t(s,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),t(s,{label:"\u72B6\u6001",prop:"status"},{default:l(({row:o})=>[o.status===1?(n(),i(C,{key:0,type:"success"},{default:l(()=>e[11]||(e[11]=[r("\u5DF2\u5165\u5E93")])),_:1})):o.status===0?(n(),i(C,{key:1,type:"warning"},{default:l(()=>e[12]||(e[12]=[r("\u5F85\u786E\u8BA4")])),_:1})):o.status===-1?(n(),i(C,{key:2,type:"danger"},{default:l(()=>e[13]||(e[13]=[r("\u5E93\u5B58\u4E0D\u8DB3")])),_:1})):y("",!0)]),_:1}),t(s,{label:"\u5907\u6CE8",prop:"mark"}),t(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"}),t(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:o})=>[o.status==0?x((n(),i(E,{key:0,type:"success",link:"",onClick:De=>N(o)},{default:l(()=>e[14]||(e[14]=[r(" \u786E\u8BA4\u5165\u5E93 ")])),_:2},1032,["onClick"])),[[q,["system_store_storage.system_store_storage/edit"]]]):y("",!0)]),_:1})]),_:1},8,["data"])]),h("div",Be,[t(Q,{modelValue:a(p),"onUpdate:modelValue":e[4]||(e[4]=o=>_e(p)?p.value=o:null),onChange:a(d)},null,8,["modelValue","onChange"])])]),_:1})),[[z,a(p).loading]]),a(v)?(n(),i(ve,{key:0,ref_key:"editRef",ref:L,"dict-data":a(U),onSuccess:a(d),onClose:e[5]||(e[5]=o=>v.value=!1)},null,8,["dict-data","onSuccess"])):y("",!0)])}}});export{ct as default};