|
@@ -70,7 +70,6 @@ import { computed, onMounted, reactive, ref, watchEffect } from 'vue'
|
|
|
import Cookies from 'js-cookie'
|
|
|
import { getGhFee, hasDoneCovidAssessment } from '../../../api/appointment'
|
|
|
import router from '../../../router'
|
|
|
-import { Dialog } from 'vant'
|
|
|
export default {
|
|
|
name: 'AppointConfirm',
|
|
|
setup() {
|
|
@@ -97,20 +96,27 @@ export default {
|
|
|
return '还可添加' + (5 - patientCards.value.length) + '人'
|
|
|
})
|
|
|
const confirmAppointment = () => {
|
|
|
- hasDoneCovidAssessment(data.appointment.patientId).then((res) => {
|
|
|
- if (res === 'no valid assessment') {
|
|
|
- router.push('/assessments/covid/' + data.appointment.patientId)
|
|
|
- } else {
|
|
|
- data.appointment.week = data.week
|
|
|
- patientCards.value.forEach((item) => {
|
|
|
- if (item.patientId === data.appointment.patientId) {
|
|
|
- data.appointment.patientName = item.name
|
|
|
- }
|
|
|
- })
|
|
|
- store.commit('SET_APPOINTMENTINFO', data.appointment)
|
|
|
- router.push('/payAppointmentFee')
|
|
|
+ if (Cookies.get('appointmentDeptCode') !== '1260000') {
|
|
|
+ hasDoneCovidAssessment(data.appointment.patientId).then((res) => {
|
|
|
+ if (res === 'no valid assessment') {
|
|
|
+ router.push('/assessments/covid/' + data.appointment.patientId)
|
|
|
+ } else {
|
|
|
+ toPayPage()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ toPayPage()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const toPayPage = () => {
|
|
|
+ data.appointment.week = data.week
|
|
|
+ patientCards.value.forEach((item) => {
|
|
|
+ if (item.patientId === data.appointment.patientId) {
|
|
|
+ data.appointment.patientName = item.name
|
|
|
}
|
|
|
})
|
|
|
+ store.commit('SET_APPOINTMENTINFO', data.appointment)
|
|
|
+ router.push('/payAppointmentFee')
|
|
|
}
|
|
|
const disableGhBtn = ref(true)
|
|
|
onMounted(() => {
|