From 286ce9656c9ceefaebce25bee9bc76201515d49f Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 11 Nov 2024 11:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=91=E5=81=87=E6=95=B0=E6=8D=AE=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/reviewers.js | 8 ++++++ src/views/reviewers/components/Setting.vue | 21 ++++++++++++++-- .../components/info/holiday.vue | 2 -- .../reviewers/curriculumVitae/preview.vue | 25 ++++++++++++++++--- 4 files changed, 49 insertions(+), 7 deletions(-) diff --git a/src/api/reviewers.js b/src/api/reviewers.js index 9e6ed318..d840a2ca 100644 --- a/src/api/reviewers.js +++ b/src/api/reviewers.js @@ -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 + }) } \ No newline at end of file diff --git a/src/views/reviewers/components/Setting.vue b/src/views/reviewers/components/Setting.vue index 4899a195..bd8234c2 100644 --- a/src/views/reviewers/components/Setting.vue +++ b/src/views/reviewers/components/Setting.vue @@ -113,7 +113,7 @@ {{ - checkForm.InHoliday + InHoliday }} {{ $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 ( diff --git a/src/views/reviewers/curriculumVitae/components/info/holiday.vue b/src/views/reviewers/curriculumVitae/components/info/holiday.vue index d62d5575..53d7744b 100644 --- a/src/views/reviewers/curriculumVitae/components/info/holiday.vue +++ b/src/views/reviewers/curriculumVitae/components/info/holiday.vue @@ -71,8 +71,6 @@