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-LwlFn7Y4.js";import h from"./modal-CgD07vvD.js";import F from"./JVxeTableModal-DAQcnFwP.js";import G from"./OneToOneModal-FdVCO3Pb.js";import{bg as I}from"./antd-vue-vendor-CDWW6V_M.js";import{useListPage as K}from"./useListPage-BEtybUiF.js";import"./index-D2AmS0aU.js";import{c as L}from"./data-C3FmjCnZ.js";import{l as Q,d as j}from"./api-Bd3qhb4k.js";import{a9 as k}from"./index-B_2CoVdl.js";import{Q as q}from"./componentMap-CzCGDP7x.js";import z from"./BasicTable-Clbg3fHx.js";import"./jvxetable.api-CiLasAH8.js";import"./useJvxeMethods-DJZKL0Jv.js";import"./vxeUtils-Ck0LG0y-.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.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";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};
