import{d as k,f as e,n,a2 as b,ad as h,af as _,k as g}from"./vue-vendor-CxLCUzY4.js";import{A as C}from"./AgvMachineConfigForm-K7OpisM6.js";import{J as x}from"./JModal-D-bfyg62.js";import"./index-CYriLmQo.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./JFormContainer-DjzmLZR8.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./index-CxQILSKV.js";const N=k({__name:"AgvMachineConfigModal",emits:["register","success"],setup(B,{expose:r,emit:u}){const i=e(""),c=e(800),t=e(!1),a=e(!1),o=e(),m=u;function f(){i.value="新增",t.value=!0,n(()=>{o.value.add()})}function d(l){i.value=a.value?"详情":"编辑",t.value=!0,n(()=>{o.value.edit(l)})}function p(){o.value.submitForm()}function v(){s(),m("success")}function s(){t.value=!1}return r({add:f,edit:d,disableSubmit:a}),(l,w)=>(b(),h(x,{title:i.value,width:c.value,visible:t.value,onOk:p,okButtonProps:{class:{"jee-hidden":a.value}},onCancel:s,cancelText:"关闭"},{default:_(()=>[g(C,{ref_key:"registerForm",ref:o,onOk:v,formDisabled:a.value,formBpm:!1},null,8,["formDisabled"])]),_:1},8,["title","width","visible","okButtonProps"]))}});export{N as default};
