assignOrder.wxml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!--index.wxml-->
  2. <view class="container">
  3. <view class="zhuyi">注意:修改服务地址后,服务信息可能会清空,须重新指派</view>
  4. <view class="common-module" style="margin-top:30rpx">
  5. <view style="height:40" bind:tap="closecus">
  6. <span class="cusfont">客户信息</span>
  7. <image class="tapdow" src="{{closecusType?'/static/images/arrow-up.png':'/static/images/arrow_down.png'}}"></image>
  8. </view>
  9. <view wx:if="{{!closecusType}}">
  10. <view class="input-block ">
  11. <view class="input-label">预约联系人</view>
  12. <input class="input-value disable-input" value="{{bookDetailInfo.bookName}}" placeholder="请输入(必填)" disabled placeholder-class="input-placeholder" />
  13. </view>
  14. <view class="input-block ">
  15. <view class="input-label">预约电话</view>
  16. <input class="input-value disable-input" disabled value="{{bookDetailInfo.bookTel}}" placeholder="请输入(必填)" placeholder-class="input-placeholder" />
  17. </view>
  18. <view class="input-block address-block">
  19. <view class="input-label">预约地址</view>
  20. <textarea class="input-value" value="{{bookDetailInfo.bookAddress}}" placeholder="请输入(必填)" bindinput="inputAddress" placeholder-class="input-placeholder" />
  21. <van-icon name="map-marked" size="48rpx" style="margin-top: -100rpx;width: 70rpx;margin-right: -20rpx;" color="#09afff" bindtap="goMap" />
  22. <span wx:if="{{gomaps}}" bind:tap="saveAddress" class="tjdz">提交地址</span>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="common-module" style="margin-top:30rpx;">
  27. <view style="height:40;padding:5rpx" bind:tap="closeWorker">
  28. <span class="cusfont">服务信息</span><span style="margin-left: 300rpx;">服务人数:{{bookDetailInfo.assignedWorkerTotal}}/{{bookDetailInfo.workerTotal}}
  29. </span>
  30. <image class="tapdow" src="{{closecusType?'/static/images/arrow-up.png':'/static/images/arrow_down.png'}}"></image>
  31. </view>
  32. </view>
  33. <block wx:if="{{!closeWorker}}" wx:for="{{bookDetailInfo.workers}}" wx:for-item="item" wx:key="index" wx:for-index="index">
  34. <view class="fwz">服务者{{index+1}} ({{ item.skillName }},{{item.serviceLength}}小时,{{ item.sort!=null&&item.sort>0?'有序':'无序' }})</view>
  35. <view style="width: 100%;height: 80rpx;">
  36. <view class="{{item.type==null||item.type==0?'workerleft':'workerright'}}" style=" float: left;" bind:tap="workerTypeTab" data-type="0" data-index="{{index}}">全职</view>
  37. <view class="{{item.type!=null&&item.type==1?'workerleft':'workerright'}}" style=" float: right;" bind:tap="workerTypeTab" data-type="1" data-index="{{index}}">兼职</view>
  38. </view>
  39. <view class="common-module">
  40. <view class="select-block no-border">
  41. <view class="select-label">服务人员</view>
  42. <view disabled="{{item.type==null||item.type==0}}" class="select-value {{item.workerId==''?'default-value':''}}" placeholder="请选择" bindtap="selectWorker" data-index="{{index}}" >
  43. {{item.workerName==null?'':item.workerName}}
  44. </view>
  45. <van-icon wx-if="{{item.type!=null&&item.type==1}}" name="arrow" size="30rpx" color="#969799" />
  46. <span class="gaipai" wx:else bindtap="selectWorker" data-index="{{index}}">改派</span>
  47. </view>
  48. <view class="select-block">
  49. <view class="select-label">预约日期</view>
  50. <view bindtap="selectDateTime" data-index="{{index}}" class="select-value {{ orderInfo.date=='请选择(必填)'?'default-value':''}}">{{ item.bookDate==null?'':item.bookDate}}</view>
  51. <van-icon wx-if="{{item.type!=null&&item.type==1}}" name="arrow" size="30rpx" color="#969799" />
  52. </view>
  53. <view class="select-block">
  54. <view class="select-label">预约时间</view>
  55. <view data-index="{{index}}" bindtap="selectDate" class="select-value {{item.bookStartTime=='请选择(必填)'?'default-value':''}}">{{item.bookStartTime==null?'':item.bookStartTime}}-{{item.bookEndTime==null?'':item.bookEndTime}}</view>
  56. <van-icon wx-if="{{item.type!=null&&item.type==1}}" name="arrow" size="30rpx" color="#969799" />
  57. </view>
  58. <view class="select-block">
  59. <view class="select-label">技能</view> <!-- bindtap="skillTap"-->
  60. <view data-index="{{index}}" class="select-value {{item.skillName=='请选择(必填)'?'default-value':''}}">{{item.skillName==null?'':item.skillName}}</view>
  61. <!-- <van-icon wx-if="{{item.type!=null&&item.type==1}}" name="arrow" size="30rpx" color="#969799" /> -->
  62. </view>
  63. </view>
  64. </block>
  65. <view style="height: 50rpx;"></view>
  66. <view class="edit-btn" style="position:inherit;width:100%" bindtap="confTap">确认修改</view>
  67. <view style="height: 50rpx;"></view>
  68. <van-overlay show="{{showquanzhi}}" style="z-index: 20;position: absolute;" closeable bind:close="closesQuanzhi" position="bottom">
  69. <view class="common-module" style="margin-top:30px;">
  70. <view class="select-block">
  71. <view class="select-label">服务技能</view> <!-- bindtap="skillTapfullworker"-->
  72. <view data-index="{{tempIndex}}" class="select-value {{chooseRow.skillName=='请选择(必填)'?'default-value':''}}">{{chooseRow.skillName==null?'':chooseRow.skillName}}</view>
  73. <!-- <van-icon name="arrow" size="30rpx" color="#969799" /> -->
  74. </view>
  75. <view class="select-block">
  76. <view class="select-label">选择月份</view>
  77. <view bindtap="showMonthTap" class="select-value {{ chooseRow.date=='请选择(必填)'?'default-value':''}}">{{ currmonth}}</view>
  78. <van-icon name="arrow" size="30rpx" color="#969799" />
  79. </view>
  80. <view class="select-block no-border">
  81. <view class="select-label">服务人员</view>
  82. <vies class="input-value {{chooseRow.workerId==''?'default-value':''}}" placeholder="请选择" bindtap="selectFullWorker" >
  83. {{chooseRow.workerName}}
  84. </vies>
  85. <van-icon name="arrow" size="30rpx" color="#969799" />
  86. </view>
  87. <view style="color:red;font-size: 24rpx;">提示:选择月份、人员,点击日期可右滑,时段下滑</view>
  88. <view class="rili">
  89. <scroll-view class="scroll-y" scroll-x>
  90. <view style="display: -webkit-inline-box;">
  91. <view class="kuang" wx:for="{{workerScheduleList}}" wx:key="index" wx:for-index="index" style="{{workerDayTimeRange.day==item.day?'background:#F7F7F7;':''}}">
  92. <div bind:tap="chooseScheDay" data-index="{{index}}">
  93. <span class="kuangzi"> {{item.dayOfWeek}}</span>
  94. <span style="font-size: 24rpx;">{{item.day}}</span>
  95. </div>
  96. </view>
  97. <!-- <view class="kuang"><span class="kuangzi"> 周六</span><span>07月13</span></view> -->
  98. </view>
  99. </scroll-view>
  100. </view>
  101. <view style="height: 1000rpx;">
  102. <scroll-view scroll-y="true" style="height: 700rpx;" class="worker-scroll">
  103. <div wx:for="{{workerDayTimeRange.workerTimeRangeList}}" wx:key="index" wx:for-index="index">
  104. <view class="datetime" wx:if="{{item.isOccupy==false}}"
  105. style="{{chooseRow.timeRange!=null&&chooseRow.timeRange==item.timeRange&&chooseRow.bookDate!=null&&chooseRow.bookDate==workerDayTimeRange.formatDay?'':'background-color: white;'}}"
  106. bind:tap="chooseOccpy" data-index="{{index}}">
  107. <span style=" line-height: 80rpx;">{{item.timeRange}}</span>
  108. </view>
  109. <view class="nodatetime" style="{{item.occupyEventName==null?'line-height: 80rpx;':''}}" wx:else="{{item.isOccupy==true}}">
  110. <span>{{item.timeRange}}</span>
  111. <span wx:if="{{item.occupyEventName!=null}}" style="display: block;font-size: 20rpx;{{item.color=='red'?'color:red':''}}">{{item.occupyEventName}}</span>
  112. </view>
  113. <!-- <view class="datetime" style="background-color: white;">
  114. <span style=" line-height: 80rpx;">08:00-11:00</span>
  115. </view> -->
  116. </div>
  117. </scroll-view>
  118. </view>
  119. <view class="edit-btn" bindtap="confirmQuanzhi">确认改派</view>
  120. <view class="quxiao" bindtap="closesQuanzhi">取消</view>
  121. </view>
  122. </van-overlay>
  123. <van-popup show="{{scrollShow}}" closeable bind:close="closesCrollShow" position="bottom">
  124. <input style="margin-top:50px;" class="input-value input-placeholder" placeholder="请选择(输入姓名筛选)" bindinput="inputWorker" placeholder-class="input-placeholder" />
  125. <scroll-view wx:if="{{scrollShow}}" scroll-y="true" style="height: 400rpx;" class="worker-scroll">
  126. <view class="worker-item" wx:for="{{workerList}}" wx:key="index" data-id="{{item.id}}" data-name="{{item.name}}" data-tel="{{item.tel}}" bindtap="workerTap">{{item.name}}
  127. </view>
  128. </scroll-view>
  129. </van-popup>
  130. <van-popup show="{{dateTimeVisible}}" position="bottom">
  131. <van-datetime-picker title="选择日期" type="date" value="{{currentDate}}" format="YYYY-MM-DD" bind:cancel="hidePicker" bind:confirm="onDateTimeConfirm" />
  132. </van-popup>
  133. <van-popup show="{{selectVisible}}" position="bottom">
  134. <van-picker show-toolbar title="服务时段" columns="{{ timeList }}" bind:cancel="onPickerCancel" bind:confirm="onPickerConfirm" />
  135. </van-popup>
  136. <van-popup show="{{skillVisible}}" style="z-index: 101;" position="bottom">
  137. <van-picker show-toolbar title="技能" columns="{{ bookDetailInfo.skillWorkerTotalList }}" value-key="skillName" bind:cancel="skillTapCancel" bind:confirm="skillTapConfirm" />
  138. </van-popup>
  139. <!-- 全职---选月份 -->
  140. <van-popup show="{{showMonth}}" position="bottom">
  141. <van-picker show-toolbar title=" " columns="{{ monthArray }}" bind:cancel="monthCancel" bind:confirm="monthConfirm" />
  142. </van-popup>
  143. <van-popup show="{{showFullworker}}" style="z-index: 101;" position="bottom">
  144. <van-picker show-toolbar title="全职人员" columns="{{ fullWorkers }}" value-key="workerName" bind:cancel="fullWorkerCancel" bind:confirm="fullWorkerConfirm" />
  145. </van-popup>
  146. </view>