|
|
|
|
@ -5,8 +5,7 @@
|
|
|
|
|
:is-show.sync="isShow"
|
|
|
|
|
:width='72'
|
|
|
|
|
title="排班"
|
|
|
|
|
type="normal"
|
|
|
|
|
@reset="pickType = 1,dateStartPick = '',dateEndPick = ''">
|
|
|
|
|
type="normal">
|
|
|
|
|
<template>
|
|
|
|
|
<el-row type="flex" align="middle">
|
|
|
|
|
<el-col :span="4" :push="1">
|
|
|
|
|
@ -83,7 +82,7 @@
|
|
|
|
|
<div>{{timeFormat(date)}}日</div>
|
|
|
|
|
<template v-if="data.type === 'current-month'">
|
|
|
|
|
<template v-if="scheduleCount(data.day)">
|
|
|
|
|
<div class="schedule-time" @click="datePick(date,data,2,scheduleCount(data.day)[0])">{{scheduleCount(data.day)[0].nurse_id}} {{timeFormat(scheduleCount(data.day)[0].start_time,'{h}:{m}')}}~{{timeFormat(scheduleCount(data.day)[0].end_time,'{h}:{m}')}}</div>
|
|
|
|
|
<div class="schedule-time" @click="datePick(date,data,2,scheduleCount(data.day)[0])">{{scheduleCount(data.day)[0].nurse.name}} {{timeFormat(scheduleCount(data.day)[0].start_time,'{h}:{m}')}}~{{timeFormat(scheduleCount(data.day)[0].end_time,'{h}:{m}')}}</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<i class="el-icon-plus" style="padding:10px;" @click="datePick(date,data,1)"></i>
|
|
|
|
|
@ -175,9 +174,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
datePick(date,data,type,schedule){
|
|
|
|
|
console.log(date,data)
|
|
|
|
|
this.date = data.day
|
|
|
|
|
if(data.type === 'current-month'){
|
|
|
|
|
if(type === 1){
|
|
|
|
|
this.date = data.day
|
|
|
|
|
this.isShowTime = true
|
|
|
|
|
}
|
|
|
|
|
if(type === 2){
|
|
|
|
|
@ -199,16 +198,6 @@ export default {
|
|
|
|
|
this.detail = res.detail
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
datePicked(data,date){
|
|
|
|
|
if(this.pickType === 1){
|
|
|
|
|
this.dateStartPick = data.day
|
|
|
|
|
}
|
|
|
|
|
if(this.pickType === 2){
|
|
|
|
|
this.dateEndPick = data.day
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
ageComputed() {
|
|
|
|
|
|