|
@@ -19,7 +19,7 @@ $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,statisticsType="",deptType = "",
|
|
|
nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
|
|
|
- data_desc=[],data_asc=[],hospital=getCookie("hospital");
|
|
|
+ data_desc="entryNum",data_asc="",hospital=getCookie("hospital");
|
|
|
let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
statisticsType = getUrlArgObjectNew("dateType",srcUrl)||""
|
|
|
deptType = getUrlArgObjectNew("deptType",srcUrl)||""
|
|
@@ -133,8 +133,8 @@ function getTabData(activePage){
|
|
|
return
|
|
|
}
|
|
|
const param = {
|
|
|
- "asc": "",
|
|
|
- "desc": "",
|
|
|
+ "asc": data_asc,
|
|
|
+ "desc": data_desc,
|
|
|
"name": behospitalCode||"",
|
|
|
"deptClass": deptId||'',
|
|
|
"type": 0, //1-本月,2-本年,0-自定义时间(现在 都是自定义时间,都会传具体时间进去)
|
|
@@ -176,6 +176,22 @@ function getTabData(activePage){
|
|
|
|
|
|
getTabData(1)
|
|
|
|
|
|
+
|
|
|
+$("body").on("click","th[code]",function(e){
|
|
|
+ const code=$(this).attr("code");
|
|
|
+ if(data_asc===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
|
|
@@ -190,15 +206,15 @@ function renderTab(data,hisId,activePage){
|
|
|
<th class="moduleName" style="width: 65px;">序号</th>
|
|
|
${hospital=='台州市立'?'<th class="beHospitalId textCenter">科室系统</th>':null}
|
|
|
<th class="beHospitalId textCenter">科室名称</th>
|
|
|
- <th class="beHospitalId textCenter">缺陷总数</th>
|
|
|
- <th class="beHospitalId textCenter">质控平均分</th>
|
|
|
- <th class="beHospitalId textCenter">质控病历数</th>
|
|
|
- <th class="beHospitalId textCenter">甲级病历数</th>
|
|
|
- <th class="beHospitalId textCenter">乙级病历数</th>
|
|
|
- <th class="beHospitalId textCenter">丙级病历数</th>
|
|
|
- <th class="beHospitalId textCenter">甲级率</th>
|
|
|
- <th class="beHospitalId textCenter">乙级率</th>
|
|
|
- <th class="beHospitalId textCenter">丙级率</th>
|
|
|
+ <th class="beHospitalId textCenter ${data_asc == 'entryNum'?'asc':data_desc == 'entryNum'?'desc':''}" code="entryNum">缺陷总数</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>
|
|
|
+ <th class="beHospitalId textCenter ${data_asc == 'firstLevelNum'?'asc':data_desc == 'firstLevelNum'?'desc':''}" code="firstLevelNum">甲级病历数</th>
|
|
|
+ <th class="beHospitalId textCenter ${data_asc == 'secondLevelNum'?'asc':data_desc == 'secondLevelNum'?'desc':''}" code="secondLevelNum">乙级病历数</th>
|
|
|
+ <th class="beHospitalId textCenter ${data_asc == 'thirdLevelNum'?'asc':data_desc == 'thirdLevelNum'?'desc':''}" code="thirdLevelNum">丙级病历数</th>
|
|
|
+ <th class="beHospitalId textCenter ${data_asc == 'firstLevelPercentStr'?'asc':data_desc == 'firstLevelPercentStr'?'desc':''}" code="firstLevelPercentStr">甲级率</th>
|
|
|
+ <th class="beHospitalId textCenter ${data_asc == 'secondLevelPercentStr'?'asc':data_desc == 'secondLevelPercentStr'?'desc':''}" code="secondLevelPercentStr">乙级率</th>
|
|
|
+ <th class="beHospitalId textCenter ${data_asc == 'thirdLevelPercentStr'?'asc':data_desc == 'thirdLevelPercentStr'?'desc':''}" code="thirdLevelPercentStr">丙级率</th>
|
|
|
</thead>`
|
|
|
for(let i = 0; i <data.length; i++){
|
|
|
const item = data[i]
|
|
@@ -458,21 +474,6 @@ $('.recordScoreBtn').on("click",function(e){
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
-$("th[code]").on("click",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);
|
|
|
-});
|
|
|
function recordScore(behospitalCode,totalNum){
|
|
|
const param = {
|
|
|
behospitalCode: behospitalCode
|