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-gyz1IdHU.js";import h from"./modal-DOHJWCEw.js";import F from"./JVxeTableModal-aROyNT_B.js";import G from"./OneToOneModal-CWSzmfdE.js";import{bg as I}from"./antd-vue-vendor-CahNzUUa.js";import{useListPage as K}from"./useListPage-TMORxSEa.js";import"./index-zKZnG1QC.js";import{c as L}from"./data-BRhMNtcN.js";import{l as Q,d as j}from"./api-DuqqVvg8.js";import{a9 as k}from"./index-Cy4uayzW.js";import{Q as q}from"./componentMap-0iK4HQBq.js";import z from"./BasicTable-CgafrQwz.js";import"./jvxetable.api-iN4GaeN-.js";import"./useJvxeMethods-B9cBxf6D.js";import"./vxeUtils-XAL4qcPi.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.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";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};
