ticketDetail.wxml 11 KB

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