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