import{k as M,l as h,m as N}from"./signupApi-62c85298-1782572373740v=1.0.0.js";import{n as P,c as S,_ as T}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{g as H,E as m}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as R,r as B,al as u,z as _,I as C,J as t,u as r,O as i,M as E,B as F,R as n,a8 as c,a9 as v,P as g,C as V,A as b}from"./vendor-866bb149-1782572373740v=1.0.0.js";const $={class:"event-info-container"},z={class:"eventName"},L={key:0,class:"auditBtns"},U=R({__name:"EventHeaderInfo",props:{eventDetail:{default:()=>({})},eventApplyMode:{default:""},pageType:{default:"detail"},applyMainId:{default:""}},setup(A){const y=A,p=B({xs:24,sm:22,md:20,lg:14,xl:23}),d=B(!1),x=async()=>{try{d.value=!0,await P(M,"\u5355\u4F4D\u4FE1\u606F",y.applyMainId,!0,".xlsx")}catch{}finally{d.value=!1}},D=async(a,e="passed")=>{H.prompt(`\u662F\u5426${e==="passed"?"\u901A\u8FC7":"\u9A73\u56DE"}\u8BE5\u8BB0\u5F55?`,"\u63D0\u793A",{type:"warning",confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",inputErrorMessage:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1",inputValidator:o=>!(e==="not_passed"&&!o)}).then(async({value:o})=>{try{let l={id:y.eventDetail.eventApplyMainId,auditFailureCause:o},s=await(e==="passed"?h:N)(l);s.code===0?(m.success("\u64CD\u4F5C\u6210\u529F"),S.go(-1)):m.warning(s.msg)}catch{}}).catch(()=>{m({type:"info",message:"\u53D6\u6D88\u64CD\u4F5C"})})};return(a,e)=>{const o=u("el-button"),l=u("el-image"),f=u("el-form-item"),s=u("PaCol"),w=u("PaRow"),I=u("HZStepItem");return _(),C(I,{title:"\u8D5B\u4E8B\u4FE1\u606F"},{right:t(()=>[a.eventApplyMode==="unit"&&a.pageType==="detail"?(_(),C(o,{key:0,loading:r(d),type:"primary",onClick:x},{default:t(()=>e[2]||(e[2]=[i("\u5BFC\u51FA",-1)])),_:1,__:[2]},8,["loading"])):E("v-if",!0)]),default:t(()=>[F("div",$,[n(l,{style:{width:"150px",height:"80px","margin-right":"20px"},fit:"cover",src:a.eventDetail.img,alt:"\u8D5B\u4E8B\u4FE1\u606F"},null,8,["src"]),n(w,null,{default:t(()=>[n(s,c(v(r(p))),{default:t(()=>[n(f,{label:"\u8D5B\u4E8B\u540D\u79F0",prop:"type"},{default:t(()=>[F("div",z,g(a.eventDetail.eventName),1)]),_:1})]),_:1},16),n(s,c(v(r(p))),{default:t(()=>[n(f,{label:"\u7EC4\u522B\u5C0F\u9879",prop:"type"},{default:t(()=>[i(g(a.eventDetail.eventGroupName)+" "+g(a.eventDetail.eventTermName),1)]),_:1})]),_:1},16),n(s,c(v(r(p))),{default:t(()=>[V(a.$slots,"default",{},void 0,!0)]),_:3},16)]),_:3})]),a.eventDetail.isCurrentLoginUserAuditAuth?(_(),b("div",L,[n(o,{type:"primary",onClick:e[0]||(e[0]=k=>D("passed"))},{default:t(()=>e[3]||(e[3]=[i(" \u901A\u8FC7 ",-1)])),_:1,__:[3]}),n(o,{type:"danger",onClick:e[1]||(e[1]=k=>D("not_passed"))},{default:t(()=>e[4]||(e[4]=[i(" \u9A73\u56DE ",-1)])),_:1,__:[4]})])):E("v-if",!0)]),_:3})}}});const X=T(U,[["__scopeId","data-v-6f44d626"]]);export{X as default};
