LIJU hace 3 semanas
padre
commit
e3a22ce02b
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/views/mine/appointment-record/AppointmentRecords.vue

+ 3 - 2
src/views/mine/appointment-record/AppointmentRecords.vue

@@ -79,9 +79,10 @@ function canComment(row) {
 
 function goComment(row) {
   // 若已有编码,直接跳转;否则调用后端按 times 查询,补齐 doctorCode/deptCode
-  const hasCodes = !!(row.doctorCode && row.deptCode)
+  const hasCodes = !!(row.doctorCode && (row.unitCode || row.deptCode))
   if (hasCodes) {
-    const visitId = row.patientId + 'AND' + row.times + 'AND0AND' + row.doctorCode + 'AND' + row.deptCode
+    const dept = row.unitCode || row.deptCode
+    const visitId = row.patientId + 'AND' + row.times + 'AND0AND' + row.doctorCode + 'AND' + dept
     router.push('/doctorGradeByPush/' + visitId)
     return
   }