import g from"./BaseForm-6806d8bf-1782729249161v=1.0.0.js";import{b,f as E}from"./fundApplyMgmtApi-c57ca5ae-1782729249161v=1.0.0.js";import{u as B}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 f,r as n,al as v,z as y,I as F,J as C,R as S,u as r,k as m}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./usePrint-d863a9cc-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const A=f({name:"agreementManageAdd"}),U=f({...A,setup(R){const{closeCurrent:l}=B(),o=n({applicableType:"\u8D5B\u4E8B\u62A5\u540D",name:"",content:"",mobileSignatureStatus:0,status:1,agreementId:""}),t=n(!1),c=()=>{l()};n("");const p=_(),d=async u=>{t.value=!0;try{let e=b,s="\u65B0\u589E\u6210\u529F",a=await e(u);a.code==0?(u.isSubmit&&((await E({id:a.data})).code==0?s="\u65B0\u589E\u5E76\u63D0\u4EA4\u6210\u529F":s="\u65B0\u589E\u6210\u529F\u4F46\u672A\u63D0\u4EA4"),i({type:"success",message:`${s}!`}),l()):i.warning(a.msg)}catch{}finally{t.value=!1}};return(u,e)=>{const s=v("HZPageLayout");return y(),F(s,{title:r(p).meta.title,isBack:!0},{default:C(()=>[S(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:c,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{U as default};
