Browse Source

核查列表bug

zhouna 4 years ago
parent
commit
9404bbe210
3 changed files with 29 additions and 11 deletions
  1. 6 4
      src/css/checkTaskList.less
  2. 5 5
      src/html/checkTaskList.html
  3. 18 2
      src/js/checkTaskList.js

+ 6 - 4
src/css/checkTaskList.less

@@ -291,10 +291,6 @@ h2{
 .textCenter{
     text-align: center;
 }
-.patientNameSpan{
-    color: @activeColor;
-    cursor: pointer;
-}
 
 .deptItem:hover{
     background-color: #EEF4FF;
@@ -309,6 +305,12 @@ h2{
     color: #cfccd6
 }
 
+.beHospitalId{
+    cursor: pointer;
+    span{
+        color: @activeColor;
+    }
+}
 
 .pagination{
     margin: 35px 0 20px 0  ;

+ 5 - 5
src/html/checkTaskList.html

@@ -31,7 +31,7 @@
         </span>
             <span class="filterItem">
             <span>病人姓名:</span>
-            <input type="text" id="name" code="name" placeholder="病人姓名">
+            <input type="text" code="name" placeholder="病人姓名">
         </span>
             <span class="filterItem">
             <span>病人住院序号:</span>
@@ -72,7 +72,7 @@
              <table class="qctable">
                  <thead>
                  <tr class="tabTitle">
-                     <th class="beHospitalId textCenter" valCode="behospitalCode">病人住院序号</th>
+                     <th class="textCenter" valCode="behospitalCode">病人住院序号</th>
                      <th class="scoreTime textCenter" valCode="month">任务月份</th>
                      <th class="doctorName textCenter" valCode="status" >病历核查状态</th>
                      <th class="deptName textCenter" valCode="behDeptName">科室</th>
@@ -80,10 +80,10 @@
                      <th class="patientNo textCenter" valCode="fileCode" >病案号</th>
                      <th class="doctorName textCenter" valCode="doctorName">主管医生</th>
                      <th class="outHospitalDate textCenter desc" valCode="leaveHospitalDate" >出院日期</th>
-                     <th class="inHospitalDate textCenter" code="jobDistributionTime">分配日期</th>
-                     <th class="patientSex textCenter" code="checkTime">核查日期</th>
+                     <th class="inHospitalDate textCenter" valCode="jobDistributionTime"  code="jobDistributionTime">分配日期</th>
+                     <th class="patientSex textCenter" valCode="checkTime" code="checkTime">核查日期</th>
                      <th class="patientage textCenter" valCode="checkName">核查员</th>
-                     <th class="bedNum textCenter" valCode="" code="casesEntryNum">任务数</th>
+                     <th class="bedNum textCenter" valCode="casesEntryNum" code="casesEntryNum">缺陷数</th>
                      <th class="recordLevel textCenter" valCode="level" >病历等级</th>
                      <th class="recordScore textCenter" valCode="scoreRes" >病历得分</th>
                      <!-- <th class="recordScoreOpera textCenter" style="width: 65px;">操作</th> -->

+ 18 - 2
src/js/checkTaskList.js

@@ -233,7 +233,7 @@ function getTabData(activePage) {
         asc: data_asc,     //升序
         desc: data_desc,       //降序
         ...filterData,
-        behDeptId:global_deptId,
+        behDeptId:global_deptId.trim(),
         status:global_checkStatus,
         jobDistributionTimeStart:filterData.jobDistributionTimeStart+" 00:00:00",
         jobDistributionTimeEnd:filterData.jobDistributionTimeEnd+" 23:59:59"
@@ -291,14 +291,30 @@ function renderTab(data) {
             <tr  data-index=${i}>`;
         for(let i=0;i<titles.length;i++){
             code=$(titles[i]).attr('valCode');
-            str +=  `<td class="textCenter"><span data-index=${i}>${ item[code] || "-"}<span></td>`
+            str +=  `<td class="${code=='behospitalCode'?'beHospitalId':''} textCenter"><span data-index=${i}>${ item[code] || "-"}<span></td>`
         }
         str += "</tr>"
     }
     $('.tbody').html(str)
+    bindScoreDetail()
     bindOrder()
 }
 
+function bindScoreDetail() {
+    $('.tbody').unbind("click").on('click', 'tr .beHospitalId', function (e) {
+        console.log(tabList)
+        console.log($(this).parent().index())
+        const index = $(this).parent().index()
+        const id = tabList[index].behospitalCode
+        const age = tabList[index].age;
+        const checkStatus = tabList[index].checkStatus
+        scoreDetail(id, age, getCookie("hospitalid"), 'YH-ZKHC-HCRWLB', tabList[index].name)
+    });
+}
+function scoreDetail(id, age, hid, code) {
+
+    window.open(`./qcScore.html?id=${id}&age=${age}&hid=${hid}&code=${code}`)
+}
 //病历等级选择
 function bindLeveldSelect() {
     $('.levelItem').on("click", function () {