index-c6b27467.js 5.1 KB

1
  1. import{d as W,P as X,r as m,x as j,b as B,a3 as E,o as s,c as U,f as a,A as l,a as e,a4 as G,F as A,Q as L,C as p,D as i,k as f,a8 as Z,U as $,R as aa,S as ea,I as ta,_ as la,J as ra,V as oa,W as sa,X as na,Y as _a,__tla as ua}from"./index-a9d538d5.js";import{_ as ca,__tla as ma}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.js";import{_ as pa,__tla as ia}from"./DictTag.vue_vue_type_script_lang-9e4dd0a0.js";import{_ as da,__tla as fa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{a as ya,D as I,__tla as ha}from"./dict-0e53af99.js";import{d as T,__tla as ba}from"./formatTime-8985a9d0.js";import{_ as ga,g as Ta,d as va,__tla as wa}from"./RewardForm.vue_vue_type_script_setup_true_lang-f0c6b6cc.js";import{u as ka,__tla as xa}from"./useMessage-d5cbbfad.js";import{__tla as Va}from"./index-95ad39b3.js";import"./color-6e929987.js";import{__tla as Ca}from"./el-card-0ea446a3.js";import{__tla as Sa}from"./Dialog-f354f369.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ua}from"./spu-df5e2077.js";import"./constants-c811e5ff.js";let O,Aa=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})()]).then(async()=>{O=W({name:"PromotionRewardActivity",__name:"index",setup(Ia){const v=ka(),{t:P}=X(),y=m(!0),w=m(0),k=m([]),o=j({pageNo:1,pageSize:10,name:void 0,status:void 0,createTime:[]}),x=m(),_=async()=>{y.value=!0;try{const u=await Ta(o);k.value=u.list,w.value=u.total}finally{y.value=!1}},h=()=>{_()},Y=()=>{x.value.resetFields(),h()},V=m(),C=(u,r)=>{V.value.open(u,r)};return B(()=>{_()}),(u,r)=>{const D=Z,d=$,R=aa,N=ea,F=ta,b=la,c=ra,M=oa,S=da,n=sa,z=pa,H=na,q=ca,g=E("hasPermi"),J=_a;return s(),U(A,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(D,{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:G(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(A,null,L(e(ya)(e(I).PROMOTION_ACTIVITY_STATUS),t=>(s(),p(R,{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(F,{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(c,{onClick:h},{default:l(()=>[a(b,{icon:"ep:search",class:"mr-5px"}),i(" \u641C\u7D22")]),_:1}),a(c,{onClick:Y},{default:l(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),i(" \u91CD\u7F6E")]),_:1}),f((s(),p(c,{type:"primary",plain:"",onClick:r[3]||(r[3]=t=>C("create"))},{default:l(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),i(" \u65B0\u589E ")]),_:1})),[[g,["product:brand:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(S,null,{default:l(()=>[f((s(),p(H,{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(T)},null,8,["formatter"]),a(n,{label:"\u6D3B\u52A8\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",formatter:e(T)},null,8,["formatter"]),a(n,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[a(z,{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(T)},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:l(t=>[f((s(),p(c,{link:"",type:"primary",onClick:K=>C("update",t.row.id)},{default:l(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["product:brand:update"]]]),f((s(),p(c,{link:"",type:"danger",onClick:K=>(async Q=>{try{await v.delConfirm(),await va(Q),v.success(P("common.delSuccess")),await _()}catch{}})(t.row.id)},{default:l(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["product:brand:delete"]]])]),_:1})]),_:1},8,["data"])),[[J,e(y)]]),a(q,{total:e(w),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(ga,{ref_key:"formRef",ref:V,onSuccess:_},null,512)],64)}}})});export{Aa as __tla,O as default};