瀏覽代碼

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

lighter 2 年之前
父節點
當前提交
7511da9b71
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/hospital-service/appointment/DoctorArrangement.vue

+ 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 !== '下午') {