import g from"./BaseForm-73dd238d-1782572373740v=1.0.0.js";import{a as C}from"./scoreCertificateApi-e42b5e9e-1782572373740v=1.0.0.js";import{u as y}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import b from"./CertificatePreview-c0364b4d-1782572373740v=1.0.0.js";import{a as x,_ as F}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as f}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as d,r as l,al as w,z as B,A as E,R as r,J as c,u as n,k as u,M as k}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const U={class:"outerContainer"},L=d({name:"scoreAdd"}),P=d({...L,setup(R){const{closeCurrent:i}=y(),a=l({creatorOrganUnitType:"",content:[],referee:"\u88C1\u5224\u957F",status:1}),o=l(!1),p=()=>{i()};l("");const _=x(),v=async m=>{o.value=!0;try{let e=C,s="\u65B0\u589E\u6210\u529F",t=await e(m);t.code==0?(f({type:"success",message:`${s}!`}),i()):f.warning(t.msg),o.value=!1}catch{o.value=!1}};return(m,e)=>{const s=w("HZPageLayout");return B(),E("div",U,[r(s,{isBack:!0,title:n(_).meta.title,style:{flex:"4"}},{default:c(()=>[r(g,{value:n(a),"onUpdate:value":e[0]||(e[0]=t=>u(a)?a.value=t:null),loading:n(o),"onUpdate:loading":e[1]||(e[1]=t=>u(o)?o.value=t:null),onCancel:p,onSubmit:v},null,8,["value","loading"])]),_:1},8,["title"]),r(s,{title:"\u6548\u679C\u9884\u89C8",style:{flex:"2","min-width":"300px"}},{default:c(()=>[k(" {{ baseForm }} "),r(b,{value:n(a),"onUpdate:value":e[2]||(e[2]=t=>u(a)?a.value=t:null)},null,8,["value"])]),_:1})])}}});const I=F(P,[["__scopeId","data-v-bfa0d9cf"]]);export{I as default};
