ticketDetail.wxml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view>
  3. <!-- 服务单信息 -->
  4. <view class="service-order-new {{orderInfo.statusName=='服务已完成'?'finished-order':''}}">
  5. <view class="service-title">
  6. <view class="title-left">
  7. <image mode="aspectFit" src="/static/images/upgrade/order@selected.png">
  8. </image>
  9. <view wx:if="{{showjz}}">{{orderInfo.channel}}</view>
  10. </view>
  11. <view class="order-status">
  12. {{orderInfo.statusName}}
  13. </view>
  14. </view>
  15. <view class="service-content main-info">
  16. <view>服务内容</view>
  17. <view class="detail">{{orderInfo.goodsName}}</view>
  18. </view>
  19. <view class="service-content main-info">
  20. <view>服务时间</view>
  21. <view class="detail">{{orderInfo.bookDate}} {{orderInfo.bookTimeRange}}</view>
  22. </view>
  23. <block wx:if="{{orderInfo.channel!='盒马'}}">
  24. <view class="service-content main-info">
  25. <view>服务技能时长</view>
  26. <view class="detail">{{orderInfo.skillName}},{{orderInfo.serviceLength}}小时</view>
  27. </view>
  28. <view class="service-content main-info">
  29. <view>上门打卡时间</view>
  30. <view class="detail">{{orderInfo.isOndoor==1?'已打卡':'未打卡'}} {{orderInfo.ondoorTime==null?'':orderInfo.ondoorTime}}</view>
  31. </view>
  32. <view class="service-content main-info">
  33. <view>服务完成时间</view>
  34. <view class="detail">{{orderInfo.isFinish==1?'已服务':'未服务'}} {{orderInfo.finishTime==null?'':orderInfo.finishTime}}</view>
  35. </view>
  36. </block>
  37. <view class="service-content main-info" wx:if="{{orderInfo.unitIncreaseNumber >=1 }}">
  38. <view>加购内容</view>
  39. <view class="detail">{{orderInfo.unitDescribe}} * {{orderInfo.unitIncreaseNumber}}</view>
  40. </view>
  41. <view class="service-content main-info">
  42. <view>工单ID</view>
  43. <view class="detail">{{orderInfo.detailId}}</view>
  44. </view>
  45. <view class="service-content main-info" wx:if="{{orderInfo.leaveCountMsg!=null}}">
  46. <view>服务进度</view>
  47. <view class="detail">{{orderInfo.leaveCountMsg}}</view>
  48. </view>
  49. <!-- <view class="service-address">
  50. <view class="address-dot"></view>
  51. <view class="address-detail">
  52. {{orderInfo.addr}}
  53. </view>
  54. </view> -->
  55. <!-- <view class="service-tips">
  56. <view class="tips-title">注意事项:</view>
  57. <view class="tips-detail">注意家里有宠物,一猫一…</view>
  58. </view> -->
  59. <!-- <view class="service-provision" wx:if="{{showjz}}">
  60. <view>预计计提¥ </view>
  61. <view class="provision-amount">{{orderInfo.income}}</view>
  62. </view> -->
  63. <view class="service-tag-line">
  64. <view class="{{item.level==1?'tag-important':'tag-common'}}" wx:for="{{orderInfo.labelList}}" wx:key="index">{{item.resultName}}</view>
  65. </view>
  66. <view class="data-update">
  67. <view>数据更新时间:{{orderInfo.reportUpdateTime}}</view>
  68. <view bindtap="getDataRefresh" >点击刷新</view>
  69. </view>
  70. </view>
  71. <view class="customer-remark {{orderInfo.statusName=='服务已完成'?'finished-order':''}}" bindtap="tapCusRemark" wx:if="{{orderInfo.customerServiceSr&&orderInfo.customerServiceSr!=null}}">
  72. <view class="remark-title">
  73. 客户需求备注
  74. </view>
  75. <view class="remark-content">
  76. {{orderInfo.customerServiceSr}}
  77. </view>
  78. </view>
  79. <view class="customer-address {{orderInfo.statusName=='服务已完成'?'finished-order':''}}">
  80. <view class="remark-title">
  81. 客户预采需求
  82. </view>
  83. <view class="remark-content">
  84. <view class="customer-need" wx:for="{{ticketPrelist}}"
  85. wx:key="index">
  86. <view class="tag-l">
  87. <view class="tag-l-item">{{item.levelTwo}}</view>
  88. </view>
  89. <view class="tag-r">
  90. <view class="tag-r-item" wx:for="{{item.child}}" wx:for-item="items">{{items}}</view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="customer-address {{orderInfo.statusName=='服务已完成'?'finished-order':''}}">
  96. <view class="address-title">
  97. <view>服务地址</view>
  98. <view class="right" wx:if="{{orderInfo.statusName!='服务已完成'}}" bindtap="openMap" >
  99. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/new/icon-navigation.png">
  100. </image>
  101. <view class="navi-now">立即导航</view>
  102. </view>
  103. </view>
  104. <view class="address-detail">
  105. {{(orderInfo.statusName!='服务已完成')?orderInfo.addr:'信息保护中'}}
  106. <text wx:if="{{orderInfo.statusName!='服务已完成'}}" data-content="{{orderInfo.addr}}" bindtap="copyNum">点击复制</text>
  107. </view>
  108. </view>
  109. <view class="new-operate">
  110. <view class="operate-left">
  111. <view>复购码</view>
  112. <view class="rebuy-code">{{orderInfo.rebuyCode}}</view>
  113. </view>
  114. <view class="operate-right" data-content="{{orderInfo.rebuyCode}}" bindtap="copyNum">
  115. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/new/icon-finger.png">
  116. </image>
  117. <view class="operate-text">点击复制</view>
  118. </view>
  119. </view>
  120. <view class="new-operate" wx:if="{{orderInfo.channel!='盒马'}}">
  121. <view class="operate-left">
  122. <view>补差</view>
  123. </view>
  124. <view class="operate-right" bindtap="supplyCode" data-bookno="{{orderInfo.detailId}}">
  125. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/new/icon-finger.png">
  126. </image>
  127. <view class="operate-text">发起补差</view>
  128. </view>
  129. </view>
  130. <view bindtap="supplyRecord" data-bookno="{{orderInfo.detailId}}" class="supply-board" wx:if="{{orderInfo.channel!='盒马'}}">
  131. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/new/icon-supply-record.png">
  132. </image>
  133. <view>查看补差记录</view>
  134. </view>
  135. <view class="new-operate" wx:if="{{orderInfo.channel!='盒马'}}">
  136. <view class="operate-left">
  137. <view>企微</view>
  138. </view>
  139. <view class="operate-right" data-channel="{{orderInfo.channel}}" data-id="{{orderInfo.detailId}}" bindtap="getQrCode">
  140. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/new/icon-finger.png">
  141. </image>
  142. <view class="operate-text">加企微</view>
  143. </view>
  144. </view>
  145. <view class="new-operate" wx:if="{{orderInfo.isHwAuth}}">
  146. <view class="operate-left">
  147. <view>认证</view>
  148. </view>
  149. <view class="operate-right" data-channel="{{orderInfo.channel}}" data-id="{{orderInfo.servantId}}" bindtap="getServantDetail" >
  150. <view class="operate-text1" >点击亮码</view>
  151. </view>
  152. </view>
  153. <view class="bottom-wrapper">
  154. <view class="bottom-operate">
  155. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/new/contact-cus.png" data-mobile="{{orderInfo.userPhone}}" bindtap="makeCall" wx:if="{{orderInfo.canOperateMap.canContract}}">
  156. </image>
  157. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/new/contact-cus-disable.png" wx:else>
  158. </image>
  159. <view class="operate-btn" wx:if="{{orderInfo.canOperateMap.ondoor}}" bindtap="arriveCusNew">
  160. 我已到户
  161. </view>
  162. <view class="operate-btn" wx:if="{{orderInfo.canOperateMap.canAcceptance}}" bindtap="goCusCheck">
  163. 邀请验收
  164. </view>
  165. <view class="operate-btn" wx:if="{{orderInfo.canOperateMap.preCheck}}" bindtap="goPre" data-id="{{orderInfo.preResultData.id}}" data-bookNo="{{orderInfo.preResultData.bookNo}}" data-userPhone="{{orderInfo.preResultData.userPhone}}">
  166. 发起预检
  167. </view>
  168. </view>
  169. </view>
  170. <view class="box-wrapper" wx:if="{{workerNotice.length>0}}">
  171. <image src="https://jzmall.lifejingzhi.com/file/wx-servant/course-tips.png" mode="aspectFit"></image>
  172. <view class="msg-box">
  173. <!-- vertical="true" -->
  174. <swiper class="swiper-container" autoplay="true" circular="true" interval="3000">
  175. <block wx:for="{{workerNotice}}" wx:key="index">
  176. <!-- 3 <navigator url="/pages/upgrade/messageList?title={{item.url}}" open-type="navigate"> -->
  177. <swiper-item>
  178. <view class="msg-item">
  179. <view class="content-wrapper">
  180. <view class="msg-content">{{item}}
  181. </view>
  182. </view>
  183. </view>
  184. </swiper-item>
  185. <!-- 7 </navigator> -->
  186. </block>
  187. </swiper>
  188. </view>
  189. </view>
  190. <!-- 服务工单 -->
  191. <!-- <view class="service-order">
  192. <view class="service-title">
  193. <view class="ser-title-left">
  194. <image mode="aspectFit" src="/static/images/upgrade/order@selected.png"></image>
  195. <view>服务工单</view>
  196. </view>
  197. <view class="ser-title-right">
  198. <image mode="aspectFit" src="/static/images/upgrade/icon-hm.png" wx:if="{{!format.indexOf(bookOrderInfo.bookTradeNo,'JZ')}}"></image>
  199. <view>{{bookOrderInfo.channel}}</view>
  200. </view>
  201. </view>
  202. <view class="related-info">
  203. <view class="column">
  204. <view class="title">相关信息</view>
  205. <view>客户剩余总服务次数:{{bookOrderInfo.cusRemain}}次</view>
  206. </view>
  207. <view class="notice" wx:if="{{bookOrderInfo.rebuySpeach!=''}}">
  208. <image mode="aspectFit" src="/static/images/upgrade/icon-alert.png"></image>
  209. <view>
  210. {{bookOrderInfo.rebuySpeach}}
  211. </view>
  212. </view>
  213. <view class="row">服务内容:{{bookOrderInfo.goodsName}} </view>
  214. <view class="row">客户信息:{{bookOrderInfo.syncTag}} {{bookOrderInfo.cusStatus}} </view>
  215. <view class="row">订单类型:{{bookOrderInfo.itemType}}</view>
  216. <view class="row">此次服务进度:{{bookOrderInfo.serviceProcess}}</view>
  217. </view>
  218. <view class="service-info">
  219. <view class="order-num">
  220. <view>服务单号:{{bookOrderInfo.bookTradeNo}}</view>
  221. <image src="/static/images/upgrade/icon-copy.png" mode="aspectFit" class="copy-img" bindtap="copyNum" data-bookno="{{bookOrderInfo.bookTradeNo}}"></image>
  222. </view>
  223. <view class="row service-status">
  224. <view>当前状态:{{bookOrderInfo.status}}</view>
  225. <view class="invite-comment" wx:if="{{bookOrderInfo.canEval}}">可邀评</view>
  226. <view class="hp-wrapper" wx:if="{{bookOrderInfo.evalType=='好评'}}">
  227. <image src="/static/images/upgrade/icon-hp.png" mode="aspectFit" class="hp-img"></image>
  228. <text>好评</text>
  229. </view>
  230. <view class="cp-wrapper" wx:if="{{bookOrderInfo.evalType=='差评'}}">
  231. <image src="/static/images/upgrade/icon-cp.png" mode="aspectFit" class="cp-img"></image>
  232. <text>差评</text>
  233. </view>
  234. </view>
  235. <view class="row">服务时间:{{bookOrderInfo.startTime}} - {{bookOrderInfo.endTime}}</view>
  236. <view class="column">
  237. <view>客户手机:{{bookOrderInfo.maskUserPhone}}</view>
  238. <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>
  239. </view>
  240. <view class="address">
  241. <view>服务地址:</view>
  242. <view class="detail">{{bookOrderInfo.addr}}</view>
  243. <image src="/static/images/upgrade/icon-map1.png" bindtap="openMap" data-status="{{bookOrderInfo.status}}" data-lnglat="{{bookOrderInfo.addrDetail}}" data-address="{{bookOrderInfo.addr}}" wx:if="{{bookOrderInfo.status=='待上门'}}"></image>
  244. </view>
  245. <view class="row">客户备注:{{bookOrderInfo.cusremark}}</view>
  246. </view>
  247. <view class="operate-block">
  248. <view class="{{bookOrderInfo.status=='待上门'?'':'disable'}} operate-item" bindtap="arriveCus" wx:if="{{!format.indexOf(bookOrderInfo.bookTradeNo,'JZ')}}">
  249. <image src="{{bookOrderInfo.status=='待上门'?'/static/images/upgrade/icon-wydm.png':'/static/images/upgrade/icon-wydm2.png'}}">
  250. </image>
  251. <view>我已到门</view>
  252. </view>
  253. <view class="{{bookOrderInfo.status=='待履约'||bookOrderInfo.status=='已预约'?'':'disable'}} operate-item" bindtap="finishOrder">
  254. <image src="{{bookOrderInfo.status=='待履约'||bookOrderInfo.status=='已预约'?'/static/images/upgrade/icon-fwwc.png':'/static/images/upgrade/icon-fwwc2.png'}}">
  255. </image>
  256. <view>服务完成</view>
  257. </view>
  258. <view class="operate-item" wx:if="{{preResultData.status==0}}" bindtap="goPre" data-id="{{preResultData.id}}" data-bookNo="{{preResultData.bookNo}}" data-userPhone="{{preResultData.userPhone}}">
  259. <image src="{{false?'/static/images/upgrade/icon-detail2.png':'/static/images/upgrade/icon-detail.png'}}">
  260. </image>
  261. <view>品类预检</view>
  262. </view>
  263. <view class="{{false?'disable':''}} operate-item" bindtap="goProblemList">
  264. <image src="/static/images/upgrade/icon-ycbb.png">
  265. </image>
  266. <view>异常报备</view>
  267. </view>
  268. </view>
  269. </view> -->
  270. <van-tabs active="{{ activeTab }}" color="#09afff" bind:change="onTabChange" id="tabs">
  271. <van-tab title="问题工单" name="1"></van-tab>
  272. <!-- <van-tab title="补差记录" name="3"></van-tab> -->
  273. <van-tab title="预检单" name="2" wx:if="{{orderInfo.pl}}"></van-tab>
  274. </van-tabs>
  275. <!-- 问题工单 -->
  276. <view class="ticket-list" wx:if="{{activeTab==1}}">
  277. <view class="ticket-item" wx:for="{{ticketList}}" wx:key="index">
  278. <view class="ticket-top">
  279. <view class="top-left">
  280. <image src="/static/images/upgrade/icon-wtgd.png" mode="aspectFit"></image>
  281. <view wx:if="{{item.ticketType==1}}">问题工单</view>
  282. <view wx:if="{{item.ticketType==0}}">报备工单</view>
  283. </view>
  284. <view class="top-right">
  285. <image src="/static/images/upgrade/icon-hm.png" mode="aspectFit" wx:if="{{!format.indexOf(orderInfo.detailId,'JZ')}}"></image>
  286. <view>{{item.channel}}</view>
  287. </view>
  288. </view>
  289. <view class="ticket-content">
  290. <view>工单类型:{{item.ticketTypeStr}}</view>
  291. <view>工单状态:{{item.statusDesc}}</view>
  292. <view>工单时间:{{item.createTime}}</view>
  293. <view>关联单据:{{item.relationBookTradeNo}}</view>
  294. <view>最新进度:</view>
  295. </view>
  296. <!-- 进度 -->
  297. <view class="prorgress">
  298. <view class="progress-dot"></view>
  299. <view>{{item.content}}</view>
  300. </view>
  301. <view class="progress-tip">
  302. {{item.processTime}}
  303. </view>
  304. <!-- wx:if="{{item.ticketType==0&&item.source=='SS'}}" -->
  305. <view class="ticket-bottom">
  306. <!-- wx:if="{{item.status!=2&&item.status!=3&&item.statusDesc!='处理中-升级'}}" -->
  307. <view class="operate-item" bindtap="goUrge" data-sn="{{item.ticketSN}}" wx:if="{{item.status!=2&&item.status!=3&&item.statusDesc!='处理中-升级'}}">
  308. <image src="/static/images/upgrade/icon-hurry.png" mode="aspectFit"></image>
  309. <view>催促办理</view>
  310. </view>
  311. <!-- wx:if="{{item.status==2&&item.isCommented==false}}" -->
  312. <view class="operate-item" data-id="{{item.ticketId}}" data-sn="{{item.ticketSN}}" bindtap="goComment" wx:if="{{item.status==2&&item.isCommented==false}}">
  313. <image src="/static/images/upgrade/icon-detail.png" mode="aspectFit"></image>
  314. <view>评价过程</view>
  315. </view>
  316. <!-- wx:if="{{item.status==1}}" -->
  317. <view class="operate-item" bindtap="goCancel" data-sn="{{item.ticketSN}}" wx:if="{{item.status==1}}">
  318. <image src="/static/images/upgrade/icon-cancel.png" mode="aspectFit"></image>
  319. <view>取消报备</view>
  320. </view>
  321. </view>
  322. </view>
  323. </view>
  324. <!-- 预检单 -->
  325. <view wx:if="{{activeTab==2}}">
  326. <view class='book'>
  327. <view style="border-bottom:0.5rpx dashed #999">
  328. <view class="status">{{preResultData.status==0?'未预检':'已预检'}}</view>
  329. <view class="bookname">工单号:{{preResultData.bookNo}}</view>
  330. <view class="address">服务地址:{{preResultData.stationName}}-{{preResultData.address}}</view>
  331. <view class="serviceTime">预约时间:{{preResultData.serviceTime}}</view>
  332. <view class="serviceTime" wx:if="{{item.status==1}}">服务时间:{{preResultData.createTime}}</view>
  333. <view class="goodsname">客户名称:{{preResultData.userName}}</view>
  334. </view>
  335. <!-- 预检项目 -->
  336. <view class="content" wx:for="{{preResultData.items}}" wx:for-item='detail' wx:key='*this'>
  337. <view class="category">服务项:{{detail.categoryName}}</view>
  338. <view class="device">
  339. {{detail.deviceName}}
  340. <span wx:if="{{detail.positionName}}">(</span>
  341. <span>{{detail.positionName}}</span>
  342. <span wx:if="{{detail.positionName}}">)</span>
  343. </view>
  344. <view class="problem">
  345. <view class="item" wx:for="{{detail.problemsName}}" wx:for-item='problem' wx:key='*this'>{{problem}}</view>
  346. <view class="item" wx:if="{{detail.memo}}">备注:{{detail.memo}}</view>
  347. </view>
  348. <view class="problem">
  349. <image class="img" src="{{pic}}" wx:for="{{detail.picUrls}}" wx:for-item='pic' wx:key='*this' />
  350. </view>
  351. </view>
  352. <view class="tool">
  353. <!-- <button class="btn" bindtap="openMap" data-lng="{{item.lng}}" data-lat="{{item.lat}}" data-address="{{substring(item.stationName,1,2)+item.address}}">地图</button> -->
  354. <button class="btn" data-mobile="{{preResultData.userPhone}}" bindtap="makeCall">联系客户</button>
  355. <!-- <button class="btn" wx:if="{{preResultData.status==0}}" style="color:darkred" bindtap="goPre" data-id="{{preResultData.id}}"
  356. data-bookNo="{{preResultData.bookNo}}" data-userPhone="{{preResultData.userPhone}}">去预检</button> -->
  357. <button class="btn" bindtap="editPre" data-bookno="{{preResultData.bookNo}}" wx:if="{{format.substrDate(preResultData.createTime)==today}}">修改</button>
  358. </view>
  359. </view>
  360. </view>
  361. </view>
  362. <van-overlay show="{{ myqr_show }}" bind:click="onClickHide">
  363. <view class="myqr">
  364. <view style="text-align:center">
  365. <image class="cancel" src="/static/images/cancel.png" bindtouchstart="qrtouchstart"></image>
  366. <span style="font-size: 16px;color: #333;margin-top: 30rpx;font-weight:600">评价报备处理</span>
  367. </view>
  368. <view style="text-align:center;margin:0rpx auto">
  369. <view class="star">
  370. <view style="line-height: 70rpx;font-size: 32rpx;color: #333;">总体:</view>
  371. <image wx:for="{{comments.stars}}" wx:key="id" src="{{item.checked?item.imgSelected:item.img}}" data-level="{{item.level}}" bindtap="clickStar"></image>
  372. <view style="line-height: 70rpx;margin-left:10rpx;color: #333;">
  373. {{comments.selectedDes}}
  374. </view>
  375. </view>
  376. <view style="margin:10rpx 0;padding: 5rpx 0;height: 322rpx;">
  377. <textarea class="comment-txt" bindinput="bindCommentRemark" value="{{comments.comment}}" placeholder='请输入处理速度、结果等'></textarea>
  378. </view>
  379. </view>
  380. <view style="text-align: center;display: flex;justify-content: center;margin:20rpx">
  381. <view class="btn" bindtap="goSaveCommnet">提交</view>
  382. </view>
  383. </view>
  384. </van-overlay>
  385. <van-overlay show="{{ remarkTipsShow }}">
  386. <view class="refund-order-overlay">
  387. <view class="refund-order-dialog">
  388. <view class="refund-dia-title">客户需求备注</view>
  389. <view class="refund-dia-tips">
  390. {{orderInfo.customerServiceSr}}
  391. </view>
  392. <view class="dia-btn-wrapper">
  393. <view class="dia-cancel-btn" bindtap="goIm">联系在线客服</view>
  394. <view class="dia-conf-btn" bindtap="readRemark">收到已读</view>
  395. </view>
  396. </view>
  397. </view>
  398. </van-overlay>
  399. <van-overlay show="{{ issueTipsShow}}">
  400. <view class="refund-order-overlay issue-overlay">
  401. <view class="refund-order-dialog">
  402. <view class="refund-dia-title">异常</view>
  403. <view class="refund-dia-tips">服务时间尚未开始,您确定要开始服务吗?请和客户确认后报备</view>
  404. <view class="dia-btn-wrapper">
  405. <view class="dia-cancel-btn" bindtap="hideIssue">返回</view>
  406. <view class="dia-conf-btn" bindtap="exceotionConf">确认并报备</view>
  407. </view>
  408. </view>
  409. </view>
  410. </van-overlay>
  411. <issue-mov pageX="500" pageY="900" issue="{{orderInfo.detailId}}"></issue-mov>