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-gyz1IdHU.js";import{useListPage as W}from"./useListPage-TMORxSEa.js";import"./index-zKZnG1QC.js";import X from"./JeecgOrderModal-DZaBX7l6.js";import Y from"./JeecgOrderCustomerList-ETzlv6_q.js";import Z from"./JeecgOrderTicketList-50ZtxIG-.js";import{m as tt,n as ot,o as et,p as nt,q as it}from"./erplist.api-BwxaxhYU.js";import{a9 as rt}from"./index-Cy4uayzW.js";import{Q as at}from"./componentMap-0iK4HQBq.js";import mt from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./injectionKey-DPVn4AgL.js";import"./renderUtils-BcsccCoe.js";import"./JeecgOrderCustomerModal-BQy-TwJ2.js";import"./JeecgOrderTicketModal-D93I_e89.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};
