瀏覽代碼

改善统计科室接口对接

zhouna 3 年之前
父節點
當前提交
712f1885c4
共有 2 個文件被更改,包括 14 次插入23 次删除
  1. 1 1
      src/html/dataAnalysis/statisticsDetail.html
  2. 13 22
      src/js/dataAnalysis/statisticsDetail.js

+ 1 - 1
src/html/dataAnalysis/statisticsDetail.html

@@ -63,7 +63,7 @@
                     <thead>
                     <th class="moduleName" style="width: 65px;" code="level">病历等级</th>
                     <th class="beHospitalId textCenter" code="scoreRes">病历得分</th>
-                    <th class="beHospitalId textCenter" code="behospitalCode">病案号</th>
+                    <th class="beHospitalId textCenter" code="fileCode">病案号</th>
                     <th class="beHospitalId textCenter" code="name">病人姓名</th>
                     <th class="beHospitalId textCenter" code="age">年龄</th>
                     <th class="beHospitalId textCenter" code="behospitalDate">入院日期</th>

+ 13 - 22
src/js/dataAnalysis/statisticsDetail.js

@@ -38,33 +38,24 @@ listenScroll()
 let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="",
 	nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", deptName="", deptNameTemp="",doctorNum="",doctorNameTemp="",doctorNumTemp="",
 	data_desc="leaveHospitalDate",data_asc="";
+//科室传参
+if(deptIdPram&&deptNamePram){
+  deptId=deptIdTemp = deptIdPram
+  deptName = deptNameTemp = deptNamePram
+  $('.selectDept').text(deptNamePram)
+  $('.selectDept ').attr('title',deptNamePram)
+}else{
+  deptId=deptListDept[0]&&deptListDept[0].deptId;
+  deptName=deptListDept[0]&&deptListDept[0].deptName;
+  deptNameTemp=deptListDept[0]&&deptListDept[0].deptName;
+  deptIdTemp=deptListDept[0]&&deptListDept[0].deptId;
+  $('.selectDept').val(deptName)
+}
 $(function() {
   $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
   if(isPlacefile != 1){
 	data_desc="behospitalDate"
   }
-  /*if(defectName){
-	casesEntryName=defectName
-	$('.selectDefect').html(casesEntryName)
-  }*/
-  if(docName){
-	doctorNameTemp = docName
-	doctorName = docName
-	$('.doctorInp').val(docName)
-  }
-  if(deptIdPram&&deptNamePram){
-	deptIdTemp = deptIdPram = deptIdPram
-	deptName = deptNameTemp = deptNamePram
-	$('.selectDept').text(deptNamePram)
-	$('.selectDept ').attr('title',deptNamePram)
-	$(".deptList").css("display", "none")
-  }else{
-	deptId=deptListDept[0]&&deptListDept[0].deptId;
-	deptName=deptListDept[0]&&deptListDept[0].deptName;
-	deptNameTemp=deptListDept[0]&&deptListDept[0].deptName;
-	deptIdTemp=deptListDept[0]&&deptListDept[0].deptId;
-	$('.selectDept').val(deptName)
-  }
   $(".export").css('display','none')
   $(".partTitle .titlePic ").html(`<a class="consoleP" href="improveStatistics.html">条目缺陷改善统计 / </a>病历列表`)