ソースを参照

改善统计内页接口对接

zhouna 3 年 前
コミット
a48aabb1d5

+ 1 - 0
src/css/dataAnalysis/statisticsDetail.less

@@ -50,6 +50,7 @@ h2{
     min-width: 1090px;
     th,td{
         padding:5px 10px;
+        text-align: center;
     }
     th{
         white-space: nowrap;

+ 2 - 2
src/html/dataAnalysis/improveStatistics.html

@@ -30,11 +30,11 @@
                 </span>
                 <span class="filterItem typeFilter">
                     <span>缺陷名称:</span>
-                    <input class="moduleItemInp" id="casesName" type="text" placeholder="缺陷名称" autocomplete="off">
+                    <input class="moduleItemInp" id="entryName" type="text" placeholder="缺陷名称" autocomplete="off">
                 </span>
                 <span class="filterItem">
                     <span>模块名称:</span>
-                    <input class="moduleItemInp" id="entryName" type="text" placeholder="模块名称" autocomplete="off">
+                    <input class="moduleItemInp" id="casesName" type="text" placeholder="模块名称" autocomplete="off">
                 </span>
                 <span class="filterItem typeFilter clearfix dataSelectLight">
                     <span class="fl">选择日期:</span>

+ 13 - 41
src/html/dataAnalysis/statisticsDetail.html

@@ -23,11 +23,9 @@
                         <!--<input type="text" class="selectDept canEditDept" value="全部">
                         <ul class="deptList filterDropList"></ul>-->
                     </span>
-                    <span class="filterItem typeFilter clearfix" >
-                        <span class="fl">出院日期:</span>
-                        <span class="datapickerBox fl"><input type="text" placeholder="请选择时间" id="datepicker" autocomplete="off" readonly /></span>
-                        <span  class="divide fl">-</span>
-                        <span class="datapickerBox fl"><input type="text" placeholder="请选择时间" id="datepicker2"  autocomplete="off" readonly/></span>
+                    <span class="filterItem typeFilter">
+                        <span>病人住院序号:</span>
+                        <input class="patientNumInp" style="width: 148px;" type="text" placeholder="请输入病人住院序号">
                     </span>
                     <span class="filterItem">
                         <span>病历等级:</span>
@@ -50,10 +48,6 @@
                         <span>病人姓名:</span>
                         <input class="patientNameInp" type="text" placeholder="请输入病人姓名">
                     </span>
-                    <span class="filterItem typeFilter">
-                        <span>病人住院序号:</span>
-                        <input class="patientNumInp" style="width: 148px;" type="text" placeholder="请输入病人住院序号">
-                    </span>
                     <span class="filterItem doctorFilter">
                         <span>医生姓名:</span>
                         <input class="doctorInp" type="text" placeholder="请输入医生姓名">
@@ -62,43 +56,21 @@
                         <span>医生工号:</span>
                         <input class="doctorNumInp" type="text" placeholder="请输入医生工号">
                     </span>
-                    <span class="filterItem qcFiliterItem">
-                        <span>病历核查状态:</span>
-                        <span class="qcSelectCheck">全部</span>
-                        <ul class="checkList filterDropList qcCheckList">
-                            <Li class="qcCheckItem" data-name="全部" data-id="">全部</Li>
-                            <Li class="qcCheckItem" data-name="未核查" data-id="0">未核查</Li>
-                            <Li class="qcCheckItem" data-name="已核查" data-id="1">已核查</Li>
-                        </ul>
-                    </span>
-                    <span class="filterItem doctorFilter qcFiliterItem">
-                        <span>病历核查人:</span>
-                        <input class="qcCheckPeople" type="text" placeholder=" 请输入核查人">
-                    </span>
-                    <span class="filterItem typeFilter clearfix qcFiliterItem" >
-                        <span class="fl">病历核查时间:</span>
-                        <span class="datapickerBox fl"><input type="text" placeholder="请选择时间" id="datepickerQc1" autocomplete="off" readonly /></span>
-                        <span  class="divide fl">-</span>
-                        <span class="datapickerBox fl"><input type="text" placeholder="请选择时间" id="datepickerQc2"  autocomplete="off" readonly/></span>
-                    </span>
-                    <span class="filterItem doctorFilter">
-                        <span>缺陷名称:</span>
-                        <span class="selectDefect"> 
-                        
-                        </span>
-                        <!-- <input class="doctorInp" type="text" placeholder="请输入医生姓名"> -->
-                    </span>
-                    <span class="filterItem doctorFilter qcFiliterItem">
-                        <span>主诊断:</span>
-                        <input class="qcCheckMain" type="text" placeholder="请输入主诊断">
-                    </span>
                 </div>
             </div>
             <div class="overAuto">
                 <table class="qctable">
                     <thead>
-                    <tr class="tabOpera"></tr>
-                    <tr class="tabTitle"></tr>
+                    <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="name">病人姓名</th>
+                    <th class="beHospitalId textCenter" code="age">年龄</th>
+                    <th class="beHospitalId textCenter" code="behospitalDate">入院日期</th>
+                    <th class="beHospitalId textCenter" code="leaveHospitalDate">出院日期</th>
+                    <th class="beHospitalId textCenter" code="behDoctorName">主管医生</th>
+                    <th class="beHospitalId textCenter" code="behDeptName">科室</th>
+                    <th class="beHospitalId textCenter" code="gradeTime">评分时间</th>
                     </thead>
                     <tbody class="tbody"></tbody>
                     <tfoot></tfoot>

+ 1 - 0
src/js/api.js

@@ -201,6 +201,7 @@ const api = {
   getQcClickByExport:'/qc/analysis/getQcClickByExport',   //临床质控使用统计-导出
   getQcClickDept:'/qc/analysis/getQcClickInnerPage',   //临床质控使用统计(科室)
   getQcClickByDeptExport:'/qc/analysisDept/getQcClickByDeptExport',////临床质控使用统计(科室)-导出
+  getQcClickDeptList:'/qc/analysis/getQcClickDeptList',		//临床质控使用统计科室列表
 
 }
 const ywCheckApi = {

+ 13 - 12
src/js/dataAnalysis/improveStatistics.js

@@ -18,7 +18,7 @@ listenScroll()
 let isPlacefile = getCookie('isPlacefile')||1
 
 let deptName="",deptNameTemp="", behospitalCode="", behospitalCodeTemp="",deptId="",deptIdTemp="",casesName='',entryName='',
-  data_desc=["improveleNum"],data_asc=[];
+  data_desc="improveleNum",data_asc="";
   let srcUrl = $("#contentIframe",parent.document).attr("src")
   from = getUrlArgObjectNew("from",srcUrl)||""
   let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
@@ -61,13 +61,13 @@ $(function() {
   $("th[code]").on("click",function(e){
 	const code=$(this).attr("code");
 	if(data_asc==code){
-	  data_desc=[code];
-	  data_asc=[];
+	  data_desc=code;
+	  data_asc="";
 	  $("th[code]").removeClass("asc desc");
 	  $(this).addClass("desc");
 	}else{
-	  data_desc=[];
-	  data_asc=[code];
+	  data_desc="";
+	  data_asc=code;
 	  $("th[code]").removeClass("asc desc");
 	  $(this).addClass("asc");
 	}
@@ -75,8 +75,8 @@ $(function() {
   });
   //重置
   $(".abnormalClear").click(function(){
-	data_desc=[]
-	data_asc=[]
+	data_desc=""
+	data_asc=""
 	setDatePicker($("#datepicker"),$("#datepicker2"),"default");
 	$("#casesName,#entryName").val("");
 	$("th[code]").removeClass("desc asc");
@@ -102,7 +102,7 @@ $(function() {
   })
 });
 
-function getFilterParam(){
+function getFilterParam(current){
   const param = {
 	"isPlacefile":isPlacefile,
 	"deptId": deptName=="全部"?"":deptId||"", //科室id
@@ -112,7 +112,8 @@ function getFilterParam(){
 	"asc":data_asc,     //升序
 	"desc":data_desc,       //降序
 	"startDate":startDateParam,
-	"endDate":endDateParam
+	"endDate":endDateParam,
+	current
   }
   return param;
 }
@@ -134,7 +135,7 @@ function getFilterParam(){
     return false;
 }*/
 function getTabData(activePage){
-    const param=getFilterParam();
+    const param=getFilterParam(activePage);
     if(param.start > param.end){
         $.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
         console.log('开始时间',dateStatrt)
@@ -188,11 +189,11 @@ function renderTab(data,hisId,activePage){
         let deptName = $(this).parents("tr").attr("data-dept")
         let deptId = $(this).parents("tr").attr("data-deptid")
 	  	let typeMark = $(this).attr("data-type")
-        $(parent.document).find("#contentIframe").attr("src", "statisticsDetail.html?deptName=" + deptName + "&deptId=" + deptId + "&casesId=" + casesId+"&defectName="+casesName+"&typeMark="+typeMark)
+        $(parent.document).find("#contentIframe").attr("src", "statisticsDetail.html?deptName=" + deptName + "&deptId=" + deptId + "&casesId=" + casesId+"&defectName="+casesName+"&typeMark="+typeMark+"&startDate="+startDateParam+"&endDate="+endDateParam)
     })
 }
 function getDeptList(val){
-    post(api.getDeptList,{inputStr:val=="全部"?"":val||""}).then(res =>{
+    post(api.getQcClickDeptList,{inputStr:val=="全部"?"":val||""}).then(res =>{
         if(res.data.code == '0'){
            const deptList = res.data.data||[]
            rendeDeptList(deptList)

ファイルの差分が大きいため隠しています
+ 175 - 907
src/js/dataAnalysis/statisticsDetail.js