|
@@ -20,7 +20,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="",
|
|
|
nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
|
|
|
- data_desc='',data_asc=''; isfirstRenderTitle =false;
|
|
|
+ data_desc='',data_asc='', isfirstRenderTitle =false,casesIdTemp= '', casesName='';
|
|
|
let deptList = JSON.parse(getCookie("deptList"))||[]
|
|
|
$(function(){
|
|
|
let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
@@ -67,6 +67,9 @@ $(function(){
|
|
|
})
|
|
|
|
|
|
$(".abnormalClear").click(function(){
|
|
|
+ casesName ='全部'
|
|
|
+ casesIdTemp= ''
|
|
|
+ $('.selectModuleType').val('全部')
|
|
|
deptId=deptIdTemp = deptList[0]&&deptList[0].deptName
|
|
|
behospitalCode=behospitalCodeTemp = ""
|
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),"default")
|
|
@@ -171,43 +174,6 @@ function dateChange(){
|
|
|
}
|
|
|
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,
|
|
|
-// "deptName": deptId||"",
|
|
|
-// "name": behospitalCode||"",
|
|
|
-// "type": 0, //1-本月,2-本年,0-自定义时间(现在 都是自定义时间,都会传具体时间进去)
|
|
|
-// "startDate":dateStatrt,
|
|
|
-// "endDate":dateEnd
|
|
|
-// }
|
|
|
-// startDateParam = dateStatrt
|
|
|
-// endDateParam = dateEnd
|
|
|
-// post(api.homePageLevelByDeptLimit,param).then(res =>{
|
|
|
-// if(res.data.code == '0'){
|
|
|
-// const data = res.data.data||[];
|
|
|
-// renderTab(data,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) =>{
|
|
|
-
|
|
|
-// })
|
|
|
-// }
|
|
|
|
|
|
function getTabData(activePage){
|
|
|
const dateStatrt = getPickerDate($("#datepicker"),1)
|
|
@@ -223,6 +189,8 @@ function getTabData(activePage){
|
|
|
// size: 15,
|
|
|
"deptName": deptId||"",
|
|
|
"name": behospitalCode||"",
|
|
|
+ "doctorName": casesName =='全部'?"": casesName || '',
|
|
|
+ "doctorId": casesIdTemp || '',
|
|
|
"asc":data_asc, //升序
|
|
|
"desc":data_desc, //降序
|
|
|
//"type": 0, //1-本月,2-本年,0-自定义时间(现在所有都是自定义时间,都会传开始日期和结束日期)
|
|
@@ -233,7 +201,7 @@ function getTabData(activePage){
|
|
|
endDateParam = dateEnd
|
|
|
$('.pagination').html("")
|
|
|
$('.key-list tbody').html(emptyBox('努力加载中...','',1))
|
|
|
- post(api.unModifyMRStatistics,param).then(res =>{
|
|
|
+ post(api.unModifyMRSByDept,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
|
const data = res.data.data||[];
|
|
|
renderTab(data,data.hospitalId,activePage);
|
|
@@ -255,10 +223,9 @@ function getTabData(activePage){
|
|
|
|
|
|
// 渲染table表头
|
|
|
function renderTabTitle(data){
|
|
|
- console.log('渲染table表头',data);
|
|
|
+
|
|
|
isfirstRenderTitle = true
|
|
|
data = data.columns;
|
|
|
- // console.log(data,'1111111');
|
|
|
let str = `
|
|
|
<th class="moduleName" style="width: 65px;">序号</th>`
|
|
|
for(let i = 0; i < data.length; i++){
|
|
@@ -354,36 +321,7 @@ $(".filter").on("click", function(e){
|
|
|
deptId = deptIdTemp
|
|
|
getTabData(1)
|
|
|
})
|
|
|
-// function renderTab(data,hisId,activePage){
|
|
|
-// let str = ``
|
|
|
-// 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.doctorName || "-"}</td>
|
|
|
-// <td class="goHomeDetail" data-ruleType="" data-dept="${item.deptName || ""}">${item.entryNum || "-"}</td>
|
|
|
-// <td class="goHomeDetail1" data-dept="${item.deptName || ""}" data-title="不合格数">${item.secondLevelNum}</td>
|
|
|
-// <td class="goHomeDetail1" data-dept="${item.deptName || ""}" data-title="合格数">${item.firstLevelNum}</td>
|
|
|
-// <td >${item.firstLevelPercentStr || "-"}</td>
|
|
|
-// <td class="goHomeDetail" data-ruleType="1" data-dept="${item.deptName || ""}">${item.emptyNum+'' || "-"}</td>
|
|
|
-// <td >${item.emptyPercentStr+'' || "-"}</td>
|
|
|
-// <td class="goHomeDetail" data-ruleType="2" data-dept="${item.deptName || ""}">${item.errorNum+'' || "-"}</td>
|
|
|
-// <td >${item.errorPercentStr+'' || "-"}</td>
|
|
|
-// <td >${item.averageValue===null?'-':item.averageValue}</td>
|
|
|
-// <td >${item.mrNum+'' || "-"}</td>
|
|
|
-// </tr>
|
|
|
-// `
|
|
|
-// }
|
|
|
-// $('.tbody').html(str?str:emptyBox())
|
|
|
-// bindScoreDetail(hisId)
|
|
|
-// $(".goHomeDetail").click(function(){
|
|
|
-// let docName = $(this).attr("data-doc")
|
|
|
-// let ruleType = $(this).attr("data-ruleType")
|
|
|
-// $(parent.document).find("#contentIframe").attr("src","quexianDetailHome.html?from=1&casesId=243&deptName="+deptIdTemp+"&docName="+docName+"&shijian=3"+"&ruleType="+ruleType+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
|
|
|
-// })
|
|
|
-// // initScroll("partDetail","YX",1)
|
|
|
-// }
|
|
|
+
|
|
|
// // 处理th tr数据
|
|
|
function formatTableData(data){
|
|
|
let newColumns = data.filter(function(item,index){
|
|
@@ -410,38 +348,13 @@ function renderTab(data,hisId,activePage){
|
|
|
entryName = item[dataName]
|
|
|
entryNum = item[dataNum]
|
|
|
if(!formatColumns[j].id){
|
|
|
- str += `<td>${item.deptName+'' || "-"}</td>`
|
|
|
+ str += `<td>${item.doctorName+'' || "-"}</td>`
|
|
|
}else{
|
|
|
- str += `<td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${entryId || ""}" data-name="${entryName || ""}">${entryNum+'' || "-"}</td>`
|
|
|
+ str += `<td class="goHomeDetail" doc-name="${item.doctorName || ""}" doc-id="${item.doctorId || ""}" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${entryId || ""}" data-name="${entryName || ""}">${entryNum+'' || "-"}</td>`
|
|
|
}
|
|
|
}
|
|
|
str += `</tr>`
|
|
|
}
|
|
|
- // 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 class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2658_id || ""}" data-name="${item.entry_2658_name || ""}">${item.entry_2658_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2686_id || ""}" data-name="${item.entry_2686_name || ""}">${item.entry_2686_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_3010_id || ""}" data-name="${item.entry_3010_name || ""}">${item.entry_3010_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2656_id || ""}" data-name="${item.entry_2656_name || ""}">${item.entry_2656_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2657_id || ""}" data-name="${item.entry_2657_name || ""}">${item.entry_2657_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2170_id || ""}" data-name="${item.entry_2170_name || ""}">${item.entry_2170_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2930_id || ""}" data-name="${item.entry_2930_name || ""}">${item.entry_2930_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2900_id || ""}" data-name="${item.entry_2900_name || ""}">${item.entry_2900_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2229_id || ""}" data-name="${item.entry_2229_name || ""}">${item.entry_2229_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2220_id || ""}" data-name="${item.entry_2220_name || ""}">${item.entry_2220_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2221_id || ""}" data-name="${item.entry_2221_name || ""}">${item.entry_2221_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2655_id || ""}" data-name="${item.entry_2655_name || ""}">${item.entry_2655_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2654_id || ""}" data-name="${item.entry_2654_name || ""}">${item.entry_2654_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2218_id || ""}" data-name="${item.entry_2218_name || ""}">${item.entry_2218_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2217_id || ""}" data-name="${item.entry_2217_name || ""}">${item.entry_2217_num+'' || "-"}</td>
|
|
|
- // <td class="goHomeDetail" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.entry_2495_id || ""}" data-name="${item.entry_2495_name || ""}">${item.entry_2495_num+'' || "-"}</td>
|
|
|
- // </tr>
|
|
|
- // `
|
|
|
- // }
|
|
|
$('.key-list tbody').html(str?str:emptyBox())
|
|
|
/*bindScoreDetail(hisId)*/
|
|
|
// 跳转至详情页
|
|
@@ -449,10 +362,12 @@ function renderTab(data,hisId,activePage){
|
|
|
let casesName = $(this).attr("data-name") || '';
|
|
|
let casesId = $(this).attr("data-id");
|
|
|
let name=$(this).attr("dept-name");
|
|
|
+ let docName =$(this).attr("doc-name");
|
|
|
+ let docId =$(this).attr("doc-id");
|
|
|
name=name==="全院"?"全部":name;
|
|
|
let id=$(this).attr("dept-id");
|
|
|
|
|
|
- $(parent.document).find("#contentIframe").attr("src","uccDetail.html?from=3&deptName="+name+"&deptId="+id+"&casesEntryId="+casesId+"&defectName="+casesName+"&startDate="+startDateParam+"&endDate="+endDateParam)
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","uccDeptDetail.html?from=3&deptName="+name+"&deptId="+id+"&casesEntryId="+casesId+"&defectName="+casesName+"&startDate="+startDateParam+"&endDate="+endDateParam+"&doctorName=" + docName+"&docId=" + docId)
|
|
|
})
|
|
|
// initScroll("partDetailControl","YX",1)
|
|
|
}
|
|
@@ -865,13 +780,15 @@ $(function() {
|
|
|
const param = {
|
|
|
name: deptName=="全部"?"":deptName||"",
|
|
|
deptName: deptName=="全部"?"":deptName||"",
|
|
|
+ doctorName: casesName =='全部'?"": casesName || '',
|
|
|
+ doctorId: casesIdTemp || '',
|
|
|
asc:data_asc, //升序
|
|
|
desc:data_desc, //降序
|
|
|
startDate:startDateParam,
|
|
|
endDate:endDateParam,
|
|
|
isPlacefile:isPlacefile
|
|
|
}
|
|
|
- expJson(api.unModifyMRStatisticsExport,param).then(res =>{
|
|
|
+ expJson(api.unModifyMRSExportByDept,param).then(res =>{
|
|
|
downloadExportedData(res.data, "时效性相关统计.xls")
|
|
|
})
|
|
|
|