import y from"./BaseForm-6806d8bf-1782729249161v=1.0.0.js";import{u as _,e as b}from"./fundApplyMgmtApi-c57ca5ae-1782729249161v=1.0.0.js";import{u as F}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as C}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as u}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as f,r as l,m as w,al as B,z as M,I as k,J as E,R as P,u as i,k as c}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 S=f({name:"agreementManageEdit"}),D=f({...S,setup(q){const{closeCurrent:m}=F(),p=l(null),o=l({applicableType:"",name:"",content:"",mobileSignatureStatus:"",status:"",agreementId:""}),a=l(!1),s=C(),d=()=>{m()},g=async n=>{a.value=!0;try{let e=_,r="\u66F4\u65B0\u6210\u529F",t=await e(n);t.code==0?u({type:"success",message:`${r}!`}):u.warning(t.msg),a.value=!1,m()}catch{a.value=!1}},v=async n=>{let e=await b(n);if(e.code!=0){u.warning(e.msg);return}o.value=e.data};return w(()=>{s.query.id&&(p.value=s.query.id,v(s.query.id))}),(n,e)=>{const r=B("HZPageLayout");return M(),k(r,{title:i(s).meta.title,isBack:!0},{default:E(()=>[P(y,{value:i(o),"onUpdate:value":e[0]||(e[0]=t=>c(o)?o.value=t:null),loading:i(a),"onUpdate:loading":e[1]||(e[1]=t=>c(a)?a.value=t:null),onCancel:d,onSubmit:g},null,8,["value","loading"])]),_:1},8,["title"])}}});export{D as default};
