index.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <!--pages/index/index.wxml-->
  2. <view class="container listMain">
  3. <block wx:if="{{roleCodeList.length==0||roleCodeList == 'driver'||roleCodeList == 'customer'}}">
  4. <block wx:if="{{loginStatus}}">
  5. <view url="" class="addBtn" catch:tap="changeAdd" hover-class="none" catchtouchmove="buttonMove" bindtouchstart="buttonStart" bindtouchend="buttonEnd" style="top:{{buttonTop}}px;left:{{buttonLeft}}px;">
  6. <van-icon name="scan" size="30px" />
  7. </view>
  8. <van-sticky>
  9. <view class="topFilter">
  10. <view class="topSeach">
  11. <view class="rightBox" style="position: relative;">
  12. <van-search value="{{ searchVal }}" shape="round" placeholder="请输入车牌号码" bind:change="onChange" bind:search="onSearch" bind:cancel="onCancel" use-action-slot>
  13. <view slot="label" style="width:160rpx;margin-right: 20rpx;">
  14. <van-field label="" input-align="center" style="width: 100%;">
  15. <view slot="input" style="width: 100%;">
  16. <picker bindchange="bindPickerChange" value="{{appointmentStatusIndex}}" range="{{appointmentStatusArray}}" range-key="dictLabel" data-pickername='appointmentStatus'>
  17. <view wx:if="{{appointmentStatusArray[appointmentStatusIndex].dictLabel}}" style="font-size: 12px;white-space: nowrap;"> {{appointmentStatusArray[appointmentStatusIndex].dictLabel}}</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 class="filterStatus">
  43. <view class="first {{appointmentType==''?'active':''}}" data-type="" bindtap="typeFun">全部预约</view>
  44. <view class="{{appointmentType=='1'?'active':''}}" data-type="1" bindtap="typeFun">砂石<van-tag round wx:if="{{appointmentTypeSha>0}}" type="danger">{{appointmentTypeSha}}</van-tag></view>
  45. <view class="{{appointmentType=='3'?'active':''}}" data-type="3" bindtap="typeFun">起卸<van-tag round wx:if="{{appointmentTypeQi>0}}" type="danger">{{appointmentTypeQi}}</van-tag></view>
  46. <view class="{{appointmentType=='4'?'active':''}}" data-type="4" bindtap="typeFun">充电桩<van-tag round wx:if="{{appointmentTypeGuan>0}}" type="danger">{{appointmentTypeGuan}}</van-tag></view>
  47. <view class="{{appointmentType=='5'?'active':''}}" data-type="5" bindtap="typeFun">管桩<van-tag round wx:if="{{appointmentTypeChong>0}}" type="danger">{{appointmentTypeChong}}</van-tag></view>
  48. <view class="{{appointmentType=='6'?'active':''}}" data-type="6" bindtap="typeFun">其他<van-tag round wx:if="{{appointmentTypeOther>0}}" type="danger">{{appointmentTypeOther}}</van-tag></view>
  49. </view>
  50. </view>
  51. </van-sticky>
  52. <view class="width710">
  53. <block wx:if="{{!requestStatu}}">
  54. <block wx:if="{{resData.length>0}}">
  55. <block wx:for="{{resData}}" wx:key="index">
  56. <navigator url="info?id={{item.id}}&name={{item.name}}&account={{item.account}}&index={{index}}" class="listItem">
  57. <view class="title van-ellipsis">
  58. <van-icon class='iconfont' name='/images/licensePlate.png' size="36rpx"></van-icon><text>{{item.licenseNumber}}</text><!--<text class="queueNumber">排队号:{{item.queueNumber}}</text>-->
  59. <text wx:if="{{item.status}}" class="status status{{item.status}}">{{item.statusName}}</text>
  60. </view>
  61. <view class="info" wx:if="{{ item.appointmentType =='1' }}">
  62. <text>订单编号:{{item.orderNumber?item.orderNumber:'未填写'}}</text>
  63. </view>
  64. <view class="info" wx:if="{{ item.appointmentType =='3' }}">
  65. <text>起卸预约单号:{{item.loadNumber?item.loadNumber:'未填写'}}</text>
  66. </view>
  67. <view class="info" wx:if="{{ item.appointmentType =='5' }}">
  68. <text>计划单号:{{item.planNumber?item.planNumber:'未填写'}}</text>
  69. </view>
  70. <view class="info" wx:if="{{ item.appointmentType =='5' }}">
  71. <text>开始时间:{{item.beginTime?item.beginTime:'未填写'}}</text>
  72. </view>
  73. <view class="info" wx:if="{{ item.appointmentType =='5' }}">
  74. <text>结束时间:{{item.endTime?item.endTime:'未填写'}}</text>
  75. </view>
  76. <view class="info">
  77. <text decode="{{true}}">司{{str+str}}机:{{item.driverName?item.driverName:'未填写'}} {{item.driverMobile?item.driverMobile:'司机电话'}}</text>
  78. </view>
  79. <view class="time" wx:if="{{ item.appointmentType =='1' }}">
  80. <text>提货时间:{{item.beginTime?filters.tosubStr(item.beginTime,0,16):'提货开始时间'}} 至 {{item.endTime?filters.tosubStr(item.endTime,0,16):'提货结束时间'}}</text>
  81. </view>
  82. <view class="time">
  83. <text>预约类型:{{ filters.codeAnalysis(appointmentTypeArray,item.appointmentType, 'dictValue', 'dictLabel') }}</text>
  84. </view>
  85. <view class="bottomBtn" wx:if="{{ item.status == '2' || item.status == '4' || item.status == '8' || (item.status == '10' && item.orderType == '1') || (roleCodeList=='driver' && item.appointmentType == '4' && item.status == '5') }}">
  86. <van-button type="primary" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="showQrcodePopup" wx:if="{{ item.appointmentType == '1' || item.appointmentType == '3' || (item.appointmentType == '6' && item.isWeigh == '1') }}" style="margin-right: 20rpx;">二维码</van-button>
  87. <van-button type="info" size="small" data-index="{{ index }}" data-type="{{item.appointmentType}}" catchtap="toUpdate" wx:if="{{ item.status == '2' || item.status == '4' }}" style="margin-right: 20rpx;">修改</van-button>
  88. <van-button type="danger" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="delFun" wx:if="{{ item.status == '2' }}">删除</van-button>
  89. <van-button type="warning" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="cancelFun" wx:if="{{ item.status == '4' }}">取消预约</van-button>
  90. <van-button type="danger" size="small" data-id="{{item.id}}" data-license-number="{{item.licenseNumber}}" catchtap="overFun" wx:if="{{ roleCodeList=='driver' && item.appointmentType == '4' && item.status == '5' }}">充电结束</van-button>
  91. <van-button data-index="{{index}}" type="info" data-url="sign?id={{item.recordId}}" catchtap="toLink" size="small" wx:if="{{ item.status == '8' }}">司机确认</van-button>
  92. <van-button type="info" size="small" data-url="signFor?id={{item.recordId}}&index={{index}}" catchtap="toLink" wx:if="{{ item.status == '10' && item.orderType == '1' }}">司机回签</van-button>
  93. </view>
  94. </navigator>
  95. </block>
  96. <!-- 底部加载动画 -->
  97. <view class='more'>
  98. <block wx:if="{{more}}">
  99. <van-loading size="24px" color="#1989fa">加载中...</van-loading>
  100. </block>
  101. <block wx:else>{{nomore}}</block>
  102. </view>
  103. <view style="height: 200rpx;"> </view>
  104. </block>
  105. <block wx:else>
  106. <van-empty description="未搜索到预约记录" image="/images/null1.png" />
  107. </block>
  108. </block>
  109. </view>
  110. </block>
  111. <block wx:else>
  112. <view>
  113. <van-empty image="/images/loginNull.png">
  114. <view slot="description" style="text-align: center;">
  115. <text style="display:block;margin-bottom: 20rpx;">您还未登录,登录后查看更多~</text>
  116. <van-button type="info" bindtap="toLogin">立即登录</van-button>
  117. </view>
  118. </van-empty>
  119. </view>
  120. </block>
  121. </block>
  122. <block wx:else>
  123. <view class="loadingMain">
  124. <view class="loading">
  125. <image class="logo" src="/images/logo.png" mode="widthFix" />
  126. <view class="titleBox">
  127. <view class="title">湖南泽禹</view>
  128. <view class="smallTit">智能物料系统</view>
  129. </view>
  130. </view>
  131. </view>
  132. </block>
  133. </view>
  134. <!-- 二维码 弹窗 -->
  135. <van-popup show="{{ showQrcode }}" position="bottom" round closeable custom-style="width:100%;padding:0rpx 30rpx 250rpx;" bind:close="onCloseQrcode">
  136. <view style="height: 90rpx;line-height: 90rpx;text-align: center;">预约二维码</view>
  137. <form bindsubmit="onCloseQrcode">
  138. <input name="id" value='{{ id }}' hidden='true' />
  139. <view class="part">
  140. <canvas class='canvas' canvas-id='canvas' style='width:220px;height:220px;margin: 0 auto;'></canvas>
  141. </view>
  142. <view class="fixedBtn submitBtn">
  143. <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">关闭</van-button>
  144. </view>
  145. </form>
  146. </van-popup>
  147. <!-- 弹窗
  148. <van-popup show="{{ show }}" position="bottom" round closeable custom-style="width:100%;padding:0rpx 30rpx 160rpx;" bind:close="onClose">
  149. <view style="height: 90rpx;line-height: 90rpx;text-align: center;">审核</view>
  150. <form bindsubmit="formSubmit">
  151. <view class="part">
  152. <view class="height20"> </view>
  153. <input name="id" value='{{id}}' hidden='true' />
  154. <van-field label="审核结果" name="auditFlag" value="{{ auditFlag }}" required input-align="right" class="radioHeight fieldAutoHeight">
  155. <view slot="input" class="radioHeightBx">
  156. <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="auditFlag">
  157. <label class="radio">
  158. <radio value="false" checked="{{auditFlag=='false'}}" color="#4B70EA" />通过
  159. </label>
  160. <label class="radio">
  161. <radio value="true" checked="{{auditFlag=='true'}}" color="#4B70EA" />不通过
  162. </label>
  163. </radio-group>
  164. </view>
  165. </van-field>
  166. <van-field label="审核备注" required="{{auditFlag=='true'}}" name="auditReason" value="{{ auditReason }}" type="textarea" input-align="right" placeholder="请输入审核备注" autosize></van-field>
  167. </view>
  168. <view class="submitBtn">
  169. <view style="padding-top: 60rpx;">
  170. <van-button block round type="info" form-type="submit" color="#0396FF">确认</van-button>
  171. </view>
  172. </view>
  173. </form>
  174. </van-popup>
  175. -->
  176. <wxs module="filters" src="../../utils/filter.wxs"></wxs>