Browse Source

湘雅定制

1178232204@qq.com 3 years ago
parent
commit
711e5db7fb

+ 414 - 0
src/css/deptQualifiedPhysician.less

@@ -0,0 +1,414 @@
+@import './reset.less';
+
+.container{
+    width: 100%;
+    height: 100%;
+    overflow: auto;
+    background: #fff;
+    .partTitle {
+        border-bottom: 10px #EFF1F6 solid;
+        height: 54px;
+    }
+}
+.deptScoreDetailControl {
+    // background-color: #fff;
+    .dayFilter {
+        .levelList {
+            height: 80px;
+        }
+        .selectLevel,.levelList  {
+            width: 180px;
+        }
+    }
+    .filterItem.deptListWrap {
+        display: none;
+        .selectDept,.deptList,.physicianList {
+            width: 180px;
+        }
+    }
+    ul,li{
+        list-style: none;
+    }
+    h2{
+        width: 100%;
+        box-sizing: border-box;
+        background-color: #fff;
+        z-index: 20;
+        height: 44px;
+        line-height: 44px;
+        padding: 0 0 0 15px;
+        border-bottom: 1px solid #E2E5EF;
+        font-size: 16px;
+        font-weight: bold;
+        letter-spacing: 1px;
+    }
+    .main-body{
+        .main-body-com;
+        min-width: 1250px;
+        border: 0;
+        border-left: 10px #EFF1F6 solid;
+        // box-sizing: border-box;
+        /*width: 100%;*/
+    }
+    table{
+        .table;
+        min-width: 1090px;
+        th,td{
+            text-align: center;
+        }
+        th{
+            white-space: nowrap;
+        }
+        th[code]{
+            cursor: pointer;
+            &:after{
+                content:"";
+                display:inline-block;
+                width: 11px;
+                height: 14px;
+                margin-left: 4px;
+                vertical-align: middle;
+                background: url("../images/grey.png");
+            }
+            &.asc:after{
+                background: url("../images/up_blue.png");
+                background-size: 11px 14px;
+            }
+            &.desc:after{                
+                background: url("../images/down_blue.png");
+                background-size: 11px 14px;
+            }
+        }
+        td{
+            white-space: nowrap;
+            position: relative;
+        }
+        .moduleNumber{
+            text-align: center;
+        }
+        .scoreOperaItem{
+            width: 50px;
+            cursor: pointer;
+        }
+        .updownimg {
+            width: 9px;
+            margin-left: 5px;
+            position: absolute;
+            top: 7px;
+            right: 1px;
+        }
+    }
+    .tabFoot{
+        height: 40px;
+        /*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;
+        }
+    }
+    
+    .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{
+        margin-bottom: 15px;
+    }*/
+    .filterItem{
+        position: relative;
+        display: inline-block;
+        float: left;
+        height: 40px;
+        line-height: 40px;
+        margin: 0 20px 20px 0;
+        span{
+            display: inline-block;
+            line-height: 40px;
+            position: relative;
+        }
+        input{
+            width:120px;
+            height:40px;
+            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;
+        top: 34px !important;
+        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,.physicianList{
+        width: 160px;
+        max-height: 400px;
+    }
+    .levelList{
+        width: 120px;
+        height: 120px;
+        li:hover{
+            background-color: #EEF4FF;
+            cursor: pointer;
+        }
+    }
+    .selectLevel,.selectDept,.selectLeaveHosType,.selectPhysician{
+        display: inline-block;
+        position: relative;
+        width:120px;
+        padding: 0 10px;
+        height:40px;
+        border-radius:4px;
+        border: 1px solid #E2E5EF;
+        box-sizing: border-box;
+        cursor: pointer;
+    }
+    .selectDept,.selectLeaveHosType,.selectPhysician{
+        width: 160px;
+    }
+    
+    .filter{
+        display: inline-block;
+        width:60px;
+        height:36px;
+        background:@activeColor;
+        border-radius:4px;
+        color: #fff;
+        text-align: center;
+        line-height: 36px;
+        position: relative;
+        top: 2px;
+        cursor: pointer;
+        float: left;
+    }
+    .export{
+        display: inline-block;
+        width:60px;
+        height:34px;
+        line-height: 34px;
+        background: #fff;
+        border-radius: 4px;
+        color: #777;
+        text-align: center;
+        border: 1px solid #777;
+        box-sizing: border-box;
+        cursor: pointer;
+        margin:0 0 20px 10px;
+        float: left;
+        top: 0px;
+    }
+    .arrow{
+        position: absolute;
+        width: 10px;
+        top: 16px;
+        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: 40px;
+        input{
+            position: absolute;
+        }
+    }
+    .iconCalen{
+        position: absolute;
+        width: 15px;
+        top: 12px;
+        right: 10px;
+    }
+    .textCenter{
+        text-align: center;
+    }
+    .patientNameSpan{
+        color: #00A1F0;
+        cursor: pointer;
+    }
+    .patientNameSpans{
+        color: #FF4D4F;
+        cursor: pointer;
+        margin-left: 30px;
+    }
+    
+    .deptItem:hover{
+        background-color: #EEF4FF;
+        cursor: pointer;
+    }
+    .ellipsis{
+        overflow: hidden;
+        text-overflow:ellipsis;
+        white-space: nowrap;
+    }
+    
+    
+    .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;
+    }
+    
+    
+    
+    .ui-datepicker-calendar {
+        border: 0 none;
+        min-width: 0;
+    }
+    .ui-datepicker thead {
+        background-color: #fff;
+        color: #c3cbd6;
+    }
+    .ui-datepicker td {
+        padding: 0;
+        height: auto;
+        color: #657180;
+    }
+    .ui-datepicker td span, .ui-datepicker td a {
+        text-align: center;
+        height: 30px;
+        line-height: 30px;
+    }
+    
+    .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
+        border: 0;
+        background-color: #fff;
+        &:hover {
+            background-color: #c4d8fe;
+        }
+    }
+    .ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
+        color: #333;
+        font-weight: normal;
+        height: 30px;
+        line-height: 30px;
+        margin: 0 5px;
+        width: 40%;
+        border-radius: 3px;
+    }
+    .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
+        top: 5px;
+    }
+    .ui-state-active, .ui-widget-content .ui-state-active {
+        background-color: @activeColor !important;
+        color: #fff;
+    }
+    .ui-state-highlight, .ui-widget-content .ui-state-highlight {
+        background-color: #fff5bf !important;
+        color: #657180;
+    }
+    .ui-widget-header {
+        background-color: #fff;
+        border: 0 none;
+    }
+    
+    input::-webkit-outer-spin-button,
+    input::-webkit-inner-spin-button {
+        -webkit-appearance: none;
+    }
+     
+    input[type="number"] {
+        -moz-appearance: textfield;
+    }
+}
+.abnormalClear {
+    top: 2px !important;
+}
+.levelList,.checkList,.leaveHosTypeList {
+    width: 120px;
+    // height: 200px;
+    li:hover{
+        background-color: #EEF4FF;
+        cursor: pointer;
+    }
+}
+.leaveHosTypeList{
+    width: 158px;
+    max-height: 300px;
+}

+ 414 - 0
src/css/qualifiedPhysician.less

@@ -0,0 +1,414 @@
+@import './reset.less';
+
+.container{
+    width: 100%;
+    height: 100%;
+    overflow: auto;
+    background: #fff;
+    .partTitle {
+        border-bottom: 10px #EFF1F6 solid;
+        height: 54px;
+    }
+}
+.deptScoreDetailControl {
+    // background-color: #fff;
+    .dayFilter {
+        .levelList {
+            height: 80px;
+        }
+        .selectLevel,.levelList  {
+            width: 180px;
+        }
+    }
+    .filterItem.deptListWrap {
+        display: none;
+        .selectDept,.deptList,.physicianList {
+            width: 180px;
+        }
+    }
+    ul,li{
+        list-style: none;
+    }
+    h2{
+        width: 100%;
+        box-sizing: border-box;
+        background-color: #fff;
+        z-index: 20;
+        height: 44px;
+        line-height: 44px;
+        padding: 0 0 0 15px;
+        border-bottom: 1px solid #E2E5EF;
+        font-size: 16px;
+        font-weight: bold;
+        letter-spacing: 1px;
+    }
+    .main-body{
+        .main-body-com;
+        min-width: 1250px;
+        border: 0;
+        border-left: 10px #EFF1F6 solid;
+        // box-sizing: border-box;
+        /*width: 100%;*/
+    }
+    table{
+        .table;
+        min-width: 1090px;
+        th,td{
+            text-align: center;
+        }
+        th{
+            white-space: nowrap;
+        }
+        th[code]{
+            cursor: pointer;
+            &:after{
+                content:"";
+                display:inline-block;
+                width: 11px;
+                height: 14px;
+                margin-left: 4px;
+                vertical-align: middle;
+                background: url("../images/grey.png");
+            }
+            &.asc:after{
+                background: url("../images/up_blue.png");
+                background-size: 11px 14px;
+            }
+            &.desc:after{                
+                background: url("../images/down_blue.png");
+                background-size: 11px 14px;
+            }
+        }
+        td{
+            white-space: nowrap;
+            position: relative;
+        }
+        .moduleNumber{
+            text-align: center;
+        }
+        .scoreOperaItem{
+            width: 50px;
+            cursor: pointer;
+        }
+        .updownimg {
+            width: 9px;
+            margin-left: 5px;
+            position: absolute;
+            top: 7px;
+            right: 1px;
+        }
+    }
+    .tabFoot{
+        height: 40px;
+        /*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;
+        }
+    }
+    
+    .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{
+        margin-bottom: 15px;
+    }*/
+    .filterItem{
+        position: relative;
+        display: inline-block;
+        float: left;
+        height: 40px;
+        line-height: 40px;
+        margin: 0 20px 20px 0;
+        span{
+            display: inline-block;
+            line-height: 40px;
+            position: relative;
+        }
+        input{
+            width:120px;
+            height:40px;
+            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;
+        top: 34px !important;
+        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,.physicianList{
+        width: 160px;
+        max-height: 400px;
+    }
+    .levelList{
+        width: 120px;
+        height: 120px;
+        li:hover{
+            background-color: #EEF4FF;
+            cursor: pointer;
+        }
+    }
+    .selectLevel,.selectDept,.selectLeaveHosType,.selectPhysician{
+        display: inline-block;
+        position: relative;
+        width:120px;
+        padding: 0 10px;
+        height:40px;
+        border-radius:4px;
+        border: 1px solid #E2E5EF;
+        box-sizing: border-box;
+        cursor: pointer;
+    }
+    .selectDept,.selectLeaveHosType,.selectPhysician{
+        width: 160px;
+    }
+    
+    .filter{
+        display: inline-block;
+        width:60px;
+        height:36px;
+        background:@activeColor;
+        border-radius:4px;
+        color: #fff;
+        text-align: center;
+        line-height: 36px;
+        position: relative;
+        top: 2px;
+        cursor: pointer;
+        float: left;
+    }
+    .export{
+        display: inline-block;
+        width:60px;
+        height:34px;
+        line-height: 34px;
+        background: #fff;
+        border-radius: 4px;
+        color: #777;
+        text-align: center;
+        border: 1px solid #777;
+        box-sizing: border-box;
+        cursor: pointer;
+        margin:0 0 20px 10px;
+        float: left;
+        top: 0px;
+    }
+    .arrow{
+        position: absolute;
+        width: 10px;
+        top: 16px;
+        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: 40px;
+        input{
+            position: absolute;
+        }
+    }
+    .iconCalen{
+        position: absolute;
+        width: 15px;
+        top: 12px;
+        right: 10px;
+    }
+    .textCenter{
+        text-align: center;
+    }
+    .patientNameSpan{
+        color: #00A1F0;
+        cursor: pointer;
+    }
+    .patientNameSpans{
+        color: #FF4D4F;
+        cursor: pointer;
+        margin-left: 30px;
+    }
+    
+    .deptItem:hover{
+        background-color: #EEF4FF;
+        cursor: pointer;
+    }
+    .ellipsis{
+        overflow: hidden;
+        text-overflow:ellipsis;
+        white-space: nowrap;
+    }
+    
+    
+    .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;
+    }
+    
+    
+    
+    .ui-datepicker-calendar {
+        border: 0 none;
+        min-width: 0;
+    }
+    .ui-datepicker thead {
+        background-color: #fff;
+        color: #c3cbd6;
+    }
+    .ui-datepicker td {
+        padding: 0;
+        height: auto;
+        color: #657180;
+    }
+    .ui-datepicker td span, .ui-datepicker td a {
+        text-align: center;
+        height: 30px;
+        line-height: 30px;
+    }
+    
+    .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
+        border: 0;
+        background-color: #fff;
+        &:hover {
+            background-color: #c4d8fe;
+        }
+    }
+    .ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
+        color: #333;
+        font-weight: normal;
+        height: 30px;
+        line-height: 30px;
+        margin: 0 5px;
+        width: 40%;
+        border-radius: 3px;
+    }
+    .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
+        top: 5px;
+    }
+    .ui-state-active, .ui-widget-content .ui-state-active {
+        background-color: @activeColor !important;
+        color: #fff;
+    }
+    .ui-state-highlight, .ui-widget-content .ui-state-highlight {
+        background-color: #fff5bf !important;
+        color: #657180;
+    }
+    .ui-widget-header {
+        background-color: #fff;
+        border: 0 none;
+    }
+    
+    input::-webkit-outer-spin-button,
+    input::-webkit-inner-spin-button {
+        -webkit-appearance: none;
+    }
+     
+    input[type="number"] {
+        -moz-appearance: textfield;
+    }
+}
+.abnormalClear {
+    top: 2px !important;
+}
+.levelList,.checkList,.leaveHosTypeList {
+    width: 120px;
+    // height: 200px;
+    li:hover{
+        background-color: #EEF4FF;
+        cursor: pointer;
+    }
+}
+.leaveHosTypeList{
+    width: 158px;
+    max-height: 300px;
+}

+ 5 - 2
src/css/reset.less

@@ -467,7 +467,10 @@ input:-ms-input-placeholder{  /* Internet Explorer 10-11 */
   color: #00A1F0;
   cursor: pointer;
 }
-
+.goHomeDetail1 {
+  color: #00A1F0;
+  cursor: pointer;
+}
 .filterclear.abnormalClear {
   display: inline-block;
   width: 60px;
@@ -486,7 +489,7 @@ input:-ms-input-placeholder{  /* Internet Explorer 10-11 */
   float: left;
 }
 
-.filterItem,.patientNumInp,.filter,.moduleItemInp,.selectDept, .filterItem span {
+.filterItem,.patientNumInp,.filter,.moduleItemInp,.selectDept, .filterItem span,.selectPhysician {
   height: 34px !important;
   line-height: 34px !important;
   float: left;

+ 82 - 0
src/html/deptQualifiedPhysician.html

@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <meta http-equiv="X-UA-Compatible" content="ie=edge">
+  <title>各科室缺陷占比</title>
+</head>
+
+<body>
+  <div class="container deptScoreDetailControl">
+    <div class="partTitle">
+      <p><a href="console.html">控制台 / </a>各科室缺陷占比</p>
+      <!-- <div class="monthYear">
+            <span class="mon">本月</span>
+            <span class="year">本年</span>
+          </div>  -->
+      <div class="dateDetail fr">
+
+      </div>
+    </div>
+    <div class="partTitleT"></div>
+    <div class="main-body">
+      <div class="filterBox clearfix">
+        <span class="filterItem typeFilter">
+          <span>科室:</span>
+          <!-- <input class="patientNumInp" style="width: 148px;" type="text" placeholder="请输入科室名称"> -->
+          <input type="text" class="selectDept canEditDept" value="全部">
+          <ul class="deptList filterDropList"></ul>
+        </span>
+        <span class="filterItem typeFilter">
+          <span>医师类别:</span>
+          <input type="text" class="selectPhysician canEditDept" value="全部">
+          <ul class="physicianList filterDropList"></ul>
+        </span>
+        <span class="filterItem">
+          <span>医师姓名:</span>
+          <span class="">
+            <input class="moduleItemInp" type="text" placeholder="请输入医师姓名">
+          </span>
+        </span>
+        <!-- <span class="filterItem typeFilter deptListWrap">
+                    <span>科室系统:</span>
+                    <span class="selectDept" data-id="">全部</span>
+                    <ul class="deptList filterDropList">
+                        <li class="deptItem ellipsis" title="全部" data-id="" data-name="全部">全部</li>
+                        <li class="deptItem ellipsis" title="内科系统" data-id="内科" data-name="内科系统">内科系统</li>
+                        <li class="deptItem ellipsis" title="外科系统" data-id="外科" data-name="外科系统">外科系统</li>
+                    </ul>
+                </span> -->
+
+        <span class="filterItem typeFilter clearfix dataSelectLight">
+          <span class="fl">出院日期:</span>
+          <span class="datapickerBox fl"><input type="text" placeholder="请选择时间" id="datepicker" autocomplete="off"
+              readonly /></span>
+          <span class="divide fl">-</span>
+          <span class="datapickerBox fl"><input type="text" placeholder="请选择时间" id="datepicker2" autocomplete="off"
+              readonly /></span>
+        </span>
+        <span class="filter">查询</span>
+        <span class="filterclear abnormalClear">重置</span>
+        <span class="export">导出</span>
+      </div>
+      <div class="deptScoreDetailControlTable">
+        <table>
+
+        </table>
+      </div>
+
+      <!--<div class="tabFoot">
+                <span class="scoreOpera" data-selectAll=false><img class="iconCheck" src="" alt="checkbox">全选</span>
+                <span class="recordScoreBtn">评分</span>
+            </div>-->
+
+      <div class="pagination"></div>
+    </div>
+
+  </div>
+</body>
+
+</html>

+ 82 - 0
src/html/qualifiedPhysician.html

@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <meta http-equiv="X-UA-Compatible" content="ie=edge">
+  <title>各科室缺陷占比</title>
+</head>
+
+<body>
+  <div class="container deptScoreDetailControl">
+    <div class="partTitle">
+      <p><a href="console.html">控制台 / </a>各科室缺陷占比</p>
+      <!-- <div class="monthYear">
+            <span class="mon">本月</span>
+            <span class="year">本年</span>
+          </div>  -->
+      <div class="dateDetail fr">
+
+      </div>
+    </div>
+    <div class="partTitleT"></div>
+    <div class="main-body">
+      <div class="filterBox clearfix">
+        <span class="filterItem typeFilter">
+          <span>科室:</span>
+          <!-- <input class="patientNumInp" style="width: 148px;" type="text" placeholder="请输入科室名称"> -->
+          <input type="text" class="selectDept canEditDept" value="全部">
+          <ul class="deptList filterDropList"></ul>
+        </span>
+        <span class="filterItem typeFilter">
+          <span>医师类别:</span>
+          <input type="text" class="selectPhysician canEditDept" value="全部">
+          <ul class="physicianList filterDropList"></ul>
+        </span>
+        <span class="filterItem">
+          <span>医师姓名:</span>
+          <span class="">
+            <input class="moduleItemInp" type="text" placeholder="请输入医师姓名">
+          </span>
+        </span>
+        <!-- <span class="filterItem typeFilter deptListWrap">
+                    <span>科室系统:</span>
+                    <span class="selectDept" data-id="">全部</span>
+                    <ul class="deptList filterDropList">
+                        <li class="deptItem ellipsis" title="全部" data-id="" data-name="全部">全部</li>
+                        <li class="deptItem ellipsis" title="内科系统" data-id="内科" data-name="内科系统">内科系统</li>
+                        <li class="deptItem ellipsis" title="外科系统" data-id="外科" data-name="外科系统">外科系统</li>
+                    </ul>
+                </span> -->
+
+        <span class="filterItem typeFilter clearfix dataSelectLight">
+          <span class="fl">出院日期:</span>
+          <span class="datapickerBox fl"><input type="text" placeholder="请选择时间" id="datepicker" autocomplete="off"
+              readonly /></span>
+          <span class="divide fl">-</span>
+          <span class="datapickerBox fl"><input type="text" placeholder="请选择时间" id="datepicker2" autocomplete="off"
+              readonly /></span>
+        </span>
+        <span class="filter">查询</span>
+        <span class="filterclear abnormalClear">重置</span>
+        <span class="export">导出</span>
+      </div>
+      <div class="deptScoreDetailControlTable">
+        <table>
+
+        </table>
+      </div>
+
+      <!--<div class="tabFoot">
+                <span class="scoreOpera" data-selectAll=false><img class="iconCheck" src="" alt="checkbox">全选</span>
+                <span class="recordScoreBtn">评分</span>
+            </div>-->
+
+      <div class="pagination"></div>
+    </div>
+
+  </div>
+</body>
+
+</html>

+ 5 - 2
src/js/api.js

@@ -25,6 +25,7 @@ const api = {
   getDeptList: '/bas/dept/getList',
   getDeptListUser: '/bas/dept/listForUser',
   getDeptListDept: '/bas/dept/getListUser',
+  getDoctorProfessorList: '/bas/doctor/getDoctorProfessorList',//医师类别
   getAverageDayNum: '/console/getAverageDayNum', //平均住院天数
   getAverageFee: '/console/getAverageFee', //平均住院费用
   getAverageScore: '/console/getAverageScore', //各科室质控平均分
@@ -105,7 +106,8 @@ const api = {
   hmImproveMRPage: '/console/hmImproveMRPage', //病案首页改善率质控评分页(内页)
   getDefaultPageSet: '/sys/user/pageset/getDefaultPageSet', //获取默认列设置
   getBadLevelPage: '/console/badLevelPage', //病案首页不合格数病历详情
-
+  homePageLevelStatisticsXY: '/console/homePageLevelStatisticsXY', //全院医师合格率 湘雅
+  homePageLevelStatisticsXYByDept: '/consoleByDept/homePageLevelStatisticsXYByDept', //科室医师合格率 湘雅
   //导出接口
   getAverageDayNumExport: '/console/export/getAverageDayNumExport', //科室平均住院天数
   getAverageFeeExport: '/console/export/getAverageFeeExport', //科室平均住院花费
@@ -173,7 +175,8 @@ const api = {
   leaveHosMRPageByDept: '/consoleByDept/leaveHosMRPageByDept',//出院人数,终末)
   leaveHosMrPageExportByDept: '/print/export/leaveHosMrPageExportByDept',//出院人数导出,终末)
   homePageOrLevelExportByDept: '/print/export/homePageOrLevelExportByDept',//控制台(科室) / 病案首页合格率占比 / 病历列表导出,终末)
-
+  homePageLevelXYExport: '/console/export/homePageLevelXYExport',//病案首页合格率占比报表导出 湘雅 全院
+  homePageLevelXYExportByDept: '/print/export/homePageLevelXYExportByDept',//病案首页合格率占比报表导出 湘雅 科室
   getMedQualityCoList: '/qc/behospitalInfo/getMedQualityCoList',//病案指标列表
   medicalRecordIndicator: '/console/medicalRecordIndicator',//病案指标
   getListDoctor: '/bas/doctor/getList',//(科室医生列表)

+ 758 - 0
src/js/deptQualifiedPhysician.js

@@ -0,0 +1,758 @@
+const $ = require('jquery');
+require("../css/qualifiedPhysician.less");
+require('./modal.js');
+const { api } = require('./api.js')
+const { post, getCookie, getUrlArgObjectNew, focusMenuItem, emptyBox, setDatePicker, getPickerDate, downloadExportedData, expJson, initScroll, listenScroll } = require('./utils.js')
+require('./../resource/jquery-ui/jquery-ui.min.js');
+require('./../resource/jquery-ui/jquery-ui.min.css');
+const iconCheck = require("./../images/icon_check.png")
+const iconUnCheck = require("./../images/icon_unchecked.png")
+const iconDown = require("./../images/arrow_down.png")
+const iconUp = require("./../images/arrow_up.png")
+const loadingImg = require("./../images/loading.gif")
+const arrowLeft = require("./../images/arrow_left.png")
+const arrowRight = require("./../images/arrow_right.png")
+const jiantou_up = require("./../images/jiantou_up.png")
+const jiantou_down = require("./../images/jiantou_down.png")
+let isPlacefile = getCookie('isPlacefile') || 1
+
+listenScroll()
+$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+$(".selectLeaveHosType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+let tabList = [], name = "", leaveHosType = "", leaveHosTypeTemp = "", behospitalCode = "", behosDateStart = "", level = "", behosDateEnd = "", scoreSum = 0, statisticsType = "", deptType = "",
+  nameTemp = "", behospitalCodeTemp = "", levelTemp = "", deptId = "", deptIdTemp = "", deptName = "", deptNameTemp = "", doctorName = "", doctorNum = "", doctorNameTemp = "", doctorNumTemp = "", professor = ""
+data_desc = ['deptName'], data_asc = [], hospital = getCookie("hospital");
+let srcUrl = $("#contentIframe", parent.document).attr("src")
+statisticsType = getUrlArgObjectNew("dateType", srcUrl) || ""
+deptType = getUrlArgObjectNew("deptType", srcUrl) || ""
+deptName = getUrlArgObjectNew("deptName", srcUrl) || ""
+let startDateParam = getUrlArgObjectNew("startDateParam", srcUrl) || ""
+let endDateParam = getUrlArgObjectNew("endDateParam", srcUrl) || ""
+if (hospital == '台州市立') {
+  $(".deptListWrap").css("display", "inline-block")
+  $('.selectLeaveHosType').html(deptType ? (deptType + '系统') : "全部").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  $(".leaveHosTypeList").css("display", "none")
+  $('.selectLeaveHosType').removeClass('unSelect')
+  leaveHosType = leaveHosTypeTemp = deptType
+  deptName = deptNameTemp
+} else {
+  $(".deptListWrap").css("display", "none")
+}
+if (statisticsType == 1) {
+  $(".monthYear .mon").css({
+    backgroundColor: '#00A1FF',
+    color: '#fff'
+  }).siblings().css({
+    color: '#00A1FF',
+    backgroundColor: '#fff'
+  })
+  setDatePicker($("#datepicker"), $("#datepicker2"), 1)
+} else if (statisticsType == 2) {
+  $(".monthYear .year").css({
+    backgroundColor: '#00A1FF',
+    color: '#fff'
+  }).siblings().css({
+    color: '#00A1FF',
+    backgroundColor: '#fff'
+  })
+  setDatePicker($("#datepicker"), $("#datepicker2"), 2)
+} else if (statisticsType == 3) {
+  setDatePicker($("#datepicker"), $("#datepicker2"), 3, new Date(startDateParam), new Date(endDateParam))
+} else {
+  setDatePicker($("#datepicker"), $("#datepicker2"), "default")
+}
+if (!statisticsType) {
+  setDatePicker($("#datepicker"), $("#datepicker2"), "default")
+}
+$(".abnormalClear").click(function () {
+  setDatePicker($("#datepicker"), $("#datepicker2"), "default")
+  behospitalCode = behospitalCodeTemp = ""
+  deptId = deptIdTemp = ""
+  leaveHosType = leaveHosTypeTemp = ""
+  deptName = deptNameTemp = ""
+  leaveHosType = "";
+  leaveHosTypeTemp = "";
+  professor = ""
+  doctorName = ""
+  $('.selectLeaveHosType').html('全部')
+  $(".leaveHosTypeList").css("display", "none")
+  $(".selectLeaveHosType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  $(".selectDept").attr({ 'title': "全部", 'data-id': '' }).val("全部")
+  $(".patientNumInp").val("")
+  getTabData(1)
+  getDeptList()
+  getDoctorProfessorList()
+})
+
+$(".partTitle a").click(function () {//初始菜单选中
+  $(".menu .page", parent.document).removeClass("active").eq(0).addClass("active");
+  $(".container", parent.document).addClass("console-cont");
+})
+
+$('.recordScoreBtn').css("opacity", hasData('FUNC000017') ? '1' : '0.5')
+dateChange()
+//所有数据切换日期筛选
+function dateChange() {
+  $(".monthYear .mon").click(function () {
+    $(this).css({
+      backgroundColor: '#00A1FF',
+      color: '#fff'
+    }).siblings().css({
+      color: '#00A1FF',
+      backgroundColor: '#fff'
+    })
+    $(".dayDetail .deptListWrap").css("display", "block")
+    $(".dayDetail .dayFilter").css("display", "none")
+    statisticsType = 1
+    setDatePicker($("#datepicker"), $("#datepicker2"), 1)
+    getTabData(1)
+  })
+  $(".monthYear .year").click(function () {
+    $(this).css({
+      backgroundColor: '#00A1FF',
+      color: '#fff'
+    }).siblings().css({
+      color: '#00A1FF',
+      backgroundColor: '#fff'
+    })
+    $(".dayDetail .deptListWrap").css("display", "none")
+    $(".dayDetail .dayFilter").css("display", "block")
+    statisticsType = 2
+    setDatePicker($("#datepicker"), $("#datepicker2"), 2)
+    getTabData(1)
+  })
+}
+// YH-ZKK-GKSQXZB_XQ
+$(".menu .page", parent.document).removeClass("active")
+$(parent.document).find(".menu .page[code=YH-KSZR-BASYHGLYSZB_XQ]").addClass("active")
+
+bindleaveHosTypeSelect()
+//出院人数类型选择
+function bindleaveHosTypeSelect() {
+  $('.leaveHosTypeItem').on("click", function () {
+    const leaveHosTypeItemName = $(this).attr("data-name")
+    const leaveHosTypeItemItemId = $(this).attr("data-id")
+    leaveHosTypeTemp = leaveHosTypeItemItemId
+    $('.selectLeaveHosType').html(leaveHosTypeItemName)
+    $(".leaveHosTypeList").css("display", "none")
+    $(".selectLeaveHosType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+    $('.selectLeaveHosType').removeClass('unSelect')
+  })
+}
+//判断有无某一权限
+function hasData(data, parent) {
+  let codeLis = getCookie("codeLis")
+  if (parent) {
+    if (codeLis.indexOf(parent) == -1) {//有权限
+      return false
+    }
+  }
+  if (codeLis.indexOf(data) > -1) {//有权限
+    return true
+  }
+  return false;
+}
+function getTabData(activePage) {
+  const dateStatrt = getPickerDate($("#datepicker"), 1)
+  const dateEnd = getPickerDate($("#datepicker2"), 2)
+  const start = new Date(dateStatrt).getTime()
+  const end = new Date(dateEnd).getTime()
+  if (start > end) {
+    $.alerModal({ "message": '开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+    return
+  }
+  const param = {
+    "asc": data_asc,
+    "desc": data_desc,
+    "doctorName": doctorName,
+    "name": behospitalCode || "",
+    "deptClass": leaveHosType || '',
+    "deptName": deptName == "全部" ? "" : deptName || "",
+    "professor": professor == "全部" ? "" : professor || "",
+    "type": 0, //1-本月,2-本年,0-自定义时间(现在 都是自定义时间,都会传具体时间进去)
+    "startDate": dateStatrt,
+    "endDate": dateEnd
+  }
+  let url = api.homePageLevelStatisticsXYByDept
+
+  startDateParam = dateStatrt
+  endDateParam = dateEnd
+  $('.pagination').html("")
+  $('.deptScoreDetailControlTable table').html(`<tbody>${emptyBox('努力加载中...', '', 1)}</tbody>`)
+
+  post(url, param).then(res => {
+    if (res.data.code == '0') {
+      const data = res.data.data;
+      tabList = data.records;
+      const totalPage = data.pages;
+      const totalNum = data.total;
+      renderTab(data.records, data.hospitalId, activePage);
+      renderPagination(totalPage, Number(activePage), totalNum)
+      if (totalPage > 1) {
+        renderPagination(totalPage, Number(activePage), totalNum)
+      } else {
+        $('.pagination').html("")
+      }
+    } else {
+      $.alerModal({ "message": res.data.msg, type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+    }
+  }).catch((e) => {
+
+  })
+}
+
+getTabData(1)
+
+$(".moduleItemInp").on("input", function (e) {
+  const val = $(this).val().trim()
+  doctorName = val
+})
+$("body").on("click", "th[code]", function (e) {
+  const code = $(this).attr("code");
+  if (data_asc[0] === code) {
+    data_desc = [code];
+    data_asc = [];
+    $("th[code]").removeClass("asc desc");
+    $(this).addClass("desc");
+  } else {
+    data_desc = [];
+    data_asc = [code];
+    $("th[code]").removeClass("asc desc");
+    $(this).addClass("asc");
+  }
+  getTabData(1);
+});
+$(".filter").on("click", function (e) {
+  name = nameTemp
+  behospitalCode = behospitalCodeTemp
+  level = levelTemp
+  deptId = deptIdTemp
+  leaveHosType = leaveHosTypeTemp
+  deptName = deptNameTemp
+  if (deptName == "") {
+    $(".selectDept").attr({ 'title': "全部", 'data-id': '' }).val("全部")
+  }
+  getTabData(1)
+})
+function renderTab(data, hisId, activePage) {
+  let str = ``
+  let tHead = `
+        <thead>
+        <th class="moduleName" style="width: 65px;">序号</th>
+        <th class="beHospitalId textCenter ${data_asc == 'deptName' ? 'asc' : data_desc == 'deptName' ? 'desc' : ''}" code="deptName">科室</th>
+        <th class="beHospitalId textCenter ${data_asc == 'professor' ? 'asc' : data_desc == 'professor' ? 'desc' : ''}" code="professor">医师类别</th>
+        <th class="beHospitalId textCenter ${data_asc == 'doctorName' ? 'asc' : data_desc == 'doctorName' ? 'desc' : ''}" code="doctorName">医师姓名</th>
+        <th class="beHospitalId textCenter ${data_asc == 'entryNum' ? 'asc' : data_desc == 'entryNum' ? 'desc' : ''}" code="entryNum">缺陷总数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'secondLevelNum' ? 'asc' : data_desc == 'secondLevelNum' ? 'desc' : ''}" code="secondLevelNum">不合格数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'firstLevelNum' ? 'asc' : data_desc == 'firstLevelNum' ? 'desc' : ''}" code="firstLevelNum">合格数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'firstLevelPercent' ? 'asc' : data_desc == 'firstLevelPercent' ? 'desc' : ''}" code="firstLevelPercent">合格率</th>
+        <th class="beHospitalId textCenter ${data_asc == 'emptyNum' ? 'asc' : data_desc == 'emptyNum' ? 'desc' : ''}" code="emptyNum">空项数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'emptyPercentStr' ? 'asc' : data_desc == 'emptyPercentStr' ? 'desc' : ''}" code="emptyPercentStr">完整率</th>
+        <th class="beHospitalId textCenter ${data_asc == 'errorNum' ? 'asc' : data_desc == 'errorNum' ? 'desc' : ''}" code="errorNum">错误数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'errorPercentStr' ? 'asc' : data_desc == 'errorPercentStr' ? 'desc' : ''}" code="errorPercentStr">完善率</th>
+        <th class="beHospitalId textCenter ${data_asc == 'averageValue' ? 'asc' : data_desc == 'averageValue' ? 'desc' : ''}" code="averageValue">质控平均分</th>
+        <th class="beHospitalId textCenter ${data_asc == 'mrNum' ? 'asc' : data_desc == 'mrNum' ? 'desc' : ''}" code="mrNum">质控病历数</th>
+        </thead>`
+  for (let i = 0; i < data.length; i++) {
+    const item = data[i]
+    str += `
+            <tr  data-index=${i}>
+                <td  class="textCenter">${(activePage - 1) * 15 + i + 1}</td>
+                <td >${item.deptName || "-"}</td>
+                <td >${item.professor || "-"}</td>
+                <td >${item.doctorName || "-"}</td>
+                <td class="goHomeDetailQuexian goHomeDetail" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.entryNum || "-"}
+                    ${item.entrySameNum < 0 ? '<img class="updownimg" src="' + jiantou_down + '"/>' : item.entrySameNum > 0 ? '<img class="updownimg" src="' + jiantou_up + '"/>' : ''}
+                </td>
+                <td class="goHomeDetailQuexian goHomeDetail1" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.secondLevelNum}
+                </td>
+                <td class="goHomeDetailQuexian goHomeDetail1" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.firstLevelNum}
+                </td>
+                <td >${item.firstLevelPercentStr}</td>
+                <td class="goHomeDetailQuexian goHomeDetail" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.emptyNum}
+                </td>
+                <td >${item.emptyPercentStr}</td>
+                <td class="goHomeDetailQuexian goHomeDetail" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.errorNum}
+                </td>
+                <td >${item.errorPercentStr}</td>
+                <td >${item.averageValue}</td>
+                <td >${item.mrNum}</td>     
+            </tr>
+        `
+  }
+  $('.deptScoreDetailControlTable table').html(str ? tHead + '<tbody>' + str + '</tbody>' : tHead + `<tbody>${emptyBox()}</tbody>`)
+  bindScoreDetail(hisId)
+  $(".goHomeDetail").click(function () {
+    let index = $(this).parent().attr("data-index")
+    let deptName = $(this).attr("data-dept")
+    let ruleType = $(this).attr("data-ruleType")
+    let deptId = data[index].deptId
+    $(parent.document).find("#contentIframe").attr("src", "quexianDetailControlHome.html?deptName=" + deptName + "&deptId=" + deptId + "&from=1&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam)
+  })
+  // 不合格数跳转至 病历列表详情页
+  $(".goHomeDetail1").click(function () {
+    let index = $(this).parent().attr("data-index")
+    let deptName = $(this).attr("data-dept")
+    let titleName = $(this).attr("data-title")
+    // let ruleType = $(this).attr("data-ruleType")
+    let deptId = data[index].deptId
+    // $(parent.document).find("#contentIframe").attr("src", "qcListCopy.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&defectName=" + defectName)
+    $(parent.document).find("#contentIframe").attr("src", "qcListCopyUnqualified.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&titleName=" + titleName)
+  })
+  // initScroll("deptScoreDetailControl","YX",1)
+}
+
+function scoreDetail(id, age, hid, code) {
+  window.open(`./qcScore.html?id=${id}&age=${age}&hid=${hid}&code=${code}`)
+}
+function bindScoreDetail(hisId) {
+  $('.patientNameSpan').on('click', function (e) {
+    const index = $(this).attr("data-index")
+    const type = $(this).attr("data-type")
+    const item = tabList[index]
+    midifyMsgBox(item, type)
+  })
+}
+
+
+function midifyMsgBox(item, type) {
+  const itemCopy = JSON.parse(JSON.stringify(item))
+  let msgBox = ''
+  if (type == 1) {
+    msgBox = `<div class="midifyMsgBox">
+            <div class="mask"></div>
+            <div class="midifyMsgContent abnormal">
+                <p class="midifyMsgTitle">修改 <img class="iconClose" src=${require('./../images/icon_close_default.png')} alt="关闭" /></p>
+                <div class="itemMsgInfoBox">
+                    <span class="itemMsgLab abnormalLeft">状态:</span> 
+                    <span class="abnormalAll" data-status="${itemCopy.status}">${itemCopy.status == 0 ? "未处理" : "已处理"}</span>
+                    <ul class="abnormalStatusLis">
+                        <li data-status="0">未处理</li>
+                        <li data-status="1">已处理</li>
+                    </ul>
+                </div>
+                <div class="itemMsgInfoBox">
+                    <span class="itemMsgLab abnormalLeft abnormalMark">备注:</span> 
+                    <span class="itemInfoRight"> 
+                        <textarea class="abnormalTxt" placeholder="请输入内容" >${itemCopy.remark}</textarea>
+                    </span>
+                </div>
+                <div  class="itemMsgInfoTips">支持≥0的数字输入,最多保留小数点后1位~</div>
+                <div class="midifyMsgBtn abnormalBtn">
+                    <span class="midifyEdit">保存</span>
+                </div>
+            </div>
+        </div>`
+  } else {
+    msgBox = `<div class="midifyMsgBox">
+            <div class="mask"></div>
+            <div class="midifyMsgContent midifyMsgContentDel">
+                <p class="midifyMsgTitle">修改 <img class="iconClose" src=${require('./../images/icon_close_default.png')} alt="关闭" /></p>
+                <p class="delTips">确认要删除该条异常记录?</p>
+                <div class="midifyMsgBtn midifyMsgBtnDel">
+                    <span class="midifyEdit midifyEditDel">删除</span>
+                    <span class="midifyEdit midifyEditQuit">取消</span>
+                </div>
+            </div>
+        </div>`
+  }
+  $("#mainBox", parent.document).append(msgBox)
+  $(".midifyEditDel", parent.document).on("click", function () {
+    delModifyOne(itemCopy)
+  })
+  $(".midifyEditQuit", parent.document).on("click", function () {
+    $("#mainBox .midifyMsgBox", parent.document).remove()
+  })
+  $(".abnormalAll", parent.document).on("click", function () {
+    $(".abnormalStatusLis", parent.document).slideToggle()
+  })
+  $(".abnormalStatusLis li", parent.document).on("click", function () {
+    let status = $(this).attr("data-status")
+    let str = $(this).html()
+    $(".abnormalAll", parent.document).attr("data-status", status).html(str)
+    $(".abnormalStatusLis", parent.document).slideToggle()
+  })
+  $("#mainBox .midifyMsgBox .iconClose", parent.document).on("click", function (e) {
+    $("#mainBox .midifyMsgBox", parent.document).remove()
+  })
+  $("#mainBox .midifyMsgBox .itemScore", parent.document).on("keypress", function (event) {
+    return (/[\d\.]/.test(String.fromCharCode(event.keyCode)))
+  })
+  $("#mainBox .midifyMsgBox .itemScore", parent.document).on("input", function (e) {
+    const val = $(this).val()
+    itemCopy.score = val
+  })
+  $("#mainBox .midifyMsgBox .midifyEdit", parent.document).on("click", function (e) {
+    saveModifyOne(itemCopy)
+  })
+}
+//保存修改
+function delModifyOne(itemCopy) {
+  let param = {
+    "id": itemCopy.id
+  }
+  post(api.delQcAnnormal, param).then(res => {
+    if (res.data.code == '0') {
+      const data = res.data.data;
+      getTabData(1)
+      $("#mainBox .midifyMsgBox", parent.document).remove()
+      $.alerModal({ "message": '删除成功', type: "tip", time: '1000', isFather: true, win: true, fatherWrapper: $("#mainBox", parent.document) });
+    } else {
+      $.alerModal({ "message": '删除失败,请重试~', type: "tip", time: '1000', win: 'default', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+
+    }
+  }).catch((e) => {
+    $.alerModal({ "message": '删除失败,请重试~', type: "tip", time: '1000', win: 'default', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+
+  })
+}
+//保存修改
+function saveModifyOne(itemCopy) {
+  let txt = $(".abnormalTxt", parent.document).val()
+  let status = $(".abnormalAll", parent.document).attr("data-status")
+  let param = {
+    "id": itemCopy.id,
+    "remark": txt,
+    "status": status
+  }
+  post(api.saveQcAnnormal, param).then(res => {
+    if (res.data.code == '0') {
+      const data = res.data.data;
+      getTabData(1)
+      $("#mainBox .midifyMsgBox", parent.document).remove()
+      $.alerModal({ "message": '修改成功', type: "tip", time: '1000', isFather: true, win: true, fatherWrapper: $("#mainBox", parent.document) });
+    } else {
+      $.alerModal({ "message": '修改失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+
+    }
+  }).catch((e) => {
+    $.alerModal({ "message": '修改失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+
+  })
+}
+
+//选择出院人数类型
+$('.selectLeaveHosType').on("click", function (e) {
+  e.stopPropagation()
+  $(".deptList ").css("display", "none")
+  $(".selectDept .arrow").attr("src", iconDown)
+  $(".levelList ").css("display", "none")
+  $(".checkList ").css("display", "none")
+  $(".selectCheck .arrow").attr("src", iconDown)
+  $(".selectLeaveHosType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  const showList = $(".leaveHosTypeList ").css("display")
+  if (showList == "none" || !showList) {
+    $(".leaveHosTypeList ").css("display", "block")
+    $(".selectLeaveHosType .arrow").attr("src", iconUp)
+  } else {
+    $(".leaveHosTypeList ").css("display", "none")
+    $(".selectLeaveHosType .arrow").attr("src", iconDown)
+  }
+})
+
+bindLeveldSelect()
+//是否启用选择
+function bindLeveldSelect() {
+  $('.levelItem').on("click", function () {
+    const levelItemName = $(this).attr("data-name")
+    const levelItemItemId = $(this).attr("data-id")
+    levelTemp = levelItemItemId
+    $('.selectLevel').html(levelItemName)
+    $(".levelList").css("display", "none")
+    $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  })
+}
+
+//全选绑定
+$('.selectDept').on("focus", function (e) {
+  e.stopPropagation()
+  $(".levelList ").css("display", "none")
+  $(".selectLevel .arrow").attr("src", iconDown)
+  $(".deptList ").css("display", "block")
+})
+$('.selectPhysician').on("focus", function (e) {
+  e.stopPropagation()
+  $(".levelList ").css("display", "none")
+  $(".selectLevel .arrow").attr("src", iconDown)
+  $(".physicianList ").css("display", "block")
+})
+
+$('.selectPhysician').on("blur", function (e) {
+  $(".physicianList ").css("display", "none")
+  $(".selectPhysician .arrow").attr("src", iconDown)
+})
+$('.selectDept').on("blur", function (e) {
+  $(".deptList ").css("display", "none")
+  $(".selectDept .arrow").attr("src", iconDown)
+})
+$('.selectDept').on("input", function (e) {
+  let val = $(this).val().trim()
+  deptName = deptNameTemp = val
+  getDeptList(deptName)
+})
+$('.selectPhysician').on("input", function (e) {
+  let val = $(this).val().trim()
+  deptName = deptNameTemp = val
+  getDoctorProfessorList(deptName)
+})
+
+//获取医师类别
+getDoctorProfessorList()
+function getDoctorProfessorList(val) {
+  post(api.getDoctorProfessorList, { inputStr: val == "全部" ? "" : val || "", }).then(res => {
+    if (res.data.code == '0') {
+      const physicianList = res.data.data || []
+      rendePhysicianList(physicianList)
+    } else {
+      rendePhysicianList([])
+    }
+  }).catch((e) => {
+
+  })
+}
+function rendePhysicianList(physicianList) {
+  if (physicianList.length == 0) {
+    $('.physicianList').html("")
+    return
+  }
+  let str = `<li class="physicianItem " data-id=" " data-name="全部">全部</li>`
+  for (let i = 0; i < physicianList.length; i++) {
+    str += `<li class="physicianItem ellipsis" title=${physicianList[i]}  data-name=${physicianList[i]}> ${physicianList[i]}</li>`
+  }
+  $('.physicianList').html(str)
+  bindPhysicianSelect()
+}
+//医师类别选中
+function bindPhysicianSelect() {
+  $('.physicianItem').on("mousedown", function () {
+    const physicianItemName = $(this).attr("data-name")
+    const physicianItemId = $(this).attr("data-id")
+    physicianIdTemp = physicianItemId
+    professor = physicianItemName === "全部" ? "" : physicianItemName;
+    $('.selectPhysician').val(physicianItemName)
+    $('.selectPhysician ').attr('title', physicianItemName)
+    $(".physicianList").css("display", "none")
+    $('.selectPhysician').removeClass('unSelect')
+  })
+}
+//获取科室列表
+getDeptList()
+function getDeptList(val) {
+  post(api.getDeptList, { inputStr: val == "全部" ? "" : val || "" }).then(res => {
+    if (res.data.code == '0') {
+      const deptList = res.data.data || []
+      rendeDeptList(deptList)
+    } else {
+      rendeDeptList([])
+    }
+  }).catch((e) => {
+
+  })
+}
+
+function rendeDeptList(deptList) {
+  if (deptList.length == 0) {
+    $('.deptList').html("")
+    return
+  }
+  let str = `<li class="deptItem " data-id=" " data-name="全部">全部</li>`
+  for (let i = 0; i < deptList.length; i++) {
+    str += `<li class="deptItem ellipsis" title=${deptList[i].deptName} data-id=${deptList[i].deptId} data-name=${deptList[i].deptName}> ${deptList[i].deptName}</li>`
+  }
+  $('.deptList').html(str)
+  bindDeptSelect()
+}
+//科室选择
+function bindDeptSelect() {
+  $('.deptItem').on("mousedown", function () {
+    const deptItemName = $(this).attr("data-name")
+    const deptItemId = $(this).attr("data-id")
+    deptIdTemp = deptItemId
+    deptNameTemp = deptItemName === "全部" ? "" : deptItemName;
+    $('.selectDept').val(deptItemName)
+    $('.selectDept ').attr('title', deptItemName)
+    $(".deptList").css("display", "none")
+    $('.selectDept').removeClass('unSelect')
+  })
+}
+function loading() {
+  const str = `
+    <div class="loadingBox">
+            <div class="mask"></div>
+            <img class="loadingImg" src=${loadingImg}  alt="loading" />
+        </div>
+    `
+  $("#mainBox", parent.document).append(str)
+}
+function hideLoading() {
+  $("#mainBox .loadingBox", parent.document).remove()
+}
+$('.recordScoreBtn').on("click", function (e) {
+  if (!hasData('FUNC000017', 'YH-BLZK-ZKPF')) {
+    return
+  }
+  let scoreList = []
+  for (let i = 0; i < tabList.length; i++) {
+    if (tabList[i].hasSelect) {
+      scoreList.push(tabList[i].behospitalCode)
+    }
+  }
+  if (scoreList.length === 0) {
+    $.alerModal({ "message": '请选择要评分的项!', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+    return
+  } else {
+    loading()
+    for (let j = 0; j < scoreList.length; j++) {
+      recordScore(scoreList[j], scoreList.length)
+    }
+  }
+})
+function recordScore(behospitalCode, totalNum) {
+  const param = {
+    behospitalCode: behospitalCode
+  }
+  post(api.recordScore, param).then(res => {
+    if (res.data.code == '0') {
+      scoreSum++
+      if (scoreSum === totalNum) {
+        hideLoading()
+        scoreSum = 0
+        const activePage = $(".activePage").attr('data-page') || 1
+
+        getTabData(activePage)
+      }
+
+    } else { }
+  }).catch((e) => {
+
+  })
+}
+$(".patientNumInp").on("input", function (e) {
+  const val = $(this).val().trim()
+  behospitalCodeTemp = val
+})
+$(".patientNameInp").on("input", function (e) {
+  const val = $(this).val().trim()
+  nameTemp = val
+})
+$(".doctorInp").on("input", function (e) {
+  const val = $(this).val().trim()
+  doctorNameTemp = val
+})
+$(".doctorNumInp").on("input", function (e) {
+  const val = $(this).val().trim();
+  doctorNumTemp = val
+})
+
+//分页渲染
+function renderPagination(totalPage, activePage, totalNum) {
+  let str = `<span class="totalSum">共${totalPage}页/${totalNum}条数据</span><span class="prePage"><img class="arrowPage" src=${arrowLeft} /></span>`
+  if (totalPage <= 6) {
+    for (let i = 1; i <= totalPage; i++) {
+
+      str += `<span class="pageNum ${'page' + i}" data-page=${i}>${i}</span>`
+    }
+  } else {
+    if (activePage <= 3) { //选中页数小于4
+      for (let i = 1; i <= 4; i++) {
+        str += `<span class="pageNum ${'page' + i}" data-page=${i}>${i}</span>`
+      }
+      str += `<span class="more" >...</span>`
+      str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
+
+    } else if (activePage > totalPage - 3) {
+      str += `<span class="pageNum page1" data-page=1>1</span>`
+      str += `<span class="more" >...</span>`
+      str += `<span class="pageNum ${'page' + (totalPage - 3)}" data-page=${totalPage - 3}>${totalPage - 3}</span>`
+      str += `<span class="pageNum ${'page' + (totalPage - 2)}" data-page=${totalPage - 2}>${totalPage - 2}</span>`
+      str += `<span class="pageNum ${'page' + (totalPage - 1)}" data-page=${totalPage - 1}>${totalPage - 1}</span>`
+      str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
+    } else {
+      str += `<span class="pageNum page1" data-page=1>1</span>`
+      str += `<span class="more" >...</span>`
+      str += `<span class="pageNum ${'page' + (activePage - 1)}" data-page=${activePage - 1}>${activePage - 1}</span>`
+      str += `<span class="pageNum ${'page' + activePage}" data-page=${activePage}>${activePage}</span>`
+      str += `<span class="pageNum ${'page' + (activePage + 1)}" data-page=${activePage + 1}>${activePage + 1}</span>`
+      str += `<span class="more" >...</span>`
+      str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
+    }
+
+  }
+  str += `<span class="nextPage"><img class="arrowPage" src=${arrowRight} /></span>`
+  $('.pagination').html(str)
+  $('.page' + activePage).addClass('activePage')
+  $(".pageNum").on("click", function (e) {
+    const activePageNow = Number($(this).attr('data-page'))
+    getTabData(activePageNow)
+    // renderPagination(totalPage,activePageNow,totalNum)
+  })
+  $(".prePage").on("click", function (e) {
+    let activePageNow = Number($(".activePage").attr('data-page'))
+    if (activePageNow > 1) {
+      activePageNow--
+      getTabData(activePageNow)
+      // renderPagination(totalPage,activePageNow,totalNum)
+    }
+  })
+  $(".nextPage").on("click", function (e) {
+    let activePageNow = Number($(".activePage").attr('data-page'))
+    if (activePageNow < totalPage) {
+      activePageNow++
+      getTabData(activePageNow)
+      // renderPagination(totalPage,activePageNow,totalNum)
+    }
+  })
+
+}
+
+$(document).on("click", function () {
+  $(".levelList ").css("display", "none")
+  $(".selectLevel .arrow").attr("src", iconDown)
+
+})
+
+$(function () {
+  const iconCalenBlue = require("./../images/darkDate.png")
+  const iconCalenGrey = require("./../images/icon_calen_grey.png")
+  $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
+  $('.iconCalen').on("mouseenter", function (e) {
+    $(this).attr("src", iconCalenBlue)
+  })
+  $('.iconCalen').on("mouseleave", function (e) {
+    $(this).attr("src", iconCalenGrey)
+  })
+  $('.iconCalen').on("click", function (e) {
+    $(this).parent().find("input").focus()
+  });
+  $('.export').click(function () {
+    const start = new Date(startDateParam).getTime()
+    const end = new Date(endDateParam).getTime()
+    if (start > end) {
+      $.alerModal({ "message": '开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+      return
+    }
+    const param = {
+      "asc": data_asc,
+      "desc": data_desc,
+      "name": behospitalCode || "",
+      "doctorName": doctorName,
+      "deptClass": leaveHosType || '',
+      "professor": professor == "全部" ? "" : professor || "",
+      "deptName": deptName == "全部" ? "" : deptName || "",
+      "type": statisticsType || 2, //1-本月,2-本年
+      "startDate": startDateParam,
+      "isPlacefile": isPlacefile,
+      "endDate": endDateParam
+    };
+    const url = api.homePageLevelXYExportByDept
+    expJson(url, param).then(res => {
+      downloadExportedData(res.data, "病案首页合格率医师占比.xls")
+    })
+  })
+});

+ 0 - 1
src/js/partDetailControl.js

@@ -219,7 +219,6 @@ function renderTab(data,hisId,activePage){
         let deptId = data[index].deptId
         // $(parent.document).find("#contentIframe").attr("src", "qcListCopy.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&defectName=" + defectName)
         $(parent.document).find("#contentIframe").attr("src", "qcListCopyUnqualified.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" +  "&startDate=" + startDateParam + "&endDate=" + endDateParam+"&titleName="+titleName )
-
     })
     // initScroll("partDetailControl","YX",1)
 }

+ 758 - 0
src/js/qualifiedPhysician.js

@@ -0,0 +1,758 @@
+const $ = require('jquery');
+require("../css/qualifiedPhysician.less");
+require('./modal.js');
+const { api } = require('./api.js')
+const { post, getCookie, getUrlArgObjectNew, focusMenuItem, emptyBox, setDatePicker, getPickerDate, downloadExportedData, expJson, initScroll, listenScroll } = require('./utils.js')
+require('./../resource/jquery-ui/jquery-ui.min.js');
+require('./../resource/jquery-ui/jquery-ui.min.css');
+const iconCheck = require("./../images/icon_check.png")
+const iconUnCheck = require("./../images/icon_unchecked.png")
+const iconDown = require("./../images/arrow_down.png")
+const iconUp = require("./../images/arrow_up.png")
+const loadingImg = require("./../images/loading.gif")
+const arrowLeft = require("./../images/arrow_left.png")
+const arrowRight = require("./../images/arrow_right.png")
+const jiantou_up = require("./../images/jiantou_up.png")
+const jiantou_down = require("./../images/jiantou_down.png")
+let isPlacefile = getCookie('isPlacefile') || 1
+
+listenScroll()
+$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+$(".selectLeaveHosType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+let tabList = [], name = "", leaveHosType = "", leaveHosTypeTemp = "", behospitalCode = "", behosDateStart = "", level = "", behosDateEnd = "", scoreSum = 0, statisticsType = "", deptType = "",
+  nameTemp = "", behospitalCodeTemp = "", levelTemp = "", deptId = "", deptIdTemp = "", deptName = "", deptNameTemp = "", doctorName = "", doctorNum = "", doctorNameTemp = "", doctorNumTemp = "", professor = ""
+data_desc = ['deptName'], data_asc = [], hospital = getCookie("hospital");
+let srcUrl = $("#contentIframe", parent.document).attr("src")
+statisticsType = getUrlArgObjectNew("dateType", srcUrl) || ""
+deptType = getUrlArgObjectNew("deptType", srcUrl) || ""
+deptName = getUrlArgObjectNew("deptName", srcUrl) || ""
+let startDateParam = getUrlArgObjectNew("startDateParam", srcUrl) || ""
+let endDateParam = getUrlArgObjectNew("endDateParam", srcUrl) || ""
+if (hospital == '台州市立') {
+  $(".deptListWrap").css("display", "inline-block")
+  $('.selectLeaveHosType').html(deptType ? (deptType + '系统') : "全部").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  $(".leaveHosTypeList").css("display", "none")
+  $('.selectLeaveHosType').removeClass('unSelect')
+  leaveHosType = leaveHosTypeTemp = deptType
+  deptName = deptNameTemp
+} else {
+  $(".deptListWrap").css("display", "none")
+}
+if (statisticsType == 1) {
+  $(".monthYear .mon").css({
+    backgroundColor: '#00A1FF',
+    color: '#fff'
+  }).siblings().css({
+    color: '#00A1FF',
+    backgroundColor: '#fff'
+  })
+  setDatePicker($("#datepicker"), $("#datepicker2"), 1)
+} else if (statisticsType == 2) {
+  $(".monthYear .year").css({
+    backgroundColor: '#00A1FF',
+    color: '#fff'
+  }).siblings().css({
+    color: '#00A1FF',
+    backgroundColor: '#fff'
+  })
+  setDatePicker($("#datepicker"), $("#datepicker2"), 2)
+} else if (statisticsType == 3) {
+  setDatePicker($("#datepicker"), $("#datepicker2"), 3, new Date(startDateParam), new Date(endDateParam))
+} else {
+  setDatePicker($("#datepicker"), $("#datepicker2"), "default")
+}
+if (!statisticsType) {
+  setDatePicker($("#datepicker"), $("#datepicker2"), "default")
+}
+$(".abnormalClear").click(function () {
+  setDatePicker($("#datepicker"), $("#datepicker2"), "default")
+  behospitalCode = behospitalCodeTemp = ""
+  deptId = deptIdTemp = ""
+  leaveHosType = leaveHosTypeTemp = ""
+  deptName = deptNameTemp = ""
+  leaveHosType = "";
+  leaveHosTypeTemp = "";
+  professor = ""
+  doctorName = ""
+  $('.selectLeaveHosType').html('全部')
+  $(".leaveHosTypeList").css("display", "none")
+  $(".selectLeaveHosType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  $(".selectDept").attr({ 'title': "全部", 'data-id': '' }).val("全部")
+  $(".patientNumInp").val("")
+  getTabData(1)
+  getDeptList()
+  getDoctorProfessorList()
+})
+
+$(".partTitle a").click(function () {//初始菜单选中
+  $(".menu .page", parent.document).removeClass("active").eq(0).addClass("active");
+  $(".container", parent.document).addClass("console-cont");
+})
+
+$('.recordScoreBtn').css("opacity", hasData('FUNC000017') ? '1' : '0.5')
+dateChange()
+//所有数据切换日期筛选
+function dateChange() {
+  $(".monthYear .mon").click(function () {
+    $(this).css({
+      backgroundColor: '#00A1FF',
+      color: '#fff'
+    }).siblings().css({
+      color: '#00A1FF',
+      backgroundColor: '#fff'
+    })
+    $(".dayDetail .deptListWrap").css("display", "block")
+    $(".dayDetail .dayFilter").css("display", "none")
+    statisticsType = 1
+    setDatePicker($("#datepicker"), $("#datepicker2"), 1)
+    getTabData(1)
+  })
+  $(".monthYear .year").click(function () {
+    $(this).css({
+      backgroundColor: '#00A1FF',
+      color: '#fff'
+    }).siblings().css({
+      color: '#00A1FF',
+      backgroundColor: '#fff'
+    })
+    $(".dayDetail .deptListWrap").css("display", "none")
+    $(".dayDetail .dayFilter").css("display", "block")
+    statisticsType = 2
+    setDatePicker($("#datepicker"), $("#datepicker2"), 2)
+    getTabData(1)
+  })
+}
+// YH-ZKK-GKSQXZB_XQ
+$(".menu .page", parent.document).removeClass("active")
+$(parent.document).find(".menu .page[code=YH-ZKK-BASYHGLYSZB_XQ]").addClass("active")
+
+bindleaveHosTypeSelect()
+//出院人数类型选择
+function bindleaveHosTypeSelect() {
+  $('.leaveHosTypeItem').on("click", function () {
+    const leaveHosTypeItemName = $(this).attr("data-name")
+    const leaveHosTypeItemItemId = $(this).attr("data-id")
+    leaveHosTypeTemp = leaveHosTypeItemItemId
+    $('.selectLeaveHosType').html(leaveHosTypeItemName)
+    $(".leaveHosTypeList").css("display", "none")
+    $(".selectLeaveHosType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+    $('.selectLeaveHosType').removeClass('unSelect')
+  })
+}
+//判断有无某一权限
+function hasData(data, parent) {
+  let codeLis = getCookie("codeLis")
+  if (parent) {
+    if (codeLis.indexOf(parent) == -1) {//有权限
+      return false
+    }
+  }
+  if (codeLis.indexOf(data) > -1) {//有权限
+    return true
+  }
+  return false;
+}
+function getTabData(activePage) {
+  const dateStatrt = getPickerDate($("#datepicker"), 1)
+  const dateEnd = getPickerDate($("#datepicker2"), 2)
+  const start = new Date(dateStatrt).getTime()
+  const end = new Date(dateEnd).getTime()
+  if (start > end) {
+    $.alerModal({ "message": '开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+    return
+  }
+  const param = {
+    "asc": data_asc,
+    "desc": data_desc,
+    "doctorName": doctorName,
+    "name": behospitalCode || "",
+    "deptClass": leaveHosType || '',
+    "deptName": deptName == "全部" ? "" : deptName || "",
+    "professor": professor == "全部" ? "" : professor || "",
+    "type": 0, //1-本月,2-本年,0-自定义时间(现在 都是自定义时间,都会传具体时间进去)
+    "startDate": dateStatrt,
+    "endDate": dateEnd
+  }
+  let url = api.homePageLevelStatisticsXY
+
+  startDateParam = dateStatrt
+  endDateParam = dateEnd
+  $('.pagination').html("")
+  $('.deptScoreDetailControlTable table').html(`<tbody>${emptyBox('努力加载中...', '', 1)}</tbody>`)
+
+  post(url, param).then(res => {
+    if (res.data.code == '0') {
+      const data = res.data.data;
+      tabList = data.records;
+      const totalPage = data.pages;
+      const totalNum = data.total;
+      renderTab(data.records, data.hospitalId, activePage);
+      renderPagination(totalPage, Number(activePage), totalNum)
+      if (totalPage > 1) {
+        renderPagination(totalPage, Number(activePage), totalNum)
+      } else {
+        $('.pagination').html("")
+      }
+    } else {
+      $.alerModal({ "message": res.data.msg, type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+    }
+  }).catch((e) => {
+
+  })
+}
+
+getTabData(1)
+
+$(".moduleItemInp").on("input", function (e) {
+  const val = $(this).val().trim()
+  doctorName = val
+})
+$("body").on("click", "th[code]", function (e) {
+  const code = $(this).attr("code");
+  if (data_asc[0] === code) {
+    data_desc = [code];
+    data_asc = [];
+    $("th[code]").removeClass("asc desc");
+    $(this).addClass("desc");
+  } else {
+    data_desc = [];
+    data_asc = [code];
+    $("th[code]").removeClass("asc desc");
+    $(this).addClass("asc");
+  }
+  getTabData(1);
+});
+$(".filter").on("click", function (e) {
+  name = nameTemp
+  behospitalCode = behospitalCodeTemp
+  level = levelTemp
+  deptId = deptIdTemp
+  leaveHosType = leaveHosTypeTemp
+  deptName = deptNameTemp
+  if (deptName == "") {
+    $(".selectDept").attr({ 'title': "全部", 'data-id': '' }).val("全部")
+  }
+  getTabData(1)
+})
+function renderTab(data, hisId, activePage) {
+  let str = ``
+  let tHead = `
+        <thead>
+        <th class="moduleName" style="width: 65px;">序号</th>
+        <th class="beHospitalId textCenter ${data_asc == 'deptName' ? 'asc' : data_desc == 'deptName' ? 'desc' : ''}" code="deptName">科室</th>
+        <th class="beHospitalId textCenter ${data_asc == 'professor' ? 'asc' : data_desc == 'professor' ? 'desc' : ''}" code="professor">医师类别</th>
+        <th class="beHospitalId textCenter ${data_asc == 'doctorName' ? 'asc' : data_desc == 'doctorName' ? 'desc' : ''}" code="doctorName">医师姓名</th>
+        <th class="beHospitalId textCenter ${data_asc == 'entryNum' ? 'asc' : data_desc == 'entryNum' ? 'desc' : ''}" code="entryNum">缺陷总数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'secondLevelNum' ? 'asc' : data_desc == 'secondLevelNum' ? 'desc' : ''}" code="secondLevelNum">不合格数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'firstLevelNum' ? 'asc' : data_desc == 'firstLevelNum' ? 'desc' : ''}" code="firstLevelNum">合格数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'firstLevelPercent' ? 'asc' : data_desc == 'firstLevelPercent' ? 'desc' : ''}" code="firstLevelPercent">合格率</th>
+        <th class="beHospitalId textCenter ${data_asc == 'emptyNum' ? 'asc' : data_desc == 'emptyNum' ? 'desc' : ''}" code="emptyNum">空项数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'emptyPercentStr' ? 'asc' : data_desc == 'emptyPercentStr' ? 'desc' : ''}" code="emptyPercentStr">完整率</th>
+        <th class="beHospitalId textCenter ${data_asc == 'errorNum' ? 'asc' : data_desc == 'errorNum' ? 'desc' : ''}" code="errorNum">错误数</th>
+        <th class="beHospitalId textCenter ${data_asc == 'errorPercentStr' ? 'asc' : data_desc == 'errorPercentStr' ? 'desc' : ''}" code="errorPercentStr">完善率</th>
+        <th class="beHospitalId textCenter ${data_asc == 'averageValue' ? 'asc' : data_desc == 'averageValue' ? 'desc' : ''}" code="averageValue">质控平均分</th>
+        <th class="beHospitalId textCenter ${data_asc == 'mrNum' ? 'asc' : data_desc == 'mrNum' ? 'desc' : ''}" code="mrNum">质控病历数</th>
+        </thead>`
+  for (let i = 0; i < data.length; i++) {
+    const item = data[i]
+    str += `
+            <tr  data-index=${i}>
+                <td  class="textCenter">${(activePage - 1) * 15 + i + 1}</td>
+                <td >${item.deptName || "-"}</td>
+                <td >${item.professor || "-"}</td>
+                <td >${item.doctorName || "-"}</td>
+                <td class="goHomeDetailQuexian goHomeDetail" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.entryNum || "-"}
+                    ${item.entrySameNum < 0 ? '<img class="updownimg" src="' + jiantou_down + '"/>' : item.entrySameNum > 0 ? '<img class="updownimg" src="' + jiantou_up + '"/>' : ''}
+                </td>
+                <td class="goHomeDetailQuexian goHomeDetail1" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.secondLevelNum}
+                </td>
+                <td class="goHomeDetailQuexian goHomeDetail1" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.firstLevelNum}
+                </td>
+                <td >${item.firstLevelPercentStr}</td>
+                <td class="goHomeDetailQuexian goHomeDetail" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.emptyNum}
+                </td>
+                <td >${item.emptyPercentStr}</td>
+                <td class="goHomeDetailQuexian goHomeDetail" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
+                    ${item.errorNum}
+                </td>
+                <td >${item.errorPercentStr}</td>
+                <td >${item.averageValue}</td>
+                <td >${item.mrNum}</td>     
+            </tr>
+        `
+  }
+  $('.deptScoreDetailControlTable table').html(str ? tHead + '<tbody>' + str + '</tbody>' : tHead + `<tbody>${emptyBox()}</tbody>`)
+  bindScoreDetail(hisId)
+  $(".goHomeDetail").click(function () {
+    let index = $(this).parent().attr("data-index")
+    let deptName = $(this).attr("data-dept")
+    let ruleType = $(this).attr("data-ruleType")
+    let deptId = data[index].deptId
+    $(parent.document).find("#contentIframe").attr("src", "quexianDetailControlHome.html?deptName=" + deptName + "&deptId=" + deptId + "&from=1&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam)
+  })
+  // 不合格数跳转至 病历列表详情页
+  $(".goHomeDetail1").click(function () {
+    let index = $(this).parent().attr("data-index")
+    let deptName = $(this).attr("data-dept")
+    let titleName = $(this).attr("data-title")
+    // let ruleType = $(this).attr("data-ruleType")
+    let deptId = data[index].deptId
+    // $(parent.document).find("#contentIframe").attr("src", "qcListCopy.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&defectName=" + defectName)
+    $(parent.document).find("#contentIframe").attr("src", "qcListCopyUnqualified.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&titleName=" + titleName)
+  })
+  // initScroll("deptScoreDetailControl","YX",1)
+}
+
+function scoreDetail(id, age, hid, code) {
+  window.open(`./qcScore.html?id=${id}&age=${age}&hid=${hid}&code=${code}`)
+}
+function bindScoreDetail(hisId) {
+  $('.patientNameSpan').on('click', function (e) {
+    const index = $(this).attr("data-index")
+    const type = $(this).attr("data-type")
+    const item = tabList[index]
+    midifyMsgBox(item, type)
+  })
+}
+
+
+function midifyMsgBox(item, type) {
+  const itemCopy = JSON.parse(JSON.stringify(item))
+  let msgBox = ''
+  if (type == 1) {
+    msgBox = `<div class="midifyMsgBox">
+            <div class="mask"></div>
+            <div class="midifyMsgContent abnormal">
+                <p class="midifyMsgTitle">修改 <img class="iconClose" src=${require('./../images/icon_close_default.png')} alt="关闭" /></p>
+                <div class="itemMsgInfoBox">
+                    <span class="itemMsgLab abnormalLeft">状态:</span> 
+                    <span class="abnormalAll" data-status="${itemCopy.status}">${itemCopy.status == 0 ? "未处理" : "已处理"}</span>
+                    <ul class="abnormalStatusLis">
+                        <li data-status="0">未处理</li>
+                        <li data-status="1">已处理</li>
+                    </ul>
+                </div>
+                <div class="itemMsgInfoBox">
+                    <span class="itemMsgLab abnormalLeft abnormalMark">备注:</span> 
+                    <span class="itemInfoRight"> 
+                        <textarea class="abnormalTxt" placeholder="请输入内容" >${itemCopy.remark}</textarea>
+                    </span>
+                </div>
+                <div  class="itemMsgInfoTips">支持≥0的数字输入,最多保留小数点后1位~</div>
+                <div class="midifyMsgBtn abnormalBtn">
+                    <span class="midifyEdit">保存</span>
+                </div>
+            </div>
+        </div>`
+  } else {
+    msgBox = `<div class="midifyMsgBox">
+            <div class="mask"></div>
+            <div class="midifyMsgContent midifyMsgContentDel">
+                <p class="midifyMsgTitle">修改 <img class="iconClose" src=${require('./../images/icon_close_default.png')} alt="关闭" /></p>
+                <p class="delTips">确认要删除该条异常记录?</p>
+                <div class="midifyMsgBtn midifyMsgBtnDel">
+                    <span class="midifyEdit midifyEditDel">删除</span>
+                    <span class="midifyEdit midifyEditQuit">取消</span>
+                </div>
+            </div>
+        </div>`
+  }
+  $("#mainBox", parent.document).append(msgBox)
+  $(".midifyEditDel", parent.document).on("click", function () {
+    delModifyOne(itemCopy)
+  })
+  $(".midifyEditQuit", parent.document).on("click", function () {
+    $("#mainBox .midifyMsgBox", parent.document).remove()
+  })
+  $(".abnormalAll", parent.document).on("click", function () {
+    $(".abnormalStatusLis", parent.document).slideToggle()
+  })
+  $(".abnormalStatusLis li", parent.document).on("click", function () {
+    let status = $(this).attr("data-status")
+    let str = $(this).html()
+    $(".abnormalAll", parent.document).attr("data-status", status).html(str)
+    $(".abnormalStatusLis", parent.document).slideToggle()
+  })
+  $("#mainBox .midifyMsgBox .iconClose", parent.document).on("click", function (e) {
+    $("#mainBox .midifyMsgBox", parent.document).remove()
+  })
+  $("#mainBox .midifyMsgBox .itemScore", parent.document).on("keypress", function (event) {
+    return (/[\d\.]/.test(String.fromCharCode(event.keyCode)))
+  })
+  $("#mainBox .midifyMsgBox .itemScore", parent.document).on("input", function (e) {
+    const val = $(this).val()
+    itemCopy.score = val
+  })
+  $("#mainBox .midifyMsgBox .midifyEdit", parent.document).on("click", function (e) {
+    saveModifyOne(itemCopy)
+  })
+}
+//保存修改
+function delModifyOne(itemCopy) {
+  let param = {
+    "id": itemCopy.id
+  }
+  post(api.delQcAnnormal, param).then(res => {
+    if (res.data.code == '0') {
+      const data = res.data.data;
+      getTabData(1)
+      $("#mainBox .midifyMsgBox", parent.document).remove()
+      $.alerModal({ "message": '删除成功', type: "tip", time: '1000', isFather: true, win: true, fatherWrapper: $("#mainBox", parent.document) });
+    } else {
+      $.alerModal({ "message": '删除失败,请重试~', type: "tip", time: '1000', win: 'default', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+
+    }
+  }).catch((e) => {
+    $.alerModal({ "message": '删除失败,请重试~', type: "tip", time: '1000', win: 'default', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+
+  })
+}
+//保存修改
+function saveModifyOne(itemCopy) {
+  let txt = $(".abnormalTxt", parent.document).val()
+  let status = $(".abnormalAll", parent.document).attr("data-status")
+  let param = {
+    "id": itemCopy.id,
+    "remark": txt,
+    "status": status
+  }
+  post(api.saveQcAnnormal, param).then(res => {
+    if (res.data.code == '0') {
+      const data = res.data.data;
+      getTabData(1)
+      $("#mainBox .midifyMsgBox", parent.document).remove()
+      $.alerModal({ "message": '修改成功', type: "tip", time: '1000', isFather: true, win: true, fatherWrapper: $("#mainBox", parent.document) });
+    } else {
+      $.alerModal({ "message": '修改失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+
+    }
+  }).catch((e) => {
+    $.alerModal({ "message": '修改失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+
+  })
+}
+
+//选择出院人数类型
+$('.selectLeaveHosType').on("click", function (e) {
+  e.stopPropagation()
+  $(".deptList ").css("display", "none")
+  $(".selectDept .arrow").attr("src", iconDown)
+  $(".levelList ").css("display", "none")
+  $(".checkList ").css("display", "none")
+  $(".selectCheck .arrow").attr("src", iconDown)
+  $(".selectLeaveHosType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  const showList = $(".leaveHosTypeList ").css("display")
+  if (showList == "none" || !showList) {
+    $(".leaveHosTypeList ").css("display", "block")
+    $(".selectLeaveHosType .arrow").attr("src", iconUp)
+  } else {
+    $(".leaveHosTypeList ").css("display", "none")
+    $(".selectLeaveHosType .arrow").attr("src", iconDown)
+  }
+})
+
+bindLeveldSelect()
+//是否启用选择
+function bindLeveldSelect() {
+  $('.levelItem').on("click", function () {
+    const levelItemName = $(this).attr("data-name")
+    const levelItemItemId = $(this).attr("data-id")
+    levelTemp = levelItemItemId
+    $('.selectLevel').html(levelItemName)
+    $(".levelList").css("display", "none")
+    $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+  })
+}
+
+//全选绑定
+$('.selectDept').on("focus", function (e) {
+  e.stopPropagation()
+  $(".levelList ").css("display", "none")
+  $(".selectLevel .arrow").attr("src", iconDown)
+  $(".deptList ").css("display", "block")
+})
+$('.selectPhysician').on("focus", function (e) {
+  e.stopPropagation()
+  $(".levelList ").css("display", "none")
+  $(".selectLevel .arrow").attr("src", iconDown)
+  $(".physicianList ").css("display", "block")
+})
+
+$('.selectPhysician').on("blur", function (e) {
+  $(".physicianList ").css("display", "none")
+  $(".selectPhysician .arrow").attr("src", iconDown)
+})
+$('.selectDept').on("blur", function (e) {
+  $(".deptList ").css("display", "none")
+  $(".selectDept .arrow").attr("src", iconDown)
+})
+$('.selectDept').on("input", function (e) {
+  let val = $(this).val().trim()
+  deptName = deptNameTemp = val
+  getDeptList(deptName)
+})
+$('.selectPhysician').on("input", function (e) {
+  let val = $(this).val().trim()
+  deptName = deptNameTemp = val
+  getDoctorProfessorList(deptName)
+})
+
+//获取医师类别
+getDoctorProfessorList()
+function getDoctorProfessorList(val) {
+  post(api.getDoctorProfessorList, { inputStr: val == "全部" ? "" : val || "", }).then(res => {
+    if (res.data.code == '0') {
+      const physicianList = res.data.data || []
+      rendePhysicianList(physicianList)
+    } else {
+      rendePhysicianList([])
+    }
+  }).catch((e) => {
+
+  })
+}
+function rendePhysicianList(physicianList) {
+  if (physicianList.length == 0) {
+    $('.physicianList').html("")
+    return
+  }
+  let str = `<li class="physicianItem " data-id=" " data-name="全部">全部</li>`
+  for (let i = 0; i < physicianList.length; i++) {
+    str += `<li class="physicianItem ellipsis" title=${physicianList[i]}  data-name=${physicianList[i]}> ${physicianList[i]}</li>`
+  }
+  $('.physicianList').html(str)
+  bindPhysicianSelect()
+}
+//医师类别选中
+function bindPhysicianSelect() {
+  $('.physicianItem').on("mousedown", function () {
+    const physicianItemName = $(this).attr("data-name")
+    const physicianItemId = $(this).attr("data-id")
+    physicianIdTemp = physicianItemId
+    professor = physicianItemName === "全部" ? "" : physicianItemName;
+    $('.selectPhysician').val(physicianItemName)
+    $('.selectPhysician ').attr('title', physicianItemName)
+    $(".physicianList").css("display", "none")
+    $('.selectPhysician').removeClass('unSelect')
+  })
+}
+//获取科室列表
+getDeptList()
+function getDeptList(val) {
+  post(api.getDeptList, { inputStr: val == "全部" ? "" : val || "" }).then(res => {
+    if (res.data.code == '0') {
+      const deptList = res.data.data || []
+      rendeDeptList(deptList)
+    } else {
+      rendeDeptList([])
+    }
+  }).catch((e) => {
+
+  })
+}
+
+function rendeDeptList(deptList) {
+  if (deptList.length == 0) {
+    $('.deptList').html("")
+    return
+  }
+  let str = `<li class="deptItem " data-id=" " data-name="全部">全部</li>`
+  for (let i = 0; i < deptList.length; i++) {
+    str += `<li class="deptItem ellipsis" title=${deptList[i].deptName} data-id=${deptList[i].deptId} data-name=${deptList[i].deptName}> ${deptList[i].deptName}</li>`
+  }
+  $('.deptList').html(str)
+  bindDeptSelect()
+}
+//科室选择
+function bindDeptSelect() {
+  $('.deptItem').on("mousedown", function () {
+    const deptItemName = $(this).attr("data-name")
+    const deptItemId = $(this).attr("data-id")
+    deptIdTemp = deptItemId
+    deptNameTemp = deptItemName === "全部" ? "" : deptItemName;
+    $('.selectDept').val(deptItemName)
+    $('.selectDept ').attr('title', deptItemName)
+    $(".deptList").css("display", "none")
+    $('.selectDept').removeClass('unSelect')
+  })
+}
+function loading() {
+  const str = `
+    <div class="loadingBox">
+            <div class="mask"></div>
+            <img class="loadingImg" src=${loadingImg}  alt="loading" />
+        </div>
+    `
+  $("#mainBox", parent.document).append(str)
+}
+function hideLoading() {
+  $("#mainBox .loadingBox", parent.document).remove()
+}
+$('.recordScoreBtn').on("click", function (e) {
+  if (!hasData('FUNC000017', 'YH-BLZK-ZKPF')) {
+    return
+  }
+  let scoreList = []
+  for (let i = 0; i < tabList.length; i++) {
+    if (tabList[i].hasSelect) {
+      scoreList.push(tabList[i].behospitalCode)
+    }
+  }
+  if (scoreList.length === 0) {
+    $.alerModal({ "message": '请选择要评分的项!', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+    return
+  } else {
+    loading()
+    for (let j = 0; j < scoreList.length; j++) {
+      recordScore(scoreList[j], scoreList.length)
+    }
+  }
+})
+function recordScore(behospitalCode, totalNum) {
+  const param = {
+    behospitalCode: behospitalCode
+  }
+  post(api.recordScore, param).then(res => {
+    if (res.data.code == '0') {
+      scoreSum++
+      if (scoreSum === totalNum) {
+        hideLoading()
+        scoreSum = 0
+        const activePage = $(".activePage").attr('data-page') || 1
+
+        getTabData(activePage)
+      }
+
+    } else { }
+  }).catch((e) => {
+
+  })
+}
+$(".patientNumInp").on("input", function (e) {
+  const val = $(this).val().trim()
+  behospitalCodeTemp = val
+})
+$(".patientNameInp").on("input", function (e) {
+  const val = $(this).val().trim()
+  nameTemp = val
+})
+$(".doctorInp").on("input", function (e) {
+  const val = $(this).val().trim()
+  doctorNameTemp = val
+})
+$(".doctorNumInp").on("input", function (e) {
+  const val = $(this).val().trim();
+  doctorNumTemp = val
+})
+
+//分页渲染
+function renderPagination(totalPage, activePage, totalNum) {
+  let str = `<span class="totalSum">共${totalPage}页/${totalNum}条数据</span><span class="prePage"><img class="arrowPage" src=${arrowLeft} /></span>`
+  if (totalPage <= 6) {
+    for (let i = 1; i <= totalPage; i++) {
+
+      str += `<span class="pageNum ${'page' + i}" data-page=${i}>${i}</span>`
+    }
+  } else {
+    if (activePage <= 3) { //选中页数小于4
+      for (let i = 1; i <= 4; i++) {
+        str += `<span class="pageNum ${'page' + i}" data-page=${i}>${i}</span>`
+      }
+      str += `<span class="more" >...</span>`
+      str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
+
+    } else if (activePage > totalPage - 3) {
+      str += `<span class="pageNum page1" data-page=1>1</span>`
+      str += `<span class="more" >...</span>`
+      str += `<span class="pageNum ${'page' + (totalPage - 3)}" data-page=${totalPage - 3}>${totalPage - 3}</span>`
+      str += `<span class="pageNum ${'page' + (totalPage - 2)}" data-page=${totalPage - 2}>${totalPage - 2}</span>`
+      str += `<span class="pageNum ${'page' + (totalPage - 1)}" data-page=${totalPage - 1}>${totalPage - 1}</span>`
+      str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
+    } else {
+      str += `<span class="pageNum page1" data-page=1>1</span>`
+      str += `<span class="more" >...</span>`
+      str += `<span class="pageNum ${'page' + (activePage - 1)}" data-page=${activePage - 1}>${activePage - 1}</span>`
+      str += `<span class="pageNum ${'page' + activePage}" data-page=${activePage}>${activePage}</span>`
+      str += `<span class="pageNum ${'page' + (activePage + 1)}" data-page=${activePage + 1}>${activePage + 1}</span>`
+      str += `<span class="more" >...</span>`
+      str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
+    }
+
+  }
+  str += `<span class="nextPage"><img class="arrowPage" src=${arrowRight} /></span>`
+  $('.pagination').html(str)
+  $('.page' + activePage).addClass('activePage')
+  $(".pageNum").on("click", function (e) {
+    const activePageNow = Number($(this).attr('data-page'))
+    getTabData(activePageNow)
+    // renderPagination(totalPage,activePageNow,totalNum)
+  })
+  $(".prePage").on("click", function (e) {
+    let activePageNow = Number($(".activePage").attr('data-page'))
+    if (activePageNow > 1) {
+      activePageNow--
+      getTabData(activePageNow)
+      // renderPagination(totalPage,activePageNow,totalNum)
+    }
+  })
+  $(".nextPage").on("click", function (e) {
+    let activePageNow = Number($(".activePage").attr('data-page'))
+    if (activePageNow < totalPage) {
+      activePageNow++
+      getTabData(activePageNow)
+      // renderPagination(totalPage,activePageNow,totalNum)
+    }
+  })
+
+}
+
+$(document).on("click", function () {
+  $(".levelList ").css("display", "none")
+  $(".selectLevel .arrow").attr("src", iconDown)
+
+})
+
+$(function () {
+  const iconCalenBlue = require("./../images/darkDate.png")
+  const iconCalenGrey = require("./../images/icon_calen_grey.png")
+  $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
+  $('.iconCalen').on("mouseenter", function (e) {
+    $(this).attr("src", iconCalenBlue)
+  })
+  $('.iconCalen').on("mouseleave", function (e) {
+    $(this).attr("src", iconCalenGrey)
+  })
+  $('.iconCalen').on("click", function (e) {
+    $(this).parent().find("input").focus()
+  });
+  $('.export').click(function () {
+    const start = new Date(startDateParam).getTime()
+    const end = new Date(endDateParam).getTime()
+    if (start > end) {
+      $.alerModal({ "message": '开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+      return
+    }
+    const param = {
+      "asc": data_asc,
+      "desc": data_desc,
+      "name": behospitalCode || "",
+      "doctorName": doctorName,
+      "deptClass": leaveHosType || '',
+      "professor": professor == "全部" ? "" : professor || "",
+      "deptName": deptName == "全部" ? "" : deptName || "",
+      "type": statisticsType || 2, //1-本月,2-本年
+      "startDate": startDateParam,
+      "isPlacefile": isPlacefile,
+      "endDate": endDateParam
+    };
+    const url = api.homePageLevelXYExport
+    expJson(url, param).then(res => {
+      downloadExportedData(res.data, "病案首页合格率医师占比.xls")
+    })
+  })
+});

+ 3 - 1
src/js/utils.js

@@ -4,7 +4,7 @@ const axios = require('axios');
 var Utils = require('./rePromise');
 const {ywCheckApi} = require('./api.js')
 require('./scrollBar.js');
-const baseUrl = 'http://192.168.2.241:1488';
+const baseUrl = 'http://192.168.2.236:5858';
 //页面映射
 const pageMap = {
   'YH-KZT': 'console.html',
@@ -46,6 +46,8 @@ const pageMap = {
   'YH-JCSJWH-ZKLXWH': 'assertType.html',
   'YH-BLZK-ZKPFYLZ': 'qcListDocteam.html',
   'YH-ZKK-GJTMQXZB': 'keyItemFlawControl.html',
+  'YH-ZKK-BASYHGLYSZB_XQ': 'qualifiedPhysician.html',
+  'YH-KSZR-BASYHGLYSZB_XQ': 'deptQualifiedPhysician.html',
   'YH-ZKK-CYRSTJ': 'qcListOutHospital.html',
   'YH-ZKK-RYRSTJ': 'qcListOutHospital.html?inner=2',
   'YH-ZKK-WZGBLTJ': 'uncorrectedCasesStatistics.html',

+ 28 - 0
webpack.configCopy.jsx

@@ -48,6 +48,8 @@ module.exports = {
     singleVeto:path.resolve(__dirname, 'src/js', 'singleVeto.js'),
     itemDefectDetail:path.resolve(__dirname, 'src/js', 'itemDefectDetail.js'),
     keyItemFlawControl:path.resolve(__dirname, 'src/js', 'keyItemFlawControl.js'),
+    qualifiedPhysician: path.resolve(__dirname, 'src/js', 'qualifiedPhysician.js'),
+    deptQualifiedPhysician: path.resolve(__dirname, 'src/js', 'deptQualifiedPhysician.js'),
     qcListCopy:path.resolve(__dirname, 'src/js', 'qcListCopy.js'),
     qcListCopyUnqualified: path.resolve(__dirname, 'src/js', 'qcListCopyUnqualified.js'),
     qcListOutHospital:path.resolve(__dirname, 'src/js', 'qcListOutHospital.js'),
@@ -713,6 +715,32 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
+    new HtmlWebpackPlugin({
+      title: 'qualifiedPhysician.html', //合格率医生
+      template: path.resolve(__dirname, 'src/html', 'qualifiedPhysician.html'),
+      filename: 'qualifiedPhysician.html',
+      chunks: ['qualifiedPhysician', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
+    new HtmlWebpackPlugin({
+      title: 'deptQualifiedPhysician.html', //合格率医生
+      template: path.resolve(__dirname, 'src/html', 'deptQualifiedPhysician.html'),
+      filename: 'deptQualifiedPhysician.html',
+      chunks: ['deptQualifiedPhysician', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
     new HtmlWebpackPlugin({
       title: 'uncorrectedCasesStatistics.html', //未整改病历统计
       template: path.resolve(__dirname, 'src/html', 'uncorrectedCasesStatistics.html'),