import{u as P}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{g as w}from"./agreementManageApi-c7dbd9e8-1782729249161v=1.0.0.js";import{b as I,a as M,D as R,_ as q}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as N}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as d,r as t,m as V,al as o,z as c,I as _,J as a,R as s,u,M as h,A as T,Q as H,a4 as S,F as Z,B as z,O as J}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const O={class:"pt20 mt30"},Q=d({name:"agreementManageDetail"}),j=d({...Q,setup(G){const i=t({xs:24,sm:22,md:20,lg:14,xl:23}),p=t({xs:24,sm:24,md:12,lg:12,xl:12}),f=t({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:y}=P();I();const r=t({}),l=M(),g=t(""),b=t([{key:"agreementId",col:2,label:"\u534F\u8BAE\u7F16\u53F7"},{key:"name",col:2,label:"\u534F\u8BAE\u540D\u79F0"},{key:"applicableType",col:2,label:"\u9002\u7528\u4E1A\u52A1"},{key:"content",col:1,label:"\u534F\u8BAE\u5185\u5BB9",type:"richText"}]),x=t({1:i,2:p,3:f}),v=async m=>{let e=await w(m);if(e.code!==0){N.error(e.msg);return}e.data,r.value={...e.data}};V(()=>{l.query.id&&(g.value=l.query.id,r.value.id=l.query.id,v(l.query.id))});const k=()=>{y()};return(m,e)=>{const B=o("PaCol"),F=o("PaRow"),E=o("el-button"),C=o("el-form-item"),A=o("el-form"),D=o("HZPageLayout");return c(),_(D,{title:u(l).meta.title,isBack:!0},{default:a(()=>[s(A,{model:u(r),ref:"ruleFormRef"},{default:a(()=>[h(' <div class="divider mt16 mb28"></div> '),s(F,null,{default:a(()=>[(c(!0),T(H,null,S(u(b),(n,L)=>(c(),_(B,Z({key:L},{ref_for:!0},u(x)[n.col]),{default:a(()=>[s(R,{label:n.label,value:u(r)[n.key],type:n.type,enum:n.enum},null,8,["label","value","type","enum"])]),_:2},1040))),128))]),_:1}),s(C,null,{default:a(()=>[z("div",O,[s(E,{onClick:k},{default:a(()=>e[0]||(e[0]=[J("\u8FD4\u56DE",-1)])),_:1,__:[0]})])]),_:1})]),_:1},8,["model"])]),_:1},8,["title"])}}});const ee=q(j,[["__scopeId","data-v-eb980989"]]);export{ee as default};
