休假数据计算
continuous-integration/drone/push Build is failing Details

uat_us
wangxiaoshuang 2024-11-11 11:27:10 +08:00
parent db856c6aa9
commit 286ce9656c
4 changed files with 49 additions and 7 deletions

View File

@ -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
})
}

View File

@ -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 (

View File

@ -71,8 +71,6 @@
</template>
<script>
import {
getAuditState,
updateAuditResume,
getVacationList,
addOrUpdateVacation,
deleteVacation,

View File

@ -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 {