Browse Source

稽查跳转修改

morphone1995 4 years ago
parent
commit
cf2c522aa4
3 changed files with 12 additions and 4 deletions
  1. 1 0
      src/js/api.js
  2. 10 3
      src/js/uccDetail.js
  3. 1 1
      src/js/uncorrectedCopy.js

+ 1 - 0
src/js/api.js

@@ -118,6 +118,7 @@ const api = {
     getPage:'/qc/doctoradvice/getPage',//医嘱信息
     getCheckPage:'qc/medLisInfo/getCheckPage',//检查信息
     unModifyMRPageExport:'/console/export/unModifyMRPageExport',//未整改病历详情页导出
+    medicalCheckInnerExport:'/console/export/medicalCheckInnerExport',//稽查病历详情页导出
     unModifyMRStatisticsExport:'/console/export/unModifyMRStatisticsExport', //未整改病历统计导出
     reHos31DaysPageExport:'/console/export/reHos31DaysPageExport', //31天再入院统计导出
     qcCheckMRPageExport:'/console/export/qcCheckMRPageExport',  //质控核查质控评分页导出

+ 10 - 3
src/js/uccDetail.js

@@ -34,6 +34,7 @@ let defectName = getUrlArgObjectNew("defectName",srcUrl)||"";
 let casesId = getUrlArgObjectNew("casesEntryId",srcUrl)||"";
 let isSingleReject = getUrlArgObjectNew("isSingleReject",srcUrl)||""
 let deptListDept = JSON.parse(getCookie("deptList"))||[]
+let isInspection = getUrlArgObjectNew("isInspection", srcUrl) || ""
 let currentPage;
 listenScroll()
 $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
@@ -1189,7 +1190,7 @@ $(function($){
             $.alerModal({"message":`最多只能导出${exportTime}天`,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         }
-        const param = {
+        let param = {
             behospitalCode: behospitalCode,            
             patName: name, //病人姓名
             level:level,//病历等级
@@ -1215,8 +1216,14 @@ $(function($){
             mrTimeStart: fpCheckDateStart.replace(/\//g,'-'), //首页核查起始时间
             mrTimeEnd: fpCheckDateEnd.replace(/\//g,'-'), //首页核查截止时间
         }
-        expJson(api.unModifyMRPageExport,param).then(res =>{
-            downloadExportedData(res.data, $(".partTitle").text()+".xls")
+        if (isInspection) {
+            param = { ...param, casesEntryName: ''}
+        }
+        // expJson(api.unModifyMRPageExport,param).then(res =>{
+        //     downloadExportedData(res.data, $(".partTitle").text()+".xls")
+        // })
+        expJson(!isInspection ? api.unModifyMRPageExport : api.medicalCheckInnerExport , param).then(res => {
+            downloadExportedData(res.data, $(".partTitle").text() + ".xls")
         })
     })
 });

+ 1 - 1
src/js/uncorrectedCopy.js

@@ -172,7 +172,7 @@ function renderTab(data,hisId,activePage){
     let docName=$(this).attr("data-doc");
     name=name==="全院"?"全部":name;
     let id=$(this).attr("dept-id");
-    $(parent.document).find("#contentIframe").attr("src","uccDetail.html?from=4&deptName="+name+"&deptId="+id+"&casesEntryId="+casesId+"&defectName="+casesName+"&startDate="+startDateParam+"&endDate="+endDateParam+"&docName="+docName)
+    $(parent.document).find("#contentIframe").attr("src", "uccDetail.html?from=4&deptName=" + name + "&deptId=" + id + "&casesEntryId=" + casesId + "&defectName=" + casesName + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&isInspection=true")
   })
   // initScroll("partDetailControl","YX",1)
 }