import{b as t,d as a,e,o as s,c as l,f as i,i as r,h as n,x as u,l as o,m as c,F as m,k as p,j as _,n as d,v as f,t as v,y,z as g}from"./index-d0748378.js";import{_ as x,a as k}from"./right2.a72c0f79.js";import{_ as h,a as j}from"./_plugin-vue_export-helper.85faaf7d.js";import{o as b,b as C}from"./uni-app.es.74adb8e7.js";import{m as I}from"./api.9a3ad04e.js";import{i as L,f as w}from"./filterIdentity.cbbb7619.js";import{S as E}from"./search.bf783dee.js";import"./bottom.64dd5779.js";const M=h({__name:"record",setup(h){b((()=>{L()?(w(),H()):t({url:"/pages/404/404?message=请在微信客户端打开链接"})})),C((()=>{H(),setTimeout((function(){a()}),500)}));const M=e([{text:"全部",value:0},{text:"预约进行中",value:1},{text:"已截止",value:2},{text:"已分配",value:3},{text:"候补中",value:4}]),S=e([{text:"全部",value:0},{text:"今天",value:1},{text:"明天",value:2}]),z=e(1),D=e(0),F=e([]),H=async()=>{const t=await I({url:"/appcarCaptainManage.action",data:{date_state:z.value,result_state:D.value}});t.data.length&&t.data.forEach((t=>{t.percent=Math.ceil(parseInt(t.user_num)/parseInt(t.contain)*100)})),F.value=t.data},J=t=>{z.value=t.timeIndex-0+1,D.value=t.typeIndex,H()};return(t,a)=>{const e=r,h=g;return s(),l(e,{class:"container"},{default:i((()=>[n(u(E),{typeList:M.value,timeList:S.value,onHandLeConveyData:J},null,8,["typeList","timeList"]),(s(!0),o(m,null,c(F.value,((t,a)=>(s(),l(e,{class:"list",key:a,onClick:a=>(t=>{const a=JSON.stringify(t);y({url:`/pages/detail/detail?info=${a}`})})(t)},{default:i((()=>[n(e,{class:f(["list-title","南昌-靖安"===t.route?"type":"type2"])},{default:i((()=>[n(e,{class:"title-number"},{default:i((()=>[_(v(t.route)+"   车牌："+v(0!=t.car_number?t.car_number:"无"),1)])),_:2},1024),n(e,{class:"title-icon"},{default:i((()=>["南昌-靖安"===t.route?(s(),o("img",{key:0,src:x})):d("",!0),"靖安-南昌"===t.route?(s(),o("img",{key:1,src:k})):d("",!0)])),_:2},1024)])),_:2},1032,["class"]),n(e,{class:"list-item"},{default:i((()=>[_(" 状态： "),p("span",{class:f("预约进行中"==t.state_str||"候补中"==t.state_str?"list-item-type":"")},v(t.state_str),3)])),_:2},1024),n(e,{class:"list-item"},{default:i((()=>[_(" 发车日期： "),p("span",null,v(t.yy_date),1)])),_:2},1024),"预约进行中"==t.state_str||"已截止"==t.state_str?(s(),l(e,{key:0,class:"list-item"},{default:i((()=>[_(" 发车时间： "),p("span",null,v(0!=t.ci_time?t.ci_time:""),1)])),_:2},1024)):d("",!0),n(e,{class:"list-item"},{default:i((()=>[_(" 扫码时间： "),p("span",null,v(t.sm_start+"-"+t.sm_end),1)])),_:2},1024),n(e,{class:"list-item"},{default:i((()=>[_(" 站点： "),p("span",null,v(t.route_end),1)])),_:2},1024),n(e,{class:"list-item"},{default:i((()=>[_(" 人数： "),"预约进行中"==t.state_str||"已截止"==t.state_str?(s(),l(e,{key:0,class:"list-item-progress"},{default:i((()=>[n(h,{activeColor:"#3C50E8","stroke-width":"9",percent:t.percent?t.percent:0},null,8,["percent"])])),_:2},1024)):d("",!0),"预约进行中"==t.state_str||"已截止"==t.state_str?(s(),o("span",{key:1},v(t.user_num+"/"+t.contain),1)):(s(),o("span",{key:2},v(t.contain),1))])),_:2},1024)])),_:2},1032,["onClick"])))),128)),0==F.value.length?(s(),l(e,{key:0,class:"list-nodata"},{default:i((()=>[p("img",{src:j}),n(e,null,{default:i((()=>[_("暂无数据")])),_:1})])),_:1})):d("",!0)])),_:1})}}},[["__scopeId","data-v-a4e64519"]]);export{M as default};
