index-c84ccbaa.js 5.1 KB

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