|
@@ -1,127 +1,129 @@
|
|
|
<!--pages/index/index.wxml-->
|
|
|
<view class="container listMain">
|
|
|
<block wx:if="{{loginStatus}}">
|
|
|
- <view url="" class="addBtn" catch:tap="changeAdd" hover-class="none" catchtouchmove="buttonMove"
|
|
|
- wx:if="{{ appointmentType == '6' }}" bindtouchstart="buttonStart" bindtouchend="buttonEnd" style="top:{{buttonTop}}px;left:{{buttonLeft}}px;">
|
|
|
- <van-icon name="plus" size="30px" />
|
|
|
- </view>
|
|
|
+ <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="{{ appointmentType == '6' }}">
|
|
|
+ <van-icon name="plus" size="30px" />
|
|
|
+ </view>
|
|
|
|
|
|
- <van-sticky>
|
|
|
- <view class="topFilter">
|
|
|
- <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="transactionType" value='{{typeArray[typeIndex].value}}' hidden='true' />
|
|
|
- <picker bindchange="bindPickerChange" value="{{typeIndex}}" range="{{typeArray}}" range-key="name" data-pickername='type'>
|
|
|
- <view wx:if="{{typeArray[typeIndex].name}}" style="font-size: 12px;white-space: nowrap;"> {{typeArray[typeIndex].name}}</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-tabs active="{{ setIndex }}" ellipsis="{{ false }}" color="#4B70EA" border="{{ fasle }}" bind:click='clickScroll'>
|
|
|
- <block wx:for="{{ applyData }}" wx:key="index">
|
|
|
- <van-tab title="{{ item.label }}"></van-tab>
|
|
|
- </block>
|
|
|
- </van-tabs> -->
|
|
|
- <!-- <view class="filterStatus">
|
|
|
- <view class="first {{registStatus==''?'active':''}}" data-status="" bindtap="statusFun">全部</view>
|
|
|
- <view class="{{registStatus=='1'?'active':''}}" data-status="1" bindtap="statusFun">待入场 <van-tag round wx:if="{{registStatusdrc>0}}" type="danger">{{registStatusdrc}}</van-tag></view>
|
|
|
- <view class="{{registStatus=='3'?'active':''}}" data-status="3" bindtap="statusFun">过磅中 <van-tag round wx:if="{{registStatusgbz>0}}" type="danger">{{registStatusgbz}}</van-tag></view>
|
|
|
- <view class="{{registStatus=='7'?'active':''}}" data-status="7" bindtap="statusFun">已出场 <van-tag round wx:if="{{registStatusycc>0}}" type="danger">{{registStatusycc}}</van-tag></view>
|
|
|
- </view> -->
|
|
|
- <view class="filterStatus">
|
|
|
- <view class="first {{appointmentType==''?'active':''}}" data-type="" bindtap="typeFun">全部预约</view>
|
|
|
- <view class="{{appointmentType=='1'?'active':''}}" data-type="1" bindtap="typeFun">砂石<van-tag round wx:if="{{appointmentTypeSha>0}}" type="danger">{{appointmentTypeSha}}</van-tag></view>
|
|
|
- <view class="{{appointmentType=='3'?'active':''}}" data-type="3" bindtap="typeFun">起卸<van-tag round wx:if="{{appointmentTypeQi>0}}" type="danger">{{appointmentTypeQi}}</van-tag></view>
|
|
|
- <view class="{{appointmentType=='4'?'active':''}}" data-type="4" bindtap="typeFun">充电桩<van-tag round wx:if="{{appointmentTypeGuan>0}}" type="danger">{{appointmentTypeGuan}}</van-tag></view>
|
|
|
- <view class="{{appointmentType=='5'?'active':''}}" data-type="5" bindtap="typeFun">管桩<van-tag round wx:if="{{appointmentTypeChong>0}}" type="danger">{{appointmentTypeChong}}</van-tag></view>
|
|
|
- <view class="{{appointmentType=='6'?'active':''}}" data-type="6" bindtap="typeFun">其他<van-tag round wx:if="{{appointmentTypeOther>0}}" type="danger">{{appointmentTypeOther}}</van-tag></view>
|
|
|
+ <van-sticky>
|
|
|
+ <view class="topFilter">
|
|
|
+ <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="transactionType" value='{{typeArray[typeIndex].value}}' hidden='true' />
|
|
|
+ <picker bindchange="bindPickerChange" value="{{typeIndex}}" range="{{typeArray}}" range-key="name" data-pickername='type'>
|
|
|
+ <view wx:if="{{typeArray[typeIndex].name}}" style="font-size: 12px;white-space: nowrap;"> {{typeArray[typeIndex].name}}</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>
|
|
|
+ <!-- 导航 -->
|
|
|
+ <!-- <van-tabs active="{{ setIndex }}" ellipsis="{{ false }}" color="#4B70EA" border="{{ fasle }}" bind:click='clickScroll'>
|
|
|
+ <block wx:for="{{ applyData }}" wx:key="index">
|
|
|
+ <van-tab title="{{ item.label }}"></van-tab>
|
|
|
+ </block>
|
|
|
+ </van-tabs> -->
|
|
|
+ <!-- <view class="filterStatus">
|
|
|
+ <view class="first {{registStatus==''?'active':''}}" data-status="" bindtap="statusFun">全部</view>
|
|
|
+ <view class="{{registStatus=='1'?'active':''}}" data-status="1" bindtap="statusFun">待入场 <van-tag round wx:if="{{registStatusdrc>0}}" type="danger">{{registStatusdrc}}</van-tag></view>
|
|
|
+ <view class="{{registStatus=='3'?'active':''}}" data-status="3" bindtap="statusFun">过磅中 <van-tag round wx:if="{{registStatusgbz>0}}" type="danger">{{registStatusgbz}}</van-tag></view>
|
|
|
+ <view class="{{registStatus=='7'?'active':''}}" data-status="7" bindtap="statusFun">已出场 <van-tag round wx:if="{{registStatusycc>0}}" type="danger">{{registStatusycc}}</van-tag></view>
|
|
|
+ </view> -->
|
|
|
+ <view class="filterStatus">
|
|
|
+ <view class="first {{appointmentType==''?'active':''}}" data-type="" bindtap="typeFun">全部预约</view>
|
|
|
+ <view class="{{appointmentType=='1'?'active':''}}" data-type="1" bindtap="typeFun">砂石<van-tag round wx:if="{{appointmentTypeSha>0}}" type="danger">{{appointmentTypeSha}}</van-tag></view>
|
|
|
+ <view class="{{appointmentType=='3'?'active':''}}" data-type="3" bindtap="typeFun">起卸<van-tag round wx:if="{{appointmentTypeQi>0}}" type="danger">{{appointmentTypeQi}}</van-tag></view>
|
|
|
+ <view class="{{appointmentType=='4'?'active':''}}" data-type="4" bindtap="typeFun">充电桩<van-tag round wx:if="{{appointmentTypeGuan>0}}" type="danger">{{appointmentTypeGuan}}</van-tag></view>
|
|
|
+ <view class="{{appointmentType=='5'?'active':''}}" data-type="5" bindtap="typeFun">管桩<van-tag round wx:if="{{appointmentTypeChong>0}}" type="danger">{{appointmentTypeChong}}</van-tag></view>
|
|
|
+ <view class="{{appointmentType=='6'?'active':''}}" data-type="6" bindtap="typeFun">其他<van-tag round wx:if="{{appointmentTypeOther>0}}" type="danger">{{appointmentTypeOther}}</van-tag></view>
|
|
|
+ </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}}&name={{item.name}}&account={{item.account}}&index={{index}}" class="listItem">
|
|
|
+ <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}}&name={{item.name}}&account={{item.account}}&index={{index}}" class="listItem">
|
|
|
+
|
|
|
+ <view class="title van-ellipsis">
|
|
|
+ <van-icon class='iconfont' name='/images/licensePlate.png' size="36rpx"></van-icon><text>{{item.licenseNumber}}</text><!--<text class="queueNumber">排队号:{{item.queueNumber}}</text>-->
|
|
|
+ <text wx:if="{{item.status}}" class="status status{{item.status}}">{{item.statusName}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info" wx:if="{{ item.appointmentType =='1' }}">
|
|
|
+ <text>订单编号:{{item.orderNumber?item.orderNumber:'未填写'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info" wx:if="{{ item.appointmentType =='3' }}">
|
|
|
+ <text>起卸预约单号:{{item.loadNumber?item.loadNumber:'未填写'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info" wx:if="{{ item.appointmentType =='5' }}">
|
|
|
+ <text>计划单号:{{item.planNumber?item.planNumber:'未填写'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info" wx:if="{{ item.appointmentType =='5' }}">
|
|
|
+ <text>开始时间:{{item.beginTime?item.beginTime:'未填写'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info" wx:if="{{ item.appointmentType =='5' }}">
|
|
|
+ <text>结束时间:{{item.endTime?item.endTime:'未填写'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info">
|
|
|
+ <text decode="{{true}}">司{{str+str}}机:{{item.driverName?item.driverName:'未填写'}} {{item.driverMobile?item.driverMobile:'司机电话'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="time" wx:if="{{ item.appointmentType =='1' }}">
|
|
|
+ <text>提货时间:{{item.beginTime?filters.tosubStr(item.beginTime,0,16):'提货开始时间'}} 至 {{item.endTime?filters.tosubStr(item.endTime,0,16):'提货结束时间'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="time">
|
|
|
+ <text>预约类型:{{ filters.codeAnalysis(appointmentTypeArray, item.appointmentType, 'dictValue', 'dictLabel') }}</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="bottomBtn" wx:if="{{ item.status == '1' || item.status == '4'|| item.status == '5' || item.status == '6' || item.status == '7' || item.status == '8' || (item.appointmentType == '6' && (item.status == '2' || item.status == '4')) }} ">
|
|
|
+ <van-button type="info" size="small" data-id="{{item.id}}" data-index="{{ index }}" catchtap="toUpdate" wx:if="{{ item.appointmentType == '6' && (item.status == '2' || item.status == '4') }}" style="margin-right: 20rpx;">修改</van-button>
|
|
|
+ <van-button type="danger" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="delFun" wx:if="{{ item.appointmentType == '6' && item.status == '2' }}">删除</van-button>
|
|
|
|
|
|
- <view class="title van-ellipsis">
|
|
|
- <van-icon class='iconfont' name='/images/licensePlate.png' size="36rpx"></van-icon><text>{{item.licenseNumber}}</text><!--<text class="queueNumber">排队号:{{item.queueNumber}}</text>-->
|
|
|
- <text wx:if="{{item.status}}" class="status status{{item.status}}">{{item.statusName}}</text>
|
|
|
- </view>
|
|
|
- <view class="info" wx:if="{{ item.appointmentType =='1' }}">
|
|
|
- <text>订单编号:{{item.orderNumber?item.orderNumber:'未填写'}}</text>
|
|
|
- </view>
|
|
|
- <view class="info" wx:if="{{ item.appointmentType =='3' }}">
|
|
|
- <text>起卸预约单号:{{item.loadNumber?item.loadNumber:'未填写'}}</text>
|
|
|
- </view>
|
|
|
- <view class="info" wx:if="{{ item.appointmentType =='5' }}">
|
|
|
- <text>计划单号:{{item.planNumber?item.planNumber:'未填写'}}</text>
|
|
|
- </view>
|
|
|
- <view class="info" wx:if="{{ item.appointmentType =='5' }}">
|
|
|
- <text>开始时间:{{item.beginTime?item.beginTime:'未填写'}}</text>
|
|
|
- </view>
|
|
|
- <view class="info" wx:if="{{ item.appointmentType =='5' }}">
|
|
|
- <text>结束时间:{{item.endTime?item.endTime:'未填写'}}</text>
|
|
|
- </view>
|
|
|
- <view class="info">
|
|
|
- <text decode="{{true}}">司{{str+str}}机:{{item.driverName?item.driverName:'未填写'}} {{item.driverMobile?item.driverMobile:'司机电话'}}</text>
|
|
|
- </view>
|
|
|
- <view class="time" wx:if="{{ item.appointmentType =='1' }}">
|
|
|
- <text>提货时间:{{item.beginTime?filters.tosubStr(item.beginTime,0,16):'提货开始时间'}} 至 {{item.endTime?filters.tosubStr(item.endTime,0,16):'提货结束时间'}}</text>
|
|
|
- </view>
|
|
|
- <view class="time">
|
|
|
- <text>预约类型:{{ filters.codeAnalysis(appointmentTypeArray,item.appointmentType, 'dictValue', 'dictLabel') }}</text>
|
|
|
- </view>
|
|
|
+ <van-button type="info" size="small" data-id="{{item.id}}" data-type="{{item.appointmentType}}" data-approve-type="one" catchtap="showPopup" style="margin-right: 20rpx;" wx:if="{{ item.status == '1' }}">审核</van-button>
|
|
|
+ <van-button type="warning" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="cancelFun" wx:if="{{ item.status == '4' }}" style="margin-right: 20rpx;">取消预约</van-button>
|
|
|
|
|
|
- <view class="bottomBtn" wx:if="{{ item.status == '1' || item.status == '4'|| item.status == '5' || item.status == '6' || item.status == '7' || item.status == '8' }}">
|
|
|
- <van-button type="info" size="small" data-id="{{item.id}}" data-type="{{item.appointmentType}}" data-approve-type="one" catchtap="showPopup" style="margin-right: 20rpx;" wx:if="{{ item.status == '1' }}">审核</van-button>
|
|
|
- <van-button type="warning" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="cancelFun" wx:if="{{ item.status == '4' }}" style="margin-right: 20rpx;">取消预约</van-button>
|
|
|
-
|
|
|
- <van-button type="primary" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="exitFun" wx:if="{{ item.appointmentType == '6' && (item.status=='5' || item.status=='6' || item.status=='7' || item.status=='8' || item.status=='9' || item.status=='16' || item.status=='17') }}" style="margin-right: 20rpx;">授权离场</van-button>
|
|
|
+ <van-button type="primary" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="exitFun" wx:if="{{ item.appointmentType == '6' && (item.status=='5' || item.status=='6' || item.status=='7' || item.status=='8' || item.status=='9' || item.status=='16' || item.status=='17') }}" style="margin-right: 20rpx;">授权离场</van-button>
|
|
|
|
|
|
- <van-button type="danger" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="overFun" wx:if="{{ item.appointmentType != '6' && (item.status == '5' || item.status == '6' || item.status == '7' || item.status == '8') }}" style="margin-right: 20rpx;">强制结束</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: 180rpx;"> </view>
|
|
|
- </block>
|
|
|
- <block wx:else>
|
|
|
- <van-empty description="未搜索到预约记录" image="/images/null1.png" />
|
|
|
+ <van-button type="danger" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="overFun" wx:if="{{ item.appointmentType != '6' && (item.status == '5' || item.status == '6' || item.status == '7' || item.status == '8') }}" style="margin-right: 20rpx;">强制结束</van-button>
|
|
|
+ </view>
|
|
|
+ </navigator>
|
|
|
</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 class='more'>
|
|
|
+ <block wx:if="{{more}}">
|
|
|
+ <van-loading size="24px" color="#1989fa">加载中...</van-loading>
|
|
|
+ </block>
|
|
|
+ <block wx:else>{{nomore}}</block>
|
|
|
</view>
|
|
|
- </van-empty>
|
|
|
- </view>
|
|
|
- </block>
|
|
|
+ <view style="height: 180rpx;"> </view>
|
|
|
+ </block>
|
|
|
+ <block wx:else>
|
|
|
+ <van-empty description="未搜索到预约记录" image="/images/null1.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>
|
|
|
|
|
|
<!-- 弹窗 -->
|