1 |
- import{d as ca,r as c,z as ua,S as pa,o as d,c as H,i as a,w as t,k as r,a as l,F as L,C as _a,j as k,m as f,D as B,t as J,_ as da,E as ma,s as fa,p as ha,I as xa,G as va,H as ga,q as ya,J as ba,K as wa,L as Ca,M as ka,__tla as Ta}from"./index-1e808f2e.js";import{_ as Oa,__tla as Ia}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as Na,__tla as Ra}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{E as Sa,__tla as za}from"./el-image-263fb014.js";import{__tla as Ma}from"./el-image-viewer-dddb6285.js";import{E as Ua,__tla as Va}from"./el-avatar-3dcf93b4.js";import{_ as ja,__tla as Da}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{_ as Pa,__tla as Ea}from"./CountTo.vue_vue_type_script_setup_true_lang-cb3046c3.js";import{_ as Aa,g as Ya,a as qa,__tla as Fa}from"./CombinationRecordListDialog.vue_vue_type_script_setup_true_lang-8866e2b6.js";import{a as Ga,D as K,__tla as Ha}from"./dict-a31cb4ba.js";import{j as La,d as T,__tla as Ba}from"./formatTime-a348c3be.js";import{c as Ja,__tla as Ka}from"./index-b59955b6.js";import{__tla as Qa}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Wa}from"./el-card-03b3588b.js";import{__tla as Xa}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";let Q,Za=Promise.all([(()=>{try{return Ta}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})()]).then(async()=>{let O,I,N,R,S,z,M,U,V,j,D,P,E;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),S={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%)"}},M={class:"ml-[20px]"},U=r("div",{class:"mb-8px text-14px text-gray-400"},"\u6210\u56E2\u6570\u91CF(\u4E2A)",-1),V={class:"flex items-center"},j={class:"h-[50px] w-[50px] flex items-center justify-center",style:{color:"rgb(162 119 255)","background-color":"rgb(162 119 255 / 10%)"}},D={class:"ml-[20px]"},P=r("div",{class:"mb-8px text-14px text-gray-400"},"\u865A\u62DF\u6210\u56E2(\u4E2A)",-1),E={class:"align-middle"},Q=ca({name:"PromotionCombinationRecord",__name:"index",setup($a){const n=c({status:void 0,createTime:void 0,pageSize:10,pageNo:1}),A=c(),Y=c(),h=c(!0),q=c(0),x=c([]),v=async()=>{h.value=!0;try{const g=await Ya(n.value);x.value=g.list,q.value=g.total}finally{h.value=!1}},m=c({successCount:0,userCount:0,virtualGroupCount:0}),F=()=>{n.value.pageNo=1,v()},W=()=>{A.value.resetFields(),F()};return ua(async()=>{await(async()=>{m.value=await qa()})(),await v()}),(g,i)=>{const p=da,y=Pa,_=ja,b=ma,X=fa,Z=ha,w=xa,$=va,aa=ga,C=ya,ea=ba,s=wa,ta=Ua,la=Sa,ra=Na,sa=Ca,na=Oa,ia=pa("hasPermi"),oa=ka;return d(),H(L,null,[a(X,{gutter:12},{default:t(()=>[a(b,{span:6},{default:t(()=>[a(_,{class:"h-[110px] pb-0!"},{default:t(()=>[r("div",O,[r("div",I,[a(p,{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(_,{class:"h-[110px]"},{default:t(()=>[r("div",S,[r("div",z,[a(p,{size:23,icon:"fa:user-plus"})]),r("div",M,[U,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(_,{class:"h-[110px]"},{default:t(()=>[r("div",V,[r("div",j,[a(p,{size:23,icon:"fa:user-plus"})]),r("div",D,[P,a(y,{duration:2600,"end-val":l(m).virtualGroupCount,"start-val":0,class:"text-20px"},null,8,["end-val"])])])]),_:1})]),_:1})]),_:1}),a(_,null,{default:t(()=>[a(ea,{ref_key:"queryFormRef",ref:A,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(Z,{modelValue:l(n).createTime,"onUpdate:modelValue":i[0]||(i[0]=e=>l(n).createTime=e),shortcuts:l(La),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(aa,{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),H(L,null,_a(l(Ga)(l(K).PROMOTION_COMBINATION_RECORD_STATUS),(e,u)=>(d(),k($,{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(p,{class:"mr-5px",icon:"ep:search"}),f(" \u641C\u7D22 ")]),_:1}),a(C,{onClick:W},{default:t(()=>[a(p,{class:"mr-5px",icon:"ep:refresh"}),f(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(_,null,{default:t(()=>[B((d(),k(sa,{data:l(x)},{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(ta,{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(J(e.headId?(u=l(x).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(la,{src:e.picUrl,class:"mr-5px h-30px w-30px align-middle",onClick:u=>{return o=e.picUrl,void Ja({urlList:[o]});var o}},null,8,["src","onClick"]),r("span",E,J(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(ra,{type:l(K).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=>[B((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"])),[[ia,["promotion:combination-record:query"]]])]),_:1})]),_:1},8,["data"])),[[oa,l(h)]]),a(na,{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(q),onPagination:v},null,8,["limit","page","total"])]),_:1}),a(Aa,{ref_key:"combinationRecordListRef",ref:Y},null,512)],64)}}})});export{Za as __tla,Q as default};
|