123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <!--index.wxml-->
- <view class="container">
- <view class="zhuyi">注意:修改服务地址后,服务信息可能会清空,须重新指派</view>
- <view class="common-module" style="margin-top:30rpx">
- <view style="height:40" bind:tap="closecus">
- <span class="cusfont">客户信息</span>
- <image class="tapdow" src="{{closecusType?'/static/images/arrow-up.png':'/static/images/arrow_down.png'}}"></image>
-
- </view>
- <view wx:if="{{!closecusType}}">
- <view class="input-block ">
- <view class="input-label">预约联系人</view>
- <input class="input-value disable-input" value="{{bookDetailInfo.bookName}}" placeholder="请输入(必填)" disabled placeholder-class="input-placeholder" />
- </view>
- <view class="input-block ">
- <view class="input-label">预约电话</view>
- <input class="input-value disable-input" disabled value="{{bookDetailInfo.bookTel}}" placeholder="请输入(必填)" placeholder-class="input-placeholder" />
- </view>
- <view class="input-block address-block">
- <view class="input-label">预约地址</view>
- <textarea class="input-value" value="{{bookDetailInfo.bookAddress}}" placeholder="请输入(必填)" bindinput="inputAddress" placeholder-class="input-placeholder" />
- <van-icon name="map-marked" size="48rpx" style="margin-top: -100rpx;width: 70rpx;margin-right: -20rpx;" color="#09afff" bindtap="goMap" />
- <span wx:if="{{gomaps}}" bind:tap="saveAddress" class="tjdz">提交地址</span>
- </view>
- </view>
- </view>
- <view class="common-module" style="margin-top:30rpx;">
- <view style="height:40;padding:5rpx" bind:tap="closeWorker">
- <span class="cusfont">服务信息</span><span style="margin-left: 300rpx;">服务人数:{{bookDetailInfo.assignedWorkerTotal}}/{{bookDetailInfo.workerTotal}}
- </span>
- <image class="tapdow" src="{{closecusType?'/static/images/arrow-up.png':'/static/images/arrow_down.png'}}"></image>
- </view>
- </view>
- <block wx:if="{{!closeWorker}}" wx:for="{{bookDetailInfo.workers}}" wx:for-item="item" wx:key="index" wx:for-index="index">
- <view class="fwz">服务者{{index+1}} ({{ item.skillName }},{{item.serviceLength}}小时,{{ item.sort!=null&&item.sort>0?'有序':'无序' }})</view>
- <view style="width: 100%;height: 80rpx;">
- <view class="{{item.type==null||item.type==0?'workerleft':'workerright'}}" style=" float: left;" bind:tap="workerTypeTab" data-type="0" data-index="{{index}}">全职</view>
- <view class="{{item.type!=null&&item.type==1?'workerleft':'workerright'}}" style=" float: right;" bind:tap="workerTypeTab" data-type="1" data-index="{{index}}">兼职</view>
- </view>
- <view class="common-module">
- <view class="select-block no-border">
- <view class="select-label">服务人员</view>
- <view disabled="{{item.type==null||item.type==0}}" class="select-value {{item.workerId==''?'default-value':''}}" placeholder="请选择" bindtap="selectWorker" data-index="{{index}}" >
- {{item.workerName==null?'':item.workerName}}
- </view>
- <van-icon wx-if="{{item.type!=null&&item.type==1}}" name="arrow" size="30rpx" color="#969799" />
- <span class="gaipai" wx:else bindtap="selectWorker" data-index="{{index}}">改派</span>
- </view>
- <view class="select-block">
- <view class="select-label">预约日期</view>
- <view bindtap="selectDateTime" data-index="{{index}}" class="select-value {{ orderInfo.date=='请选择(必填)'?'default-value':''}}">{{ item.bookDate==null?'':item.bookDate}}</view>
- <van-icon wx-if="{{item.type!=null&&item.type==1}}" name="arrow" size="30rpx" color="#969799" />
- </view>
- <view class="select-block">
- <view class="select-label">预约时间</view>
- <view data-index="{{index}}" bindtap="selectDate" class="select-value {{item.bookStartTime=='请选择(必填)'?'default-value':''}}">{{item.bookStartTime==null?'':item.bookStartTime}}-{{item.bookEndTime==null?'':item.bookEndTime}}</view>
- <van-icon wx-if="{{item.type!=null&&item.type==1}}" name="arrow" size="30rpx" color="#969799" />
- </view>
- <view class="select-block">
- <view class="select-label">技能</view> <!-- bindtap="skillTap"-->
- <view data-index="{{index}}" class="select-value {{item.skillName=='请选择(必填)'?'default-value':''}}">{{item.skillName==null?'':item.skillName}}</view>
- <!-- <van-icon wx-if="{{item.type!=null&&item.type==1}}" name="arrow" size="30rpx" color="#969799" /> -->
- </view>
- </view>
- </block>
-
- <view style="height: 50rpx;"></view>
-
- <view class="edit-btn" style="position:inherit;width:100%" bindtap="confTap">确认修改</view>
- <view style="height: 50rpx;"></view>
- <van-overlay show="{{showquanzhi}}" style="z-index: 20;position: absolute;" closeable bind:close="closesQuanzhi" position="bottom">
- <view class="common-module" style="margin-top:30px;">
- <view class="select-block">
- <view class="select-label">服务技能</view> <!-- bindtap="skillTapfullworker"-->
- <view data-index="{{tempIndex}}" class="select-value {{chooseRow.skillName=='请选择(必填)'?'default-value':''}}">{{chooseRow.skillName==null?'':chooseRow.skillName}}</view>
- <!-- <van-icon name="arrow" size="30rpx" color="#969799" /> -->
- </view>
- <view class="select-block">
- <view class="select-label">选择月份</view>
- <view bindtap="showMonthTap" class="select-value {{ chooseRow.date=='请选择(必填)'?'default-value':''}}">{{ currmonth}}</view>
- <van-icon name="arrow" size="30rpx" color="#969799" />
- </view>
- <view class="select-block no-border">
- <view class="select-label">服务人员</view>
- <vies class="input-value {{chooseRow.workerId==''?'default-value':''}}" placeholder="请选择" bindtap="selectFullWorker" >
- {{chooseRow.workerName}}
- </vies>
- <van-icon name="arrow" size="30rpx" color="#969799" />
- </view>
- <view style="color:red;font-size: 24rpx;">提示:选择月份、人员,点击日期可右滑,时段下滑</view>
- <view class="rili">
- <scroll-view class="scroll-y" scroll-x>
- <view style="display: -webkit-inline-box;">
- <view class="kuang" wx:for="{{workerScheduleList}}" wx:key="index" wx:for-index="index" style="{{workerDayTimeRange.day==item.day?'background:#F7F7F7;':''}}">
- <div bind:tap="chooseScheDay" data-index="{{index}}">
- <span class="kuangzi"> {{item.dayOfWeek}}</span>
- <span style="font-size: 24rpx;">{{item.day}}</span>
- </div>
- </view>
- <!-- <view class="kuang"><span class="kuangzi"> 周六</span><span>07月13</span></view> -->
- </view>
- </scroll-view>
- </view>
-
- <view style="height: 1000rpx;">
- <scroll-view scroll-y="true" style="height: 700rpx;" class="worker-scroll">
- <div wx:for="{{workerDayTimeRange.workerTimeRangeList}}" wx:key="index" wx:for-index="index">
- <view class="datetime" wx:if="{{item.isOccupy==false}}"
- style="{{chooseRow.timeRange!=null&&chooseRow.timeRange==item.timeRange&&chooseRow.bookDate!=null&&chooseRow.bookDate==workerDayTimeRange.formatDay?'':'background-color: white;'}}"
- bind:tap="chooseOccpy" data-index="{{index}}">
- <span style=" line-height: 80rpx;">{{item.timeRange}}</span>
- </view>
- <view class="nodatetime" style="{{item.occupyEventName==null?'line-height: 80rpx;':''}}" wx:else="{{item.isOccupy==true}}">
- <span>{{item.timeRange}}</span>
- <span wx:if="{{item.occupyEventName!=null}}" style="display: block;font-size: 20rpx;{{item.color=='red'?'color:red':''}}">{{item.occupyEventName}}</span>
- </view>
- <!-- <view class="datetime" style="background-color: white;">
- <span style=" line-height: 80rpx;">08:00-11:00</span>
- </view> -->
- </div>
- </scroll-view>
-
- </view>
-
- <view class="edit-btn" bindtap="confirmQuanzhi">确认改派</view>
- <view class="quxiao" bindtap="closesQuanzhi">取消</view>
- </view>
- </van-overlay>
- <van-popup show="{{scrollShow}}" closeable bind:close="closesCrollShow" position="bottom">
- <input style="margin-top:50px;" class="input-value input-placeholder" placeholder="请选择(输入姓名筛选)" bindinput="inputWorker" placeholder-class="input-placeholder" />
- <scroll-view wx:if="{{scrollShow}}" scroll-y="true" style="height: 400rpx;" class="worker-scroll">
- <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}}
- </view>
- </scroll-view>
- </van-popup>
- <van-popup show="{{dateTimeVisible}}" position="bottom">
- <van-datetime-picker title="选择日期" type="date" value="{{currentDate}}" format="YYYY-MM-DD" bind:cancel="hidePicker" bind:confirm="onDateTimeConfirm" />
- </van-popup>
- <van-popup show="{{selectVisible}}" position="bottom">
- <van-picker show-toolbar title="服务时段" columns="{{ timeList }}" bind:cancel="onPickerCancel" bind:confirm="onPickerConfirm" />
- </van-popup>
- <van-popup show="{{skillVisible}}" style="z-index: 101;" position="bottom">
- <van-picker show-toolbar title="技能" columns="{{ bookDetailInfo.skillWorkerTotalList }}" value-key="skillName" bind:cancel="skillTapCancel" bind:confirm="skillTapConfirm" />
- </van-popup>
- <!-- 全职---选月份 -->
- <van-popup show="{{showMonth}}" position="bottom">
- <van-picker show-toolbar title=" " columns="{{ monthArray }}" bind:cancel="monthCancel" bind:confirm="monthConfirm" />
- </van-popup>
- <van-popup show="{{showFullworker}}" style="z-index: 101;" position="bottom">
- <van-picker show-toolbar title="全职人员" columns="{{ fullWorkers }}" value-key="workerName" bind:cancel="fullWorkerCancel" bind:confirm="fullWorkerConfirm" />
- </van-popup>
- </view>
|