import g from"./BaseForm-1e2bd5ca-1782572373740v=1.0.0.js";import{g as y}from"./numberApi-1905487f-1782572373740v=1.0.0.js";import{u as v}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as _}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as m}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as p,r,al as b,z as C,I as k,J as F,R as B,u as n,k as i}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./eleValidate-aae13e4d-1782572373740v=1.0.0.js";import"./vue-draggable-plus-31efe107-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const N=p({name:"numberAdd"}),Z=p({...N,setup(R){const{closeCurrent:u}=v(),o=r({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:"",luckyNums:[],eventNoConfRuleType:"group"}),t=r(!1),c=()=>{u()};r("");const f=_(),d=async l=>{t.value=!0;try{let e=y,s="\u751F\u6210\u6210\u529F",a=await e(l);a.code==0?(m({type:"success",message:`${s}!`}),u()):m.warning(a.msg),t.value=!1}catch{t.value=!1}};return(l,e)=>{const s=b("HZPageLayout");return C(),k(s,{isBack:!0,title:n(f).meta.title},{default:F(()=>[B(g,{value:n(o),"onUpdate:value":e[0]||(e[0]=a=>i(o)?o.value=a:null),loading:n(t),"onUpdate:loading":e[1]||(e[1]=a=>i(t)?t.value=a:null),onCancel:c,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{Z as default};
