LIJU 3 周之前
父节点
当前提交
e3a22ce02b
共有 1 个文件被更改,包括 3 次插入2 次删除
  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
   }