import{_ as g}from"./BaseForm.vue_vue_type_script_setup_true_lang-09787ec3-1782572373740v=1.0.0.js";import{a as _}from"./orderApi-cb16cc88-1782572373740v=1.0.0.js";import{u as v}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as y}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as m}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as c,r,al as b,z as C,I as k,J as B,R as E,u as n,k as i}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const w=c({name:"orderAdd"}),P=c({...w,setup(x){const{closeCurrent:l}=v(),o=r({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),a=r(!1),f=()=>{l()};r("");const p=y(),d=async u=>{a.value=!0;try{let e=_,s="\u65B0\u589E\u6210\u529F",t=await e(u);t.code==0?(m({type:"success",message:`${s}!`}),l()):m.warning(t.msg),a.value=!1}catch{a.value=!1}};return(u,e)=>{const s=b("HZPageLayout");return C(),k(s,{isBack:!0,title:n(p).meta.title},{default:B(()=>[E(g,{value:n(o),"onUpdate:value":e[0]||(e[0]=t=>i(o)?o.value=t:null),loading:n(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};
