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-LwlFn7Y4.js";import{useListPage as W}from"./useListPage-BEtybUiF.js";import"./index-D2AmS0aU.js";import X from"./JeecgOrderModal-DHDawODS.js";import Y from"./JeecgOrderCustomerList-D7tajzVQ.js";import Z from"./JeecgOrderTicketList-DPBcSSUU.js";import{m as tt,n as ot,o as et,p as nt,q as it}from"./erplist.api-CZLRJLe7.js";import{a9 as rt}from"./index-B_2CoVdl.js";import{Q as at}from"./componentMap-CzCGDP7x.js";import mt from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./index-DAURrYyA.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./injectionKey-DPVn4AgL.js";import"./renderUtils-Cbe4E0PZ.js";import"./JeecgOrderCustomerModal-zp5300At.js";import"./JeecgOrderTicketModal-DRgu1GEd.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};
