index.wxml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!--pages/index/index.wxml-->
  2. <view class="container listMain">
  3. <block wx:if="{{loginStatus}}">
  4. <!-- <view url="" class="addBtn" catch:tap="changeAdd" hover-class="none" catchtouchmove="buttonMove" bindtouchstart="buttonStart" bindtouchend="buttonEnd" style="top:{{buttonTop}}px;left:{{buttonLeft}}px;">
  5. <van-icon name="scan" size="30px" />
  6. </view> -->
  7. <van-sticky>
  8. <view class="topFilter">
  9. <view class="topSeach">
  10. <view class="rightBox" style="position: relative;">
  11. <van-search value="{{ searchVal }}" shape="round" placeholder="请输入车牌号码" bind:change="onChange" bind:search="onSearch" bind:cancel="onCancel" use-action-slot>
  12. <!-- <view slot="label" style="width:160rpx;margin-right: 20rpx;">
  13. <van-field label="" input-align="center" style="width: 100%;">
  14. <view slot="input" style="width: 100%;">
  15. <input name="transactionType" value='{{typeArray[typeIndex].value}}' hidden='true' />
  16. <picker bindchange="bindPickerChange" value="{{typeIndex}}" range="{{typeArray}}" range-key="name" data-pickername='type'>
  17. <view wx:if="{{typeArray[typeIndex].name}}" style="font-size: 12px;white-space: nowrap;"> {{typeArray[typeIndex].name}}</view>
  18. <view wx:else class="selectPlaceholder" style="font-size: 12px;white-space: nowrap;">{{defaultText}}</view>
  19. </picker>
  20. </view>
  21. <view slot="right-icon">
  22. <van-icon name="arrow-down" />
  23. </view>
  24. </van-field>
  25. </view>
  26. <van-icon slot="action" class-prefix="iconfont" name="arrow3-right_fill" size="28px" color="#4B70EA" bind:tap="toSearch" /> -->
  27. </van-search>
  28. </view>
  29. </view>
  30. <!-- 导航 -->
  31. <!-- <van-tabs active="{{ setIndex }}" ellipsis="{{ false }}" color="#4B70EA" border="{{ fasle }}" bind:click='clickScroll'>
  32. <block wx:for="{{ applyData }}" wx:key="index">
  33. <van-tab title="{{ item.label }}"></van-tab>
  34. </block>
  35. </van-tabs> -->
  36. <!-- <view class="filterStatus">
  37. <view class="first {{registStatus==''?'active':''}}" data-status="" bindtap="statusFun">全部</view>
  38. <view class="{{registStatus=='1'?'active':''}}" data-status="1" bindtap="statusFun">待入场 <van-tag round wx:if="{{registStatusdrc>0}}" type="danger">{{registStatusdrc}}</van-tag></view>
  39. <view class="{{registStatus=='3'?'active':''}}" data-status="3" bindtap="statusFun">过磅中 <van-tag round wx:if="{{registStatusgbz>0}}" type="danger">{{registStatusgbz}}</van-tag></view>
  40. <view class="{{registStatus=='7'?'active':''}}" data-status="7" bindtap="statusFun">已出场 <van-tag round wx:if="{{registStatusycc>0}}" type="danger">{{registStatusycc}}</van-tag></view>
  41. </view> -->
  42. </view>
  43. </van-sticky>
  44. <view class="width710">
  45. <block wx:if="{{!requestStatu}}">
  46. <block wx:if="{{resData.length>0}}">
  47. <block wx:for="{{resData}}" wx:key="index">
  48. <navigator url="info?id={{item.id}}&name={{item.name}}&account={{item.account}}&index={{index}}" class="listItem">
  49. <view class="title van-ellipsis">
  50. <van-icon class='iconfont' name='/images/licensePlate.png' size="36rpx"></van-icon><text>{{item.licenseNumber}}</text>
  51. <text wx:if="{{item.status}}" class="status status{{item.status}}">{{item.statusName}}</text>
  52. </view>
  53. <view class="info" wx:if="{{ item.appointmentType =='1' }}">
  54. <text>订单编号:{{item.orderNumber?item.orderNumber:'未填写'}}</text>
  55. </view>
  56. <view class="info">
  57. <text decode="{{true}}">司{{str+str}}机:{{item.driverName?item.driverName:'未填写'}} {{item.driverMobile?item.driverMobile:'司机电话'}}</text>
  58. </view>
  59. <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>
  60. <view class="time" wx:if="{{ item.appointmentType =='2' }}"><text>预约分类:{{ filters.codeAnalysis(appointmentClassifyArray,item.appointmentClassify, 'value', 'label') }}</text></view>
  61. <view class="bottomBtn" wx:if="{{ item.status == '1' || item.status == '4'|| item.status == '5' || item.status == '6' || item.status == '7' || item.status == '8' }}">
  62. <van-button type="primary" 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>
  63. <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>
  64. <van-button type="primary" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="exitFun" wx:if="{{ item.status == '5' || item.status == '6' || item.status == '7' || item.status == '8' }}" style="margin-right: 20rpx;">授权出场</van-button>
  65. </view>
  66. </navigator>
  67. </block>
  68. <!-- 底部加载动画 -->
  69. <view class='more'>
  70. <block wx:if="{{more}}">
  71. <van-loading size="24px" color="#1989fa">加载中...</van-loading>
  72. </block>
  73. <block wx:else>{{nomore}}</block>
  74. </view>
  75. <view style="height: 180rpx;"> </view>
  76. </block>
  77. <block wx:else>
  78. <van-empty description="未搜索到预约记录" image="/images/null1.png" />
  79. </block>
  80. </block>
  81. </view>
  82. </block>
  83. <block wx:else>
  84. <view>
  85. <van-empty image="/images/loginNull.png">
  86. <view slot="description" style="text-align: center;">
  87. <text style="display:block;margin-bottom: 20rpx;">您还未登录,登录后查看更多~</text>
  88. <van-button type="info" bindtap="toLogin">立即登录</van-button>
  89. </view>
  90. </van-empty>
  91. </view>
  92. </block>
  93. </view>
  94. <!-- 弹窗 -->
  95. <van-popup show="{{ show }}" position="bottom" round closeable custom-style="width:100%;padding:0rpx 30rpx 160rpx;" bind:close="onClose">
  96. <view style="height: 90rpx;line-height: 90rpx;text-align: center;">审核</view>
  97. <form bindsubmit="formSubmit">
  98. <view class="part">
  99. <view class="height20"> </view>
  100. <view class="height20"> </view>
  101. <input name="id" value='{{id}}' hidden='true' />
  102. <van-field label="审核结果" name="auditFlag" value="{{ auditFlag }}" required input-align="right" class="radioHeight fieldAutoHeight">
  103. <view slot="input" class="radioHeightBx">
  104. <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="auditFlag">
  105. <label class="radio">
  106. <radio value="false" checked="{{auditFlag=='false'}}" color="#4B70EA" />通过
  107. </label>
  108. <label class="radio">
  109. <radio value="true" checked="{{auditFlag=='true'}}" color="#4B70EA" />不通过
  110. </label>
  111. </radio-group>
  112. </view>
  113. </van-field>
  114. <van-field label="审核备注" required="{{auditFlag=='true'}}" name="appointmentReason" value="{{ appointmentReason }}" type="textarea" input-align="right" placeholder="请输入审核备注" autosize></van-field>
  115. </view>
  116. <view class="submitBtn">
  117. <view style="padding-top: 60rpx;">
  118. <van-button block round type="info" form-type="submit" color="#0396FF">确认</van-button>
  119. </view>
  120. </view>
  121. </form>
  122. </van-popup>
  123. <wxs module="filters" src="../../utils/filter.wxs"></wxs>