import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-26442b4e-1782572373740v=1.0.0.js";import{g as y}from"./eventCheckinApi-8f023acc-1782572373740v=1.0.0.js";import{u as _}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as C}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as b}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as m,r,m as k,al as E,z as q,I as w,J as x,R as B,u as l,k as i}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const L=m({name:"eventCheckinEdit"}),T=m({...L,setup(R){const{closeCurrent:u}=_(),c=r(null),a=r({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),t=r(!1),o=C(),f=()=>{u()},d=async n=>{t.value=!0;try{t.value=!1,u()}catch{t.value=!1}},p=async n=>{let e=await y(n);if(e.code!=0){b.warning(e.msg);return}a.value=e.data};return k(()=>{o.query.id&&(c.value=o.query.id,p(o.query.id))}),(n,e)=>{const g=E("HZPageLayout");return q(),w(g,{isBack:!0,title:l(o).meta.title},{default:x(()=>[B(v,{value:l(a),"onUpdate:value":e[0]||(e[0]=s=>i(a)?a.value=s:null),loading:l(t),"onUpdate:loading":e[1]||(e[1]=s=>i(t)?t.value=s:null),onCancel:f,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{T as default};
