Explorar o código

挂号不再校验流调

lighter %!s(int64=2) %!d(string=hai) anos
pai
achega
6a603484d4
Modificáronse 1 ficheiros con 2 adicións e 13 borrados
  1. 2 13
      src/views/hospital-service/appointment/AppointmentConfirm.vue

+ 2 - 13
src/views/hospital-service/appointment/AppointmentConfirm.vue

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