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