Kaynağa Gözat

挂号信息显示跟随医生坐班科室

lighter 2 yıl önce
ebeveyn
işleme
7511da9b71

+ 3 - 2
src/views/hospital-service/appointment/DoctorArrangement.vue

@@ -173,6 +173,7 @@ import { genTextPortrait } from '../../../utils/portrait'
 import { getOneWeekText, getNextSevenDate } from '../../../utils/date'
 import { showToast } from 'vant'
 import {fetchDoctorComments} from "../../../api/comment";
+import Cookies from 'js-cookie'
 
 const router = useRouter()
 const deptCode = router.currentRoute.value.params.dept
@@ -215,8 +216,8 @@ const pmSectionLabel = [
 ]
 const beforeConfirmAppointment = (item) => {
   currentAppointmentItem.value = item
-  currentAppointmentItem.value.deptCode = data.doctorInfo.deptCode
-  currentAppointmentItem.value.deptName = data.doctorInfo.deptName
+  currentAppointmentItem.value.deptCode = Cookies.get('appointmentDeptCode')
+  currentAppointmentItem.value.deptName = Cookies.get('appointmentDeptName')
   currentAppointmentItem.value.date = data.date
   currentAppointmentItem.value.week = weekText.value
   if (item.ampm !== '上午' && item.ampm !== '下午') {