import{_}from"./BaseForm.vue_vue_type_script_setup_true_lang-9eb2a082-1782729249161v=1.0.0.js";import{u as v,g as b}from"./orderApi-e08ea9a5-1782729249161v=1.0.0.js";import{u as C}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as w}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as u}from"./eleVendor-5008d1ec-1782729249161v=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-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=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};
