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