index.wxml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!--pages/logisticsOrderMan/index.wxml-->
  2. <view class="container paddingBottom120">
  3. <block wx:if="{{!requestStatu}}">
  4. <van-sticky>
  5. <view class="topSeach">
  6. <view class="rightBox" style="position: relative;">
  7. <van-search value="{{ searchVal }}" shape="round" placeholder="请输入" bind:change="onChange" bind:search="onSearch" bind:cancel="onCancel" use-action-slot>
  8. <van-icon slot="action" class-prefix="iconfont" name="arrow3-right_fill" size="28px" color="#4B70EA" bind:tap="toSearch" />
  9. </van-search>
  10. </view>
  11. </view>
  12. </van-sticky>
  13. <block wx:if="{{resData.length>0}}">
  14. <!-- 列表 -->
  15. <block wx:for="{{resData}}" wx:key="index">
  16. <!-- 列表样式 -->
  17. <navigator url="info?id={{item.id}}&name={{item.name}}&account={{item.account}}&index={{index}}" class="listItem">
  18. <view class="title van-ellipsis">
  19. <van-icon class='iconfont' name='/images/licensePlate.png' size="36rpx"></van-icon><text>{{item.vehicleNo}}</text>
  20. <text wx:if="{{item.registStatus}}" class="status status{{item.registStatus}}">{{item.registStatusName}}</text>
  21. </view>
  22. <view class="info">
  23. <text>项目名称:{{item.projectName?item.projectName:'未填写'}}</text>
  24. </view>
  25. <view class="info">
  26. <text>司机:{{item.driverName?item.driverName:'未填写'}}</text>
  27. </view>
  28. <view class="time"><text>预约时间:{{item.appointmentTime?item.appointmentTime:''}}</text></view>
  29. <view class="bottomBtn">
  30. <van-button type="info" size="small" data-id="{{item.id}}" catchtap="toUpdate" wx:if="{{(roleCodeList!='6d76cxil3s'&&(item.appointmentStatus=='2'||item.appointmentStatus=='3'))||(roleCodeList=='6d76cxil3s'&&(item.appointmentStatus=='2'||item.appointmentStatus=='3'))}}" style="margin-right: 20rpx;">修改</van-button>
  31. <van-button type="danger" size="small" data-id="{{item.id}}" data-vehicle-no="{{item.vehicleNo}}" catchtap="delFun" wx:if="{{(roleCodeList!='6d76cxil3s'&&item.appointmentStatusName!='已完成'&&item.registStatusName!='已结束')||(roleCodeList=='6d76cxil3s'&&item.appointmentStatusName=='待提交'&&item.registStatusName!='已结束')}}" style="margin-right: 20rpx;">删除</van-button>
  32. <van-button type="warning" size="small" data-id="{{item.id}}" catchtap="sendFun" wx:if="{{item.appointmentStatus=='3'}}" style="margin-right: 20rpx;">提交</van-button>
  33. <van-button type="primary" size="small" data-id="{{item.id}}" data-approve-type="one" wx:if="{{(roleCodeList=='levelOneAudit'&&item.appointmentStatus=='4')||roleCodeList=='bizAdmin'&&item.appointmentStatus=='0'}}" catchtap="showPopup">审核</van-button>
  34. </view>
  35. </navigator>
  36. </block>
  37. <!-- 底部加载动画 -->
  38. <view class='more'>
  39. <van-loading size="24px" color="#3764FF" wx:if="{{more}}">加载中...</van-loading>
  40. <block wx:else>{{nomore}}</block>
  41. </view>
  42. </block>
  43. <block wx:else>
  44. <van-empty description="暂无相关数据" image="/images/null4.png" />
  45. </block>
  46. </block>
  47. <block wx:else>
  48. <view>
  49. <van-empty image="/images/loginNull.png">
  50. <view slot="description" style="text-align: center;">
  51. <text style="display:block;margin-bottom: 20rpx;">您还未登录,登录后查看更多~</text>
  52. <van-button type="info" bindtap="toLogin">立即登录</van-button>
  53. </view>
  54. </van-empty>
  55. </view>
  56. </block>
  57. </view>