Browse Source

Merge branch 'version1.3.7' into test

zhangxc 5 years ago
parent
commit
694cdb55b8
2 changed files with 8 additions and 1 deletions
  1. 2 0
      src/html/qcScore.html
  2. 6 1
      src/js/qcScore.js

+ 2 - 0
src/html/qcScore.html

@@ -42,7 +42,9 @@
         <span>科室:${behDeptName}</span>
         <span class="level">病历等级:${level}</span>
         <span class="score">病历得分:${scoreRes}</span>
+        {{if hasCheck}}
         <span class="check">${checkState===1 ? "重新核查" : "核查"}</span>
+        {{/if}}
     </script>
     <script type="text/html" id="tableTmpl">
          {{if k==="出院诊断"}}

+ 6 - 1
src/js/qcScore.js

@@ -123,7 +123,12 @@ function getRecordDetail(){
 
 //填充患者信息
 function initPatientInfo(data){
-  const obj=Object.assign({},data,{age:!global_age||global_age=="null"?"-":global_age,checkState:global_check});
+  let hasCheck = false
+  if(hasData("FUNC000014")){
+    hasCheck = true
+  }
+  const obj=Object.assign({},data,{age:!global_age||global_age=="null"?"-":global_age,hasCheck,checkState:global_check});
+  
   $("#infoTmpl").tmpl(obj).appendTo("#patientInfo");
   $(".check").on("click", function(){
     checkQc()