12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!--pages/reservationPipe/index.wxml-->
- <view class="container listMain">
- <block wx:if="{{loginStatus}}">
- <view url="" class="addBtn" catch:tap="changeAdd" hover-class="none" catchtouchmove="buttonMove" bindtouchstart="buttonStart" bindtouchend="buttonEnd" style="top:{{buttonTop}}px;left:{{buttonLeft}}px;" wx:if="{{roleCodeList == 'driver'}}">
- <van-icon name="plus" size="30px" />
- </view>
- <van-sticky>
- <view class="topSeach">
- <view class="rightBox" style="position: relative;">
- <van-search value="{{ searchVal }}" shape="round" placeholder="查询计划单号/车牌号码" bind:change="onChange" bind:search="onSearch" bind:cancel="onCancel" use-action-slot>
- <view slot="label" style="width:160rpx;margin-right: 20rpx;">
- <van-field label="" input-align="center" style="width: 100%;">
- <view slot="input" style="width: 100%;">
- <input name="status" value='{{appointmentStatusArray[appointmentStatusIndex].dictValue}}' hidden='true' />
- <picker bindchange="bindPickerChange" value="{{appointmentStatusIndex}}" range="{{appointmentStatusArray}}" range-key="dictLabel" data-pickername='appointmentStatus'>
- <view wx:if="{{appointmentStatusArray[appointmentStatusIndex].dictLabel}}" style="font-size: 12px;white-space: nowrap;"> {{appointmentStatusArray[appointmentStatusIndex].dictLabel}}</view>
- <view wx:else class="selectPlaceholder" style="font-size: 12px;white-space: nowrap;">{{defaultText}}</view>
- </picker>
- </view>
- <view slot="right-icon">
- <van-icon name="arrow-down" />
- </view>
- </van-field>
- </view>
- <van-icon slot="action" class-prefix="iconfont" name="arrow3-right_fill" size="28px" color="#4B70EA" bind:tap="toSearch" />
- </van-search>
- </view>
- </view>
- </van-sticky>
- <view class="width710">
- <block wx:if="{{!requestStatu}}">
- <block wx:if="{{resData.length>0}}">
- <block wx:for="{{resData}}" wx:key="index">
- <navigator url="info?id={{item.id}}&planNumber={{item.planNumber}}&index={{index}}" class="listItem">
- <view class="title van-ellipsis">
- <van-icon class='iconfont' name='/images/codeNumber.png' size="36rpx"></van-icon>
- <text>{{item.planNumber}}</text>
- <text wx:if="{{item.status}}" class="status status{{item.status}}">{{item.statusName}}</text>
- </view>
- <view class="info">
- <text decode="{{true}}">司机:{{item.driverName?item.driverName:'未填写'}} / {{item.driverMobile?item.driverMobile:'未填写'}}</text>
- </view>
- <view class="time"><text>出入场时间:{{item.enterTime?filters.tosubStr(item.enterTime,0,16):''}} ~ {{item.leaveTime?filters.tosubStr(item.leaveTime,0,16):''}}</text></view>
- <view class="bottomBtn" wx:if="{{ roleCodeList == 'driver' && (item.status == '2' || item.status == '4') }}">
- <van-button type="info" size="small" data-url="edit?index={{index}}" catchtap="toLink" style="margin-right: 20rpx;" wx:if="{{ roleCodeList == 'driver' && (item.status == '2' || item.status == '4') }}">修改</van-button>
- <van-button type="danger" size="small" data-id="{{item.id}}" data-plan-number="{{item.planNumber}}" catchtap="delFun" style="margin-right: 20rpx;" wx:if="{{ roleCodeList == 'driver' && (item.status == '2' || item.status == '4') }}">删除</van-button>
- <van-button type="warning" size="small" data-id="{{item.id}}" data-plan-number="{{item.planNumber}}" catchtap="cancelFun" style="margin-right: 20rpx;" wx:if="{{ roleCodeList == 'driver' && item.status == '4' }}">取消</van-button>
- </view>
- </navigator>
- </block>
- <!-- 底部加载动画 -->
- <view class='more'>
- <block wx:if="{{more}}">
- <van-loading size="24px" color="#1989fa">加载中...</van-loading>
- </block>
- <block wx:else>{{nomore}}</block>
- </view>
- <view style="height: 200rpx;"> </view>
- </block>
- <block wx:else>
- <van-empty description="未搜索到预约记录" image="/images/null5.png" />
- </block>
- </block>
- </view>
- </block>
- <block wx:else>
- <view>
- <van-empty image="/images/loginNull.png">
- <view slot="description" style="text-align: center;">
- <text style="display:block;margin-bottom: 20rpx;">您还未登录,登录后查看更多~</text>
- <van-button type="info" bindtap="toLogin">立即登录</van-button>
- </view>
- </van-empty>
- </view>
- </block>
- </view>
- <wxs module="filters" src="../../utils/filter.wxs"></wxs>
|