import{_ as g}from"./BaseForm.vue_vue_type_script_setup_true_lang-96ab67c6-1782729249161v=1.0.0.js";import{a as _}from"./agreementManageApi-c7dbd9e8-1782729249161v=1.0.0.js";import{u as v}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as b}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as m}from"./eleVendor-5008d1ec-1782729249161v=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-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 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};
