2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{C as j,D as M,w as q,F as O,L as Q,M as Z,b as z,N as G,O as H}from"./element-plus.ea2cdc63.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.9926caf5.js";import{f as W,b as X}from"./index.136166fb.js";import{d as x,s as Y,r as g,Z as ee,ap as oe,o as i,c as te,U as e,L as o,u as t,aa as k,R as u,M as f,K as p,a as d,S as C,j as ae,Q as le,n as B}from"./@vue.18505fe0.js";import{u as se}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.60b810e8.js";import{m as ue,a as ie}from"./system_store.e4df69e8.js";import"./lodash.60201f64.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_systemStoreEdit_lang.8eb79e3c.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.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.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.40598800.js";import"./index.790e6e37.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.3f4ec06c.js";import"./index.ea34d61b.js";import"./vuedraggable.d1fd737a.js";import"./vue.feef8fd6.js";import"./sortablejs.c8f4cbb7.js";const me={class:"mt-4"},pe=d("div",null,"\u5E94\u7F34\u7EB3: 1000.00",-1),de=d("div",null,[u("\u5DF2\u7F34\u7EB3: "),d("span",{class:"text-danger"},"1000.00")],-1),ce={href:"https://admin-store.lihaink.cn/store/",target:"_blank",class:"ml-2"},_e={class:"flex mt-4 justify-end"},fe=x({name:"systemStoreLists"}),io=x({...fe,setup(he){const h=Y(),w=g(!1),r=ee({name:"",phone:"",is_show:""});g("\u5168\u90E8");const v=g([]),V=n=>{v.value=n.map(({id:l})=>l)},{dictData:S}=ne(""),{pager:c,getLists:E,resetParams:A,resetPage:b}=se({fetchFun:ie,params:r}),K=async()=>{var n;w.value=!0,await B(),(n=h.value)==null||n.open("add")},L=async n=>{var l,_;w.value=!0,await B(),(l=h.value)==null||l.open("edit"),(_=h.value)==null||_.getDetail(n)},$=async n=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:n}),E()};return E(),(n,l)=>{const _=j,F=M,m=q,N=O,D=Q,P=X,s=Z,R=z,I=G,T=J,y=oe("perms"),U=H;return i(),te("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(N,{class:"mb-[-16px]",model:t(r),inline:""},{default:o(()=>[e(F,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:t(r).name,"onUpdate:modelValue":l[0]||(l[0]=a=>t(r).name=a),onKeydown:k(t(b),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(F,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:t(r).phone,"onUpdate:modelValue":l[1]||(l[1]=a=>t(r).phone=a),onKeydown:k(t(b),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue","onKeydown"])]),_:1}),e(F,null,{default:o(()=>[e(m,{type:"primary",onClick:t(b)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:t(A)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((i(),p(D,{class:"!border-none",shadow:"never"},{default:o(()=>[f((i(),p(m,{type:"primary",onClick:K},{icon:o(()=>[e(P,{name:"el-icon-Plus"})]),default:o(()=>[u(" \u65B0\u589E ")]),_:1})),[[y,["system_store.system_store/add"]]]),f((i(),p(m,{disabled:!t(v).length,onClick:l[2]||(l[2]=a=>$(t(v)))},{default:o(()=>[u(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[y,["system_store.system_store/delete"]]]),d("div",me,[e(I,{data:t(c).lists,onSelectionChange:V},{default:o(()=>[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:o(({row:a})=>[e(R,{src:a.image,class:"w-[50px] h-[50px]"},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:o(({row:a})=>[pe,de]),_:1}),e(s,{label:"\u8425\u4E1A\u65F6\u95F4","show-overflow-tooltip":""},{default:o(({row:a})=>[u(C(a.day_start)+" - "+C(a.day_end),1)]),_:1}),e(s,{label:"\u8425\u4E1A\u72B6\u6001",prop:"is_show","show-overflow-tooltip":""},{default:o(({row:a})=>[u(C(a.is_show?"\u8425\u4E1A":"\u6253\u70CA"),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"180",fixed:"right"},{default:o(({row:a})=>[f((i(),p(m,{type:"primary",link:"",onClick:we=>L(a)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["system_store.system_store/edit"]]]),d("a",ce,[f((i(),p(m,{type:"primary",link:""},{default:o(()=>[u(" \u8FDB\u5165\u95E8\u5E97 ")]),_:1})),[[y,["system_store.system_store/edit"]]])])]),_:1})]),_:1},8,["data"])]),d("div",_e,[e(T,{modelValue:t(c),"onUpdate:modelValue":l[3]||(l[3]=a=>ae(c)?c.value=a:null),onChange:t(E)},null,8,["modelValue","onChange"])])]),_:1})),[[U,t(c).loading]]),t(w)?(i(),p(re,{key:0,ref_key:"editRef",ref:h,"dict-data":t(S),onSuccess:t(E),onClose:l[4]||(l[4]=a=>w.value=!1)},null,8,["dict-data","onSuccess"])):le("",!0)])}}});export{io as default};
|