index-35392d65.js 7.4 KB

1
  1. import{d as ua,r as c,B as _a,P as pa,o as d,c as L,i as a,w as t,g as r,a as l,F as q,k as da,l as k,j as f,C as J,t as K,v as ma,E as fa,s as xa,I as ha,H as va,D as ga,G as ya,J as ba,K as wa,L as Ca,M as ka,N as Ta,_ as Oa,__tla as Ia}from"./index-b2b3c6c4.js";import{_ as Na,__tla as Ra}from"./index-341fc94c.js";import{_ as Ua,__tla as za}from"./DictTag-4199ec8d.js";import{E as Pa,__tla as Sa}from"./el-image-d434829d.js";import{__tla as Da}from"./el-image-viewer-b5664270.js";import{E as Ma,__tla as Va}from"./el-avatar-8d3e2a75.js";import{_ as ja,__tla as Ea}from"./ContentWrap-e91b2b5a.js";import{_ as Aa,__tla as Ha}from"./CountTo-5c16575b.js";import{C as Ya,g as Ba,a as Fa,__tla as Ga}from"./CombinationRecordListDialog-52cb59a8.js";import{a as La,D as X,__tla as qa}from"./dict-7f0cc6d2.js";import{j as Ja,d as T,__tla as Ka}from"./formatTime-7e07ce72.js";import{c as Xa,__tla as Qa}from"./index-677601df.js";import{__tla as Wa}from"./index-2d76a87c.js";import"./color-6e929987.js";import{__tla as Za}from"./el-card-bd6e27c9.js";import{__tla as $a}from"./Dialog-70b24cbf.js";let Q,ae=Promise.all([(()=>{try{return Ia}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})()]).then(async()=>{let O,I,N,R,U,z,P,S,D,M,V,j,E,A;O={class:"flex items-center"},I={class:"h-[50px] w-[50px] flex items-center justify-center",style:{color:"rgb(24 144 255)","background-color":"rgb(24 144 255 / 10%)"}},N={class:"ml-[20px]"},R=r("div",{class:"mb-8px text-14px text-gray-400"},"\u53C2\u4E0E\u4EBA\u6570(\u4E2A)",-1),U={class:"flex items-center"},z={class:"h-[50px] w-[50px] flex items-center justify-center",style:{color:"rgb(162 119 255)","background-color":"rgb(162 119 255 / 10%)"}},P={class:"ml-[20px]"},S=r("div",{class:"mb-8px text-14px text-gray-400"},"\u6210\u56E2\u6570\u91CF(\u4E2A)",-1),D={class:"flex items-center"},M={class:"h-[50px] w-[50px] flex items-center justify-center",style:{color:"rgb(162 119 255)","background-color":"rgb(162 119 255 / 10%)"}},V={class:"ml-[20px]"},j=r("div",{class:"mb-8px text-14px text-gray-400"},"\u865A\u62DF\u6210\u56E2(\u4E2A)",-1),E={class:"align-middle"},A=ua({name:"PromotionCombinationRecord",__name:"index",setup(ee){const n=c({status:void 0,createTime:void 0,pageSize:10,pageNo:1}),H=c(),Y=c(),x=c(!0),B=c(0),h=c([]),v=async()=>{x.value=!0;try{const g=await Ba(n.value);h.value=g.list,B.value=g.total}finally{x.value=!1}},m=c({successCount:0,userCount:0,virtualGroupCount:0}),F=()=>{n.value.pageNo=1,v()},W=()=>{H.value.resetFields(),F()};return _a(async()=>{await(async()=>{m.value=await Fa()})(),await v()}),(g,i)=>{const _=ma,y=Aa,p=ja,b=fa,Z=xa,$=ha,w=va,aa=ga,ea=ya,C=ba,ta=wa,s=Ca,la=Ma,ra=Pa,sa=Ua,na=ka,ia=Na,oa=pa("hasPermi"),ca=Ta;return d(),L(q,null,[a(Z,{gutter:12},{default:t(()=>[a(b,{span:6},{default:t(()=>[a(p,{class:"h-[110px] pb-0!"},{default:t(()=>[r("div",O,[r("div",I,[a(_,{size:23,icon:"fa:user-times"})]),r("div",N,[R,a(y,{duration:2600,"end-val":l(m).userCount,"start-val":0,class:"text-20px"},null,8,["end-val"])])])]),_:1})]),_:1}),a(b,{span:6},{default:t(()=>[a(p,{class:"h-[110px]"},{default:t(()=>[r("div",U,[r("div",z,[a(_,{size:23,icon:"fa:user-plus"})]),r("div",P,[S,a(y,{duration:2600,"end-val":l(m).successCount,"start-val":0,class:"text-20px"},null,8,["end-val"])])])]),_:1})]),_:1}),a(b,{span:6},{default:t(()=>[a(p,{class:"h-[110px]"},{default:t(()=>[r("div",D,[r("div",M,[a(_,{size:23,icon:"fa:user-plus"})]),r("div",V,[j,a(y,{duration:2600,"end-val":l(m).virtualGroupCount,"start-val":0,class:"text-20px"},null,8,["end-val"])])])]),_:1})]),_:1})]),_:1}),a(p,null,{default:t(()=>[a(ta,{ref_key:"queryFormRef",ref:H,inline:!0,model:l(n),class:"-mb-15px","label-width":"68px"},{default:t(()=>[a(w,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a($,{modelValue:l(n).createTime,"onUpdate:modelValue":i[0]||(i[0]=e=>l(n).createTime=e),shortcuts:l(Ja),class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","shortcuts"])]),_:1}),a(w,{label:"\u62FC\u56E2\u72B6\u6001",prop:"status"},{default:t(()=>[a(ea,{modelValue:l(n).status,"onUpdate:modelValue":i[1]||(i[1]=e=>l(n).status=e),class:"!w-240px",clearable:"",placeholder:"\u5168\u90E8"},{default:t(()=>[(d(!0),L(q,null,da(l(La)(l(X).PROMOTION_COMBINATION_RECORD_STATUS),(e,u)=>(d(),k(aa,{key:u,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(w,null,{default:t(()=>[a(C,{onClick:F},{default:t(()=>[a(_,{class:"mr-5px",icon:"ep:search"}),f(" \u641C\u7D22 ")]),_:1}),a(C,{onClick:W},{default:t(()=>[a(_,{class:"mr-5px",icon:"ep:refresh"}),f(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(p,null,{default:t(()=>[J((d(),k(na,{data:l(h)},{default:t(()=>[a(s,{align:"center",label:"\u7F16\u53F7",prop:"id","min-width":"50"}),a(s,{align:"center",label:"\u5934\u50CF",prop:"avatar","min-width":"80"},{default:t(e=>[a(la,{src:e.row.avatar},null,8,["src"])]),_:1}),a(s,{align:"center",label:"\u6635\u79F0",prop:"nickname","min-width":"100"}),a(s,{align:"center",label:"\u5F00\u56E2\u56E2\u957F",prop:"headId","min-width":"100"},{default:t(({row:e})=>{var u;return[f(K(e.headId?(u=l(h).find(o=>o.id===e.headId))==null?void 0:u.nickname:e.nickname),1)]}),_:1}),a(s,{formatter:l(T),align:"center",label:"\u5F00\u56E2\u65F6\u95F4",prop:"startTime",width:"180"},null,8,["formatter"]),a(s,{align:"center",label:"\u62FC\u56E2\u5546\u54C1",prop:"type","show-overflow-tooltip":"","min-width":"300"},{defaul:t(({row:e})=>[a(ra,{src:e.picUrl,class:"mr-5px h-30px w-30px align-middle",onClick:u=>{return o=e.picUrl,void Xa({urlList:[o]});var o}},null,8,["src","onClick"]),r("span",E,K(e.spuName),1)]),_:1}),a(s,{align:"center",label:"\u51E0\u4EBA\u56E2",prop:"userSize","min-width":"100"}),a(s,{align:"center",label:"\u53C2\u4E0E\u4EBA\u6570",prop:"userCount","min-width":"100"}),a(s,{formatter:l(T),align:"center",label:"\u53C2\u56E2\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),a(s,{formatter:l(T),align:"center",label:"\u7ED3\u675F\u65F6\u95F4",prop:"endTime",width:"180"},null,8,["formatter"]),a(s,{align:"center",label:"\u62FC\u56E2\u72B6\u6001",prop:"status","min-width":"150"},{default:t(e=>[a(sa,{type:l(X).PROMOTION_COMBINATION_RECORD_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(s,{align:"center",fixed:"right",label:"\u64CD\u4F5C"},{default:t(e=>[J((d(),k(C,{link:"",type:"primary",onClick:u=>{var G;return o=e.row,void((G=Y.value)==null?void 0:G.open(o.headId||o.id));var o}},{default:t(()=>[f(" \u67E5\u770B\u62FC\u56E2 ")]),_:2},1032,["onClick"])),[[oa,["promotion:combination-record:query"]]])]),_:1})]),_:1},8,["data"])),[[ca,l(x)]]),a(ia,{limit:l(n).pageSize,"onUpdate:limit":i[2]||(i[2]=e=>l(n).pageSize=e),page:l(n).pageNo,"onUpdate:page":i[3]||(i[3]=e=>l(n).pageNo=e),total:l(B),onPagination:v},null,8,["limit","page","total"])]),_:1}),a(Ya,{ref_key:"combinationRecordListRef",ref:Y},null,512)],64)}}}),Q=Oa(A,[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/promotion/combination/record/index.vue"]])});export{ae as __tla,Q as default};