index-5c6ac12e.js 5.2 KB

1
  1. import{d as K,h as Q,r as m,e as E,l as J,Q as L,o as s,c as D,f as a,w as l,a as e,R as W,F as A,q as X,v as c,n as p,x as f,V as Z,A as $,y as aa,z as ea,B as ta,j as la,C as ra,D as oa,G as sa,H as na,I as _a,_ as ua,__tla as ia}from"./index-6d7b82ba.js";import{_ as ma,__tla as ca}from"./index-a786614b.js";import{_ as pa,__tla as da}from"./DictTag-300da1c0.js";import{_ as fa,__tla as ya}from"./ContentWrap-1ba5c8ca.js";import{a as ha,D as I,__tla as va}from"./dict-efb5f3b6.js";import{d as b,__tla as wa}from"./formatTime-d24faf41.js";import{R as ba,g as ga,d as Ta,__tla as xa}from"./RewardForm-c70039a5.js";import{u as ka,__tla as Va}from"./useMessage-be161634.js";import{__tla as Ca}from"./index-e37504b6.js";import"./color-6e929987.js";import{__tla as Sa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-68bb15fa.js";import{__tla as Da}from"./el-card-1a4b93b1.js";import{__tla as Aa}from"./Dialog-78181bae.js";import{__tla as Ia}from"./spu-402402f7.js";import"./constants-a3c69b57.js";let R,Ra=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 xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ia}catch{}})()]).then(async()=>{R=ua(K({name:"PromotionRewardActivity",__name:"index",setup(Ua){const g=ka(),{t:U}=Q(),y=m(!0),T=m(0),x=m([]),o=E({pageNo:1,pageSize:10,name:void 0,status:void 0,createTime:[]}),k=m(),_=async()=>{y.value=!0;try{const u=await ga(o);x.value=u.list,T.value=u.total}finally{y.value=!1}},h=()=>{_()},Y=()=>{k.value.resetFields(),h()},V=m(),C=(u,r)=>{V.value.open(u,r)};return J(()=>{_()}),(u,r)=>{const z=Z,d=$,N=aa,O=ea,P=ta,v=la,i=ra,M=oa,S=fa,n=sa,F=pa,H=na,q=ma,w=L("hasPermi"),j=_a;return s(),D(A,null,[a(S,null,{default:l(()=>[a(M,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:l(()=>[a(d,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:l(()=>[a(z,{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:W(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:l(()=>[a(O,{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),D(A,null,X(e(ha)(e(I).PROMOTION_ACTIVITY_STATUS),t=>(s(),c(N,{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(P,{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:Y},{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=>C("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(H,{data:e(x),"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(F,{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:B=>C("update",t.row.id)},{default:l(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["product:brand:update"]]]),f((s(),c(i,{link:"",type:"danger",onClick:B=>(async G=>{try{await g.delConfirm(),await Ta(G),g.success(U("common.delSuccess")),await _()}catch{}})(t.row.id)},{default:l(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["product:brand:delete"]]])]),_:1})]),_:1},8,["data"])),[[j,e(y)]]),a(q,{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:_},null,8,["total","page","limit"])]),_:1}),a(ba,{ref_key:"formRef",ref:V,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/promotion/rewardActivity/index.vue"]])});export{Ra as __tla,R as default};