var B=Object.defineProperty;var f=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var F=(o,r,t)=>r in o?B(o,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[r]=t,d=(o,r)=>{for(var t in r||(r={}))b.call(r,t)&&F(o,t,r[t]);if(f)for(var t of f(r))y.call(r,t)&&F(o,t,r[t]);return o};var l=(o,r,t)=>new Promise((a,s)=>{var c=e=>{try{m(t.next(e))}catch(p){s(p)}},i=e=>{try{m(t.throw(e))}catch(p){s(p)}},m=e=>e.done?a(e.value):Promise.resolve(e.value).then(c,i);m((t=t.apply(o,r)).next())});import"./index-BkgeZpOO.js";import{U as C,a2 as D,ad as O,d as w,e as $}from"./vue-vendor-CxLCUzY4.js";import{_ as j,h as k,F as q}from"./index-CYriLmQo.js";import{g as v}from"./data-CQFKkjQj.js";import{u as x,B as I}from"./useForm-8o5KRzWo.js";import"./componentMap-7D1QIeNI.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useFormItem-CWa0w7fA.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";const J=w({name:"JeecgOrderCustomerForm",components:{BasicForm:I},props:{formData:q.object.def({})},setup(o){const[r,{setFieldsValue:t,setProps:a,getFieldsValue:s,updateSchema:c}]=x({labelWidth:150,schemas:v(o.formData),showActionButtonGroup:!1,baseColProps:{span:8}}),i=$(()=>o.formData.disabled!==!1);let m={};const e="/test/jeecgOrderMain/queryOrderCustomerListByMainId";function p(n){return l(this,null,function*(){let _={id:n};const u=yield k.get({url:e,params:_});if(u&&u.length>0){let h=u[0];m=d({},h),yield t(m),yield a({disabled:i.value})}})}function g(){return l(this,null,function*(){let n=d({},m);return Object.keys(n).length>0?n:!1})}return{registerForm:r,formDisabled:i,initFormData:p,getFormData:g}}});function M(o,r,t,a,s,c){const i=C("BasicForm");return D(),O(i,{onRegister:o.registerForm},null,8,["onRegister"])}const Jt=j(J,[["render",M]]);export{Jt as default};
