index.wxml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!--pages/loadArrive/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;" wx:if="{{roleCodeList == 'ship'}}">
  5. <van-icon name="plus" size="30px" />
  6. </view>
  7. <van-sticky>
  8. <view class="topSeach">
  9. <view class="rightBox" style="position: relative;">
  10. <van-search value="{{ searchVal }}" shape="round" placeholder="请输入预约单号/客户名称/货品名称" bind:change="onChange" bind:search="onSearch" bind:cancel="onCancel" use-action-slot>
  11. <view slot="label" style="width:160rpx;margin-right: 20rpx;">
  12. <van-field label="" input-align="center" style="width: 100%;">
  13. <view slot="input" style="width: 100%;">
  14. <input name="status" value='{{arriveStatusArray[arriveStatusIndex].dictValue}}' hidden='true' />
  15. <picker bindchange="bindPickerChange" value="{{arriveStatusIndex}}" range="{{arriveStatusArray}}" range-key="dictLabel" data-pickername='arriveStatus'>
  16. <view wx:if="{{arriveStatusArray[arriveStatusIndex].dictLabel}}" style="font-size: 12px;white-space: nowrap;"> {{arriveStatusArray[arriveStatusIndex].dictLabel}}</view>
  17. <view wx:else class="selectPlaceholder" style="font-size: 12px;white-space: nowrap;">{{defaultText}}</view>
  18. </picker>
  19. </view>
  20. <view slot="right-icon">
  21. <van-icon name="arrow-down" />
  22. </view>
  23. </van-field>
  24. </view>
  25. <van-icon slot="action" class-prefix="iconfont" name="arrow3-right_fill" size="28px" color="#4B70EA" bind:tap="toSearch" />
  26. </van-search>
  27. </view>
  28. </view>
  29. </van-sticky>
  30. <view class="width710">
  31. <block wx:if="{{!requestStatu}}">
  32. <block wx:if="{{resData.length>0}}">
  33. <block wx:for="{{resData}}" wx:key="index">
  34. <navigator url="info?id={{item.id}}&name={{item.name}}&index={{index}}" class="listItem">
  35. <view class="title van-ellipsis">
  36. <van-icon class='iconfont' name='/images/codeNumber.png' size="36rpx"></van-icon>
  37. <text>{{item.loadNumber}}</text>
  38. <text wx:if="{{item.status}}" class="status arriveStatus{{item.status}}">{{item.statusName}}</text>
  39. </view>
  40. <view class="info">
  41. <text>客户名称:{{item.customerName?item.customerName:'未填写'}}</text>
  42. </view>
  43. <view class="info">
  44. <text decode="{{true}}">货品信息:{{item.goodsName?item.goodsName:'未填写'}}/{{item.goodsModel?item.goodsModel:'未填写'}}</text>
  45. </view>
  46. <view class="info"><text>船号:{{item.shipNo?item.shipNo:'未填写'}}</text><text>报港数量:{{item.arriveNumber?item.arriveNumber+' 吨':''}}</text></view>
  47. <view class="info"><text>预约单号:{{ item.arriveNumber }}</text></view>
  48. <view class="time"><text>到港时间:{{item.arriveTime?filters.tosubStr(item.arriveTime,0,16):''}}</text></view>
  49. <view class="bottomBtn" wx:if="{{ (roleCodeList == 'ship' && (item.status == '1' || item.status == '3')) || (roleCodeList == 'bizAdmin' && item.status == '1') || (roleCodeList == 'ship' && item.loadStatus == '8' && item.status == '2')}}">
  50. <van-button type="info" size="small" data-url="edit?index={{index}}" catchtap="toLink" style="margin-right: 20rpx;" wx:if="{{roleCodeList == 'ship' && item.status == '3'}}">修改</van-button>
  51. <van-button type="danger" size="small" data-id="{{item.id}}" data-arrive-number="{{item.arriveNumber}}" catchtap="delFun" style="margin-right: 20rpx;" wx:if="{{roleCodeList == 'ship' && (item.status == '1' || item.status == '3')}}">删除</van-button>
  52. <van-button type="primary" size="small" data-id="{{item.id}}" data-approve-type="one" catchtap="showPopup" wx:if="{{roleCodeList == 'bizAdmin' && item.status == '1'}}">审核</van-button>
  53. <van-button type="warning" size="small" data-id="{{item.id}}" data-arrive-number="{{item.arriveNumber}}" catchtap="confirmFun" style="margin-right: 20rpx;" wx:if="{{roleCodeList == 'ship' && item.loadStatus == '8' && item.status == '2'}}">确认</van-button>
  54. </view>
  55. </navigator>
  56. </block>
  57. <!-- 底部加载动画 -->
  58. <view class='more'>
  59. <block wx:if="{{more}}">
  60. <van-loading size="24px" color="#1989fa">加载中...</van-loading>
  61. </block>
  62. <block wx:else>{{nomore}}</block>
  63. </view>
  64. <view style="height: 200rpx;"> </view>
  65. </block>
  66. <block wx:else>
  67. <van-empty description="未搜索到相关记录" image="/images/null5.png" />
  68. </block>
  69. </block>
  70. </view>
  71. </block>
  72. <block wx:else>
  73. <view>
  74. <van-empty image="/images/loginNull.png">
  75. <view slot="description" style="text-align: center;">
  76. <text style="display:block;margin-bottom: 20rpx;">您还未登录,登录后查看更多~</text>
  77. <van-button type="info" bindtap="toLogin">立即登录</van-button>
  78. </view>
  79. </van-empty>
  80. </view>
  81. </block>
  82. </view>
  83. <!-- 弹窗 -->
  84. <van-popup show="{{ show }}" position="bottom" round closeable custom-style="width:100%;padding:0rpx 30rpx 160rpx;" bind:close="onClose">
  85. <view style="height: 90rpx;line-height: 90rpx;text-align: center;">审核</view>
  86. <form bindsubmit="formSubmit">
  87. <view class="part">
  88. <view class="height20"> </view>
  89. <view class="height20"> </view>
  90. <input name="id" value='{{id}}' hidden='true' />
  91. <van-field label="审核结果" name="auditFlag" value="{{ auditFlag }}" required input-align="right" class="radioHeight fieldAutoHeight">
  92. <view slot="input" class="radioHeightBx">
  93. <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="auditFlag">
  94. <label class="radio">
  95. <radio value="true" checked="{{auditFlag=='true'}}" color="#4B70EA" />通过
  96. </label>
  97. <label class="radio">
  98. <radio value="false" checked="{{auditFlag=='false'}}" color="#4B70EA" />不通过
  99. </label>
  100. </radio-group>
  101. </view>
  102. </van-field>
  103. <van-field label="审核备注" required="{{auditFlag=='false'}}" name="arriveReason" value="{{ arriveReason }}" type="textarea" input-align="right" placeholder="请输入审核备注" autosize></van-field>
  104. </view>
  105. <view class="submitBtn">
  106. <view style="padding-top: 60rpx;">
  107. <van-button block round type="info" form-type="submit" color="#0396FF">确认</van-button>
  108. </view>
  109. </view>
  110. </form>
  111. </van-popup>
  112. <wxs module="filters" src="../../utils/filter.wxs"></wxs>