Browse Source

条目缺陷占比详情

zhangxc 5 years atrás
parent
commit
b840350c37
6 changed files with 398 additions and 369 deletions
  1. 326 313
      src/css/itemDefectDetail.less
  2. 4 0
      src/css/tiaomu.less
  3. 30 22
      src/html/itemDefectDetail.html
  4. 2 0
      src/js/api.js
  5. 30 30
      src/js/itemDefectDetail.js
  6. 6 4
      src/js/singleVeto.js

+ 326 - 313
src/css/itemDefectDetail.less

@@ -1,323 +1,336 @@
-// @import "./reset.less";
-// .container{
-//     width: 100%;
-//     height: 100%;
-//     overflow: auto;
-//     background: #fff;
-// }
-// ul,li{
-//     list-style: none;
-// }
-// h2{
-//     .h2;
-//     border-bottom: 10px @disColor solid;
-//     position: absolute;
-// }
-// .main-body{
-//     .main-body-com;
-//     border: none;
-//     border-left:10px @disColor solid;
-//     margin: 54px 0 0;
-//     min-width: 1090px;
-//     min-height: calc(100% - 84px);
-//     // overflow: auto;
-// }
-// table{
-//     .table;
-//     min-width: 1090px;
-//     th,td{
-//         padding:5px 10px;
-//     }
-//     th{
-//         white-space: nowrap;
-//     }
-//     th[code]{
-//         cursor: pointer;
-//         &:after{
-//             content:"";
-//             display:inline-block;
-//             width: 11px;
-//             height: 14px;
-//             margin-left: 4px;
-//             vertical-align: middle;
-//             background-size: 100%;
-//             background-image: url("../images/grey.png");
-//         }
-//         &.asc:after{
-//             background: url("../images/up_blue.png");
-//             background-size: 100%;
-//         }
-//         &.desc:after{
-//             background: url("../images/down_blue.png");
-//             background-size: 100%;
-//         }
-//     }
-//     td{
-//         white-space: nowrap;
-//     }
-//     .moduleNumber{
-//         text-align: center;
-//     }
-//     .scoreOperaItem{
-//         width: 50px;
-//         cursor: pointer;
-//     }
+@import "./reset.less";
+.container{
+    width: 100%;
+    height: 100%;
+    overflow: auto;
+    background: #fff;
+}
+ul,li{
+    list-style: none;
+}
+h2{
+    .h2;
+    border-bottom: 10px @disColor solid;
+    position: absolute;
+}
+.main-body{
+    .main-body-com;
+    border: none;
+    border-left:10px @disColor solid;
+    margin: 54px 0 0;
+    min-width: 1090px;
+    min-height: calc(100% - 84px);
+    // overflow: auto;
+}
+table{
+    .table;
+    min-width: 1090px;
+    th,td{
+        padding:5px 10px;
+    }
+    th{
+        white-space: nowrap;
+    }
+    th[code]{
+        cursor: pointer;
+        &:after{
+            content:"";
+            display:inline-block;
+            width: 11px;
+            height: 14px;
+            margin-left: 4px;
+            vertical-align: middle;
+            background-size: 100%;
+            background-image: url("../images/grey.png");
+        }
+        &.asc:after{
+            background: url("../images/up_blue.png");
+            background-size: 100%;
+        }
+        &.desc:after{
+            background: url("../images/down_blue.png");
+            background-size: 100%;
+        }
+    }
+    td{
+        white-space: nowrap;
+    }
+    .moduleNumber{
+        text-align: center;
+    }
+    .scoreOperaItem{
+        width: 50px;
+        cursor: pointer;
+    }
     
-// }
-// .tabFoot{
-//     height: 40px;
-//     background: none;
-//     /*border: 1px solid #E2E5EF;
-//     border-top: none;
-//     box-sizing: border-box;*/
-// }
-// .scoreOpera{
-//     height: 50px;
-//     line-height: 50px;
-//     margin: 0 20px 0 0;
-//     cursor: pointer;
-//     img{
-//         margin: 0 10px 0 0;
-//         vertical-align: middle;
-//     }
-// }
+}
+.tabFoot{
+    height: 40px;
+    background: none;
+    /*border: 1px solid #E2E5EF;
+    border-top: none;
+    box-sizing: border-box;*/
+}
+.scoreOpera{
+    height: 50px;
+    line-height: 50px;
+    margin: 0 20px 0 0;
+    cursor: pointer;
+    img{
+        margin: 0 10px 0 0;
+        vertical-align: middle;
+    }
+}
 
-// .recordScoreOperaBtn{
-//     cursor: pointer;
-//     color: @activeColor;
-// }
-// .recordScoreBtn{
-//     cursor: pointer;
-//     display: inline-block;
-//     width:68px;
-//     height:30px;
-//     line-height: 30px;
-//     text-align: center;
-//     border-radius:4px;
-//     box-sizing: border-box;
-//     border: 1px solid @activeColor;
-//     color: @activeColor;
-// }
-// .filterBox{
-//     position: relative;
-// }
-// .overAuto{
-//     display: table;
-//     padding-right: 20px;
-// }
-// .toggle-item{
-//     display: none;
-// }
-// .filter-toggler{
-//     position: absolute;
-//     left: 1008px;
-//     top: 8px;
-//     color: #777;
-//     font-size: 14px;
-//     background: url("../images/arrow_up.png") 60px center no-repeat;
-//     padding-right: 15px;
-//     background-size: 10px 6px;
-//     &.up{
-//         background: url("../images/arrow_down.png") 60px center no-repeat;
-//         background-size: 10px 6px;
-//     }
-// }
-// .filterItem{
-//     position: relative;
-//     display: inline-block;
-//     float: left;
-//     height: 40px;
-//     line-height: 40px;
-//     margin: 0 20px 10px 0;
-//     span{
-//         display: inline-block;
-//         line-height: 32px;
-//         position: relative;
-//     }
-//     input{
-//         width:120px;
-//         height:32px;
-//         border-radius:4px;
-//         border: 1px solid #E2E5EF;
-//         outline: none;
-//         margin-right: 10px;
-//         padding: 0 10px;
-//         box-sizing: border-box;
-//     }
-//     input:focus{
-//         border: 1px solid @activeColor ;
-//         outline: 0;
-//         -webkit-box-shadow:@activeColor  0px 0px 2px;
-//         -moz-box-shadow: @activeColor  0px 0px 2px;
-//         box-shadow: @activeColor  0px 0px 2px;
-//     }
-// }
+.recordScoreOperaBtn{
+    cursor: pointer;
+    color: @activeColor;
+}
+.recordScoreBtn{
+    cursor: pointer;
+    display: inline-block;
+    width:68px;
+    height:30px;
+    line-height: 30px;
+    text-align: center;
+    border-radius:4px;
+    box-sizing: border-box;
+    border: 1px solid @activeColor;
+    color: @activeColor;
+}
+.filterBox{
+    position: relative;
+}
+.overAuto{
+    display: table;
+    padding-right: 20px;
+    width: 100%;
+}
+.toggle-item{
+    // display: none;
+}
+.filter-toggler{
+    position: absolute;
+    left: 1008px;
+    top: 8px;
+    color: #777;
+    font-size: 14px;
+    background: url("../images/arrow_up.png") 60px center no-repeat;
+    padding-right: 15px;
+    background-size: 10px 6px;
+    &.up{
+        background: url("../images/arrow_down.png") 60px center no-repeat;
+        background-size: 10px 6px;
+    }
+}
+.filterItem{
+    position: relative;
+    display: inline-block;
+    float: left;
+    height: 40px;
+    line-height: 40px;
+    margin: 0 20px 10px 0;
+    span{
+        display: inline-block;
+        line-height: 32px;
+        position: relative;
+    }
+    input{
+        width:120px;
+        height:32px;
+        border-radius:4px;
+        border: 1px solid #E2E5EF;
+        outline: none;
+        margin-right: 10px;
+        padding: 0 10px;
+        box-sizing: border-box;
+    }
+    input:focus{
+        border: 1px solid @activeColor ;
+        outline: 0;
+        -webkit-box-shadow:@activeColor  0px 0px 2px;
+        -moz-box-shadow: @activeColor  0px 0px 2px;
+        box-shadow: @activeColor  0px 0px 2px;
+    }
+}
 
-// .filterDropList{
-//     position: absolute;
-//     right: 0;
-//     max-height: 200px;
-//     overflow-y: auto;
-//     background: #fff;
-//     display: none;
-//     border: 1px solid #e4e7ed;
-//     box-shadow: 0 2px 12px 0 #e4e7ed;
-//     z-index: 2;
-//     li{
-//         padding: 0 10px;
-//     }
-// }
-// .deptList{
-//     width: 160px;
-//     max-height: 400px;
-// }
-// .levelList{
-//     width: 120px;
-//     // height: 200px;
-//     li:hover{
-//         background-color: #EEF4FF;
-//         cursor: pointer;
-//     }
-// }
-// .selectLevel,.selectDept{
-//     display: inline-block;
-//     position: relative;
-//     width:120px;
-//     padding: 0 10px;
-//     height:32px;
-//     border-radius:4px;
-//     border: 1px solid #E2E5EF;
-//     box-sizing: border-box;
-//     cursor: pointer;
-// }
-// .selectDept{
-//     width: 160px;
-// }
+.filterDropList{
+    position: absolute;
+    right: 0;
+    max-height: 200px;
+    overflow-y: auto;
+    background: #fff;
+    display: none;
+    border: 1px solid #e4e7ed;
+    box-shadow: 0 2px 12px 0 #e4e7ed;
+    z-index: 2;
+    li{
+        padding: 0 10px;
+    }
+}
+.deptList{
+    width: 160px;
+    max-height: 400px;
+}
+.levelList{
+    width: 120px;
+    // height: 200px;
+    li:hover{
+        background-color: #EEF4FF;
+        cursor: pointer;
+    }
+}
+.selectLevel,.selectDept{
+    display: inline-block;
+    position: relative;
+    width:120px;
+    padding: 0 10px;
+    height:32px;
+    border-radius:4px;
+    border: 1px solid #E2E5EF;
+    box-sizing: border-box;
+    cursor: pointer;
+}
+.selectDept{
+    width: 160px;
+}
 
-// .filter,.reset,.export{
-//     display: inline-block;
-//     width:60px;
-//     height:32px;
-//     background:@activeColor;
-//     border-radius:4px;
-//     color: #fff;
-//     text-align: center;
-//     line-height: 32px;
-//     position: relative;
-//     top: 2px;
-//     cursor: pointer;
-//     float: left;
-//     margin: 0 0px 22px 0;
-// }
-// .export{
-//     height:34px;
-//     background: #fff;
-//     border-radius: 4px;
-//     color: #777;
-//     border: 1px solid #777;
-//     box-sizing: border-box;
-//     cursor: pointer;
-//     margin-left: 10px;
-//     float: left;
-//     top: 0px;
-// }
-// .arrow{
-//     position: absolute;
-//     width: 10px;
-//     top: 12px;
-//     right: 10px;
-// }
-// .iconCheck{
-//     width: 14px;
-// }
-// .fl{
-//     float: left;
-// }
-// .clearfix:after {
-//     content: '';
-//     height: 0;
-//     line-height: 0;
-//     display: block;
-//     visibility: hidden;
-//     clear: both;
-// }
-// .clearfix{
-//     zoom:1
-// }
-// .divide{
-//     margin: 0 10px;
-// }
-// .datapickerBox{
-//     position: relative;
-//     display: inline-block;
-//     width: 120px;
-//     height: 32px;
-//     input{
-//         position: absolute;
-//     }
-// }
-// .iconCalen{
-//     position: absolute;
-//     width: 15px;
-//     top: 10px;
-//     right: 10px;
-// }
-// .textCenter{
-//     text-align: center;
-// }
-// .patientNameSpan{
-//     color: @activeColor;
-//     cursor: pointer;
-// }
+.filter,.reset,.export{
+    display: inline-block;
+    width:60px;
+    height:32px;
+    background:@activeColor;
+    border-radius:4px;
+    color: #fff;
+    text-align: center;
+    line-height: 32px;
+    position: relative;
+    top: 2px;
+    cursor: pointer;
+    float: left;
+    margin: 0 0px 22px 0;
+}
+.export{
+    height:34px;
+    background: #fff;
+    border-radius: 4px;
+    color: #777;
+    border: 1px solid #777;
+    box-sizing: border-box;
+    cursor: pointer;
+    margin-left: 10px;
+    float: left;
+    top: 0px;
+}
+.arrow{
+    position: absolute;
+    width: 10px;
+    top: 12px;
+    right: 10px;
+}
+.iconCheck{
+    width: 14px;
+}
+.fl{
+    float: left;
+}
+.clearfix:after {
+    content: '';
+    height: 0;
+    line-height: 0;
+    display: block;
+    visibility: hidden;
+    clear: both;
+}
+.clearfix{
+    zoom:1
+}
+.divide{
+    margin: 0 10px;
+}
+.datapickerBox{
+    position: relative;
+    display: inline-block;
+    width: 120px;
+    height: 32px;
+    input{
+        position: absolute;
+    }
+}
+.iconCalen{
+    position: absolute;
+    width: 15px;
+    top: 10px;
+    right: 10px;
+}
+.textCenter{
+    text-align: center;
+}
+.patientNameSpan{
+    color: @activeColor;
+    cursor: pointer;
+}
 
-// .deptItem:hover{
-//     background-color: #EEF4FF;
-//     cursor: pointer;
-// }
-// .ellipsis{
-//     overflow: hidden;
-//     text-overflow:ellipsis;
-//     white-space: nowrap;
-// }
-// .unSelect{
-//     color: #cfccd6
-//  }
+.deptItem:hover{
+    background-color: #EEF4FF;
+    cursor: pointer;
+}
+.ellipsis{
+    overflow: hidden;
+    text-overflow:ellipsis;
+    white-space: nowrap;
+}
+.unSelect{
+    color: #cfccd6
+ }
 
 
-// .pagination{
-//     margin: 35px 0 20px 0  ;
-//     text-align: right;
-// }
-// .totalSum{
-//     font-size:12px;
-//     line-height:17px;
-//     color: #777777;
-//     margin-right: 20px;
-// }
-// .pageNum,.prePage,.nextPage, .more{
-//     display: inline-block;
-//     width: 20px;
-//     cursor: pointer;
-//     margin: 0 20px 0 0;
-//     text-align: center;
-//     color: #777;
-// }
-// .prePage,.nextPage{
-//     img{
-//         position: relative;
-//         top: 0px   ;
-//     }
-// }
-//  .more{
-//     cursor: not-allowed;
-// }
-// .arrowPage{
-//     width: 6px;
-// }
-// .activePage{
-//     color: @activeColor;
-// }
-
+.pagination{
+    margin: 35px 0 20px 0  ;
+    text-align: right;
+}
+.totalSum{
+    font-size:12px;
+    line-height:17px;
+    color: #777777;
+    margin-right: 20px;
+}
+.pageNum,.prePage,.nextPage, .more{
+    display: inline-block;
+    width: 20px;
+    cursor: pointer;
+    margin: 0 20px 0 0;
+    text-align: center;
+    color: #777;
+}
+.prePage,.nextPage{
+    img{
+        position: relative;
+        top: 0px   ;
+    }
+}
+ .more{
+    cursor: not-allowed;
+}
+.arrowPage{
+    width: 6px;
+}
+.activePage{
+    color: @activeColor;
+}
+.selectDefect{
+    min-width: 120px;
+    width: auto;
+    color: #ccc;
+    display: inline-block;
+    position: relative;
+    padding: 0 10px;
+    height:32px;
+    border-radius:4px;
+    border: 1px solid #E2E5EF;
+    box-sizing: border-box;
+    cursor: default;
+}
 
 
 

+ 4 - 0
src/css/tiaomu.less

@@ -258,6 +258,10 @@
         height: 101px !important;
     }
 }
+.goDetail{
+    cursor: pointer;
+    color: @activeColor;
+}
 
 .usrContain .selectReject,.usrContain .selectModuleType ,.managerContainer .selectModuleType  {
     float: right;

+ 30 - 22
src/html/itemDefectDetail.html

@@ -23,7 +23,7 @@
 
                         <ul class="deptList filterDropList"></ul>
                     </span>
-                    <span class="filterItem typeFilter clearfix" style="margin-top: 3px;">
+                    <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>
@@ -41,10 +41,10 @@
                         </ul>
                     </span>
                     <span class="filter">查询</span>
-                    <span class="export">导出</span>
+                    <!-- <span class="export">导出</span> -->
                     <span class="filterclear abnormalClear filterclearT">重置</span>
                 </div>
-                <a href="javascript:void(0);" class="filter-toggler up" id="filterToggler">展开筛选</a>
+                <a href="javascript:void(0);" class="filter-toggler down" id="filterToggler">收起筛选</a>
                 <div class="toggle-item clearfix">
                     <span class="filterItem typeFilter">
                         <span>病人姓名:</span>
@@ -55,45 +55,53 @@
                         <input class="patientNumInp" style="width: 148px;" type="text" placeholder="请输入病人住院序号">
                     </span>
                     <span class="filterItem doctorFilter">
+                        <span>缺陷名称:</span>
+                        <span class="selectDefect"> 
+                        
+                        </span>
+                        <!-- <input class="doctorInp" type="text" placeholder="请输入医生姓名"> -->
+                    </span>
+                    <!-- <span class="filterItem doctorFilter">
                         <span>医生姓名:</span>
                         <input class="doctorInp" type="text" placeholder="请输入医生姓名">
                     </span>
                     <span class="filterItem doctorFilter">
                     <span>医生工号:</span>
-                    <input class="doctorNumInp" type="text" placeholder="请输入医生工号">
+                    <input class="doctorNumInp" type="text" placeholder="请输入医生工号"> -->
                 </span>
                 </div>
             </div>
             <div class="overAuto">
                 <table>
                     <thead>
-                    <tr>
+                    <!-- <tr>
                         <td colspan="19" style="background: #fff">
                             <div class="tabFoot">
                                 <span class="scoreOpera" data-selectAll=false><img class="iconCheck" src="../images/icon_unchecked.png" alt="checkbox">全选</span>
                                 <span class="recordScoreBtn">评分</span>
                             </div>
                         </td>
-                    </tr>
-                    <th class="textCenter" ></th>
-                    <th class="recordScoreOpera textCenter" style="width: 65px;">操作</th>
+                    </tr> -->
+                    <!-- <th class="textCenter" ></th> -->
+                    <!-- <th class="recordScoreOpera textCenter" style="width: 65px;">操作</th> -->
+                    <th class="beHospitalId textCenter" code="behospitalCode">病人住院序号</th>
                     <th class="recordLevel textCenter" code="level">病历等级</th>
-                    <th class="recordScore textCenter" code="score_res">病历得分</th>
-                    <th class="beHospitalId textCenter" code="behospital_code">病人住院序号</th>
-                    <th class="patientNo textCenter" code="file_code">病案号</th>
-                    <th class="patientName textCenter" code="name" style="width: 100px;">病人姓名</th>
+                    <th class="recordScore textCenter" code="scoreRes">病历得分</th>
+                 
+                    <!-- <th class="patientNo textCenter" code="file_code">病案号</th> -->
+                    <th class="patientName textCenter" code="patName" style="width: 100px;">病人姓名</th>
                     <th class="patientSex textCenter" code="sex">性别</th>
                     <th class="patientage textCenter" code="age">年龄</th>
-                    <th class="bedNum textCenter" code="bed_code">床号</th>
-                    <th class="inHospitalDate textCenter" code="behospital_date">入院日期</th>
-                    <th class="outHospitalDate textCenter desc" code="leave_hospital_date">出院日期</th>
-                    <th class="placefileDate textCenter" code="placefile_date">归档日期</th>
-                    <th class="diagnose textCenter" code="diagnose">主诊断</th>
-                    <th class="doctorName textCenter" code="beh_doctor_name">住院医生</th>
-                    <th class="doctorName textCenter" code="doctor_name">主管医生</th>
-                    <th class="doctorName textCenter" code="director_doctor_name">主任医生</th>
-                    <th class="deptName textCenter" code="beh_dept_name">科室</th>
-                    <th class="scoreTime textCenter" code="grade_time">评分时间</th>
+                    <!-- <th class="bedNum textCenter" code="bed_code">床号</th> -->
+                    <!-- <th class="inHospitalDate textCenter" code="behospital_date">入院日期</th> -->
+                    <!-- <th class="placefileDate textCenter" code="placefile_date">归档日期</th> -->
+                    <!-- <th class="diagnose textCenter" code="diagnose">主诊断</th> -->
+                    <!-- <th class="doctorName textCenter" code="beh_doctor_name">住院医生</th> -->
+                    <!-- <th class="doctorName textCenter" code="doctor_name">主管医生</th> -->
+                    <!-- <th class="doctorName textCenter" code="director_doctor_name">主任医生</th> -->
+                    <th class="deptName textCenter" code="behDeptName">科室</th>
+                    <th class="outHospitalDate textCenter desc" code="leaveHospitalDate">出院日期</th>
+                    <!-- <th class="scoreTime textCenter" code="grade_time">评分时间</th> -->
                     </thead>
                     <tbody>
 

+ 2 - 0
src/js/api.js

@@ -81,6 +81,8 @@ const api = {
     exportQcListDept:'/qc/behospitalInfo/exportQcresultByDept',//质控评分(科室)导出
     entryRejectPercent:'/console/entryRejectPercent',//单项否决占比
     qcResultLevelPercent:'/console/qcResultLevelPercent',//各科室甲乙丙级占比
+    qcResultDefectList:'/console/qcResultShortPage',//条目缺陷质控评分
+
 }
 module.exports = {
     api

+ 30 - 30
src/js/itemDefectDetail.js

@@ -21,12 +21,15 @@ let chengdu = getUrlArgObjectNew("chengdu",srcUrl)||""
 let deptIdPram = getUrlArgObjectNew("deptId",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)||""
 
 $(".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="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
-  data_desc=["leave_hospital_date"],data_asc=[];
+  nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="",deptName="",deptNameTemp ="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",casesEntryName=""
+  data_desc=["leaveHospitalDate"],data_asc=[];
 if(chengdu){
     levelTemp = chengdu
     level = chengdu
@@ -39,9 +42,14 @@ if(docName){
     doctorName = docName
     $('.doctorInp').val(docName)
 }
+if(defectName){
+    casesEntryName=defectName
+    $('.selectDefect').html(casesEntryName)
+}
 if(deptIdPram&&deptNamePram){
     deptIdTemp = deptIdPram
     deptId = deptIdPram
+    deptName = deptNamePram
     if(deptNamePram.length > 10){
         $('.selectDept').html(deptNamePram.substring(0,8)+'...')
     }else{
@@ -84,19 +92,17 @@ function getTabData(activePage){
     const param = {
         current:activePage,
         behospitalCode: behospitalCode,
-        name: name, //条目
+        patName: name, //病人姓
         level:level,//病历等级
-        deptId: deptId,
-        asc:data_asc,     //升序
-        desc:data_desc,       //降序
-        doctorName: doctorName,
-        doctorCode: doctorNum,
-        leaveHosDateStart: behosDateStart, //出院日期--开始时间
-        leaveHosDateEnd: behosDateEnd, //出院日期--结束时间
+        behDeptName: deptName,
+        ascs:data_asc,     //升序
+        descs:data_desc,       //降序
+        startDate: behosDateStart, //出院日期--开始时间
+        endDate: behosDateEnd, //出院日期--结束时间
+        casesEntryName: casesEntryName,
         size: 15,
-        statisticsType:statisticsType
     }
-    post(api.qcList,param).then(res =>{
+    post(api.qcResultDefectList,param).then(res =>{
         if(res.data.code == '0'){
             const data = res.data.data;
             tabList = data.records;
@@ -134,11 +140,12 @@ $(".filter").on("click", function(e){
     if(behosDateEnd){
         behosDateEnd = behosDateEnd.replace(/\//g,'-') + ' 23:59:59'
     }
-
+    console.log('deptNameTemp',deptNameTemp)
     name = nameTemp
     behospitalCode = behospitalCodeTemp
     level = levelTemp==="全部"?"":levelTemp
     deptId = deptIdTemp
+    deptName = deptNameTemp==="全部"?"":deptNameTemp 
     doctorName = doctorNameTemp
     doctorNum = doctorNumTemp
     getTabData(1)
@@ -154,6 +161,8 @@ $(".abnormalClear").on("click", function(e){
     levelTemp="";  
     deptId=""; 
     deptIdTemp="";  
+    deptName="";
+    deptNameTmp="";
     doctorName=""; 
     doctorNum=""; 
     doctorNameTemp=""; 
@@ -172,7 +181,7 @@ $(".abnormalClear").on("click", function(e){
         changeMonth: true,
         changeYear: true,
         dateFormat:"yy/mm/dd",
-    }).datepicker( "setDate", "-1m");
+    }).datepicker( "setDate", "-6d");
     $( "#datepicker2" ).datepicker({
         changeMonth: true,
         changeYear: true,
@@ -212,25 +221,14 @@ function renderTab(data,hisId){
         }
         str += `
             <tr  data-index=${i}>
-                <td class="scoreOperaItem textCenter">${item.hasSelect ? `<img class="iconCheck" src=${iconCheck} />`:`<img class="iconCheck" src=${iconUnCheck} />`}</td>
-                <td  class="recordScoreOperaBtn textCenter" style="opacity:${hasData('FUNC000017')?'1':'0.5'}">评分</td>
+                <td >${item.behospitalCode || "-"}</td>
                 <td  class="textCenter">${item.level || "-"}</td>
                 <td  class="textCenter">${item.scoreRes || "-"}</td>
-                <td >${item.behospitalCode || "-"}</td>
-                <td>${item.fileCode || "-"}</td>
-                <td  class="textCenter"><span data-index=${i} class="patientNameSpan">${item.name || "-"}<span></td>
+                <td  class="textCenter"><span data-index=${i} class="patientNameSpan">${item.patName || "-"}<span></td>
                 <td  class="textCenter">${item.sex || "-"}</td>
                 <td  class="textCenter">${item.age || "-"}</td>
-                <td  class="textCenter">${item.bedCode || "-"}</td>
-                <td  class="textCenter">${item.behospitalDate&&item.behospitalDate.slice(0,10) || "-"}</td>
-                <td  class="textCenter">${item.leaveHospitalDate&&item.leaveHospitalDate.slice(0,10)|| "-"}</td>
-                <td  class="textCenter">${item.placefileDate&&item.placefileDate.slice(0,10)|| "-"}</td>
-                <td  class="textCenter">${item.diagnose|| "-"}</td>
-                <td  class="textCenter">${item.behDoctorName   || "-"}</td>
-                <td  class="textCenter">${item.doctorName || "-"}</td>
-                <td  class="textCenter">${item.directorDoctorName || "-"}</td>
                 <td  class="textCenter">${item.behDeptName || "-"}</td>
-                <td  class="textCenter">${item.gradeTime&&item.gradeTime.slice(0,10) || "-"}</td>
+                <td  class="textCenter">${item.leaveHospitalDate&&item.leaveHospitalDate.slice(0,10)|| "-"}</td>
             </tr>
         `
     }
@@ -263,7 +261,7 @@ function bindScoreDetail(hisId){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,hisId,'YH-BLZK-ZKPF',tabList[index].name)
+            scoreDetail(id,age,hisId,'YH-BLZK-ZKPF',tabList[index].patName)
         }
        
     })
@@ -377,6 +375,7 @@ function bindDeptSelect(){
         const deptItemName = $(this).attr("data-name")
         const deptItemId = $(this).attr("data-id")
         deptIdTemp =deptItemId
+        deptNameTemp = deptItemName
         if(deptItemName.length > 10){
             $('.selectDept').html(deptItemName.substring(0,8)+'...')
         }else{
@@ -524,7 +523,8 @@ $(function() {
     }else if(statisticsType == '2'){
         startDate = new Date(`${year}-01-01`)
     } else {
-        startDate = "-1m"
+        startDate =new Date(startDateParam)
+        endDate = new Date(endDateParam) || new Date()
     }
     $( "#datepicker" ).datepicker({
         changeMonth: true,

+ 6 - 4
src/js/singleVeto.js

@@ -12,7 +12,7 @@ const arrowLeft= require("./../images/arrow_left.png")
 const arrowRight = require("./../images/arrow_right.png")
 
 
-let casesId="", name="", isReject ="2",deptName="", isUsed ="",casesIdTemp="", nameTemp="", isRejectTemp ="2",model='', isUsedTemp ="",from="",deptIdTemp="",deptItemId="",deptId="",isSingleReject="", isSingleRejectTemp="",casesName="",casesNameTemp=""
+let casesId="", name="", isReject ="2",deptName="", isUsed ="",casesIdTemp="", nameTemp="", isRejectTemp ="2",model='', isUsedTemp ="",from="",deptIdTemp="",deptItemId="",deptId="",isSingleReject="", isSingleRejectTemp="",casesName="",casesNameTemp="",paramObj={}
 $(".selectModuleType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectReject").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectUsed").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
@@ -146,6 +146,8 @@ function getTabData(activePage){
         $.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
         return
     }
+    startDateParam=dateStatrt
+    endDateParam=dateEnd
     const param = {
         current:activePage,
         type: isReject,
@@ -158,6 +160,7 @@ function getTabData(activePage){
         "startDate":dateStatrt,
         "endDate":dateEnd
     }
+    paramObj = param
     post(from == 1?api.entryGroupByEntryInnerPage:api.entryGroupByEntryAndDeptInnerPage,param).then(res =>{
         if(res.data.code == '0'){
             const data = res.data.data.records
@@ -283,7 +286,7 @@ function renderTab(data,activePage){
                 <td data-name=${item.name} class="goDetail">${item.name||'-'}</td>
                 <td  class="textCenter">${item.score+''||'-'}</td>
                 <td  class="textCenter">${item.isReject == '1'?'是':'否'}</td>
-                <td class="textCenter">${item.num+''||'-'}</td>
+                <td data-name=${item.name} class="textCenter goDetail">${item.num+''||'-'}</td>
                 <td  class="textCenter">${item.percentStr||'-'}</td>
             </tr>
         `
@@ -296,9 +299,8 @@ function renderTab(data,activePage){
 function goDetail(){
     $(".goDetail").click(function(){
         let defectName = $(this).attr("data-name")
-        console.log('defectName',defectName)
         // focusMenuItem("YH-ZKK-GKSQXZB_XQ");
-        $(parent.document).find("#contentIframe").attr("src","itemDefectDetail.html?defectName="+defectName)
+        $(parent.document).find("#contentIframe").attr("src",`./itemDefectDetail.html?defectName=${defectName}&startDate=${startDateParam}&endDate=${endDateParam}`)
     })
 }