import{b as t,d as a,e,o as s,c as l,f as i,i as n,h as r,x as u,l as c,m as o,F as m,k as _,j as p,n as d,t as f,v,y,z as x}from"./index-b1399800.js";import{_ as g}from"./right.5b5369cb.js";import{_ as h,a as k}from"./_plugin-vue_export-helper.563c4239.js";import{o as j,b}from"./uni-app.es.6e445678.js";import{m as C}from"./api.a8ee9fc2.js";import{i as I,f as L}from"./filterIdentity.a5bf590d.js";import{S as w}from"./search.40e4fcd5.js";import"./bottom.64dd5779.js";const E=h({__name:"record",setup(h){j((()=>{I()?(L(),F()):t({url:"/pages/404/404?message=请在微信客户端打开链接"})})),b((()=>{F(),setTimeout((function(){a()}),500)}));const E=e([{text:"全部",value:0},{text:"预约进行中",value:1},{text:"已截止",value:2},{text:"已分配",value:3},{text:"候补中",value:4}]),M=e([{text:"全部",value:0},{text:"今天",value:1},{text:"明天",value:2}]),S=e(1),z=e(0),D=e([]),F=async()=>{const t=await C({url:"/appcarCaptainManage.action",data:{date_state:S.value,result_state:z.value}});t.data.length&&t.data.forEach((t=>{t.percent=Math.ceil(parseInt(t.user_num)/parseInt(t.contain)*100)})),D.value=t.data},H=t=>{S.value=t.timeIndex-0+1,z.value=t.typeIndex,F()};return(t,a)=>{const e=n,h=x;return s(),l(e,{class:"container"},{default:i((()=>[r(u(w),{typeList:E.value,timeList:M.value,onHandLeConveyData:H},null,8,["typeList","timeList"]),(s(!0),c(m,null,o(D.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((()=>[r(e,{class:"list-title"},{default:i((()=>[r(e,{class:"title-number"},{default:i((()=>[p("车牌："+f(0!=t.car_number?t.car_number:"无"),1)])),_:2},1024),r(e,{class:"title-icon"},{default:i((()=>[_("img",{src:g})])),_:1})])),_:2},1024),r(e,{class:"list-item"},{default:i((()=>[p(" 状态： "),_("span",{class:v("预约进行中"==t.state_str||"候补中"==t.state_str?"list-item-type":"")},f(t.state_str),3)])),_:2},1024),r(e,{class:"list-item"},{default:i((()=>[p(" 发车日期： "),_("span",null,f(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,f(0!=t.ci_time?t.ci_time:""),1)])),_:2},1024)):d("",!0),r(e,{class:"list-item"},{default:i((()=>[p(" 扫码时间： "),_("span",null,f(t.sm_start+"-"+t.sm_end),1)])),_:2},1024),r(e,{class:"list-item"},{default:i((()=>[p(" 线路： "),_("span",null,f(t.route),1)])),_:2},1024),r(e,{class:"list-item"},{default:i((()=>[p(" 站点： "),_("span",null,f(t.route_end),1)])),_:2},1024),r(e,{class:"list-item"},{default:i((()=>[p(" 人数： "),"预约进行中"==t.state_str||"已截止"==t.state_str?(s(),l(e,{key:0,class:"list-item-progress"},{default:i((()=>[r(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(),c("span",{key:1},f(t.user_num+"/"+t.contain),1)):(s(),c("span",{key:2},f(t.contain),1))])),_:2},1024)])),_:2},1032,["onClick"])))),128)),0==D.value.length?(s(),l(e,{key:0,class:"list-nodata"},{default:i((()=>[_("img",{src:k}),r(e,null,{default:i((()=>[p("暂无数据")])),_:1})])),_:1})):d("",!0)])),_:1})}}},[["__scopeId","data-v-cf2ecb25"]]);export{E as default};
