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-BN5Ac_IG.js";import{useListPage as W}from"./useListPage-i3Wl0_Fg.js";import"./index-CF_FJn6P.js";import X from"./JeecgOrderModal-DimZsr3E.js";import Y from"./JeecgOrderCustomerList-CXQq6QBe.js";import Z from"./JeecgOrderTicketList-bh9VMHfH.js";import{m as tt,n as ot,o as et,p as nt,q as it}from"./erplist.api-PZf4FuwF.js";import{a9 as rt}from"./index-CYriLmQo.js";import{Q as at}from"./componentMap-7D1QIeNI.js";import mt from"./BasicTable-DAfCfXmD.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.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"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./injectionKey-DPVn4AgL.js";import"./renderUtils-CGtepdOw.js";import"./JeecgOrderCustomerModal-DlIi0QwL.js";import"./JeecgOrderTicketModal-B7WVYH2h.js";const pt=x({name:"tab-list"}),wo=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{wo as default};
