2024-10-15 19:47:23 +08:00
|
|
|
import{a2 as G,H,$ as J,J as Q,K as Z,D as W,w as X,F as Y,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.a63a26dd.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.f246e161.js";import{b as re,d as ie}from"./system_store_storage.14186d0e.js";import{a as me}from"./system_store.82c0fcfd.js";import"./lodash.2473fc51.js";import{f as pe}from"./index.d7fb2d76.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.41e35be5.js";import{d as L,s as _e,r as f,Z as ce,ap as fe,o as s,c as C,U as t,L as o,u as a,T as D,a9 as V,K as i,R as r,M as S,a as x,Q as b,j as Ee}from"./@vue.18505fe0.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"./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";import"./index.c69e7fd7.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ge={class:"mt-4"},ve={class:"flex mt-4 justify-end"},Ce=L({name:"systemStoreStorageLists"}),nt=L({...Ce,setup(be){const A=_e(),y=f(!1),n=ce({store_id:"",admin_name:"",staff_name:"",status:"",type:1}),R=f([]),T=m=>{R.value=m.map(({id:l})=>l)},{dictData:N}=ne(""),{pager:p,getLists:d,resetParams:U,resetPage:_}=ue({fetchFun:ie,params:n}),$=async m=>{await pe.confirm("\u786E\u5B9A\u8981\u5165\u5E93\u5417\uFF1F"),re({id:m.id}).then(l=>{d()})};d();const c=f(!1),h=f([]),P=(m="")=>{c.value=!0,me({name:m,page_size:50}).then(l=>{h.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return(m,l)=>{const B=Q,k=Z,E=W,g=X,M=Y,F=ee,w=G,j=H,u=te,I=oe,v=J,K=ae,O=se,q=fe("perms"),z=le;return s(),C("div",null,[t(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(M,{class:"mb-[-16px]",model:a(n),inline:""},{default:o(()=>[t(E,{label:"\u95E8\u5E97",prop:"store_id"},{default:o(()=>[t(k,{modelValue:a(n).store_id,"onUpdate:modelValue":l[0]||(l[0]=e=>a(n).store_id=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:a(c),style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(!0),C(D,null,V(a(h),e=>(s(),i(B,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(E,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[t(k,{modelValue:a(n).status,"onUpdate:modelValue":l[1]||(l[1]=e=>a(n).status=e),placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22",style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(),C(D,null,V([{id:1,name:"\u5DF2\u5165\u5E93"},{id:0,name:"\u5F85\u786E\u8BA4"},{id:-1,name:"\u5E93\u5B58\u4E0D\u8DB3"}],e=>t(B,{key:e.id,label:e.name,value:e.id},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"])]),_:1}),t(E,null,{default:o(()=>[t(g,{type:"primary",onClick:a(_)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(g,{onClick:a(U)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),S((s(),i(F,{class:"!border-none",shadow:"never"},{default:o(()=>[t(j,{modelValue:a(n).type,"onUpdate:modelValue":l[2]||(l[2]=e=>a(n).type=e),onChange:a(_)},{default:o(()=>[t(w,{label:1,value:1},{default:o(()=>[r("\u552E\u5356\u5E93\u5B58")]),_:1}),t(
|