瀏覽代碼

急诊号别只有分诊给自己的才能叫号

hurugang 2 年之前
父節點
當前提交
62cbba9579
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/main/resources/static/js/mz/clinic.js

+ 5 - 1
src/main/resources/static/js/mz/clinic.js

@@ -1712,7 +1712,11 @@ function loadCanClinicTableList(id, queryParams) {
                         //TODO 继续接诊需要新方法
                         return '<a title="继续接诊" onclick="clinicalReception(\'' + row.patientId + '\',\'' + row.serialNo + '\',' + row.reqType + ')" style="cursor: pointer">续诊</a> <a title="取消接诊" onclick="cancelClinic(\'' + row.patientId + '\',\'' + row.times + '\')" style="cursor: pointer">消诊</a>';
                     } else if (row.statusFlag == 1 || row.statusFlag == 2 || row.statusFlag == 3) {
-                        return '<a title="通知" onclick="clinicCallNumber(\'' + row.serialNo + '\')" style="cursor: pointer">通知</a>&nbsp;<a title="接诊" onclick="clinicalReception(\'' + row.patientId + '\',\'' + row.serialNo + '\',' + row.reqType + ')" style="cursor: pointer">接诊</a>';
+                       var userIdCode= localStorage.getItem("userIdCode");
+                        if(userIdCode===row.doctorCode){
+                            return '<a title="通知" onclick="clinicCallNumber(\'' + row.serialNo + '\')" style="cursor: pointer">通知</a>&nbsp;<a title="接诊" onclick="clinicalReception(\'' + row.patientId + '\',\'' + row.serialNo + '\',' + row.reqType + ')" style="cursor: pointer">接诊</a>';
+                        }
+                        return '<a title="接诊" onclick="clinicalReception(\'' + row.patientId + '\',\'' + row.serialNo + '\',' + row.reqType + ')" style="cursor: pointer">接诊</a>';
                     }
                 }
             }