import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-96ab67c6-1782729249161v=1.0.0.js";import{u as y,g as b}from"./agreementManageApi-c7dbd9e8-1782729249161v=1.0.0.js";import{u as C}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as w}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 M,al as k,z as B,I as E,J as F,R as S,u as i,k as c}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./WangEditor-ba648bf2-1782729249161v=1.0.0.js";import"./style-368a93d4-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const q=f({name:"agreementManageEdit"}),z=f({...q,setup(x){const{closeCurrent:m}=C(),g=l(null),o=l({applicableType:"",name:"",content:"",mobileSignatureStatus:"",status:"",agreementId:""}),a=l(!1),s=w(),p=()=>{m()},d=async n=>{a.value=!0;try{let e=y,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}},_=async n=>{let e=await b(n);if(e.code!=0){u.warning(e.msg);return}o.value=e.data};return M(()=>{s.query.id&&(g.value=s.query.id,_(s.query.id))}),(n,e)=>{const r=k("HZPageLayout");return B(),E(r,{title:i(s).meta.title,isBack:!0},{default:F(()=>[S(v,{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:p,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{z as default};
