serviceOrder.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view class="myqr" wx:if="{{myqr_show}}">
  3. <view>
  4. <image class="cancel" src="/static/images/cancel.png" bindtouchstart="closeMyQr"></image>
  5. </view>
  6. <view>
  7. <image class="img" src="{{myqr_url}}" mode="widthFix" />
  8. </view>
  9. <view>
  10. <image class="btn" bindtap="goSaveQrcode" src="/static/images/right.png" />
  11. </view>
  12. </view>
  13. <view class="whole-page" style="filter:blur({{myqr_blur}}rpx)">
  14. <view class="user-wrapper">
  15. <view class="user-info">
  16. <image class="user-img" src="/static/images/upgrade/head-user.png" mode="aspectFill"></image>
  17. <view class="user-right">
  18. <view class="user-name">
  19. <view> <text>{{monthInfo.workerName}}</text> </view>
  20. <view class="job-year" wx:if="{{momthInfo.state==1}}">已上线</view>
  21. <view class="job-year" wx:if="{{momthInfo.state==0}}">审核中</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="user-bottom">
  26. <view class="company">
  27. <!-- {{monthInfo.fraName}} -->
  28. 鲸致生活
  29. </view>
  30. <view class="recommend" bindtap="goCash" wx:if="{{monthInfo.isCashout||dayCalendar.isCashout}}">
  31. <image src="/static/images/money.png" mode="aspectFit" class="copy-img"></image>
  32. <view> 我的计提</view>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 日历-月维度 -->
  37. <!-- wx:if="{{!stickShow}}" -->
  38. <view class="calendar-wrapper">
  39. <view class="month-title">
  40. <view class="month-title-left">
  41. <view>工作日历</view>
  42. <image mode="aspectFit" src="/static/images/upgrade/icon-calendar.png"></image>
  43. </view>
  44. <view class="month-title-right">
  45. <block>
  46. <image bindtap="lastMonth" mode="aspectFit" src="/static/images/upgrade/icon-arrow-left.png"></image>
  47. <view bindtap="lastMonth" class="last-month">上月</view>
  48. </block>
  49. <block>
  50. <view class="next-month" bindtap="nextMonth">
  51. 下月</view>
  52. <image bindtap="nextMonth" mode="aspectFit" src="/static/images/upgrade/icon-arrow-right.png"></image>
  53. </block>
  54. </view>
  55. </view>
  56. <view class="current-month">
  57. {{currentMonth}}
  58. </view>
  59. <view class="whole-calendar">
  60. <view class="{{currentDay==item1.day?'selected-calendar':''}} calendar-item" wx:for="{{workerDayInfoList}}"
  61. wx:for-item="item1" bindtap="switchDay" data-day="{{item1.day}}" wx:key="index1" wx:for-index="index1">
  62. <view class="calendar-week" wx:if="{{index1<=6}}">
  63. {{item1.dayOfWeek}}
  64. </view>
  65. <view class="calendar-day">
  66. {{format.substrText(item1.day,8,10)}}</view>
  67. <view class="selected-dot">
  68. </view>
  69. <!-- 工单列表 -->
  70. <view class="calendar-order-item" wx:for="{{item1.workerDayTradeInfoList}}" wx:key="index2" wx:for-item="item2"
  71. wx:for-index="index2">
  72. <view class="eval-wrapper">
  73. <image mode="aspectFit" src="/static/images/upgrade/icon-cp.png" wx:if="{{item2.evaltionType=='差评'}}">
  74. </image>
  75. <image mode="aspectFit" src="/static/images/upgrade/icon-hp.png" wx:if="{{item2.evaltionType=='好评'}}">
  76. </image>
  77. </view>
  78. <view class="{{item2.itemType=='保洁周期'?'pl':''}} time {{item2.tradeStatus!='服务已完成'?'no-finish':''}}">
  79. {{format.substrText(item2.startTime,0,5)}}</view>
  80. </view>
  81. </view>
  82. </view>
  83. <!-- 折叠收起 -->
  84. <view wx:if="{{!calcendarFold}}" class="fold-calcendar" bindtap="calcendarCollapse">
  85. <image mode="aspectFit" src="/static/images/upgrade/icon-unfold.png"></image>
  86. <view>收起</view>
  87. </view>
  88. <view wx:else class="fold-calcendar" bindtap="calcendarCollapse">
  89. <image mode="aspectFit" src="/static/images/upgrade/icon-fold.png"></image>
  90. <view>展开</view>
  91. </view>
  92. </view>
  93. <!-- 日历-日维度 -->
  94. <!-- wx:if="{{stickShow}}" -->
  95. <van-sticky>
  96. <!-- 日期 -->
  97. <view class="current-date">
  98. <view class="day">{{currentDay}}</view>
  99. <view class="today" wx:if="{{currentDay==today}}">今天</view>
  100. </view>
  101. </van-sticky>
  102. <!-- 服务工单 -->
  103. <view wx:if="{{dayCalendar.workerOrderInfoDTOList.length>0}}">
  104. <view class="service-order {{item.status=='已取消'||item.status=='已退款'?'cancel-order':''}}"
  105. wx:for="{{dayCalendar.workerOrderInfoDTOList}}" wx:key="index">
  106. <view class="service-title">
  107. <view class="ser-title-left">
  108. <image mode="aspectFit"
  109. src="{{item.status=='已取消'?'/static/images/upgrade/order.png':'/static/images/upgrade/order@selected.png'}}">
  110. </image>
  111. <view>服务工单
  112. </view>
  113. </view>
  114. <view class="ser-title-right">
  115. <image mode="aspectFit" src="/static/images/upgrade/jzlife-logo.png"></image>
  116. <view>{{item.channel}}</view>
  117. </view>
  118. </view>
  119. <view class="related-info" wx:if="{{item.status!='已取消'}}">
  120. <view class="column">
  121. <view class="title">相关信息</view>
  122. <!-- <view>客户剩余总服务次数:{{item.cusRemain}}次</view> -->
  123. </view>
  124. <!-- 消息 -->
  125. <!-- <view class="notice" wx:if="{{item.rebuySpeach!=''}}">
  126. <image mode="aspectFit" src="/static/images/upgrade/icon-alert.png"></image>
  127. <view>
  128. {{item.rebuySpeach}}
  129. </view>
  130. </view> -->
  131. <!-- <view class="row">服务内容:{{item.goodsName}} </view> -->
  132. <!-- <view class="row">客户信息: {{item.syncTag}} {{item.cusStatus}}</view>-->
  133. <view class="row">商品简称:{{item.itemType}}</view>
  134. <view class="row" wx:if="{{item.unitIncreaseNumber&&item.unitIncreaseNumber>0}}">加购内容:{{item.unitDescribe}}*{{item.unitIncreaseNumber}}</view>
  135. <!-- <view class="column" wx:if="isC">
  136. <view style="font-size: 21rpx;color: rgb(241, 214, 58);">是否计提:{{item.cashStatus}}</view>
  137. </view> -->
  138. <!--<view class="row">需求备注:{{item.preCollectInfo}}</view> -->
  139. </view>
  140. <view class="service-info">
  141. <view class="order-num">
  142. <view>服务单号:{{item.bookTradeNo}}</view>
  143. <image src="/static/images/upgrade/icon-copy.png" mode="aspectFit" class="copy-img" bindtap="copyNum"
  144. data-bookno="{{item.bookTradeNo}}"></image>
  145. <view style="color:#09afff; margin:0 10rpx 0 40rpx; font-size:28rpx ;" bindtap="supplyCode" data-bookno="{{item.bookTradeNo}}">发起补差</view>
  146. <!-- <image src="/static/images/upgrade/qrcode.png" mode="aspectFit" style="width:36rpx; height:36rpx;padding-top:6rpx;" bindtap="supplyCode" data-bookno="{{item.bookTradeNo}}"></image> -->
  147. </view>
  148. <view class="row service-status">
  149. <view>服务状态:{{item.status}}</view>
  150. <!--
  151. <view class="invite-comment" wx:if="{{item.canEval}}">可邀评</view>
  152. <view class="hp-wrapper" wx:if="{{item.evalType=='好评'}}">
  153. <image src="/static/images/upgrade/icon-hp.png" mode="aspectFit" class="hp-img" ></image>
  154. <text>好评</text>
  155. </view> -->
  156. <!--
  157. <view class="cp-wrapper" wx:if="{{item.evalType=='差评'}}">
  158. <image src="/static/images/upgrade/icon-cp.png" mode="aspectFit" class="cp-img"></image>
  159. <text>差评</text>
  160. </view> -->
  161. </view>
  162. <view class="row" wx:if="{{showjz}}">服务技能时长:{{item.skillName==null?'':item.skillName}},
  163. {{item.serviceLength==null?'':item.serviceLength}}小时</view>
  164. <view class="row" wx:if="{{showjz}}">上门打卡时间:{{item.isOndoor==1?'已打卡':'未打卡'}} {{item.ondoorTime==null?'':item.ondoorTime}}</view>
  165. <view class="row" wx:if="{{showjz}}">服务完成时间:{{item.isFinish==1?'已服务':'未服务'}}{{item.finishTime==null?'':item.finishTime}}</view>
  166. <view class="row" wx:if="{{showjz}}">订单渠道:{{item.orderChannel}}</view>
  167. <view class="row" wx:if="isCashout">计提状态:{{item.cashStatus}}</view>
  168. <view class="row">客户名称:{{item.cusName}}</view>
  169. <view class="row">服务时间:{{item.startTime==null?'':item.startTime}} - {{item.endTime==null?'':item.endTime}}</view>
  170. <!-- <view class="column">-->
  171. <!-- <view>客户手机:{{item.maskUserPhone}}</view>-->
  172. <!-- <image src="/static/images/upgrade/icon-phone1.png" mode="aspectFit" class="callup-img" bindtap="callUp"-->
  173. <!-- data-phone="{{item.userPhone}}" wx:if="{{item.status=='待履约'||item.status=='服务中'}}"-->
  174. <!-- data-status="{{item.status}}"></image>-->
  175. <!-- </view> -->
  176. <view class="row" wx:if="{{item.addressName}}">服务小区:{{item.addressName}}</view>
  177. <view class="address">
  178. <view>服务地址:</view>
  179. <view class="detail">{{item.addr}}</view>
  180. <image src="/static/images/upgrade/icon-map1.png" bindtap="openMap" data-status="{{item.status}}"
  181. data-lnglat="{{item.addrDetail}}" data-address="{{item.addr}}"
  182. wx:if="{{item.status=='待履约'||item.status=='服务中'}}"></image>
  183. </view>
  184. <view class="row" wx:if="{{showjz}}">服务商名:{{item.fraName}}</view>
  185. <view class="row">客户备注:{{item.cusRemark}}</view>
  186. <view class="row">客服备注:{{item.customerServiceSr?item.customerServiceSr:''}} {{item.special?item.special:''}}</view>
  187. <view class="row pay-row">
  188. <view>服务补差:</view>
  189. <view class="pay-total">未支付{{item.diffInfo.unPay}}笔</view>
  190. <view class="pay-success">支付成功{{item.diffInfo.pay}}笔</view>
  191. </view>
  192. </view>
  193. <view class="operate-block">
  194. <view wx:if="{{item.orderChannel=='美团' && (item.status=='服务已完成'||item.status=='服务已提供') }}" data-bookTradeNo="{{item.bookTradeNo}}" class="operate-item" bindtap="goProblemList">
  195. <image src="/static/images/upgrade/icon-ycbb.png">
  196. </image>
  197. <view>美团好评</view>
  198. </view>
  199. <!-- 单据详情 跟单体会/评价徒弟 联系客户 立即导航 isDisciple 1是徒弟 0否-->
  200. <view class="operate-item" wx:if="{{item.status!='已取消'&&item.status!='已退款'}}" data-bookno="{{item.bookTradeNo}}"
  201. bindtap="getQrCode">
  202. <image src="/static/images/upgrade/qrcode.png">
  203. </image>
  204. <view>复购码</view>
  205. </view>
  206. <view class="operate-item" data-bookno="{{item.bookTradeNo}}"
  207. bindtap="getCouponCode">
  208. <image src="/static/images/upgrade/icon-zzy.png">
  209. </image>
  210. <view>优惠券</view>
  211. </view>
  212. <!-- <van-dropdown-menu>
  213. <van-dropdown-item title='复购工具' :value="itemValue" :options="options"></van-dropdown-item>
  214. </van-dropdown-menu> -->
  215. <view class="{{item.status!='待履约'&&item.status!='服务中'?'disable':''}} operate-item" bindtap="callSecertNo"
  216. data-status="{{item.status}}" data-detailId="{{item.bookTradeNo}}">
  217. <image
  218. src="{{item.status!='待履约'&&item.status!='服务中'?'/static/images/upgrade/icon-phone4.png':'/static/images/upgrade/icon-phone3.png'}}">
  219. </image>
  220. <view>联系客户</view>
  221. </view>
  222. <view class="{{item.status!='待履约'&&item.status!='服务中'?'disable':''}} operate-item" bindtap="openMap"
  223. data-status="{{item.status}}" data-lnglat="{{item.addrDetail}}" data-address="{{item.addr}}">
  224. <image
  225. src="{{item.status!='待履约'&&item.status!='服务中'?'/static/images/upgrade/icon-map2.png':'/static/images/upgrade/icon-map1.png'}}">
  226. </image>
  227. <view>导航</view>
  228. </view>
  229. <view class="{{item.status=='待履约'&&item.isOndoor==0?'':'disable'}} operate-item" data-status="{{item.status}}"
  230. data-detailServantId="{{item.detailServantId}}"
  231. data-id="{{item.bookTradeNo}}" data-addr="{{item.addr}}" bindtap="arriveCus" wx:if="{{item.isOndoor==0}}">
  232. <image
  233. src="{{item.status=='待履约'&&item.isOndoor==0?'/static/images/upgrade/icon-wydm.png':'/static/images/upgrade/icon-wydm2.png'}}">
  234. </image>
  235. <view>我已到门</view>
  236. </view>
  237. <view class="{{item.status=='服务中'&&item.isFinish==0?'':'disable'}} operate-item" data-status="{{item.status}}"
  238. data-detailServantId="{{item.detailServantId}}"
  239. data-id="{{item.bookTradeNo}}" bindtap="finishOrder" wx:if="{{item.isFinish==0}}">
  240. <image
  241. src="{{item.status=='服务中'&&item.isFinish==0?'/static/images/upgrade/icon-fwwc.png':'/static/images/upgrade/icon-fwwc2.png'}}">
  242. </image>
  243. <view>服务完成</view>
  244. </view>
  245. <view bindtap="supplyRecord" data-status="{{item.status}}" class="operate-item"
  246. data-bookno="{{item.bookTradeNo}}" >
  247. <image style="width:24rpx;height:26rpx"
  248. src="/static/images/upgrade/icon-detail.png" >
  249. </image>
  250. <view>补差记录</view>
  251. </view>
  252. </view>
  253. </view>
  254. </view>
  255. <view wx:else="" style="text-align: center;padding: 20rpx;color: #bbb4b4;">选中日期无服务单</view>
  256. <!-- 退出登录 -->
  257. <view class="logout" bindtap="exitLogin">退出登录</view>
  258. </view>