var $=Object.defineProperty,A=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var k=(i,o,t)=>o in i?$(i,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[o]=t,S=(i,o)=>{for(var t in o||(o={}))O.call(o,t)&&k(i,t,o[t]);if(C)for(var t of C(o))P.call(o,t)&&k(i,t,o[t]);return i},v=(i,o)=>A(i,E(o));var u=(i,o,t)=>new Promise((_,f)=>{var l=n=>{try{c(t.next(n))}catch(d){f(d)}},g=n=>{try{c(t.throw(n))}catch(d){f(d)}},c=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,g);c((t=t.apply(i,o)).next())});import{d as x,e as q,u as m,p as G,U as p,a2 as R,a3 as H,a4 as L,k as e,af as r,G as b,ad as Q,V as j,F as J}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import{useListPage as W}from"./useListPage-CevWQ3ci.js";import"./index-XZKTTfG1.js";import X from"./JeecgOrderModal-C4oh_2Va.js";import Y from"./JeecgOrderCustomerList-DULzcdN2.js";import Z from"./JeecgOrderTicketList-7c5exZQM.js";import{m as tt,n as ot,o as et,p as nt,q as it}from"./erplist.api-BBu33i2Q.js";import{a9 as rt}from"./index-CLZzJyTP.js";import{Q as at}from"./componentMap-DpsJvoqz.js";import mt from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./injectionKey-DPVn4AgL.js";import"./renderUtils-BgFeePLc.js";import"./JeecgOrderCustomerModal-CNFn4wjZ.js";import"./JeecgOrderTicketModal-BODLzvbT.js";const pt=x({name:"tab-list"}),ho=x(v(S({},pt),{setup(i){const[o,{openModal:t}]=rt(),{tableContext:_}=W({tableProps:{api:et,tableSetting:{cacheKey:"erp_main"},columns:ot,canResize:!1,rowSelection:{type:"radio"},formConfig:{schemas:tt},actionColumn:{width:180},pagination:{current:1,pageSize:5,pageSizeOptions:["5","10","20"]}}}),[f,{reload:l,updateTableDataRecord:g},{rowSelection:c,selectedRowKeys:n}]=_,d=q(()=>m(n).length>0?m(n)[0]:"");G("orderId",d);function F(){t(!0,{isUpdate:!1,showFooter:!0})}function D(a){return u(this,null,function*(){t(!0,{record:a,isUpdate:!0,showFooter:!0})})}function st(a){return u(this,null,function*(){t(!0,{record:a,isUpdate:!0,showFooter:!1})})}function I(a){return u(this,null,function*(){yield nt({id:a.id},l)})}function T(){return u(this,null,function*(){yield it({ids:n.value},()=>{n.value=[],l()})})}function V(){l()}function B(a){return[{label:"编辑",onClick:D.bind(null,a)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:I.bind(null,a)}}]}return(a,s)=>{const y=p("a-button"),w=p("Icon"),K=p("a-menu-item"),N=p("a-menu"),U=p("a-dropdown"),h=p("a-tab-pane"),z=p("a-tabs");return R(),H(J,null,[L("div",null,[e(m(mt),{onRegister:m(f),rowSelection:m(c)},{tableTitle:r(()=>[e(y,{type:"primary",preIcon:"ant-design:plus-outlined",onClick:F},{default:r(()=>s[0]||(s[0]=[b(" 新增")])),_:1}),m(n).length>0?(R(),Q(U,{key:0},{overlay:r(()=>[e(N,null,{default:r(()=>[e(K,{key:"1",onClick:T},{default:r(()=>[e(w,{icon:"ant-design:delete-outlined"}),s[1]||(s[1]=b(" 删除 "))]),_:1})]),_:1})]),default:r(()=>[e(y,null,{default:r(()=>[s[2]||(s[2]=b("批量操作 ")),e(w,{icon:"mdi:chevron-down"})]),_:1})]),_:1})):j("",!0)]),action:r(({record:M})=>[e(m(at),{actions:B(M)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"]),e(z,{defaultActiveKey:"1",style:{margin:"10px"}},{default:r(()=>[e(h,{tab:"客户信息",key:"1"},{default:r(()=>[e(Y)]),_:1}),e(h,{tab:"机票信息",key:"2",forceRender:""},{default:r(()=>[e(Z)]),_:1})]),_:1})]),e(X,{onRegister:m(o),onSuccess:V},null,8,["onRegister"])],64)}}}));export{ho as default};
