import{_ as d}from"./BaseForm.vue_vue_type_script_setup_true_lang-8951e8dc-1782111760424v=1.0.0.js";import{c as _}from"./specialWorkFillApi-87a45456-1782111760424v=1.0.0.js";import{u as g}from"./useFormEdit-61a257a4-1782111760424v=1.0.0.js";import{E as u}from"./eleVendor-99a45232-1782111760424v=1.0.0.js";import{m as c,a as l,ai as v,p as C,M as x,O as y,U as F,u as m,D as i}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";import"./index-996f931c-1782111760424v=1.0.0.js";import"./tabs-cb939388-1782111760424v=1.0.0.js";const b=c({name:"specialWorkFillAdd"}),M=c({...b,setup(k){const{closeCurrent:r}=g(),o=l({year:"",title:"",allotType:"",attachments:[],status:"",creatorName:"",content:""}),a=l(!1),f=()=>{r()};l("");const p=async s=>{a.value=!0;try{let e=_,n="\u65B0\u589E\u6210\u529F";s.attachments=s.fileStr;let t=await e(s);t.code==0?(u({type:"success",message:`${n}!`}),r()):u.warning(t.msg),a.value=!1}catch{a.value=!1}};return(s,e)=>{const n=v("PaIndexPage");return C(),x(n,null,{default:y(()=>[F(d,{value:m(o),"onUpdate:value":e[0]||(e[0]=t=>i(o)?o.value=t:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=t=>i(a)?a.value=t:null),onCancel:f,onSubmit:p},null,8,["value","loading"])]),_:1})}}});export{M as default};
