import H from"./DetailCard-bafac895.js";import S from"./PlanFormDetail-95b2f329.js";import{_ as k}from"./ConditionFormDetail.vue_vue_type_script_setup_true_lang-0bbd58ca.js";import V from"./InformationFormDetail-f532833e.js";import{g as h}from"./activity-c9a7a2d3.js";import{u as B}from"./useFormEdit-3c660b22.js";import{d as x,p as s,u as F,O as $,o as U,i as p,a as v,c as N,k as d,S as R,V as L,e as a,j as D,m as I,a4 as r,z as y,l as f,v as w,_ as z}from"./index-deffec86.js";import"./FileViewItem-9a39b0b2.js";import"./tagManage-2aab0a1e.js";import"./index-bf48c4bb.js";import"./CardContainer-11909355.js";import"./tabs-96386b59.js";const M={class:"bgc"},j={class:"pl20 pr20 pb20"},q=x({__name:"detail",setup(O){const{closeCurrent:A}=B();let u=s("1");F();const b=$(),n=s(String(b.query.activity_id)),c=s(""),_=s(""),m=s(""),i=s({name:"",address:"",location:"",tagList:[],communitySport:"\u672A\u63D0\u4EA4",holdDocument:"\u672A\u63D0\u4EA4",holdPlan:"\u672A\u63D0\u4EA4",holdSituation:"\u672A\u63D0\u4EA4",relatedPlan:"\u672A\u63D0\u4EA4"}),E=async()=>{let t=await h({activity_id:n.value,event_activity_type:2}),e=t.data;c.value=t.data.activity_hold_plan_id,_.value=t.data.activity_hold_situation_id,m.value=t.data.activity_hold_document_id,P(e)},P=t=>{i.value.name=t.name,i.value.location=`${t.province_str} ${t.city_str} ${t.county_str} ${t.street_str} ${t.company_area_community_id_str}`,i.value.address=t.address;let e=[];e.push({type:"success",value:t.area_level_str});let l={1:"\u5DF2\u63D0\u4EA4",2:"\u672A\u63D0\u4EA4"};i.value.tagList=e,i.value.communitySport=l[t.is_community_sport],i.value.holdDocument=l[t.is_hold_document],i.value.relatedPlan=l[t.is_related_plan],i.value.holdPlan=l[t.is_hold_plan],i.value.holdSituation=l[t.is_hold_situation]};return U(()=>{E()}),(t,e)=>{const l=p("el-tab-pane"),g=p("el-tabs"),C=p("el-button");return v(),N("div",null,[d(H,R(L(a(i))),null,16),D("div",M,[d(g,{modelValue:a(u),"onUpdate:modelValue":e[0]||(e[0]=o=>r(u)?u.value=o:u=o),type:"card",class:"mt16"},{default:I(()=>[d(l,{label:"\u529E\u8D5B\u65B9\u6848",name:"1"}),d(l,{label:"\u4E3E\u529E\u60C5\u51B5",name:"2"}),d(l,{label:"\u76F8\u5173\u8D44\u6599",name:"3"})]),_:1},8,["modelValue"]),D("div",j,[a(u)=="1"?(v(),y(S,{key:0,activityId:a(n),activityHoldPlanId:a(c),"onUpdate:activityHoldPlanId":e[1]||(e[1]=o=>r(c)?c.value=o:null)},null,8,["activityId","activityHoldPlanId"])):f("v-if",!0),a(u)=="2"?(v(),y(k,{key:1,activityId:a(n),"onUpdate:activityId":e[2]||(e[2]=o=>r(n)?n.value=o:null),activityHoldSituationId:a(_),"onUpdate:activityHoldSituationId":e[3]||(e[3]=o=>r(_)?_.value=o:null)},null,8,["activityId","activityHoldSituationId"])):f("v-if",!0),a(u)=="3"?(v(),y(V,{key:2,activityId:a(n),activityHoldDocumentId:a(m),"onUpdate:activityHoldDocumentId":e[4]||(e[4]=o=>r(m)?m.value=o:null)},null,8,["activityId","activityHoldDocumentId"])):f("v-if",!0)]),d(C,{class:"mb40 ml40 mt40",onClick:e[5]||(e[5]=o=>a(A)())},{default:I(()=>e[6]||(e[6]=[w("\u8FD4\u56DE")])),_:1})])])}}});const ot=z(q,[["__scopeId","data-v-f4bccc38"]]);export{ot as default};
