소스 검색

挂号不再校验流调

lighter 3 년 전
부모
커밋
6a603484d4
1개의 변경된 파일2개의 추가작업 그리고 13개의 파일을 삭제
  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)