index-a3b89543.js 4.3 KB

1
  1. import{d as J,P as K,r as i,x as Q,b as W,a4 as X,o as p,c as Z,f as a,A as e,a as t,a5 as j,D as c,k as _,C as m,F as B,a9 as E,V as G,I as L,Q as O,J as $,W as aa,X as ea,Y as ta,Z as la,_ as ra,__tla as sa}from"./index-286756b9.js";import{_ as oa,__tla as na}from"./index-ed6c67a8.js";import{_ as ia,__tla as pa}from"./ContentWrap-83998678.js";import{d as ca,__tla as ua}from"./formatTime-83e416ef.js";import{d as _a}from"./download-20922b56.js";import{S as ma,a as S,__tla as da}from"./ShopStatusForm-3e3d0bbe.js";import{u as fa,__tla as ha}from"./useMessage-084b1e70.js";import{__tla as ya}from"./index-fb47c94c.js";import{__tla as ga}from"./el-card-d3d5a654.js";import{__tla as xa}from"./Dialog-4c2de357.js";let Y,wa=Promise.all([(()=>{try{return sa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return xa}catch{}})()]).then(async()=>{Y=ra(J({name:"ShopStatus",__name:"index",setup(va){const y=fa(),{t:z}=K(),g=i(!0),k=i([]),b=i(0),l=Q({pageNo:1,pageSize:10,name:void 0,createTime:[]}),C=i(),x=i(!1),u=async()=>{g.value=!0;try{const o=await S.getShopStatusPage(l);k.value=o.list,b.value=o.total}finally{g.value=!1}},w=()=>{l.pageNo=1,u()},N=()=>{C.value.resetFields(),w()},V=i(),D=(o,r)=>{V.value.open(o,r)},P=async()=>{try{await y.exportConfirm(),x.value=!0;const o=await S.exportShopStatus(l);_a.excel(o,"\u5E97\u94FA\u72B6\u6001.xls")}catch{}finally{x.value=!1}};return W(()=>{u()}),(o,r)=>{const U=E,v=G,F=L,d=O,n=$,H=aa,T=ia,f=ea,I=ta,M=oa,h=X("hasPermi"),R=la;return p(),Z(B,null,[a(T,null,{default:e(()=>[a(H,{class:"-mb-15px",model:t(l),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:e(()=>[a(v,{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:j(w,["enter"])},null,8,["modelValue"])]),_:1}),a(v,{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(v,null,{default:e(()=>[a(n,{onClick:w},{default:e(()=>[a(d,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(n,{onClick:N},{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})),[[h,["sale:shop-status:create"]]]),_((p(),m(n,{type:"success",plain:"",onClick:P,loading:t(x)},{default:e(()=>[a(d,{icon:"ep:download",class:"mr-5px"}),c(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["sale:shop-status:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(T,null,{default:e(()=>[_((p(),m(I,{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:q=>D("update",s.row.id)},{default:e(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["sale:shop-status:update"]]]),_((p(),m(n,{link:"",type:"danger",onClick:q=>(async A=>{try{await y.delConfirm(),await S.deleteShopStatus(A),y.success(z("common.delSuccess")),await u()}catch{}})(s.row.id)},{default:e(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["sale:shop-status:delete"]]])]),_:1})]),_:1},8,["data"])),[[R,t(g)]]),a(M,{total:t(b),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{wa as __tla,Y as default};