ticketDetail.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view>
  3. <view class="box-wrapper" wx:if="{{workerNotice.length>0}}">
  4. <image src="https://jzmall.lifejingzhi.com/file/wx-servant/course-tips.png" mode="aspectFit"></image>
  5. <view class="msg-box">
  6. <!-- vertical="true" -->
  7. <swiper class="swiper-container" autoplay="true" circular="true" interval="3000">
  8. <block wx:for="{{workerNotice}}" wx:key="index">
  9. <!-- 3 <navigator url="/pages/upgrade/messageList?title={{item.url}}" open-type="navigate"> --> <swiper-item> <view class="msg-item">
  10. <view class="content-wrapper">
  11. <view class="msg-content">{{item}}
  12. </view>
  13. </view>
  14. </view>
  15. </swiper-item>
  16. <!-- 7 </navigator> -->
  17. </block>
  18. </swiper>
  19. </view>
  20. </view>
  21. <!-- 服务工单 -->
  22. <view class="service-order">
  23. <view class="service-title">
  24. <view class="ser-title-left">
  25. <image mode="aspectFit" src="/static/images/upgrade/order@selected.png"></image>
  26. <view>服务工单</view>
  27. </view>
  28. <view class="ser-title-right" >
  29. <image mode="aspectFit" src="/static/images/upgrade/icon-hm.png" wx:if="{{!format.indexOf(bookOrderInfo.bookTradeNo,'JZ')}}"></image>
  30. <view>{{bookOrderInfo.channel}}</view>
  31. </view>
  32. </view>
  33. <view class="related-info">
  34. <view class="column">
  35. <view class="title">相关信息</view>
  36. <view>客户剩余总服务次数:{{bookOrderInfo.cusRemain}}次</view>
  37. </view>
  38. <!-- 消息 -->
  39. <view class="notice" wx:if="{{bookOrderInfo.rebuySpeach!=''}}">
  40. <image mode="aspectFit" src="/static/images/upgrade/icon-alert.png"></image>
  41. <view>
  42. {{bookOrderInfo.rebuySpeach}}
  43. </view>
  44. </view>
  45. <view class="row">服务内容:{{bookOrderInfo.goodsName}} </view>
  46. <view class="row">客户信息:{{bookOrderInfo.syncTag}} {{bookOrderInfo.cusStatus}} </view>
  47. <!-- <view class="column">
  48. <view>订单类型:{{bookOrderInfo.itemType}}</view>
  49. <view>此次服务进度:{{bookOrderInfo.serviceProcess}}</view>
  50. </view> -->
  51. <view class="row">订单类型:{{bookOrderInfo.itemType}}</view>
  52. <view class="row">此次服务进度:{{bookOrderInfo.serviceProcess}}</view>
  53. </view>
  54. <view class="service-info">
  55. <view class="order-num">
  56. <view>服务单号:{{bookOrderInfo.bookTradeNo}}</view>
  57. <image src="/static/images/upgrade/icon-copy.png" mode="aspectFit" class="copy-img" bindtap="copyNum" data-bookno="{{bookOrderInfo.bookTradeNo}}"></image>
  58. </view>
  59. <view class="row service-status">
  60. <view>当前状态:{{bookOrderInfo.status}}</view>
  61. <view class="invite-comment" wx:if="{{bookOrderInfo.canEval}}">可邀评</view>
  62. <view class="hp-wrapper" wx:if="{{bookOrderInfo.evalType=='好评'}}">
  63. <image src="/static/images/upgrade/icon-hp.png" mode="aspectFit" class="hp-img" ></image>
  64. <text>好评</text>
  65. </view>
  66. <view class="cp-wrapper" wx:if="{{bookOrderInfo.evalType=='差评'}}">
  67. <image src="/static/images/upgrade/icon-cp.png" mode="aspectFit" class="cp-img"></image>
  68. <text>差评</text>
  69. </view>
  70. </view>
  71. <view class="row">服务时间:{{bookOrderInfo.startTime}} - {{bookOrderInfo.endTime}}</view>
  72. <view class="column" wx:if="{{bookOrderInfo.channel != '盒马'}}" >
  73. <view>客户手机:{{bookOrderInfo.maskUserPhone}}</view>
  74. <image src="/static/images/upgrade/icon-phone1.png" mode="aspectFit" class="callup-img" bindtap="callUp" data-phone="{{bookOrderInfo.userPhone}}" wx:if="{{bookOrderInfo.status=='待上门'}}" data-status="{{bookOrderInfo.status}}"></image>
  75. </view>
  76. <view class="address">
  77. <view>服务地址:</view>
  78. <view class="detail">{{bookOrderInfo.addr}}</view>
  79. <image src="/static/images/upgrade/icon-map1.png" bindtap="openMap"
  80. data-status="{{bookOrderInfo.status}}" data-lnglat="{{bookOrderInfo.addrDetail}}" data-address="{{bookOrderInfo.addr}}" wx:if="{{bookOrderInfo.status=='待上门'}}"></image>
  81. </view>
  82. <view class="row">客户备注:{{bookOrderInfo.cusremark}}</view>
  83. </view>
  84. <view class="operate-block">
  85. <!-- 我已到门 服务完成 品类预检 异常报备 -->
  86. <view class="{{bookOrderInfo.status=='待上门'?'':'disable'}} operate-item" bindtap="arriveCus" wx:if="{{!format.indexOf(bookOrderInfo.bookTradeNo,'JZ')}}">
  87. <image src="{{bookOrderInfo.status=='待上门'?'/static/images/upgrade/icon-wydm.png':'/static/images/upgrade/icon-wydm2.png'}}">
  88. </image>
  89. <view>我已到门</view>
  90. </view>
  91. <view class="{{bookOrderInfo.status=='待履约'||bookOrderInfo.status=='已预约'?'':'disable'}} operate-item" bindtap="finishOrder">
  92. <image src="{{bookOrderInfo.status=='待履约'||bookOrderInfo.status=='已预约'?'/static/images/upgrade/icon-fwwc.png':'/static/images/upgrade/icon-fwwc2.png'}}">
  93. </image>
  94. <view>服务完成</view>
  95. </view>
  96. <!-- {{preResultDate.state!=0?'disable':''}} -->
  97. <view class="operate-item" wx:if="{{preResultData.status==0}}" bindtap="goPre" data-id="{{preResultData.id}}"
  98. data-bookNo="{{preResultData.bookNo}}" data-userPhone="{{preResultData.userPhone}}" >
  99. <image src="{{false?'/static/images/upgrade/icon-detail2.png':'/static/images/upgrade/icon-detail.png'}}">
  100. </image>
  101. <view>品类预检</view>
  102. </view>
  103. <view class="{{false?'disable':''}} operate-item" bindtap="goProblemList">
  104. <image src="/static/images/upgrade/icon-ycbb.png">
  105. </image>
  106. <view>异常报备</view>
  107. </view>
  108. </view>
  109. </view>
  110. <van-tabs active="{{ activeTab }}" color="#09afff" id="tabs" bind:change="onTabChange" id="tabs">
  111. <van-tab title="问题工单" name="1"></van-tab>
  112. <van-tab title="预检单" name="2" wx:if="{{bookOrderInfo.itemType=='品类'}}"></van-tab >
  113. </van-tabs>
  114. <!-- 问题工单 -->
  115. <view class="ticket-list" wx:if="{{activeTab==1}}">
  116. <view class="ticket-item" wx:for="{{ticketList}}" wx:key="index">
  117. <view class="ticket-top">
  118. <view class="top-left">
  119. <image src="/static/images/upgrade/icon-wtgd.png" mode="aspectFit"></image>
  120. <view wx:if="{{item.ticketType==1}}">问题工单</view>
  121. <view wx:if="{{item.ticketType==0}}">报备工单</view>
  122. </view>
  123. <view class="top-right" >
  124. <image src="/static/images/upgrade/icon-hm.png" mode="aspectFit" wx:if="{{!format.indexOf(bookOrderInfo.bookTradeNo,'JZ')}}"></image>
  125. <view>{{item.channel}}</view>
  126. </view>
  127. </view>
  128. <view class="ticket-content">
  129. <view>工单类型:{{item.ticketTypeStr}}</view>
  130. <view>工单状态:{{item.statusDesc}}</view>
  131. <view>工单时间:{{item.createTime}}</view>
  132. <view>关联单据:{{item.relationBookTradeNo}}</view>
  133. <view>最新进度:</view>
  134. </view>
  135. <!-- 进度 -->
  136. <view class="prorgress">
  137. <view class="progress-dot"></view>
  138. <view>{{item.content}}</view>
  139. </view>
  140. <view class="progress-tip">
  141. {{item.processTime}}
  142. </view>
  143. <!-- wx:if="{{item.ticketType==0&&item.source=='SS'}}" -->
  144. <view class="ticket-bottom" >
  145. <!-- wx:if="{{item.status!=2&&item.status!=3&&item.statusDesc!='处理中-升级'}}" -->
  146. <view class="operate-item" bindtap="goUrge" data-sn="{{item.ticketSN}}" wx:if="{{item.status!=2&&item.status!=3&&item.statusDesc!='处理中-升级'}}">
  147. <image src="/static/images/upgrade/icon-hurry.png" mode="aspectFit"></image>
  148. <view>催促办理</view>
  149. </view>
  150. <!-- wx:if="{{item.status==2&&item.isCommented==false}}" -->
  151. <view class="operate-item"
  152. data-id="{{item.ticketId}}" data-sn="{{item.ticketSN}}" bindtap="goComment" wx:if="{{item.status==2&&item.isCommented==false}}">
  153. <image src="/static/images/upgrade/icon-detail.png" mode="aspectFit"></image>
  154. <view>评价过程</view>
  155. </view>
  156. <!-- wx:if="{{item.status==1}}" -->
  157. <view class="operate-item" bindtap="goCancel" data-sn="{{item.ticketSN}}" wx:if="{{item.status==1}}" >
  158. <image src="/static/images/upgrade/icon-cancel.png" mode="aspectFit"></image>
  159. <view>取消报备</view>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. <!-- 预检单 -->
  165. <view wx:if="{{activeTab==2}}">
  166. <view class='book' >
  167. <view style="border-bottom:0.5rpx dashed #999">
  168. <view class="status">{{preResultData.status==0?'未预检':'已预检'}}</view>
  169. <view class="bookname">工单号:{{preResultData.bookNo}}</view>
  170. <view class="address">服务地址:{{preResultData.stationName}}-{{preResultData.address}}</view>
  171. <view class="serviceTime">预约时间:{{preResultData.serviceTime}}</view>
  172. <view class="serviceTime" wx:if="{{item.status==1}}">服务时间:{{preResultData.createTime}}</view>
  173. <view class="goodsname">客户名称:{{preResultData.userName}}</view>
  174. </view>
  175. <!-- 预检项目 -->
  176. <view class="content" wx:for="{{preResultData.items}}" wx:for-item='detail' wx:key='*this'>
  177. <view class="category">服务项:{{detail.categoryName}}</view>
  178. <view class="device">
  179. {{detail.deviceName}}
  180. <span wx:if="{{detail.positionName}}">(</span>
  181. <span>{{detail.positionName}}</span>
  182. <span wx:if="{{detail.positionName}}">)</span>
  183. </view>
  184. <view class="problem">
  185. <view class="item" wx:for="{{detail.problemsName}}" wx:for-item='problem' wx:key='*this'>{{problem}}</view>
  186. <view class="item" wx:if="{{detail.memo}}">备注:{{detail.memo}}</view>
  187. </view>
  188. <view class="problem">
  189. <image class="img" src="{{pic}}" wx:for="{{detail.picUrls}}" wx:for-item='pic' wx:key='*this' />
  190. </view>
  191. </view>
  192. <view class="tool">
  193. <!-- <button class="btn" bindtap="openMap" data-lng="{{item.lng}}" data-lat="{{item.lat}}" data-address="{{substring(item.stationName,1,2)+item.address}}">地图</button> -->
  194. <button class="btn" data-mobile="{{preResultData.userPhone}}" bindtap="makeCall">联系客户</button>
  195. <!-- <button class="btn" wx:if="{{preResultData.status==0}}" style="color:darkred" bindtap="goPre" data-id="{{preResultData.id}}"
  196. data-bookNo="{{preResultData.bookNo}}" data-userPhone="{{preResultData.userPhone}}">去预检</button> -->
  197. <button class="btn" bindtap="editPre" data-bookno="{{preResultData.bookNo}}"
  198. wx:if="{{format.substrDate(preResultData.createTime)==today}}">修改</button>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. <van-overlay show="{{ myqr_show }}" bind:click="onClickHide">
  204. <view class="myqr" >
  205. <view style="text-align:center">
  206. <image class="cancel" src="/static/images/cancel.png" bindtouchstart="qrtouchstart"></image>
  207. <span style="font-size: 16px;color: #333;margin-top: 30rpx;font-weight:600">评价报备处理</span>
  208. </view>
  209. <view style="text-align:center;margin:0rpx auto">
  210. <view class="star">
  211. <view style="line-height: 70rpx;font-size: 32rpx;color: #333;">总体:</view>
  212. <image wx:for="{{comments.stars}}" wx:key="id" src="{{item.checked?item.imgSelected:item.img}}"
  213. data-level="{{item.level}}" bindtap="clickStar"></image>
  214. <view style="line-height: 70rpx;margin-left:10rpx;color: #333;">
  215. {{comments.selectedDes}}
  216. </view>
  217. </view>
  218. <view style="margin:10rpx 0;padding: 5rpx 0;height: 322rpx;">
  219. <textarea class="comment-txt" bindinput="bindCommentRemark" value="{{comments.comment}}"
  220. placeholder='请输入处理速度、结果等'></textarea>
  221. </view>
  222. </view>
  223. <view style="text-align: center;display: flex;justify-content: center;margin:20rpx">
  224. <view class="btn" bindtap="goSaveCommnet">提交</view>
  225. </view>
  226. </view>
  227. </van-overlay>