|
@@ -19,6 +19,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</u-grid-item>
|
|
</u-grid-item>
|
|
|
</u-grid>
|
|
</u-grid>
|
|
|
|
|
+ <view class="serobReminder">
|
|
|
|
|
+ <text>请注意,一人一号</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="flex-col group " v-for="(item, index) in orderParam.childService">
|
|
<view class="flex-col group " v-for="(item, index) in orderParam.childService">
|
|
@@ -242,6 +245,7 @@
|
|
|
if (item.select) {
|
|
if (item.select) {
|
|
|
this.orderParam.childService = this.orderParam.childService.filter(selectServiceObject =>
|
|
this.orderParam.childService = this.orderParam.childService.filter(selectServiceObject =>
|
|
|
selectServiceObject.serviceObjectId !== item.id)
|
|
selectServiceObject.serviceObjectId !== item.id)
|
|
|
|
|
+ item.select = !item.select
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
|
this.$api.getServicePersonTime({
|
|
this.$api.getServicePersonTime({
|
|
@@ -389,32 +393,32 @@
|
|
|
e.select=false
|
|
e.select=false
|
|
|
})
|
|
})
|
|
|
items[index2].select =true // 新选中的时间
|
|
items[index2].select =true // 新选中的时间
|
|
|
- let selectServiceObject = this.orderParam.childService[index] //旧的时间
|
|
|
|
|
- this.orderParam.childService.forEach(i=>{
|
|
|
|
|
- if (selectServiceObject.serviceUserId === -1){
|
|
|
|
|
- i.serviceTimeList.forEach(t=>{
|
|
|
|
|
- if (t.label == selectServiceObject.serviceStartTime && !t.select ){
|
|
|
|
|
- console.log('-1----------加1')
|
|
|
|
|
- t.total +=1
|
|
|
|
|
- }
|
|
|
|
|
- if (t.label == items[index2].serviceStartTime && i.serviceObjectId != selectServiceObject.serviceObjectId){
|
|
|
|
|
- console.log('-1----------减1')
|
|
|
|
|
- t.total -=1
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }else {
|
|
|
|
|
- if (selectServiceObject.serviceUserId == i.serviceUserId){
|
|
|
|
|
- i.serviceTimeList.forEach(t=>{
|
|
|
|
|
- if (t.label == selectServiceObject.serviceStartTime && !t.select ){
|
|
|
|
|
- t.total +=1
|
|
|
|
|
- }
|
|
|
|
|
- if (t.label == items[index2].serviceStartTime && i.serviceObjectId != selectServiceObject.serviceObjectId){
|
|
|
|
|
- t.total -=1
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ // let selectServiceObject = this.orderParam.childService[index] //旧的时间
|
|
|
|
|
+ // this.orderParam.childService.forEach(i=>{
|
|
|
|
|
+ // if (selectServiceObject.serviceUserId === -1){
|
|
|
|
|
+ // i.serviceTimeList.forEach(t=>{
|
|
|
|
|
+ // if (t.label == selectServiceObject.serviceStartTime && !t.select ){
|
|
|
|
|
+ // console.log('-1----------加1')
|
|
|
|
|
+ // t.total +=1
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if (t.label == items[index2].serviceStartTime && i.serviceObjectId != selectServiceObject.serviceObjectId){
|
|
|
|
|
+ // console.log('-1----------减1')
|
|
|
|
|
+ // t.total -=1
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }else {
|
|
|
|
|
+ // if (selectServiceObject.serviceUserId == i.serviceUserId){
|
|
|
|
|
+ // i.serviceTimeList.forEach(t=>{
|
|
|
|
|
+ // if (t.label == selectServiceObject.serviceStartTime && !t.select ){
|
|
|
|
|
+ // t.total +=1
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if (t.label == items[index2].serviceStartTime && i.serviceObjectId != selectServiceObject.serviceObjectId){
|
|
|
|
|
+ // t.total -=1
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
this.orderParam.childService[index].serviceStartTime = items[index2].label
|
|
this.orderParam.childService[index].serviceStartTime = items[index2].label
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
},
|
|
},
|