index.wxml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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') || (roleCodeList == 'serviceCustomer' && item.status == '8') || (roleCodeList == 'bizAdmin' && item.status == '12') }}">
  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. <van-button type="warning" size="small" data-url="endSign?id={{item.id}}" catchtap="toLink" style="margin-right: 20rpx;" wx:if="{{roleCodeList == 'serviceCustomer' && item.status == '8'}}">手签</van-button>
  38. <van-button type="danger" size="small" data-id="{{item.id}}" data-load-number="{{item.loadNumber}}" wx:if="{{ roleCodeList == 'serviceCustomer' && item.status == '8' }}" catchtap="rejectFun">驳回</van-button>
  39. <van-button type="primary" size="small" data-id="{{item.id}}" data-load-number="{{item.loadNumber}}" wx:if="{{ roleCodeList == 'bizAdmin' && item.status == '12' }}" catchtap="sendConfirmFun">发货确认</van-button>
  40. </view>
  41. </navigator>
  42. </block>
  43. <!-- 底部加载动画 -->
  44. <view class='more'>
  45. <block wx:if="{{more}}">
  46. <van-loading size="24px" color="#1989fa">加载中...</van-loading>
  47. </block>
  48. <block wx:else>{{nomore}}</block>
  49. </view>
  50. <view style="height: 180rpx;"> </view>
  51. </block>
  52. <block wx:else>
  53. <van-empty description="未搜索到起卸订单记录" image="/images/null1.png" />
  54. </block>
  55. </block>
  56. </view>
  57. </block>
  58. <block wx:else>
  59. <view>
  60. <van-empty image="/images/loginNull.png">
  61. <view slot="description" style="text-align: center;">
  62. <text style="display:block;margin-bottom: 20rpx;">您还未登录,登录后查看更多~</text>
  63. <van-button type="info" bindtap="toLogin">立即登录</van-button>
  64. </view>
  65. </van-empty>
  66. </view>
  67. </block>
  68. </view>
  69. <!-- 结束 -->
  70. <van-popup show="{{ showOver }}" position="bottom" round closeable custom-style="width:100%;padding:0rpx 30rpx 160rpx;" bind:close="onCloseOver">
  71. <view style="height: 90rpx;line-height: 90rpx;text-align: center;">结束</view>
  72. <form bindsubmit="formSubmitOver">
  73. <view class="part">
  74. <view class="height20"> </view>
  75. <input name="id" value='{{id}}' hidden='true' />
  76. <van-field label="结束说明" required name="endReason" value="{{ endReason }}" type="textarea" input-align="right" placeholder="请输入结束说明" autosize></van-field>
  77. </view>
  78. <view class="submitBtn">
  79. <view style="padding-top: 60rpx;">
  80. <van-button block round type="info" form-type="submit" color="#0396FF">提交</van-button>
  81. </view>
  82. </view>
  83. </form>
  84. </van-popup>
  85. <!-- 填报 -->
  86. <van-popup show="{{ showFill }}" position="bottom" round closeable custom-style="width:100%;padding:0rpx 30rpx 160rpx;" bind:close="onCloseFill">
  87. <view style="height: 90rpx;line-height: 90rpx;text-align: center;">填报</view>
  88. <form bindsubmit="formSubmitFill">
  89. <view class="part">
  90. <view class="height20"> </view>
  91. <input name="id" value='{{id}}' hidden='true' />
  92. <van-field label="起卸重量" required type="digit" required name="fillWeight" value="{{ fillWeight }}" placeholder="请输入起卸重量" input-align="right" border="{{ false }}">
  93. <view slot="right-icon">
  94. <text>吨</text>
  95. </view>
  96. </van-field>
  97. </view>
  98. <view class="submitBtn">
  99. <view style="padding-top: 60rpx;">
  100. <van-button block round type="info" form-type="submit" color="#0396FF">提交</van-button>
  101. </view>
  102. </view>
  103. </form>
  104. </van-popup>
  105. <wxs module="filters" src="../../utils/filter.wxs"></wxs>