moreShopAdmin/build/admin/assets/index.2f9f1cb0.js

2 lines
6.1 KiB
JavaScript

import{C as q,D as M,w as O,F as Q,L as Z,M as z,b as G,N as H,O as J}from"./element-plus.7e347b00.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{f as X,b as Y}from"./index.390c2a09.js";import{d as x,s as ee,r as g,Z as te,af as oe,ap as ae,o as i,c as le,U as e,L as t,u as a,aa as k,R as n,M as f,K as m,a as d,S as h,j as se,Q as ne,n as B}from"./@vue.18505fe0.js";import{u as re}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.7ca96b18.js";import{h as ie,a as pe}from"./system_store.ea3e5c4d.js";import"./lodash.4e6d2a38.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_systemStoreEdit_lang.e8f515f1.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"./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";import"./picker.6a3f5ebe.js";import"./index.5c383401.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.6d037bc0.js";import"./index.0f1b19a4.js";import"./vuedraggable.c5026861.js";import"./vue.1715f83d.js";import"./sortablejs.c62bcaf8.js";const de={class:"mt-4"},_e={class:"text-danger"},ce={href:"https://admin-store.lihaink.cn/store/",target:"_blank",class:"ml-2"},fe={class:"flex mt-4 justify-end"},he=x({name:"systemStoreLists"}),dt=x({...he,setup(ye){const y=ee(),E=g(!1),p=te({name:"",phone:"",is_show:""});g("\u5168\u90E8");const F=g([]),V=r=>{F.value=r.map(({id:l})=>l)},{dictData:A}=ue(""),{pager:_,getLists:w,resetParams:S,resetPage:b}=re({fetchFun:pe,params:p}),L=async()=>{var r;E.value=!0,await B(),(r=y.value)==null||r.open("add")},K=async r=>{var l,c;E.value=!0,await B(),(l=y.value)==null||l.open("edit"),(c=y.value)==null||c.getDetail(r)},$=async r=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:r}),w()};return w(),(r,l)=>{const c=q,C=M,u=O,N=Q,D=Z,P=Y,s=z,R=G,I=oe("router-link"),T=H,U=W,v=ae("perms"),j=J;return i(),le("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:a(p),inline:""},{default:t(()=>[e(C,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:a(p).name,"onUpdate:modelValue":l[0]||(l[0]=o=>a(p).name=o),onKeydown:k(a(b),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(C,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:a(p).phone,"onUpdate:modelValue":l[1]||(l[1]=o=>a(p).phone=o),onKeydown:k(a(b),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue","onKeydown"])]),_:1}),e(C,null,{default:t(()=>[e(u,{type:"primary",onClick:a(b)},{default:t(()=>[n("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(u,{onClick:a(S)},{default:t(()=>[n("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((i(),m(D,{class:"!border-none",shadow:"never"},{default:t(()=>[f((i(),m(u,{type:"primary",onClick:L},{icon:t(()=>[e(P,{name:"el-icon-Plus"})]),default:t(()=>[n(" \u65B0\u589E ")]),_:1})),[[v,["system_store.system_store/add"]]]),f((i(),m(u,{disabled:!a(F).length,onClick:l[2]||(l[2]=o=>$(a(F)))},{default:t(()=>[n(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["system_store.system_store/delete"]]]),d("div",de,[e(T,{data:a(_).lists,onSelectionChange:V},{default:t(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97logo",prop:"image","show-overflow-tooltip":""},{default:t(({row:o})=>[e(R,{src:o.image,class:"w-[50px] h-[50px]","preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{label:"\u8D1F\u8D23\u4EBA",prop:"staff_name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u5730\u5740",prop:"detailed_address"}),e(s,{label:"\u624B\u673A\u53F7\u7801",prop:"phone","show-overflow-tooltip":""}),e(s,{label:"\u4FDD\u8BC1\u91D1",prop:"phone"},{default:t(({row:o})=>[d("div",null,"\u5E94\u7F34\u7EB3: "+h(o.security_deposit||"-"),1),d("div",null,[n(" \u5DF2\u7F34\u7EB3: "),d("span",_e,h(o.paid_deposit||"-"),1)])]),_:1}),e(s,{label:"\u8425\u4E1A\u65F6\u95F4","show-overflow-tooltip":""},{default:t(({row:o})=>[n(h(o.day_start)+" - "+h(o.day_end),1)]),_:1}),e(s,{label:"\u8425\u4E1A\u72B6\u6001",prop:"is_show","show-overflow-tooltip":""},{default:t(({row:o})=>[n(h(o.is_show?"\u8425\u4E1A":"\u6253\u70CA"),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"180",fixed:"right"},{default:t(({row:o})=>[f((i(),m(u,{type:"primary",link:"",onClick:Ee=>K(o)},{default:t(()=>[n(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["system_store.system_store/edit"]]]),d("a",ce,[f((i(),m(u,{type:"primary",link:""},{default:t(()=>[n(" \u8FDB\u5165\u95E8\u5E97 ")]),_:1})),[[v,["system_store.system_store/edit"]]])]),e(u,{type:"primary",link:""},{default:t(()=>[e(I,{to:{path:"/user/userList",query:{store_id:o.id}}},{default:t(()=>[n("\u95E8\u5E97\u4F1A\u5458")]),_:2},1032,["to"])]),_:2},1024)]),_:1})]),_:1},8,["data"])]),d("div",fe,[e(U,{modelValue:a(_),"onUpdate:modelValue":l[3]||(l[3]=o=>se(_)?_.value=o:null),onChange:a(w)},null,8,["modelValue","onChange"])])]),_:1})),[[j,a(_).loading]]),a(E)?(i(),m(me,{key:0,ref_key:"editRef",ref:y,"dict-data":a(A),onSuccess:a(w),onClose:l[4]||(l[4]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{dt as default};