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