1 |
- import{d as G,n as J,r as m,f as L,B as Q,P as X,o as s,c as U,i as a,w as l,a as e,Q as E,F as D,k as W,l as c,j as p,C as f,U as Z,H as $,D as aa,G as ea,I as ta,v as la,J as ra,K as oa,L as sa,M as na,N as ua,_ as _a,__tla as ia}from"./index-afaf388d.js";import{_ as ma,__tla as ca}from"./index-89d02e79.js";import{_ as pa,__tla as da}from"./DictTag-3a1a976c.js";import{_ as fa,__tla as ya}from"./ContentWrap-abe0694e.js";import{a as ha,D as I,__tla as va}from"./dict-0449a0a1.js";import{d as b,__tla as wa}from"./formatTime-42952e7f.js";import{R as ba,g as ga,d as Ta,__tla as ka}from"./RewardForm-c0620bf8.js";import{u as xa,__tla as Ca}from"./useMessage-a290df31.js";import{__tla as Va}from"./index-0eed91e1.js";import"./color-6e929987.js";import{__tla as Sa}from"./el-card-9c18d881.js";import{__tla as Ua}from"./Dialog-82c2009c.js";import{__tla as Da}from"./spu-4d82f8bd.js";import"./constants-a1da293a.js";let O,Ia=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 Sa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Da}catch{}})()]).then(async()=>{O=_a(G({name:"PromotionRewardActivity",__name:"index",setup(Oa){const g=xa(),{t:P}=J(),y=m(!0),T=m(0),k=m([]),o=L({pageNo:1,pageSize:10,name:void 0,status:void 0,createTime:[]}),x=m(),u=async()=>{y.value=!0;try{const _=await ga(o);k.value=_.list,T.value=_.total}finally{y.value=!1}},h=()=>{u()},R=()=>{x.value.resetFields(),h()},C=m(),V=(_,r)=>{C.value.open(_,r)};return Q(()=>{u()}),(_,r)=>{const Y=Z,d=$,A=aa,N=ea,z=ta,v=la,i=ra,M=oa,S=fa,n=sa,H=pa,F=na,K=ma,w=X("hasPermi"),j=ua;return s(),U(D,null,[a(S,null,{default:l(()=>[a(M,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:x,inline:!0,"label-width":"68px"},{default:l(()=>[a(d,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:l(()=>[a(Y,{modelValue:e(o).name,"onUpdate:modelValue":r[0]||(r[0]=t=>e(o).name=t),placeholder:"\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0",clearable:"",onKeyup:E(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:l(()=>[a(N,{modelValue:e(o).status,"onUpdate:modelValue":r[1]||(r[1]=t=>e(o).status=t),placeholder:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u72B6\u6001",clearable:"",class:"!w-240px"},{default:l(()=>[(s(!0),U(D,null,W(e(ha)(e(I).PROMOTION_ACTIVITY_STATUS),t=>(s(),c(A,{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(z,{modelValue:e(o).createTime,"onUpdate:modelValue":r[2]||(r[2]=t=>e(o).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:R},{default:l(()=>[a(v,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E")]),_:1}),f((s(),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(S,null,{default:l(()=>[f((s(),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(I).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((s(),c(i,{link:"",type:"primary",onClick:q=>V("update",t.row.id)},{default:l(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["product:brand:update"]]]),f((s(),c(i,{link:"",type:"danger",onClick:q=>(async B=>{try{await g.delConfirm(),await Ta(B),g.success(P("common.delSuccess")),await u()}catch{}})(t.row.id)},{default:l(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["product:brand:delete"]]])]),_:1})]),_:1},8,["data"])),[[j,e(y)]]),a(K,{total:e(T),page:e(o).pageNo,"onUpdate:page":r[4]||(r[4]=t=>e(o).pageNo=t),limit:e(o).pageSize,"onUpdate:limit":r[5]||(r[5]=t=>e(o).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{Ia as __tla,O as default};
|