import{d as O,r as n,a as w,o as x,g as d,c as B,k as p,e as t,w as s,z as v,b as m,l as I,ab as N,E,_ as P}from"./index-CUnFTKV2.js";import M from"./OrderSearchForm-DIsYPvXe.js";import R from"./StuckOrderTable-DV7lQoWB.js";import j from"./OrderDetailDialog-CCUOom5N.js";import{p as q}from"./order-BSmesayL.js";const F={class:"page-container"},L={class:"card-header"},T=O({__name:"stuck",setup(U){const r=n(!1),i=n([]),g=n(0),e=w({page:1,pageSize:20}),c=n(!1),u=n(null),l=async()=>{r.value=!0;try{const a=await q(e);i.value=a.data.list,g.value=a.data.total}catch(a){console.error("获取卡单订单列表失败:",a),E.error("获取卡单订单列表失败")}finally{r.value=!1}},_=a=>{e.userId=void 0,e.mobile=void 0,e.orderNum=void 0,e.startDate=void 0,e.endDate=void 0,Object.assign(e,a),e.page=1,l()},f=()=>{e.userId=void 0,e.mobile=void 0,e.orderNum=void 0,e.startDate=void 0,e.endDate=void 0,e.page=1,l()},h=a=>{e.page=a,l()},D=a=>{e.pageSize=a,e.page=1,l()},k=a=>{u.value=a.id,c.value=!0},S=()=>{u.value=null};return x(()=>{l()}),(a,o)=>{const z=d("el-icon"),C=d("el-tooltip"),y=d("el-empty"),V=d("el-card");return p(),B("div",F,[t(V,null,{header:s(()=>[m("div",L,[o[1]||(o[1]=m("span",null,"卡单订单",-1)),t(C,{content:"卡单订单是指支付成功但未发奖的异常订单",placement:"top"},{default:s(()=>[t(z,{class:"info-icon"},{default:s(()=>[t(I(N))]),_:1})]),_:1})])]),default:s(()=>[t(M,{onSearch:_,onReset:f}),!r.value&&i.value.length===0?(p(),v(y,{key:0,description:"暂无卡单订单","image-size":120},{description:s(()=>[...o[2]||(o[2]=[m("p",null,"当前没有支付成功但未发奖的异常订单",-1)])]),_:1})):(p(),v(R,{key:1,data:i.value,loading:r.value,total:g.value,page:e.page,"page-size":e.pageSize,onPageChange:h,onSizeChange:D,onViewDetail:k},null,8,["data","loading","total","page","page-size"]))]),_:1}),t(j,{modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=b=>c.value=b),"order-id":u.value,onClose:S},null,8,["modelValue","order-id"])])}}}),Q=P(T,[["__scopeId","data-v-30cc634d"]]);export{Q as default};
