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