import{_ as g}from"./BaseForm.vue_vue_type_script_setup_true_lang-3c4e3da9-1782729249161v=1.0.0.js";import{u as _}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as v}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as i}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as c,r as n,al as y,z as C,I as b,J as k,R as B,u as r,k as m}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const E=c({name:"eventCheckinAdd"}),H=c({...E,setup(w){const{closeCurrent:l}=_(),s=n({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),t=n(!1),f=()=>{l()};n("");const p=v(),d=async u=>{t.value=!0;try{let e=()=>{},o="\u65B0\u589E\u6210\u529F",a=await e(u);a.code==0?(i({type:"success",message:`${o}!`}),l()):i.warning(a.msg),t.value=!1}catch{t.value=!1}};return(u,e)=>{const o=y("HZPageLayout");return C(),b(o,{isBack:!0,title:r(p).meta.title},{default:k(()=>[B(g,{value:r(s),"onUpdate:value":e[0]||(e[0]=a=>m(s)?s.value=a:null),loading:r(t),"onUpdate:loading":e[1]||(e[1]=a=>m(t)?t.value=a:null),onCancel:f,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{H as default};
