|
@@ -320,7 +320,8 @@ export default {
|
320
|
320
|
showError:false,
|
321
|
321
|
limit:10,
|
322
|
322
|
page:1,
|
323
|
|
- total:0
|
|
323
|
+ total:0,
|
|
324
|
+ minute:0,
|
324
|
325
|
}
|
325
|
326
|
},
|
326
|
327
|
methods:{
|
|
@@ -347,8 +348,10 @@ export default {
|
347
|
348
|
timetwo_type:this.form.timetwo_type,
|
348
|
349
|
timetwo_end:this.form.timetwo_end,
|
349
|
350
|
work_time:this.form.work_time,
|
350
|
|
- remarks:this.form.remarks
|
|
351
|
+ remarks:this.form.remarks,
|
|
352
|
+ minute:this.minute,
|
351
|
353
|
}
|
|
354
|
+ console.log("params",params)
|
352
|
355
|
saveDoctorSchedules(params).then(response=>{
|
353
|
356
|
if(response.data.state == 1){
|
354
|
357
|
var schedules = response.data.data.schedules
|
|
@@ -433,6 +436,7 @@ export default {
|
433
|
436
|
this.form.class_attributes = scheduleDetail.class_attributes
|
434
|
437
|
this.form.timeone_start = scheduleDetail.timeone_start
|
435
|
438
|
this.form.timeone_end = scheduleDetail.timeone_end
|
|
439
|
+ this.minute = scheduleDetail.minute
|
436
|
440
|
if(scheduleDetail.timeone_type == 0){
|
437
|
441
|
this.form.timeone_type = ""
|
438
|
442
|
}else{
|
|
@@ -475,6 +479,7 @@ export default {
|
475
|
479
|
work_time:this.form.work_time,
|
476
|
480
|
remarks:this.form.remarks,
|
477
|
481
|
user_org_id:this.form.user_org_id,
|
|
482
|
+ minute:this.minute,
|
478
|
483
|
}
|
479
|
484
|
this.$refs[formName].validate(valid=>{
|
480
|
485
|
if(valid){
|
|
@@ -552,6 +557,7 @@ export default {
|
552
|
557
|
var timeone = this.timeDifference(this.form.timeone_start,this.form.timeone_end)
|
553
|
558
|
timeone = timeone
|
554
|
559
|
}
|
|
560
|
+
|
555
|
561
|
if(this.form.timeone_type == 2){
|
556
|
562
|
var hour = this.form.timeone_end.split(":")
|
557
|
563
|
var hous = parseInt(hour[0]) + 24
|
|
@@ -575,6 +581,7 @@ export default {
|
575
|
581
|
}
|
576
|
582
|
|
577
|
583
|
longtime = timeone + timetwo
|
|
584
|
+ this.minute = longtime
|
578
|
585
|
this.form.work_time = this.timeStamp(longtime)
|
579
|
586
|
},
|
580
|
587
|
changtimeTwo(){
|
|
@@ -609,6 +616,8 @@ export default {
|
609
|
616
|
}
|
610
|
617
|
|
611
|
618
|
longtime = timeone + timetwo
|
|
619
|
+ console.log('longtime',longtime)
|
|
620
|
+ this.minute = longtime
|
612
|
621
|
this.form.work_time = this.timeStamp(longtime)
|
613
|
622
|
}
|
614
|
623
|
},
|