import g from"./BaseForm-32d52e9b-1782729249161v=1.0.0.js";import{a as C}from"./scoreCertificateApi-f6373181-1782729249161v=1.0.0.js";import{u as y}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import b from"./CertificatePreview-bc6b7faf-1782729249161v=1.0.0.js";import{a as x,_ as F}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as f}from"./eleVendor-5008d1ec-1782729249161v=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-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=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};
