import g from"./BaseForm-d2577af2-1782729249161v=1.0.0.js";import{a as v}from"./auditSettingApi-3eb5bec3-1782729249161v=1.0.0.js";import{u as y}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as _}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 C,z as b,I as B,J as S,R as k,u as r,k as m}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./Logicflow-16a23541-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const E=c({name:"auditSettingAdd"}),P=c({...E,setup(F){const{closeCurrent:u}=y(),o=n({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:"",auditNodeConfBase:[]}),t=n(!1),f=()=>{u()};n("");const d=_(),p=async l=>{t.value=!0;try{let e=v,s="\u65B0\u589E\u6210\u529F",a=await e(l);a.code==0?(i({type:"success",message:`${s}!`}),u()):i.warning(a.msg),t.value=!1}catch{t.value=!1}};return(l,e)=>{const s=C("HZPageLayout");return b(),B(s,{isBack:!0,title:r(d).meta.title},{default:S(()=>[k(g,{value:r(o),"onUpdate:value":e[0]||(e[0]=a=>m(o)?o.value=a:null),loading:r(t),"onUpdate:loading":e[1]||(e[1]=a=>m(t)?t.value=a:null),onCancel:f,onSubmit:p},null,8,["value","loading"])]),_:1},8,["title"])}}});export{P as default};
