visitandinfo.wxml 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <wxs module="time" src="../../utils/time.wxs"></wxs>
  2. <van-tabs color='#3c99fa' active="{{ active0 }}" bind:change="onChange" class='tabs'>
  3. <van-tab title="采集记录">
  4. <van-tabs class='tabs1' active="{{ active1 }}" bind:change="tabsChange" color='rgba(0,0,0,0)'>
  5. <van-tab title="全部"></van-tab>
  6. <van-tab title="填全未审"></van-tab>
  7. <van-tab title="未完成"></van-tab>
  8. <van-tab title="审核中"></van-tab>
  9. <van-tab title="审核完成"></van-tab>
  10. <van-tab title="审核失败"></van-tab>
  11. </van-tabs>
  12. <view style="width:700rpx;display:flex;margin-left:25rpx;display:{{isShowTrue}}">
  13. <view class="top">
  14. <checkbox style="float:left;margin-top:-5rpx;margin-left:35rpx" checked="{{isAllTrue}}" bindtap="selectall" />
  15. <view style="float:left;margin-left:15rpx">全选/反选</view>
  16. <view style="float:right">共<text class="number"> {{listData.length}} </text>条记录</view>
  17. </view>
  18. </view>
  19. <scroll-view enable-back-to-top='true' id="scroll" scroll-y="true" style='height: {{scrollHeight + "px"}};width:700rpx;margin-left:25rpx;font-size:28rpx'>
  20. <checkbox-group bindchange="checkboxChange">
  21. <view wx:for="{{listData}}" wx:key="idNumber" class="checkbox_border">
  22. <view style="width:670rpx;margin-left:15rpx;height:60rpx;margin-top:20rpx;border-bottom:1px solid #f4f4f4">
  23. <checkbox style="float:left;margin-left:20rpx" disabled="{{item.status == '3'}}" value="{{item._id}}" checked="{{item.checked}}" />
  24. <view style="width:580rpx;height:60rpx;float:right" value="{{item.text}}" bindtap="cellClick" data-infos='{{item}}'>
  25. <view style="float:left;color:#333333;">{{item.name}}</view>
  26. <view style="float:left;color:#70c546;margin-left:10rpx" wx:if='{{item.idNumber}}'>({{item.idNumber}})</view>
  27. <view style="float:right;margin-right:10rpx">
  28. <van-icon name="arrow" color="#b5b5b5" />
  29. </view>
  30. </view>
  31. </view>
  32. <view style="height:60rpx;margin-top:20rpx;font-size:26rpx;width:100%">
  33. <view style="float:left;display:flex;color:#999999;margin-left:20rpx">状态:
  34. <view wx:if="{{item.status == '1'}}" style="color: #67C23A;font-size:28rpx;font-weight:600;">填全未审</view>
  35. <view wx:if="{{item.status == '0'}}" style="color: #F56C6C;font-size:28rpx;font-weight:600;">未完成</view>
  36. <view wx:if="{{item.status == '2'}}" style="color: #909399;font-size:28rpx;font-weight:600;">审核中</view>
  37. <view wx:if="{{item.status == '3'}}" style="color: #409EFF;font-size:28rpx;font-weight:600;">审核完成</view>
  38. <view wx:if="{{item.status == '4'}}" style="color: #E6A23C;font-size:28rpx;font-weight:600;">审核失败</view>
  39. </view>
  40. <view style="float:right;color:#999999;margin-right:20rpx" bindtap="cellClick" data-infos='{{item}}' value="{{item.text}}">{{time.formatDate(item.time)}}</view>
  41. <view style="float:right;color:#999999;">采集时间:</view>
  42. </view>
  43. </view>
  44. </checkbox-group>
  45. </scroll-view>
  46. <image wx:if='{{listData.length==0}}' style="width:220rpx;height:169rpx;position:absolute;top:400rpx;left:265rpx" src="../../images/nodata1.png"></image>
  47. <view wx:if='{{listData.length==0}}' style="position:absolute;top:580rpx;left:320rpx;font-size:28rpx;color:#bcdbfd">暂无数据</view>
  48. <view class="deletebj" bindtap="deletes" wx:if='{{listData.length!=0}}'>
  49. <view class="delete">
  50. <van-icon name="delete" color="#fd4133" size="35rpx;margin-right:10rpx" /><text>删除</text></view>
  51. </view>
  52. </van-tab>
  53. <van-tab title="巡访记录">
  54. <view class="top1" wx:if="{{list.length!=0}}">共<text class="number"> {{list.length}} </text>条巡访记录</view>
  55. <image wx:if='{{list.length==0}}' style="width:220rpx;height:169rpx;position:absolute;top:400rpx;left:265rpx" src="../../images/nodata1.png"></image>
  56. <view wx:if='{{list.length==0}}' style="position:absolute;top:580rpx;left:320rpx;font-size:28rpx;color:#bcdbfd">暂无数据</view>
  57. <scroll-view scroll-y="true" id="scroll1" style='height: {{scrollHeight1 + "px"}};width:700rpx;margin-left:25rpx;margin-top:20rpx;font-size:28rpx'>
  58. <view wx:for="{{list}}" wx:key="_id" class="checkbox_border">
  59. <view data-infos="{{item}}" bindtap="visitJilu">
  60. <view style="width:670rpx;margin-left:15rpx;height:60rpx;margin-top:20rpx;border-bottom:1px solid #f4f4f4">
  61. <view style="float:left;color:#333333;">{{item.oldInfo}}</view>
  62. <view style="float:left;color:#70c546;margin-left:10rpx">({{item.oldIdNumber}})</view>
  63. <view style="float:right;margin-right:10rpx" value="{{item.text}}" bindtap="cellClick" data-infos='{{item}}'>
  64. <van-icon name="arrow" color="#b5b5b5" />
  65. </view>
  66. </view>
  67. <view style="height:60rpx;margin-top:20rpx;font-size:26rpx;width:100%">
  68. <view style="float:left;color:#999999;margin-left:25rpx">巡访时间:</view>
  69. <view style="float:left;color:#999999;margin-right:20rpx">{{time.formatDate(item.visitTime)}}</view>
  70. </view>
  71. </view>
  72. </view>
  73. </scroll-view>
  74. </van-tab>
  75. </van-tabs>