import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-3c4e3da9-1782729249161v=1.0.0.js";import{g as y}from"./eventCheckinApi-498aecd6-1782729249161v=1.0.0.js";import{u as _}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as C}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as b}from"./eleVendor-5008d1ec-1782729249161v=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-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=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};
