index-f2e17c75.js 4.3 KB

1
  1. import{d as B,i as G,r as i,f as J,l as K,R as W,o as p,c as A,g as a,w as e,a as t,S as E,n as c,y as _,x as m,F as L,W as O,B as Q,C as X,q as Z,D as $,G as aa,H as ea,I as ta,J as la,_ as ra,__tla as sa}from"./index-3fb48822.js";import{_ as oa,__tla as na}from"./index-5771c6d6.js";import{_ as ia,__tla as pa}from"./ContentWrap-afa47a64.js";import{d as ca,__tla as ua}from"./formatTime-1803573a.js";import{d as _a}from"./download-20922b56.js";import{S as ma,a as v,__tla as da}from"./ShopStatusForm-5c3ac3af.js";import{u as fa,__tla as ya}from"./useMessage-b6c78c26.js";import{__tla as ha}from"./index-cf9cdfb4.js";import{__tla as ga}from"./el-card-8960fd94.js";import{__tla as wa}from"./Dialog-7d4425a0.js";let N,xa=Promise.all([(()=>{try{return sa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})()]).then(async()=>{N=ra(B({name:"ShopStatus",__name:"index",setup(Sa){const h=fa(),{t:T}=G(),g=i(!0),k=i([]),C=i(0),l=J({pageNo:1,pageSize:10,name:void 0,createTime:[]}),b=i(),w=i(!1),u=async()=>{g.value=!0;try{const o=await v.getShopStatusPage(l);k.value=o.list,C.value=o.total}finally{g.value=!1}},x=()=>{l.pageNo=1,u()},U=()=>{b.value.resetFields(),x()},V=i(),D=(o,r)=>{V.value.open(o,r)},P=async()=>{try{await h.exportConfirm(),w.value=!0;const o=await v.exportShopStatus(l);_a.excel(o,"\u5E97\u94FA\u72B6\u6001.xls")}catch{}finally{w.value=!1}};return K(()=>{u()}),(o,r)=>{const Y=O,S=Q,F=X,d=Z,n=$,H=aa,z=ia,f=ea,R=ta,q=oa,y=W("hasPermi"),I=la;return p(),A(L,null,[a(z,null,{default:e(()=>[a(H,{class:"-mb-15px",model:t(l),ref_key:"queryFormRef",ref:b,inline:!0,"label-width":"68px"},{default:e(()=>[a(S,{label:"\u540D\u79F0",prop:"name"},{default:e(()=>[a(Y,{modelValue:t(l).name,"onUpdate:modelValue":r[0]||(r[0]=s=>t(l).name=s),placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",clearable:"",onKeyup:E(x,["enter"])},null,8,["modelValue"])]),_:1}),a(S,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:e(()=>[a(F,{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(S,null,{default:e(()=>[a(n,{onClick:x},{default:e(()=>[a(d,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(n,{onClick:U},{default:e(()=>[a(d,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),_((p(),m(n,{type:"primary",plain:"",onClick:r[2]||(r[2]=s=>D("create"))},{default:e(()=>[a(d,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[y,["sale:shop-status:create"]]]),_((p(),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(z,null,{default:e(()=>[_((p(),m(R,{data:t(k),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(ca),width:"180px"},null,8,["formatter"]),a(f,{label:"\u64CD\u4F5C",align:"center"},{default:e(s=>[_((p(),m(n,{link:"",type:"primary",onClick:M=>D("update",s.row.id)},{default:e(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["sale:shop-status:update"]]]),_((p(),m(n,{link:"",type:"danger",onClick:M=>(async j=>{try{await h.delConfirm(),await v.deleteShopStatus(j),h.success(T("common.delSuccess")),await u()}catch{}})(s.row.id)},{default:e(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["sale:shop-status:delete"]]])]),_:1})]),_:1},8,["data"])),[[I,t(g)]]),a(q,{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:u},null,8,["total","page","limit"])]),_:1}),a(ma,{ref_key:"formRef",ref:V,onSuccess:u},null,512)],64)}}}),[["__scopeId","data-v-3c0d6ead"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/sale/shopstatus/index.vue"]])});export{xa as __tla,N as default};