index.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!--pages/loadAppoint/index.wxml-->
  2. <view class="container listMain">
  3. <block wx:if="{{loginStatus}}">
  4. <van-sticky>
  5. <view class="topFilter">
  6. <view class="topSeach">
  7. <view class="rightBox" style="position: relative;">
  8. <van-search value="{{ searchVal }}" shape="round" placeholder="查询预约单号" bind:change="onChange" bind:search="onSearch" bind:cancel="onCancel" use-action-slot>
  9. </van-search>
  10. </view>
  11. </view>
  12. </view>
  13. </van-sticky>
  14. <view class="width710">
  15. <block wx:if="{{!requestStatu}}">
  16. <block wx:if="{{resData.length>0}}">
  17. <block wx:for="{{resData}}" wx:key="index">
  18. <navigator url="info?id={{item.id}}&loadNumber={{item.loadNumber}}&index={{index}}" class="listItem">
  19. <view class="title van-ellipsis">
  20. <van-icon class='iconfont' name='/images/codeNumber.png' size="36rpx"></van-icon>
  21. <text>{{item.loadNumber}}</text>
  22. <text wx:if="{{item.status}}" class="status orderStatus{{item.status}}">{{item.statusName}}</text>
  23. </view>
  24. <view class="info">
  25. <text>客户名称:{{item.customerName?item.customerName:'未填写'}}</text>
  26. </view>
  27. <view class="info">
  28. <text decode="{{true}}">货品信息:{{item.goodsName?item.goodsName:'未填写'}}/{{item.goodsModel?item.goodsModel:'未填写'}}</text>
  29. </view>
  30. <view class="info"><text>订单重量:{{item.orderWeight + '吨'}}</text></view>
  31. <view class="info"><text>单价:{{item.orderPrice + ' 元/吨'}}</text> / <text>总价:{{item.orderAmount + ' 元'}}</text></view>
  32. <view class="bottomBtn" wx:if="{{ (roleCodeList == 'dispatcher' && (item.status == '4' || item.status == '5' || item.status == '6') && item.arriveStatus == '2') || (roleCodeList == 'bizAdmin' && (item.status == '5' || item.status == '6')) || ( roleCodeList == 'load' && item.status == '7') }}">
  33. <van-button type="primary" size="small" data-url="allocation?appointId={{item.id}}" wx:if="{{ roleCodeList == 'dispatcher' && (item.status == '4' || item.status == '5' || item.status == '6') && item.arriveStatus == '2' }}" catchtap="toLink" style="margin-right: 20rpx;">起卸调度</van-button>
  34. <van-button type="info" size="small" data-url="dispatch?appointId={{item.id}}" wx:if="{{ roleCodeList == 'dispatcher' && (item.status == '4' || item.status == '5' || item.status == '6') && item.arriveStatus == '2' }}" catchtap="toLink" style="margin-right: 20rpx;">装货调度</van-button>
  35. <van-button type="danger" size="small" data-id="{{ item.id }}" data-load-number="{{ item.loadNumber }}" wx:if="{{ roleCodeList == 'bizAdmin' && (item.status == '5' || item.status == '6')}}" catchtap="showPopupOver" style="margin-right: 20rpx;">结束</van-button>
  36. <van-button type="info" size="small" data-id="{{item.id}}" wx:if="{{ roleCodeList == 'load' && item.status == '7' }}" catchtap="showPopupFill">填报</van-button>
  37. </view>
  38. </navigator>
  39. </block>
  40. <!-- 底部加载动画 -->
  41. <view class='more'>
  42. <block wx:if="{{more}}">
  43. <van-loading size="24px" color="#1989fa">加载中...</van-loading>
  44. </block>
  45. <block wx:else>{{nomore}}</block>
  46. </view>
  47. <view style="height: 180rpx;"> </view>
  48. </block>
  49. <block wx:else>
  50. <van-empty description="未搜索到起卸订单记录" image="/images/null1.png" />
  51. </block>
  52. </block>
  53. </view>
  54. </block>
  55. <block wx:else>
  56. <view>
  57. <van-empty image="/images/loginNull.png">
  58. <view slot="description" style="text-align: center;">
  59. <text style="display:block;margin-bottom: 20rpx;">您还未登录,登录后查看更多~</text>
  60. <van-button type="info" bindtap="toLogin">立即登录</van-button>
  61. </view>
  62. </van-empty>
  63. </view>
  64. </block>
  65. </view>
  66. <!-- 结束 -->
  67. <van-popup show="{{ showOver }}" position="bottom" round closeable custom-style="width:100%;padding:0rpx 30rpx 160rpx;" bind:close="onClose">
  68. <view style="height: 90rpx;line-height: 90rpx;text-align: center;">结束</view>
  69. <form bindsubmit="formSubmitOver">
  70. <view class="part">
  71. <view class="height20"> </view>
  72. <input name="id" value='{{id}}' hidden='true' />
  73. <van-field label="结束说明" required name="endReason" value="{{ endReason }}" type="textarea" input-align="right" placeholder="请输入结束说明" autosize></van-field>
  74. </view>
  75. <view class="submitBtn">
  76. <view style="padding-top: 60rpx;">
  77. <van-button block round type="info" form-type="submit" color="#0396FF">提交</van-button>
  78. </view>
  79. </view>
  80. </form>
  81. </van-popup>
  82. <!-- 填报 -->
  83. <van-popup show="{{ showFill }}" position="bottom" round closeable custom-style="width:100%;padding:0rpx 30rpx 160rpx;" bind:close="onClose">
  84. <view style="height: 90rpx;line-height: 90rpx;text-align: center;">填报</view>
  85. <form bindsubmit="formSubmitFill">
  86. <view class="part">
  87. <view class="height20"> </view>
  88. <input name="id" value='{{id}}' hidden='true' />
  89. <van-field label="起卸重量" required type="digit" required name="fillWeight" value="{{ fillWeight }}" placeholder="请输入起卸重量" input-align="right" border="{{ false }}">
  90. <view slot="right-icon">
  91. <text>吨</text>
  92. </view>
  93. </van-field>
  94. </view>
  95. <view class="submitBtn">
  96. <view style="padding-top: 60rpx;">
  97. <van-button block round type="info" form-type="submit" color="#0396FF">提交</van-button>
  98. </view>
  99. </view>
  100. </form>
  101. </van-popup>
  102. <wxs module="filters" src="../../utils/filter.wxs"></wxs>