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-BN5Ac_IG.js";import h from"./modal-B5Zh-I1X.js";import F from"./JVxeTableModal-UFYU4png.js";import G from"./OneToOneModal-Cdw-US-b.js";import{bg as I}from"./antd-vue-vendor-CDWW6V_M.js";import{useListPage as K}from"./useListPage-i3Wl0_Fg.js";import"./index-CF_FJn6P.js";import{c as L}from"./data-CQFKkjQj.js";import{l as Q,d as j}from"./api-5sxu2uBb.js";import{a9 as k}from"./index-CYriLmQo.js";import{Q as q}from"./componentMap-7D1QIeNI.js";import z from"./BasicTable-DAfCfXmD.js";import"./jvxetable.api-B8E5_A3k.js";import"./useJvxeMethods-BYzirYDT.js";import"./vxeUtils-BuNm0uPG.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.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";const H={class:"p-4"},nt=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{nt as default};
