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