瀏覽代碼

质控评分科室

luolei 4 年之前
父節點
當前提交
1268926250
共有 2 個文件被更改,包括 9 次插入6 次删除
  1. 1 2
      src/js/dept/deptScoreDetailControlDept.js
  2. 8 4
      src/js/qcListDept.js

+ 1 - 2
src/js/dept/deptScoreDetailControlDept.js

@@ -313,11 +313,10 @@ function renderTab(data,hisId,activePage){
         $(parent.document).find("#contentIframe").attr("src", "quexianDetailControlDept.html?deptName=" + deptName+"&deptId=" + deptId +"&from=2"+"&shijian=3"+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
     })
     $(".goHomeDetailB").click(function(){
-        let deptName = $(this).attr("data-dept")
         let deptC = $(this).attr("data-c")
         let deptIds = $(this).attr("dept-id")
         focusMenuItem("YH-BLZK-ZKPF");
-        $(parent.document).find("#contentIframe").attr("src","qcList.html?deptName="+deptName+"&from=2"+"&shijian=3&chengdu="+deptC+"&deptId="+deptIds+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
+        $(parent.document).find("#contentIframe").attr("src","qcListDept.html?deptName="+deptName+"&from=2"+"&shijian=3&chengdu="+deptC+"&deptId="+deptIds+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
     })
     // initScroll("deptScoreDetailControl","YX",1)
 }

+ 8 - 4
src/js/qcListDept.js

@@ -32,7 +32,7 @@ let deptNamePram = getUrlArgObjectNew("deptName",srcUrl)||""
 let docName = getUrlArgObjectNew("docName",srcUrl)||""
 let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
 let endDateParam = getUrlArgObjectNew("endDateParam",srcUrl)||""
-let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,nameTemp = "",
+let tabList = [], name = "", behospitalCode="",deptName = "",deptNameTemp="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,nameTemp = "",
   behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNameTemp="", doctorNum="", doctorNumTemp="",
   fpCheckStatus="",fpCheckStatusTemp="",fpCheckName="",fpCheckNameTemp="",qcCheckName="",qcCheckNameTemp="",qcCheckMain="",qcCheckMainTemp="",qcCheckStatus="",qcCheckStatusTemp="",fpCheckDateStart="",fpCheckDateEnd="",
   qcCheckDateStart="",qcCheckDateEnd="",data_desc=["leave_hospital_date"],data_asc=[];
@@ -59,9 +59,9 @@ if(docName){
     doctorName = docName
     $('.doctorInp').val(docName)
 }
-if(deptIdPram&&deptNamePram){
-    deptIdTemp = deptIdPram
-    deptId = deptIdPram
+if(deptNamePram){
+    deptIdTemp = deptId = deptIdPram
+    deptName = deptNameTemp=deptNamePram
     if(deptNamePram.length > 10){
         $('.selectDept').html(deptNamePram.substring(0,8)+'...')
     }else{
@@ -109,6 +109,7 @@ function getTabData(activePage,qcCheckMain){
         asc:data_asc,     //升序
         desc:data_desc,       //降序
         doctorName: doctorName,
+        deptName:deptName||'',
         doctorCode: doctorNum,
         leaveHosDateStart: isPlacefile==1?behosDateStart:'', //出院日期--开始时间
         leaveHosDateEnd: isPlacefile==1?behosDateEnd:'', //出院日期--结束时间
@@ -197,6 +198,7 @@ $(".filter").on("click", function(e){
     behospitalCode = behospitalCodeTemp
     level = levelTemp==="全部"?"":levelTemp
     deptId = deptIdTemp
+    deptName = deptNameTemp
     doctorName = doctorNameTemp
     fpCheckName = fpCheckNameTemp
     qcCheckName = qcCheckNameTemp
@@ -220,6 +222,7 @@ $(".abnormalClear").on("click", function(e){
     levelTemp="";  
     deptId=""; 
     deptIdTemp="";  
+    deptName=deptNameTemp="";  
     doctorName="";
     fpCheckName="";
     qcCheckName="" ;  
@@ -674,6 +677,7 @@ function bindDeptSelect(){
         const deptItemName = $(this).attr("data-name")
         const deptItemId = $(this).attr("data-id")
         deptIdTemp =deptItemId
+        deptName=deptNameTemp=deptItemName
         if(deptItemName.length > 10){
             $('.selectDept').html(deptItemName.substring(0,8)+'...')
         }else{