import g from"./BaseForm-205705ff-1782572373740v=1.0.0.js";import{b,f as E}from"./fundApplyMgmtApi-e408d25c-1782572373740v=1.0.0.js";import{u as B}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as _}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as i}from"./eleVendor-48a7d3b8-1782572373740v=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-866bb149-1782572373740v=1.0.0.js";import"./usePrint-d2511e6d-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=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};
