var M=Object.defineProperty;var _=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var j=(e,r,t)=>r in e?M(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,B=(e,r)=>{for(var t in r||(r={}))U.call(r,t)&&j(e,t,r[t]);if(_)for(var t of _(r))q.call(r,t)&&j(e,t,r[t]);return e};var b=(e,r,t)=>new Promise((f,p)=>{var F=o=>{try{a(t.next(o))}catch(i){p(i)}},c=o=>{try{a(t.throw(o))}catch(i){p(i)}},a=o=>o.done?f(o.value):Promise.resolve(o.value).then(F,c);a((t=t.apply(e,r)).next())});import"./index-BkgeZpOO.js";import{U as l,a2 as v,a3 as $,k as u,af as k,ad as L,V as H,d as N,e as P,f as y,r as E}from"./vue-vendor-CxLCUzY4.js";import{_ as G,h as T,F as w}from"./index-CYriLmQo.js";import{a as W,j as z}from"./data-CQFKkjQj.js";import Q from"./JeecgOrderCustomerForm-d0skQ-sc.js";import{u as X,B as Y}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 Z=N({name:"JeecgOrderMainForm",components:{BasicForm:Y,JeecgOrderCustomerForm:Q},props:{formData:w.object.def({}),formBpm:w.bool.def(!0)},setup(e){const[r,{setFieldsValue:t,setProps:f,getFieldsValue:p,updateSchema:F}]=X({labelWidth:150,schemas:W(e.formData),showActionButtonGroup:!1,baseColProps:{span:8}}),c=P(()=>e.formData.disabled!==!1),a=y(),o=y(),i=y(!1);let d={};const h="/test/jeecgOrderMain/queryById";function S(){return b(this,null,function*(){let n={id:e.formData.dataId};const s=yield T.get({url:h,params:n});d=B({},s),yield t(d),yield f({disabled:c.value}),yield a.value.initFormData(e.formData.dataId),yield V(e.formData.dataId),i.value=!0})}function R(){return b(this,null,function*(){let n=p(),s=Object.assign({},d,n);yield saveOrUpdate(s,!0)})}S();const I=y("jeecgOrderCustomerForm");function J(){}const O=E({loading:!1,dataSource:[],columns:K(z,"order:")});function V(n){return b(this,null,function*(){const s="/test/jeecgOrderMain/queryOrderTicketListByMainId";let C={id:n};O.dataSource=[];const g=yield T.get({url:s,params:C});g&&g.length>0&&(O.dataSource=[...g])})}function K(n,s){let C=e.formData.permissionList;return n.filter(D=>{let m=C.find(A=>A.action===s+D.key);return m?(m instanceof Array&&(m=m[0]),m.type=="2"&&!m.isAuth?(D.disabled=!0,!0):!(m.type=="1"&&!m.isAuth)):!0})}return{registerForm:r,formDisabled:c,submitForm:R,jeecgOrderCustomerFormRef:a,activeKey:I,handleChangeTabs:J,table2:O,jeecgOrderTicketRef:o,ok:i}}}),x={class:"jeecg-flow-demo"};function ee(e,r,t,f,p,F){const c=l("BasicForm"),a=l("JeecgOrderCustomerForm"),o=l("a-tab-pane"),i=l("JVxeTable"),d=l("a-tabs");return v(),$("div",x,[u(c,{onRegister:e.registerForm},null,8,["onRegister"]),u(d,{activeKey:e.activeKey,"onUpdate:activeKey":r[0]||(r[0]=h=>e.activeKey=h),onChange:e.handleChangeTabs},{default:k(()=>[u(o,{tab:"客户信息",key:"jeecgOrderCustomerForm",forceRender:!0},{default:k(()=>[u(a,{ref:"jeecgOrderCustomerFormRef",formData:e.formData},null,8,["formData"])]),_:1}),u(o,{tab:"机票信息",key:"jeecgOrderTicket",forceRender:!0},{default:k(()=>[e.ok?(v(),L(i,{key:0,ref:"jeecgOrderTicketRef",stripe:"",rowSelection:"",keepSource:"",maxHeight:300,loading:e.table2.loading,columns:e.table2.columns,dataSource:e.table2.dataSource},null,8,["loading","columns","dataSource"])):H("",!0)]),_:1})]),_:1},8,["activeKey","onChange"])])}const et=G(Z,[["render",ee]]);export{et as default};
