ticket.wxml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view class="myqr" wx:if="{{myqr_show}}">
  3. <view style="text-align:center">
  4. <image class="cancel" src="/static/images/cancel.png" bindtouchstart="qrtouchstart"></image>
  5. <span style="font-size: 16px;color: #333;margin-top: 30rpx;font-weight:600">处理内容</span>
  6. </view>
  7. <view style="text-align:center;margin:50rpx auto">
  8. <textarea style="width:unset;border:2rpx solid #999;border-radius:10rpx;text-align: left;padding:10rpx;color:#333;"
  9. bindinput="bindContent" value="{{content}}" placeholder='请输入处理内容'></textarea>
  10. </view>
  11. <view class="btn" style="text-align: center;margin: 0 auto;" bindtap="ticketHandle">提交</view>
  12. </view>
  13. <view class="container" style="filter:brightness({{myqr_blur}})">
  14. <view class="orders-switch">
  15. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  16. <view class="txt">未处理</view>
  17. </view>
  18. <view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  19. <view class="txt">已完成</view>
  20. </view>
  21. <!-- <view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  22. <view class="txt">已取消</view>
  23. </view> -->
  24. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  25. <view class="txt">全部工单</view>
  26. </view>
  27. </view>
  28. <view class="no-order" wx:if="{{list.length <= 0}}">
  29. <view class="c">
  30. <text>还没有工单呢</text>
  31. </view>
  32. </view>
  33. <view class="orders">
  34. <view class='book' wx:for="{{list}}" wx:for-item="item" wx:key="item" style="background-color:#fff;padding:10rpx;">
  35. <view style="display: flex;justify-content: space-between;margin-bottom: 20rpx;">
  36. <view class="ticketSn">工单号:{{item.ticketSn}}</view>
  37. <view class="{{item.status=='已完成-完成'?'status':'status-action'}}">状态:{{item.status}}</view>
  38. </view>
  39. <view class="ticket">
  40. <view class="ticket-item">工单类型:</view>
  41. <view class="ticket-content">{{item.type}}</view>
  42. </view>
  43. <view class="ticket">
  44. <view class="ticket-item">客户名称:</view>
  45. <view class="ticket-content">{{item.cusName}}</view>
  46. </view>
  47. <view class="ticket">
  48. <view class="ticket-item">客户手机:</view>
  49. <view class="ticket-content flex-center">
  50. <text>{{item.cusMobile}}</text>
  51. <image src="/static/images/phone.png" style="width: 30rpx;height: 30rpx;margin-left:10rpx;"
  52. data-mobile="{{item.cusMobile}}" bindtap="makeCall"></image>
  53. </view>
  54. </view>
  55. <view class="ticket">
  56. <view class="ticket-item">创建时间:</view>
  57. <view class="ticket-content">{{item.createTime}}</view>
  58. </view>
  59. <view class="ticket">
  60. <view class="ticket-item">服务单号:</view>
  61. <view class="ticket-content">{{item.bookSn}}</view>
  62. </view>
  63. <view class="ticket">
  64. <view class="ticket-item">服务时间:</view>
  65. <view class="ticket-content">{{item.bookTime}}</view>
  66. </view>
  67. <view class="ticket">
  68. <view class="ticket-item">服务人员:</view>
  69. <view class="ticket-content">{{item.servicer}}</view>
  70. </view>
  71. <view class="ticket">
  72. <view class="ticket-item">咨询项:</view>
  73. <view style="display: flex;flex-direction: column;">
  74. <view class="ticket-content" wx:for="{{item.consults}}" wx:for-item="consult" wx:key="consult">
  75. {{consult}}
  76. </view>
  77. </view>
  78. </view>
  79. <view class="ticket">
  80. <view class="ticket-item">处理时长:</view>
  81. <view class="ticket-content">{{item.duration}}</view>
  82. </view>
  83. <view class="ticket">
  84. <view class="ticket-item">工单描述:</view>
  85. <view class="ticket-content-ellipsis">{{item.ticketDesc}}</view>
  86. </view>
  87. <view class="tool">
  88. <!-- <van-icon name="fire-o" dot></van-icon> -->
  89. <view class="btn" bindtap="viewTicket" data-sn="{{item.ticketSn}}">工单详情</view>
  90. <view class="btn" wx:if="{{item.isCanHandle}}" bindtap="goHandle" data-sn="{{item.ticketSn}}">处理工单</view>
  91. <!-- <view class="btn" wx:if="{{item.isCanHandle}}" style="color:darkred" bindtap="goCompleted"
  92. data-sn="{{item.ticketSn}}">完成工单</view> -->
  93. </view>
  94. </view>
  95. </view>
  96. </view>