hmList.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view class="container">
  3. <view class="orders-switch">
  4. <view class="item {{ showType == 4 ? 'active' : ''}}" bindtap="switchTab" data-index='4'>
  5. <view class="txt">今日工单</view>
  6. </view>
  7. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  8. <view class="txt">未服务</view>
  9. </view>
  10. <view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  11. <view class="txt">已服务</view>
  12. </view>
  13. <!-- <view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  14. <view class="txt">已取消</view>
  15. </view> -->
  16. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  17. <view class="txt">全部工单</view>
  18. </view>
  19. </view>
  20. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  21. <view class="c">
  22. <text>还没有服务工单呢</text>
  23. <!-- <view style="display:flex;margin-top:30rpx">
  24. <button class="btn" style="margin:0 auto" bindtap="goProblemAdd">手动报备问题</button>
  25. </view> -->
  26. </view>
  27. </view>
  28. <view class="orders">
  29. <view class='order' wx:for="{{orderList}}" wx:for-item="item" wx:key="item">
  30. <view class="h">
  31. <view class="l">预约时间:{{item.bookTime}}</view>
  32. <view class="r">{{item.status}}</view>
  33. </view>
  34. <view class="goods">
  35. <view class="info">
  36. <text class="name">服务地址:{{item.address}}</text>
  37. <text class="number">工单编号:{{item.bookTradeNo}}</text>
  38. <text class="number" decode="{{true}}">预约备注:{{item.remark}} </text>
  39. <text class="number" decode="{{true}}">客户名称:{{item.userName}} </text>
  40. <view class="number" bindtap="makeCall" data-phone='{{item.userPhone}}'
  41. style="display: flex;justify-content: space-between;">
  42. <view style="color:#666">联系电话:{{item.userPhone}}</view>
  43. <view style="display: flex;align-items: center;height: 40rpx;">
  44. <image style="width: 30rpx;height:32rpx;margin-top: 5rpx;" src="/static/images/phone.png"></image>
  45. <view style="color:#666;margin-left: 10rpx;font-size: 32rpx;">联系</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="order-item-operate">
  51. <view class="order-item-result"></view>
  52. <view class="order-operate-wrapper">
  53. <view wx:if="{{format.indexOf(item.bookTime,today)&&isTest&&(item.status=='待上门')}}" catchtap="goArrived"
  54. data-id='{{item.bookTradeNo}}'>我已上门</view>
  55. <view wx:if="{{format.indexOf(item.bookTime,today)&&isTest&&(item.status=='待履约'||item.status=='已预约')}}"
  56. catchtap="goConfirm" data-id='{{item.bookTradeNo}}'>服务已完成</view>
  57. <view catchtap="goProblemAdd" data-id='{{item.bookTradeNo}}'>问题报备</view>
  58. <view catchtap="openMap" data-id='{{item.bookTradeNo}}'>导航</view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>