import{az as f,d as U,r as s,x,o as h,A as y,B as r,f as a,k as A,a as e,E,G as M,a2 as P,X as V,av as k,Y as B,Z as L,__tla as j}from"./index-92ad187a.js";import{_ as G,__tla as X}from"./Dialog-44c9fa34.js";import{_ as Y,__tla as Z}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c7ede7df.js";import{_ as q,__tla as F}from"./index.vue_vue_type_script_setup_true_lang-6fbe4cc3.js";import{_ as H,__tla as J}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import{E as K,__tla as Q}from"./el-avatar-33441a03.js";import{d as w,__tla as W}from"./formatTime-c7f253d6.js";import{D as $,__tla as aa}from"./dict-221f3e01.js";let v,b,p,ta=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return aa}catch{}})()]).then(async()=>{p=async c=>await f.get({url:"/promotion/combination-record/page",params:c}),b=async()=>await f.get({url:"/promotion/combination-record/get-summary"}),v=U({name:"CombinationRecordListDialog",__name:"CombinationRecordListDialog",setup(c,{expose:I}){const m=s(!0),u=s(0),d=s([]),o=x({pageNo:1,pageSize:10,headId:void 0}),_=s(!1);I({open:async i=>{_.value=!0,o.headId=i,await g()}});const g=async()=>{m.value=!0;try{const i=await p(o);d.value=i.list,u.value=i.total}finally{m.value=!1}};return(i,n)=>{const l=V,O=K,N=k,T=H,D=B,R=q,S=Y,z=G,C=L;return h(),y(z,{modelValue:e(_),"onUpdate:modelValue":n[2]||(n[2]=t=>P(_)?_.value=t:null),title:"\u62FC\u56E2\u5217\u8868",width:"950"},{default:r(()=>[a(S,null,{default:r(()=>[A((h(),y(D,{data:e(d)},{default:r(()=>[a(l,{align:"center",label:"\u7F16\u53F7",prop:"id","min-width":"50"}),a(l,{align:"center",label:"\u5934\u50CF",prop:"avatar","min-width":"80"},{default:r(t=>[a(O,{src:t.row.avatar},null,8,["src"])]),_:1}),a(l,{align:"center",label:"\u6635\u79F0",prop:"nickname","min-width":"100"}),a(l,{align:"center",label:"\u5F00\u56E2\u56E2\u957F",prop:"headId","min-width":"100"},{default:r(({row:t})=>[a(N,null,{default:r(()=>[E(M(t.headId===0?"\u56E2\u957F":"\u56E2\u5458"),1)]),_:2},1024)]),_:1}),a(l,{formatter:e(w),align:"center",label:"\u53C2\u56E2\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),a(l,{formatter:e(w),align:"center",label:"\u7ED3\u675F\u65F6\u95F4",prop:"endTime",width:"180"},null,8,["formatter"]),a(l,{align:"center",label:"\u62FC\u56E2\u72B6\u6001",prop:"status","min-width":"150"},{default:r(t=>[a(T,{type:e($).PROMOTION_COMBINATION_RECORD_STATUS,value:t.row.status},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[C,e(m)]]),a(R,{limit:e(o).pageSize,"onUpdate:limit":n[0]||(n[0]=t=>e(o).pageSize=t),page:e(o).pageNo,"onUpdate:page":n[1]||(n[1]=t=>e(o).pageNo=t),total:e(u),onPagination:g},null,8,["limit","page","total"])]),_:1})]),_:1},8,["modelValue"])}}})});export{v as _,ta as __tla,b as a,p as g};
