import g from"./BaseForm-7cdbdd21-1782729249161v=1.0.0.js";import{g as y}from"./numberApi-8bbb189b-1782729249161v=1.0.0.js";import{u as v}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as _}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as m}from"./eleVendor-5008d1ec-1782729249161v=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-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 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};
