index-48ddfbe5.js 5.1 KB

1
  1. import{d as G,h as J,r as m,e as X,q as E,M as L,o,c as S,f as a,w as l,a as e,N as Q,F as U,v as W,x as c,y as p,z as f,R as Z,C as $,A as aa,B as ea,D as ta,j as la,G as ra,H as sa,I as oa,J as na,K as ua,_ as _a,__tla as ia}from"./index-8dc1e40a.js";import{_ as ma,__tla as ca}from"./index-64aeaa78.js";import{_ as pa,__tla as da}from"./DictTag-85aade2b.js";import{_ as fa,__tla as ya}from"./ContentWrap-0aca5216.js";import{a as ha,D as A,__tla as va}from"./dict-f13a3c8f.js";import{d as b,__tla as wa}from"./formatTime-8a155b2e.js";import{R as ba,g as ga,d as Ta,__tla as ka}from"./RewardForm-c6b0343d.js";import{u as xa,__tla as Ca}from"./useMessage-7a27dd80.js";import{__tla as Va}from"./index-803dbf9a.js";import"./color-6e929987.js";import{__tla as Ra}from"./el-card-18df90f0.js";import{__tla as Sa}from"./Dialog-41802231.js";import{__tla as Ua}from"./spu-559f5d98.js";import"./constants-a1da293a.js";let D,Aa=Promise.all([(()=>{try{return ia}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})()]).then(async()=>{D=_a(G({name:"PromotionRewardActivity",__name:"index",setup(Da){const g=xa(),{t:I}=J(),y=m(!0),T=m(0),k=m([]),s=X({pageNo:1,pageSize:10,name:void 0,status:void 0,createTime:[]}),x=m(),u=async()=>{y.value=!0;try{const _=await ga(s);k.value=_.list,T.value=_.total}finally{y.value=!1}},h=()=>{u()},P=()=>{x.value.resetFields(),h()},C=m(),V=(_,r)=>{C.value.open(_,r)};return E(()=>{u()}),(_,r)=>{const z=Z,d=$,M=aa,N=ea,O=ta,v=la,i=ra,Y=sa,R=fa,n=oa,H=pa,F=na,q=ma,w=L("hasPermi"),K=ua;return o(),S(U,null,[a(R,null,{default:l(()=>[a(Y,{class:"-mb-15px",model:e(s),ref_key:"queryFormRef",ref:x,inline:!0,"label-width":"68px"},{default:l(()=>[a(d,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:l(()=>[a(z,{modelValue:e(s).name,"onUpdate:modelValue":r[0]||(r[0]=t=>e(s).name=t),placeholder:"\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0",clearable:"",onKeyup:Q(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:l(()=>[a(N,{modelValue:e(s).status,"onUpdate:modelValue":r[1]||(r[1]=t=>e(s).status=t),placeholder:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u72B6\u6001",clearable:"",class:"!w-240px"},{default:l(()=>[(o(!0),S(U,null,W(e(ha)(e(A).PROMOTION_ACTIVITY_STATUS),t=>(o(),c(M,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u6D3B\u52A8\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(O,{modelValue:e(s).createTime,"onUpdate:modelValue":r[2]||(r[2]=t=>e(s).createTime=t),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u6D3B\u52A8\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u6D3B\u52A8\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(d,null,{default:l(()=>[a(i,{onClick:h},{default:l(()=>[a(v,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22")]),_:1}),a(i,{onClick:P},{default:l(()=>[a(v,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E")]),_:1}),f((o(),c(i,{type:"primary",plain:"",onClick:r[3]||(r[3]=t=>V("create"))},{default:l(()=>[a(v,{icon:"ep:plus",class:"mr-5px"}),p(" \u65B0\u589E ")]),_:1})),[[w,["product:brand:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(R,null,{default:l(()=>[f((o(),c(F,{data:e(k),"row-key":"id","default-expand-all":""},{default:l(()=>[a(n,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"}),a(n,{label:"\u6D3B\u52A8\u5F00\u59CB\u65F6\u95F4",align:"center",prop:"startTime",formatter:e(b)},null,8,["formatter"]),a(n,{label:"\u6D3B\u52A8\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",formatter:e(b)},null,8,["formatter"]),a(n,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[a(H,{type:e(A).PROMOTION_ACTIVITY_STATUS,value:t.row.status},null,8,["type","value"])]),_:1}),a(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:e(b)},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:l(t=>[f((o(),c(i,{link:"",type:"primary",onClick:j=>V("update",t.row.id)},{default:l(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["product:brand:update"]]]),f((o(),c(i,{link:"",type:"danger",onClick:j=>(async B=>{try{await g.delConfirm(),await Ta(B),g.success(I("common.delSuccess")),await u()}catch{}})(t.row.id)},{default:l(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["product:brand:delete"]]])]),_:1})]),_:1},8,["data"])),[[K,e(y)]]),a(q,{total:e(T),page:e(s).pageNo,"onUpdate:page":r[4]||(r[4]=t=>e(s).pageNo=t),limit:e(s).pageSize,"onUpdate:limit":r[5]||(r[5]=t=>e(s).pageSize=t),onPagination:u},null,8,["total","page","limit"])]),_:1}),a(ba,{ref_key:"formRef",ref:C,onSuccess:u},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/promotion/rewardActivity/index.vue"]])});export{Aa as __tla,D as default};