瀏覽代碼

关键条目缺陷占比调整及样式

zhouna 5 年之前
父節點
當前提交
83152f3863
共有 5 個文件被更改,包括 52 次插入35 次删除
  1. 16 1
      src/css/keyItemFlawControl.less
  2. 13 13
      src/html/keyItemFlawControl.html
  3. 14 11
      src/js/itemDefectDetail.js
  4. 9 8
      src/js/keyItemFlawControl.js
  5. 0 2
      src/js/qcList.js

+ 16 - 1
src/css/keyItemFlawControl.less

@@ -4,7 +4,10 @@
   width: 100%;
   height: 100%;
   overflow: auto;
-  background-color: @disColor;
+  background-color: #fff;
+  .partTitle{
+    border-bottom: 10px @disColor solid;
+  }
 }
 .partDetailControl {
   .dayFilter {
@@ -41,6 +44,8 @@
   }
   .main-body{
     .main-body-com;
+    border: none;
+    border-left: 10px @disColor solid;
     min-width: 1090px;
     /*width: 100%;*/
   }
@@ -52,7 +57,17 @@
     }
     th{
       white-space: nowrap;
+      &.textBreak{
+        padding: 5px 10px;
+        /*white-space: normal;
+        width: 120px;*/
+        &:after{
+          display: block;
+          margin: auto;
+        }
+      }
     }
+
     td{
       white-space: nowrap;
     }

+ 13 - 13
src/html/keyItemFlawControl.html

@@ -35,23 +35,23 @@
             <span class="filter">查询</span>
             <span class="filterclear abnormalClear">重置</span>
         </div>
-        <div>
+        <div style="display: table;padding-right: 20px;">
             <table>
                 <thead>
                 <th class="moduleName" style="width: 65px;">序号</th>
                 <th class="beHospitalId textCenter" code="deptName">科室名称</th>
-                <th class="beHospitalId textCenter" code="consultationNum">未在24小时内完成会诊数</th>
-                <th class="beHospitalId textCenter" code="consultationPercentStr">未在24小时内完成会诊率</th>
-                <th class="beHospitalId textCenter" code="operationNameNum">手术记录名称不匹配数</th>
-                <th class="beHospitalId textCenter" code="operationNamePercentStr">手术记录名称不匹配率</th>
-                <th class="beHospitalId textCenter" code="operation15MinuteNum">术后首程未在15分钟内完成数</th>
-                <th class="beHospitalId textCenter" code="operation15MinutePercentStr">术后首程未在15分钟内完成率</th>
-                <th class="beHospitalId textCenter" code="operationTimeNum">病案首页手术时间不匹配数</th>
-                <th class="beHospitalId textCenter" code="operationTimePercentStr">病案首页手术时间不匹配率</th>
-                <th class="beHospitalId textCenter" code="crisisNum">未在6小时内书写危急值记录数</th>
-                <th class="beHospitalId textCenter" code="crisisPercentStr">未在6小时内书写危急值记录率</th>
-                <th class="beHospitalId textCenter" code="stageSummaryNum">阶段小节未书写数</th>
-                <th class="beHospitalId textCenter" code="stageSummaryPercentStr">阶段小节未书写率</th>
+                <th class="beHospitalId textCenter textBreak" code="consultationNum">未在24小时内<br/>完成会诊数</th>
+                <th class="beHospitalId textCenter textBreak" code="consultationPercentStr">未在24小时内<br/>完成会诊率</th>
+                <th class="beHospitalId textCenter textBreak" code="operationNameNum">手术记录名称不<br/>匹配数</th>
+                <th class="beHospitalId textCenter textBreak" code="operationNamePercentStr">手术记录名称不<br/>匹配率</th>
+                <th class="beHospitalId textCenter textBreak" code="operation15MinuteNum">术后首程未在15<br/>分钟内完成数</th>
+                <th class="beHospitalId textCenter textBreak" code="operation15MinutePercentStr">术后首程未在15<br/>分钟内完成率</th>
+                <th class="beHospitalId textCenter textBreak" code="operationTimeNum">病案首页手术时<br/>间不匹配数</th>
+                <th class="beHospitalId textCenter textBreak" code="operationTimePercentStr">病案首页手术时<br/>间不匹配率</th>
+                <th class="beHospitalId textCenter textBreak" code="crisisNum">未在6小时内书<br/>写危急值记录数</th>
+                <th class="beHospitalId textCenter textBreak" code="crisisPercentStr">未在6小时内书<br/>写危急值记录率</th>
+                <th class="beHospitalId textCenter textBreak" code="stageSummaryNum">阶段小节未书写<br/>数</th>
+                <th class="beHospitalId textCenter textBreak" code="stageSummaryPercentStr">阶段小节未书写<br/>率</th>
                 </thead>
                 <tbody>
 

+ 14 - 11
src/js/itemDefectDetail.js

@@ -16,19 +16,21 @@ const arrowLeft= require("./../images/arrow_left.png")
 const arrowRight = require("./../images/arrow_right.png")
 
 let srcUrl = $("#contentIframe",parent.document).attr("src")
-let statisticsType = getUrlArgObjectNew("dateType",srcUrl)||getUrlArgObjectNew("shijian",srcUrl) || ""
+let statisticsType = getUrlArgObjectNew("dateType",srcUrl)||getUrlArgObjectNew("shijian",srcUrl) || "";
+let fromPage = getUrlArgObjectNew("from",srcUrl)||"";
 let chengdu = getUrlArgObjectNew("chengdu",srcUrl)||""
 let deptIdPram = getUrlArgObjectNew("deptId",srcUrl)||""
-let deptNamePram = getUrlArgObjectNew("deptName",srcUrl)||""
+let deptNamePram = getUrlArgObjectNew("deptName",srcUrl)||"";
 let docName = getUrlArgObjectNew("docName",srcUrl)||""
-let startDateParam =  getUrlArgObjectNew("startDate",srcUrl)||""
-let endDateParam =  getUrlArgObjectNew("endDate",srcUrl)||""
-let defectName = getUrlArgObjectNew("defectName",srcUrl)||""
+let startDateParam =  getUrlArgObjectNew("startDate",srcUrl)||"";
+let endDateParam =  getUrlArgObjectNew("endDate",srcUrl)||"";
+let defectName = getUrlArgObjectNew("defectName",srcUrl)||"";
+let casesId = getUrlArgObjectNew("casesEntryId",srcUrl)||"";
 
 $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,
-  nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="",deptName="",deptNameTemp ="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",casesEntryName=""
+  nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="",deptName="",deptNameTemp ="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",casesEntryName="",casesEntryId='',
   data_desc=["leaveHospitalDate"],data_asc=[];
 if(chengdu){
     levelTemp = chengdu
@@ -46,10 +48,14 @@ if(defectName){
     casesEntryName=defectName
     $('.selectDefect').html(casesEntryName)
 }
+if(casesEntryId){
+  casesEntryId=casesId;
+}
 if(deptIdPram&&deptNamePram){
     deptIdTemp = deptIdPram
     deptId = deptIdPram
     deptName = deptNamePram
+    deptNameTemp = deptNamePram
     if(deptNamePram.length > 10){
         $('.selectDept').html(deptNamePram.substring(0,8)+'...')
     }else{
@@ -537,11 +543,8 @@ $(function() {
         dateFormat:"yy/mm/dd"
     }).datepicker( "setDate",endDate);
     $(".filter").click();   //初始查询
-    $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="singleVeto.html">条目缺陷占比 / </a>缺陷详情`)
-    $(".partTitle .consoleD").click(function(){
-        $(".menu .page",parent.document).removeClass("active").eq(0).addClass("active");
-        $(".container",parent.document).addClass("console-cont");
-    })
+    const title = fromPage==1?`<a class="consoleD" href="keyItemFlawControl.html">关键条目缺陷占比 / </a>缺陷详情`:`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="singleVeto.html">条目缺陷占比 / </a>缺陷详情`;
+    $(".partTitle .titlePic ").html(title);
 });
 
 //分页渲染

+ 9 - 8
src/js/keyItemFlawControl.js

@@ -124,17 +124,17 @@ function renderTab(data,hisId,activePage){
             <tr  data-index=${i}>
                 <td  class="textCenter">${(activePage-1)*15 + i+1}</td>
                 <td >${item.deptName || "-"}</td>
-                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.consultationEntryId || ""}">${item.consultationNum || "-"}</td>
+                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.consultationEntryId || ""}" data-name="${item.consultationEntryName || ""}">${item.consultationNum || "-"}</td>
                 <td >${item.consultationPercentStr || "-"}</td>
-                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.operationNameEntryId || ""}">${item.operationNameNum+'' || "-"}</td>
+                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.operationNameEntryId || ""}" data-name="${item.operationNameEntryName || ""}">${item.operationNameNum+'' || "-"}</td>
                 <td >${item.operationNamePercentStr+'' || "-"}</td>
-                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.operation15MinuteEntryId || ""}">${item.operation15MinuteNum+'' || "-"}</td>
+                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.operation15MinuteEntryId || ""}" data-name="${item.operation15MinuteEntryName || ""}">${item.operation15MinuteNum+'' || "-"}</td>
                 <td >${item.operation15MinutePercentStr+'' || "-"}</td>
-                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.operationTimeEntryId || ""}">${item.operationTimeNum+'' || "-"}</td>
+                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.operationTimeEntryId || ""}" data-name="${item.operationTimeEntryName || ""}">${item.operationTimeNum+'' || "-"}</td>
                 <td >${item.operationTimePercentStr+'' || "-"}</td>
-                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.crisisEntryId || ""}">${item.crisisNum+'' || "-"}</td>
+                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.crisisEntryId || ""}" data-name="${item.crisisEntryName || ""}">${item.crisisNum+'' || "-"}</td>
                 <td >${item.crisisPercentStr+'' || "-"}</td>
-                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.stageSummaryEntryId || ""}">${item.stageSummaryNum+'' || "-"}</td>
+                <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.stageSummaryEntryId || ""}" data-name="${item.stageSummaryEntryName || ""}">${item.stageSummaryNum+'' || "-"}</td>
                 <td >${item.stageSummaryPercentStr+'' || "-"}</td>
             </tr>
         `
@@ -142,10 +142,11 @@ function renderTab(data,hisId,activePage){
   $('tbody').html(str?str:emptyBox())
   /*bindScoreDetail(hisId)*/
   $(".goHomeDetail").click(function(){
+    let casesName = $(this).attr("data-name");
     let casesId = $(this).attr("data-id");
-    let id=$(this).attr("dept-id");
     let name=$(this).attr("dept-name");
-    $(parent.document).find("#contentIframe").attr("src","qcList.html?deptId="+id+"&deptName="+name+"&from=1&casesEntryId="+casesId+"&dateType=3&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
+    let id=$(this).attr("dept-id");
+    $(parent.document).find("#contentIframe").attr("src","itemDefectDetail.html?from=1&deptName="+name+"&deptId="+id+"&casesEntryId="+casesId+"&defectName="+casesName+"&startDate="+startDateParam+"&endDate="+endDateParam)
   })
 }
 

+ 0 - 2
src/js/qcList.js

@@ -28,7 +28,6 @@ let deptNamePram = getUrlArgObjectNew("deptName",srcUrl)||""
 let docName = getUrlArgObjectNew("docName",srcUrl)||""
 let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
 let endDateParam = getUrlArgObjectNew("endDateParam",srcUrl)||""
-let casesEntryId = getUrlArgObjectNew("casesEntryId",srcUrl)||"";       //关键条目
 $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,
@@ -97,7 +96,6 @@ function getTabData(activePage){
         asc:data_asc,     //升序
         desc:data_desc,       //降序
         doctorName: doctorName,
-        casesEntryId:casesEntryId,
         doctorCode: doctorNum,
         leaveHosDateStart: behosDateStart, //出院日期--开始时间
         leaveHosDateEnd: behosDateEnd, //出院日期--结束时间