休假数据计算
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
db856c6aa9
commit
286ce9656c
|
@ -334,4 +334,12 @@ export function doctorSendEmail(param) {
|
|||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
// 获取医生是否休假
|
||||
export function getIsVacation(param) {
|
||||
return request({
|
||||
url: `/Vacation/getIsVacation`,
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
|
@ -113,7 +113,7 @@
|
|||
|
||||
<el-form-item :label="$t('system:Setting:label:On Vacation:')">
|
||||
<span style="font-size: 12px; margin-right: 20px">{{
|
||||
checkForm.InHoliday
|
||||
InHoliday
|
||||
}}</span>
|
||||
<el-button type="text" @click="handleView">{{
|
||||
$t('system:Setting:Planned Vacation')
|
||||
|
@ -217,6 +217,7 @@ import {
|
|||
getVacationList,
|
||||
addOrUpdateVacation,
|
||||
deleteVacation,
|
||||
getIsVacation,
|
||||
} from '@/api/reviewers'
|
||||
import { fmtDate } from '@/utils/formatter'
|
||||
export default {
|
||||
|
@ -259,6 +260,7 @@ export default {
|
|||
pageSize: 5,
|
||||
totalItems: 0,
|
||||
loading2: false,
|
||||
InHoliday: '',
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -270,8 +272,23 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.initForm()
|
||||
this.getIsVacation()
|
||||
},
|
||||
methods: {
|
||||
// 获取是否休假
|
||||
async getIsVacation() {
|
||||
try {
|
||||
let data = {
|
||||
DoctorId: this.doctorId,
|
||||
}
|
||||
let res = await getIsVacation(data)
|
||||
if (res.IsSuccess) {
|
||||
this.InHoliday = res.Result.IsVacation ? 'Yes' : 'No'
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
initForm() {
|
||||
if (!this.doctorId) return
|
||||
getAuditState(this.doctorId).then((res) => {
|
||||
|
@ -381,7 +398,7 @@ export default {
|
|||
.catch((action) => {})
|
||||
},
|
||||
closeDialog() {
|
||||
this.initForm()
|
||||
this.getIsVacation()
|
||||
},
|
||||
handleChange() {
|
||||
if (
|
||||
|
|
|
@ -71,8 +71,6 @@
|
|||
</template>
|
||||
<script>
|
||||
import {
|
||||
getAuditState,
|
||||
updateAuditResume,
|
||||
getVacationList,
|
||||
addOrUpdateVacation,
|
||||
deleteVacation,
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<span>
|
||||
<span>
|
||||
{{ $t('system:Setting:title:Vacation') }}
|
||||
{{ reviewerData.AuditView.InHoliday ? 'Yes' : 'No' }}
|
||||
{{ InHoliday }}
|
||||
</span>
|
||||
<el-button type="text" @click="handleView">
|
||||
{{ $t('system:Setting:Planned Vacation') }}
|
||||
|
@ -690,9 +690,12 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getDetail } from '@/api/reviewers'
|
||||
import {
|
||||
getDetail,
|
||||
getIsVacation,
|
||||
getDoctorCriterionFile,
|
||||
} from '@/api/reviewers'
|
||||
import { getAttachmentByType } from '@/api/attachment'
|
||||
import { getDoctorCriterionFile } from '@/api/reviewers'
|
||||
import holiday from './components/info/holiday.vue'
|
||||
export default {
|
||||
name: 'curriculumVitaePreview',
|
||||
|
@ -741,6 +744,7 @@ export default {
|
|||
loading: false,
|
||||
|
||||
holidayVisible: false,
|
||||
InHoliday: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -832,8 +836,23 @@ export default {
|
|||
this.getDetail()
|
||||
this.getResumeList()
|
||||
this.initSowList()
|
||||
this.getIsVacation()
|
||||
},
|
||||
methods: {
|
||||
// 获取是否休假
|
||||
async getIsVacation() {
|
||||
try {
|
||||
let data = {
|
||||
DoctorId: this.reviewerId,
|
||||
}
|
||||
let res = await getIsVacation(data)
|
||||
if (res.IsSuccess) {
|
||||
this.InHoliday = res.Result.IsVacation ? 'Yes' : 'No'
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
// 获取详情
|
||||
async getDetail() {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue