import v from"./BaseForm-7cdbdd21-1782729249161v=1.0.0.js";import{u as b,a as _}from"./numberApi-8bbb189b-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 f,r as l,m as B,al as F,z as k,I as E,J as q,R as x,u as i,k as c}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./eleValidate-2ce2196e-1782729249161v=1.0.0.js";import"./vue-draggable-plus-8c3b63e8-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const L=f({name:"numberEdit"}),z=f({...L,setup(N){const{closeCurrent:m}=C(),p=l(null),o=l({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),t=l(!1),s=w(),d=()=>{m()},g=async r=>{t.value=!0;try{let e=b,n="\u66F4\u65B0\u6210\u529F",a=await e(r);a.code==0?u({type:"success",message:`${n}!`}):u.warning(a.msg),t.value=!1,m()}catch{t.value=!1}},y=async r=>{let e=await _(r);if(e.code!=0){u.warning(e.msg);return}o.value=e.data};return B(()=>{s.query.id&&(p.value=s.query.id,y(s.query.id))}),(r,e)=>{const n=F("HZPageLayout");return k(),E(n,{isBack:!0,title:i(s).meta.title},{default:q(()=>[x(v,{value:i(o),"onUpdate:value":e[0]||(e[0]=a=>c(o)?o.value=a:null),loading:i(t),"onUpdate:loading":e[1]||(e[1]=a=>c(t)?t.value=a:null),onCancel:d,onSubmit:g},null,8,["value","loading"])]),_:1},8,["title"])}}});export{z as default};
