|
@@ -61,8 +61,7 @@
|
|
|
<script>
|
|
|
import store from '../../../store'
|
|
|
import { computed, onMounted, ref, watchEffect } from 'vue'
|
|
|
-import Cookies from 'js-cookie'
|
|
|
-import { getGhFee, hasValidCovidAssessment } from '../../../api/appointment'
|
|
|
+import { getGhFee } from '../../../api/appointment'
|
|
|
import router from '../../../router'
|
|
|
import { Toast } from 'vant'
|
|
|
export default {
|
|
@@ -97,17 +96,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
store.commit('SET_APPOINTMENTINFO', appointment)
|
|
|
- if (Cookies.get('appointmentDeptCode') !== '1260000' && Cookies.get('appointmentDeptCode') !== '1700001') {
|
|
|
- hasValidCovidAssessment(appointment.patientId, Cookies.get('appointmentDeptCode')).then((res) => {
|
|
|
- if (res === 'no valid assessment') {
|
|
|
- router.push(`/assessments/covid/${appointment.patientId}/register`)
|
|
|
- } else {
|
|
|
- router.push('/payAppointmentFee')
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- router.push('/payAppointmentFee')
|
|
|
- }
|
|
|
+ router.push('/payAppointmentFee')
|
|
|
}
|
|
|
|
|
|
const disableGhBtn = ref(true)
|