1 |
- import{d as G,B as J,r as p,f as L,z as X,S as E,o as s,c as I,i as a,w as l,a as e,T as Q,F as O,C as W,j as c,m as i,D as f,X as Z,I as $,G as aa,H as ea,p as ta,_ as la,q as ra,J as oa,K as sa,L as na,M as _a,__tla as ua}from"./index-1e808f2e.js";import{_ as ma,__tla as pa}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as ca,__tla as ia}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{_ as da,__tla as fa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as ya,D as P,__tla as ha}from"./dict-a31cb4ba.js";import{d as T,__tla as ba}from"./formatTime-a348c3be.js";import{_ as ga,g as Ta,d as wa,__tla as va}from"./RewardForm.vue_vue_type_script_setup_true_lang-2961b7f1.js";import{u as ka,__tla as xa}from"./useMessage-5f9e8917.js";import{__tla as Ca}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Va}from"./el-card-03b3588b.js";import{__tla as Sa}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ia}from"./spu-d8bf9472.js";import"./constants-e43f22dd.js";let U,Oa=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ia}catch{}})()]).then(async()=>{U=G({name:"PromotionRewardActivity",__name:"index",setup(Pa){const w=ka(),{t:D}=J(),y=p(!0),v=p(0),k=p([]),o=L({pageNo:1,pageSize:10,name:void 0,status:void 0,createTime:[]}),x=p(),_=async()=>{y.value=!0;try{const u=await Ta(o);k.value=u.list,v.value=u.total}finally{y.value=!1}},h=()=>{_()},N=()=>{x.value.resetFields(),h()},C=p(),V=(u,r)=>{C.value.open(u,r)};return X(()=>{_()}),(u,r)=>{const Y=Z,d=$,A=aa,M=ea,R=ta,b=la,m=ra,z=oa,S=da,n=sa,F=ca,H=na,q=ma,g=E("hasPermi"),K=_a;return s(),I(O,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(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:Q(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:l(()=>[a(M,{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),I(O,null,W(e(ya)(e(P).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(R,{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(),c(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(),c(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(F,{type:e(P).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(),c(m,{link:"",type:"primary",onClick:j=>V("update",t.row.id)},{default:l(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["product:brand:update"]]]),f((s(),c(m,{link:"",type:"danger",onClick:j=>(async B=>{try{await w.delConfirm(),await wa(B),w.success(D("common.delSuccess")),await _()}catch{}})(t.row.id)},{default:l(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["product:brand:delete"]]])]),_:1})]),_:1},8,["data"])),[[K,e(y)]]),a(q,{total:e(v),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{Oa as __tla,U as default};
|