import{_ as g}from"./BaseForm.vue_vue_type_script_setup_true_lang-c024bb20-1782572373740v=1.0.0.js";import{a as _}from"./agreementManageApi-24d2d655-1782572373740v=1.0.0.js";import{u as v}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as b}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as m}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as c,r as n,al as y,z as B,I as C,J as E,R as k,u as r,k as i}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./WangEditor-58f37dd0-1782572373740v=1.0.0.js";import"./style-72b27c88-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const S=c({name:"agreementManageAdd"}),P=c({...S,setup(w){const{closeCurrent:u}=v(),o=n({applicableType:"\u8D5B\u4E8B\u62A5\u540D",name:"",content:"",mobileSignatureStatus:0,status:1,agreementId:""}),a=n(!1),f=()=>{u()};n("");const p=b(),d=async l=>{a.value=!0;try{let e=_,s="\u65B0\u589E\u6210\u529F",t=await e(l);t.code==0?(m({type:"success",message:`${s}!`}),u()):m.warning(t.msg),a.value=!1}catch{a.value=!1}};return(l,e)=>{const s=y("HZPageLayout");return B(),C(s,{title:r(p).meta.title,isBack:!0},{default:E(()=>[k(g,{value:r(o),"onUpdate:value":e[0]||(e[0]=t=>i(o)?o.value=t:null),loading:r(a),"onUpdate:loading":e[1]||(e[1]=t=>i(a)?a.value=t:null),onCancel:f,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{P as default};
