var R=(x,_,p)=>new Promise((g,m)=>{var b=r=>{try{l(p.next(r))}catch(s){m(s)}},u=r=>{try{l(p.throw(r))}catch(s){m(s)}},l=r=>r.done?g(r.value):Promise.resolve(r.value).then(b,u);l((p=p.apply(x,_)).next())});import{d as E,f as J,U as c,a2 as f,a3 as N,k as i,af as e,u as n,G as d,a5 as P,ad as T}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import h from"./modal-DYQsEr_m.js";import F from"./JVxeTableModal-BqjxnVvJ.js";import G from"./OneToOneModal-qc4W11gC.js";import{bg as I}from"./antd-vue-vendor-CahNzUUa.js";import{useListPage as K}from"./useListPage-CevWQ3ci.js";import"./index-XZKTTfG1.js";import{c as L}from"./data-yf9MckD-.js";import{l as Q,d as j}from"./api-CrHYwCAa.js";import{a9 as k}from"./index-CLZzJyTP.js";import{Q as q}from"./componentMap-DpsJvoqz.js";import z from"./BasicTable-DUJWN3yz.js";import"./jvxetable.api-B0WviHY-.js";import"./useJvxeMethods-DmJn8BNm.js";import"./vxeUtils-D_h6Rytj.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.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";const H={class:"p-4"},pt=E({__name:"index",setup(x){const[_,{openModal:p}]=k(),[g,{openModal:m}]=k(),[b,{openModal:u}]=k(),l=t=>[{label:"编辑",onClick:U.bind(null,t)}],r=t=>[{label:"删除",popConfirm:{title:"是否删除？",confirm:v.bind(null,t)}}],{tableContext:s}=K({tableProps:{api:Q,columns:L,useSearchForm:!1,actionColumn:{width:160,title:"操作",dataIndex:"action",slots:{customRender:"action"}}}}),[S,{reload:C},{rowSelection:O}]=s,y=J(3);function D(t){y.value=t.key;let o=y.value;o==1&&m(!0,{isUpdate:!1}),o==2&&p(!0,{isUpdate:!1}),o==3&&u(!0,{isUpdate:!1})}function U(t){let o=y.value;o==1&&m(!0,{record:t,isUpdate:!0}),o==2&&p(!0,{record:t,isUpdate:!0}),o==3&&u(!0,{record:t,isUpdate:!0})}function v(t){return R(this,null,function*(){yield j({id:t.id},C)})}function w(){C()}return(t,o)=>{const M=c("a-menu-item"),V=c("a-menu"),A=c("a-button"),B=c("a-dropdown");return f(),N("div",H,[i(n(z),{onRegister:n(S),rowSelection:n(O)},{tableTitle:e(()=>[i(B,null,{overlay:e(()=>[i(V,{onClick:D},{default:e(()=>[(f(),T(M,{key:1},{default:e(()=>o[0]||(o[0]=[d("一对一示例")])),_:1})),(f(),T(M,{key:2},{default:e(()=>o[1]||(o[1]=[d("一对多示例")])),_:1})),(f(),T(M,{key:3},{default:e(()=>o[2]||(o[2]=[d("一对多(JVexTable)")])),_:1}))]),_:1})]),default:e(()=>[i(A,{type:"primary"},{default:e(()=>[o[3]||(o[3]=d("新增 ")),i(n(I))]),_:1})]),_:1})]),ctype:e(({text:a})=>[d(P(a==="1"?"国内订单":a==="2"?"国际订单":a),1)]),action:e(({record:a})=>[i(n(q),{actions:l(a),dropDownActions:r(a)},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister","rowSelection"]),i(h,{onRegister:n(_),onSuccess:w},null,8,["onRegister"]),i(F,{onRegister:n(b),onSuccess:w},null,8,["onRegister"]),i(G,{onRegister:n(g),onSuccess:w},null,8,["onRegister"])])}}});export{pt as default};
