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