index-e8e44294.js 4.4 KB

1
  1. import{d as A,A as J,r as p,g as L,y as X,S as j,o as i,c as B,i as a,w as e,a as t,T as E,l as c,C as u,k as m,F as G,X as O,H as Q,p as W,_ as $,q as Z,I as aa,J as ea,K as ta,L as la,__tla as ra}from"./index-3f1c225f.js";import{_ as sa,__tla as oa}from"./index.vue_vue_type_script_setup_true_lang-a5c1456c.js";import{_ as na,__tla as pa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-069f5c02.js";import{d as ia,__tla as ca}from"./formatTime-16ff20ea.js";import{d as _a}from"./download-20922b56.js";import{_ as ua,S as k,__tla as ma}from"./ShopStatusForm.vue_vue_type_script_setup_true_lang-8fdf959b.js";import{u as da,__tla as fa}from"./useMessage-be5e5968.js";import{_ as ya}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ha}from"./index-f4e4c75c.js";import{__tla as ga}from"./el-card-5032a543.js";import{__tla as wa}from"./Dialog-ad8e3bba.js";let Y,Sa=Promise.all([(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})()]).then(async()=>{Y=ya(A({name:"ShopStatus",__name:"index",setup(xa){const h=da(),{t:D}=J(),g=p(!0),v=p([]),C=p(0),l=L({pageNo:1,pageSize:10,name:void 0,createTime:[]}),b=p(),w=p(!1),_=async()=>{g.value=!0;try{const o=await k.getShopStatusPage(l);v.value=o.list,C.value=o.total}finally{g.value=!1}},S=()=>{l.pageNo=1,_()},F=()=>{b.value.resetFields(),S()},V=p(),T=(o,r)=>{V.value.open(o,r)},P=async()=>{try{await h.exportConfirm(),w.value=!0;const o=await k.exportShopStatus(l);_a.excel(o,"\u5E97\u94FA\u72B6\u6001.xls")}catch{}finally{w.value=!1}};return X(()=>{_()}),(o,r)=>{const U=O,x=Q,z=W,d=$,n=Z,H=aa,N=na,f=ea,q=ta,I=sa,y=j("hasPermi"),K=la;return i(),B(G,null,[a(N,null,{default:e(()=>[a(H,{class:"-mb-15px",model:t(l),ref_key:"queryFormRef",ref:b,inline:!0,"label-width":"68px"},{default:e(()=>[a(x,{label:"\u540D\u79F0",prop:"name"},{default:e(()=>[a(U,{modelValue:t(l).name,"onUpdate:modelValue":r[0]||(r[0]=s=>t(l).name=s),placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",clearable:"",onKeyup:E(S,["enter"])},null,8,["modelValue"])]),_:1}),a(x,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:e(()=>[a(z,{modelValue:t(l).createTime,"onUpdate:modelValue":r[1]||(r[1]=s=>t(l).createTime=s),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")]},null,8,["modelValue","default-time"])]),_:1}),a(x,null,{default:e(()=>[a(n,{onClick:S},{default:e(()=>[a(d,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(n,{onClick:F},{default:e(()=>[a(d,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),u((i(),m(n,{type:"primary",plain:"",onClick:r[2]||(r[2]=s=>T("create"))},{default:e(()=>[a(d,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[y,["sale:shop-status:create"]]]),u((i(),m(n,{type:"success",plain:"",onClick:P,loading:t(w)},{default:e(()=>[a(d,{icon:"ep:download",class:"mr-5px"}),c(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[y,["sale:shop-status:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:e(()=>[u((i(),m(q,{data:t(v),stripe:!0,"show-overflow-tooltip":!0},{default:e(()=>[a(f,{label:"id",align:"center",prop:"id"}),a(f,{label:"\u540D\u79F0",align:"center",prop:"name"}),a(f,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:t(ia),width:"180px"},null,8,["formatter"]),a(f,{label:"\u64CD\u4F5C",align:"center"},{default:e(s=>[u((i(),m(n,{link:"",type:"primary",onClick:M=>T("update",s.row.id)},{default:e(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["sale:shop-status:update"]]]),u((i(),m(n,{link:"",type:"danger",onClick:M=>(async R=>{try{await h.delConfirm(),await k.deleteShopStatus(R),h.success(D("common.delSuccess")),await _()}catch{}})(s.row.id)},{default:e(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["sale:shop-status:delete"]]])]),_:1})]),_:1},8,["data"])),[[K,t(g)]]),a(I,{total:t(C),page:t(l).pageNo,"onUpdate:page":r[3]||(r[3]=s=>t(l).pageNo=s),limit:t(l).pageSize,"onUpdate:limit":r[4]||(r[4]=s=>t(l).pageSize=s),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(ua,{ref_key:"formRef",ref:V,onSuccess:_},null,512)],64)}}}),[["__scopeId","data-v-283b9444"]])});export{Sa as __tla,Y as default};