orderBoard.wxml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view class="whole-page" >
  3. <!-- 日历-月维度 -->
  4. <!-- wx:if="{{!stickShow}}" -->
  5. <view class="calendar-wrapper">
  6. <view class="month-title">
  7. <view class="month-title-left">
  8. <view>工作日历</view>
  9. <image mode="aspectFit" src="/static/images/upgrade/icon-calendar.png"></image>
  10. </view>
  11. <view class="month-title-right">
  12. <block>
  13. <image bindtap="lastMonth" mode="aspectFit" src="/static/images/upgrade/icon-arrow-left.png"></image>
  14. <view bindtap="lastMonth" class="last-month">上月</view>
  15. </block>
  16. <block>
  17. <view class="next-month" bindtap="nextMonth">
  18. 下月</view>
  19. <image bindtap="nextMonth" mode="aspectFit" src="/static/images/upgrade/icon-arrow-right.png"></image>
  20. </block>
  21. </view>
  22. </view>
  23. <view class="current-month">
  24. {{currentMonth}}
  25. </view>
  26. <view class="whole-calendar">
  27. <view class="{{currentDay==item1.day?'selected-calendar':''}} calendar-item" wx:for="{{workerDayInfoList}}"
  28. wx:for-item="item1" bindtap="switchDay" data-day="{{item1.day}}" wx:key="index1" wx:for-index="index1" data-item="{{item1}}">
  29. <view class="calendar-week" wx:if="{{index1<=6}}">
  30. {{item1.dayOfWeek}}
  31. </view>
  32. <view class="calendar-day">
  33. {{format.substrText(item1.day,8,10)}}</view>
  34. <view class="selected-dot">
  35. </view>
  36. <!-- <view class="appoint-time" wx:if="{{item1.appointmentCount!=null}}">{{item1.appointmentCount==null?'':(''+item1.appointmentCount)}}</view> -->
  37. </view>
  38. </view>
  39. <!-- 折叠收起 -->
  40. <view wx:if="{{!calcendarFold}}" class="fold-calcendar" bindtap="calcendarCollapse">
  41. <image mode="aspectFit" src="/static/images/upgrade/icon-unfold.png"></image>
  42. <view>收起</view>
  43. </view>
  44. <view wx:else class="fold-calcendar" bindtap="calcendarCollapse">
  45. <image mode="aspectFit" src="/static/images/upgrade/icon-fold.png"></image>
  46. <view>展开</view>
  47. </view>
  48. </view>
  49. <!-- 日历-日维度 -->
  50. <!-- wx:if="{{stickShow}}" -->
  51. <van-sticky>
  52. <!-- 日期 -->
  53. <view class="current-date">
  54. <view class="day">{{currentDay}}</view>
  55. <view class="today" wx:if="{{currentDay==today}}">今天</view>
  56. </view>
  57. <van-tabs active="{{ activeTab }}" color="#1677FF" id="tabs" bind:change="onTabChange">
  58. <van-tab title="匹配中({{waitMatchCount}})" name="7"></van-tab>
  59. <van-tab title="待履约({{waitServiceCount}})" name="1"></van-tab>
  60. <van-tab title="全部({{totalCount}})" name="0"></van-tab>
  61. </van-tabs>
  62. </van-sticky>
  63. <!-- 服务工单 -->
  64. <view wx:if="{{serviceList.length>0}}">
  65. <view class="service-order {{item.status=='已取消'||item.status=='已退款'?'cancel-order':''}}"
  66. wx:for="{{serviceList}}" wx:key="index">
  67. <view class="service-title">
  68. <view class="ser-title-left">
  69. <image mode="aspectFit"
  70. src="{{item.status=='已取消'?'/static/images/upgrade/order.png':'/static/images/upgrade/order@selected.png'}}">
  71. </image>
  72. <view>服务工单
  73. </view>
  74. </view>
  75. <view class="ser-title-right">
  76. <!-- <image mode="aspectFit" src="/static/images/upgrade/jzlife-logo.png"></image> -->
  77. <view>{{item.channelName}}</view>
  78. </view>
  79. </view>
  80. <view class="related-info" wx:if="{{item.status!='已取消'}}">
  81. <view class="column">
  82. <view class="title">相关信息</view>
  83. <view wx:if="{{item.serviceTimes>1}}">周期卡:{{item.servicedTimes}}/{{item.serviceTimes}}</view>
  84. </view>
  85. <!-- 消息 -->
  86. <!-- <view class="notice" wx:if="{{item.rebuySpeach!=''}}">
  87. <image mode="aspectFit" src="/static/images/upgrade/icon-alert.png"></image>
  88. <view>
  89. {{item.rebuySpeach}}
  90. </view>
  91. </view> -->
  92. <!-- <view class="row">服务内容:{{item.goodsName}} </view> -->
  93. <!-- <view class="row">客户信息: {{item.syncTag}} {{item.cusStatus}}</view>
  94. <view class="column">
  95. <view>订单类型:{{item.itemType}}</view>
  96. <view>此次服务进度:{{item.serviceProcess}}</view>
  97. </view> -->
  98. <view class="row">商品简称:{{item.orderType}}</view>
  99. <view class="row">订单渠道:{{item.channelName}}</view>
  100. <!--<view class="row">需求备注:{{item.preCollectInfo}}</view> -->
  101. </view>
  102. <view class="service-info">
  103. <view class="order-num">
  104. <view>服务单号:{{item.serviceId}}</view>
  105. <image src="/static/images/upgrade/icon-copy.png" mode="aspectFit" class="copy-img" bindtap="copyNum"
  106. data-bookno="{{item.serviceId}}"></image>
  107. </view>
  108. <view class="row service-status">
  109. <view>当前状态:{{item.statusVal}}</view>
  110. <!--
  111. <view class="invite-comment" wx:if="{{item.canEval}}">可邀评</view>
  112. <view class="hp-wrapper" wx:if="{{item.evalType=='好评'}}">
  113. <image src="/static/images/upgrade/icon-hp.png" mode="aspectFit" class="hp-img" ></image>
  114. <text>好评</text>
  115. </view> -->
  116. <!--
  117. <view class="cp-wrapper" wx:if="{{item.evalType=='差评'}}">
  118. <image src="/static/images/upgrade/icon-cp.png" mode="aspectFit" class="cp-img"></image>
  119. <text>差评</text>
  120. </view> -->
  121. </view>
  122. <view class="row">价格:{{item.price}}</view>
  123. <view class="row">服务时间:{{item.bookDate}} {{item.bookStartTime}}-{{item.bookEndTime}}</view>
  124. <!-- <view class="row">服务人员:{{item.workerName}}</view>
  125. <view class="row">服务者手机号:{{item.workerTel}}</view>
  126. <view class="row">预约联系人:{{item.consignee}}</view> -->
  127. <view class="row" wx:for="{{item.workerInfoList}}" wx:for-item="item2" wx:for-index="index2" >
  128. 服务人员{{index2+1}}:{{item2.workerName}}({{item2.servantType}}){{item2.workerTel}}
  129. </view>
  130. <view class="column">
  131. <view bindtap="callUp" data-serviceid="{{item.serviceId}}" data-phone="{{item.mobile}}"
  132. data-statusval="{{item.statusVal}}" data-status="{{item.status}}">预约电话:{{item.mobile}}</view>
  133. <image src="/static/images/upgrade/icon-phone1.png" mode="aspectFit" class="callup-img" bindtap="callUp"
  134. data-phone="{{item.mobile}}" wx:if="{{item.status=='1'||item.status=='2'||item.status=='7'}}"
  135. data-status="{{item.status}}"></image>
  136. </view>
  137. <view class="row">服务小区:{{item.addressName}}</view>
  138. <view class="address">
  139. <view>服务地址:</view>
  140. <view class="detail">{{item.address}}</view>
  141. <image src="/static/images/upgrade/icon-map1.png" bindtap="openMap" data-status="{{item.status}}"
  142. data-lnglat="{{item.addrDetail}}" data-address="{{item.addr}}"
  143. wx:if="{{item.status=='待履约'||item.status=='服务中'}}"></image>
  144. </view>
  145. <view class="row">客户备注:{{item.message}}</view>
  146. <view wx:if="{{item.serviceHistory}}" style="color:blue;font-size: 26rpx;">*曾经服务过该客户</view>
  147. <view class="service-tag-line">
  148. <view class="{{item.level==1?'tag-important':'tag-common'}}" wx:for="{{item.labelList}}" wx:key="index">{{item.resultName}}</view>
  149. </view>
  150. </view>
  151. <view class="operate-block">
  152. <!-- 待履约: 修改 完成 取消
  153. 待匹配:接单 转发 修改 取消-->
  154. <!-- <view class="operate-item" wx:if="{{item.status=='7'}}" data-serviceid="{{item.serviceId}}" bindtap="handleTake">
  155. <image src="/static/images/upgrade/icon-qjsq.png" mode="widthFix" style="width:28rpx;">
  156. </image>
  157. <view>接单</view>
  158. </view> -->
  159. <view class="operate-item" data-serviceid="{{item.serviceId}}" bindtap="supplyCode">
  160. <view>补差</view>
  161. </view>
  162. <view class="operate-item" wx:if="{{item.status=='7'}}" data-serviceid="{{item.serviceId}}" bindtap="handleCopy">
  163. <image src="/static/images/upgrade/icon-copy.png" mode="widthFix" style="width:36rpx;"></image>
  164. <view>复制</view>
  165. </view>
  166. <view class="operate-item" wx:if="{{item.status=='7'}}" data-serviceid="{{item.serviceId}}" bindtap="handleSend">
  167. <image src="/static/images/upgrade/icon-qtjm.png"></image>
  168. <view>转发</view>
  169. </view>
  170. <view class="operate-item" wx:if="{{item.status=='1'||item.status=='7'}}" data-item="{{item}}" bindtap="handleAppoint">
  171. <image src="https://jzmall.lifejingzhi.com/file/wx-servant/icon-gdth.png"></image>
  172. <view>派单及修改预约</view>
  173. </view>
  174. <view class="operate-item" wx:if="{{item.status=='1'||item.status=='2'}}" data-serviceid="{{item.serviceId}}" bindtap="handleFinish">
  175. <image src="/static/images/upgrade/icon-fwwc.png"></image>
  176. <view>完成工单</view>
  177. </view>
  178. <!-- <view class="operate-item" wx:if="{{item.status=='1'||item.status=='7'}}" data-serviceid="{{item.serviceId}}" bindtap="handleCancel">
  179. <image src="/static/images/upgrade/icon-ycbb.png"></image>
  180. <view>取消工单</view>
  181. </view> -->
  182. </view>
  183. </view>
  184. </view>
  185. <view wx:else="" style="text-align: center;padding: 40rpx;color: #bbb4b4; font-size: 24rpx;">选中日期无服务单</view>
  186. <!-- 退出登录 -->
  187. <!-- <view class="logout" bindtap="exitLogin">退出登录</view> -->
  188. </view>