LIJU 3 settimane fa
parent
commit
e3a22ce02b

+ 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
   }