preList.wxml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view class="myqr" wx:if="{{myqr_show}}">
  3. <view>
  4. <image class="cancel" src="/static/images/cancel.png" bindtouchstart="qrtouchstart"></image>
  5. </view>
  6. <view>
  7. <image class="img" src="{{myqr_url}}" mode="widthFix" />
  8. </view>
  9. <view>
  10. <image class="btn" style="float:unset" bindtap="saveShare" src="/static/images/right.png" />
  11. </view>
  12. </view>
  13. <view>
  14. <image src="/static/images/csr.png" style="width: 80px;height: 80px;position: fixed;z-index: 9;top: 360rpx;right: 15rpx;"></image>
  15. <contact-button class="csr" type="default-dark" style="opacity: 0;position: fixed;z-index: 99999;right: 15rpx; width: 100rpx;height: 100rpx;top:400rpx" session-from="weapp" size="27">
  16. </contact-button>
  17. </view>
  18. <view class="container">
  19. <view class="orders-switch">
  20. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  21. <view class="txt">全部预检单</view>
  22. </view>
  23. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  24. <view class="txt">未预检</view>
  25. </view>
  26. <view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  27. <view class="txt">已预检</view>
  28. </view>
  29. <view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='3'>
  30. <view class="txt">自定义预检</view>
  31. </view>
  32. </view>
  33. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  34. <view class="c">
  35. <text>还没有预检工单呢</text>
  36. </view>
  37. </view>
  38. <view class="orders">
  39. <view class='book' wx:for="{{orderList}}" wx:for-item="item" wx:key="item">
  40. <view style="border-bottom:0.5rpx dashed #999">
  41. <view class="status">{{item.status==0?'未预检':'已预检'}}</view>
  42. <view class="bookname">工单号:{{item.bookNo}}</view>
  43. <view class="address">服务地址:{{item.stationName}}-{{item.address}}</view>
  44. <view class="serviceTime">预约时间:{{item.serviceTime}}</view>
  45. <view class="serviceTime" wx:if="{{item.status==1}}">服务时间:{{item.createTime}}</view>
  46. <view class="goodsname">客户名称:{{item.userName}}</view>
  47. </view>
  48. <!-- 预检项目 -->
  49. <view class="content" wx:for="{{item.items}}" wx:for-item='detail' wx:key='*this'>
  50. <view class="category">服务项:{{detail.categoryName}}</view>
  51. <view class="device">
  52. {{detail.deviceName}}
  53. <span wx:if="{{detail.positionName}}">(</span>
  54. <span>{{detail.positionName}}</span>
  55. <span wx:if="{{detail.positionName}}">)</span>
  56. </view>
  57. <view class="problem">
  58. <view class="item" wx:for="{{detail.problemsName}}" wx:for-item='problem' wx:key='*this'>{{problem}}</view>
  59. <view class="item" wx:if="{{detail.memo}}">备注:{{detail.memo}}</view>
  60. </view>
  61. <view class="problem">
  62. <image class="img" src="{{pic}}" wx:for="{{detail.picUrls}}" wx:for-item='pic' wx:key='*this' />
  63. </view>
  64. </view>
  65. <view class="tool">
  66. <!-- <button class="btn" bindtap="openMap" data-lng="{{item.lng}}" data-lat="{{item.lat}}" data-address="{{substring(item.stationName,1,2)+item.address}}">地图</button> -->
  67. <button class="btn" data-mobile="{{item.userPhone}}" bindtap="makeCall">联系客户</button>
  68. <button class="btn" wx:if="{{item.status==0}}" style="color:darkred" bindtap="goPre" data-id="{{item.id}}"
  69. data-bookNo="{{item.bookNo}}" data-userPhone="{{item.userPhone}}">去预检</button>
  70. <button class="btn" bindtap="editPre" data-bookno="{{item.bookNo}}"
  71. wx:if="{{format.substrDate(item.createTime)==today}}">修改</button>
  72. </view>
  73. </view>
  74. </view>
  75. </view>