index.wxml 6.6 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 orderStatus{{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 != '2') || (roleCodeList == 'bizAdmin' && 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 != '1'}}">修改</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 != '2'}}">删除</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 == '2'}}">审核</van-button>
  53. </view>
  54. </navigator>
  55. </block>
  56. <!-- 底部加载动画 -->
  57. <view class='more'>
  58. <block wx:if="{{more}}">
  59. <van-loading size="24px" color="#1989fa">加载中...</van-loading>
  60. </block>
  61. <block wx:else>{{nomore}}</block>
  62. </view>
  63. <view style="height: 200rpx;"> </view>
  64. </block>
  65. <block wx:else>
  66. <van-empty description="未搜索到相关记录" image="/images/null5.png" />
  67. </block>
  68. </block>
  69. </view>
  70. </block>
  71. <block wx:else>
  72. <view>
  73. <van-empty image="/images/loginNull.png">
  74. <view slot="description" style="text-align: center;">
  75. <text style="display:block;margin-bottom: 20rpx;">您还未登录,登录后查看更多~</text>
  76. <van-button type="info" bindtap="toLogin">立即登录</van-button>
  77. </view>
  78. </van-empty>
  79. </view>
  80. </block>
  81. </view>
  82. <!-- 弹窗 -->
  83. <van-popup show="{{ show }}" 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="formSubmit">
  86. <view class="part">
  87. <view class="height20"> </view>
  88. <view class="height20"> </view>
  89. <input name="id" value='{{id}}' hidden='true' />
  90. <van-field label="审核结果" name="auditFlag" value="{{ auditFlag }}" required input-align="right" class="radioHeight fieldAutoHeight">
  91. <view slot="input" class="radioHeightBx">
  92. <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="auditFlag">
  93. <label class="radio">
  94. <radio value="false" checked="{{auditFlag=='false'}}" color="#4B70EA" />通过
  95. </label>
  96. <label class="radio">
  97. <radio value="true" checked="{{auditFlag=='true'}}" color="#4B70EA" />不通过
  98. </label>
  99. </radio-group>
  100. </view>
  101. </van-field>
  102. <van-field label="审核备注" required="{{auditFlag=='true'}}" name="orderReason" value="{{ orderReason }}" type="textarea" input-align="right" placeholder="请输入审核备注" autosize></van-field>
  103. </view>
  104. <view class="submitBtn">
  105. <view style="padding-top: 60rpx;">
  106. <van-button block round type="info" form-type="submit" color="#0396FF">确认</van-button>
  107. </view>
  108. </view>
  109. </form>
  110. </van-popup>
  111. <wxs module="filters" src="../../utils/filter.wxs"></wxs>