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