|
@@ -35,13 +35,16 @@ let deptName = '',
|
|
data_asc = '',
|
|
data_asc = '',
|
|
deptRecord = '',
|
|
deptRecord = '',
|
|
patientName = '';
|
|
patientName = '';
|
|
|
|
+casesIdTemp = '';
|
|
|
|
+casesName = '';
|
|
|
|
+let deptList = JSON.parse(getCookie('deptList')) || [];
|
|
let srcUrl = $('#contentIframe', parent.document).attr('src');
|
|
let srcUrl = $('#contentIframe', parent.document).attr('src');
|
|
statisticsType = getUrlArgObjectNew('dateType', srcUrl) || '';
|
|
statisticsType = getUrlArgObjectNew('dateType', srcUrl) || '';
|
|
from = getUrlArgObjectNew('from', srcUrl) || '';
|
|
from = getUrlArgObjectNew('from', srcUrl) || '';
|
|
lineType = getUrlArgObjectNew('lineType', srcUrl) || '';
|
|
lineType = getUrlArgObjectNew('lineType', srcUrl) || '';
|
|
let startDateParam = getUrlArgObjectNew('startDateParam', srcUrl) || '';
|
|
let startDateParam = getUrlArgObjectNew('startDateParam', srcUrl) || '';
|
|
let endDateParam = getUrlArgObjectNew('endDateParam', srcUrl) || '';
|
|
let endDateParam = getUrlArgObjectNew('endDateParam', srcUrl) || '';
|
|
-// $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
|
|
|
+$('.selectDept').append(`<img class="arrow" src=${iconDown} alt="下拉">`);
|
|
/*if(lineType){
|
|
/*if(lineType){
|
|
$("th[code="+data_desc+"]").addClass("desc");
|
|
$("th[code="+data_desc+"]").addClass("desc");
|
|
}*/
|
|
}*/
|
|
@@ -64,32 +67,26 @@ if (statisticsType == 1) {
|
|
}
|
|
}
|
|
let isPlacefile = getCookie('isPlacefile') || 1;
|
|
let isPlacefile = getCookie('isPlacefile') || 1;
|
|
|
|
|
|
-// $( "#datepicker" ).datepicker({
|
|
|
|
-// changeMonth: true,
|
|
|
|
-// changeYear: true,
|
|
|
|
-// dateFormat:"yy/mm/dd",
|
|
|
|
-// }).datepicker( "setDate", new Date(startDateParam));
|
|
|
|
-// $( "#datepicker2" ).datepicker({
|
|
|
|
-// changeMonth: true,
|
|
|
|
-// changeYear: true,
|
|
|
|
-// dateFormat:"yy/mm/dd"
|
|
|
|
-// }).datepicker( "setDate",new Date(endDateParam));
|
|
|
|
-
|
|
|
|
if (from == 2) {
|
|
if (from == 2) {
|
|
- // $(".export").css('display','none')
|
|
|
|
- // $(".partTitle .titlePic ").html(`<a class="consoleD" href="deptConsole.html">控制台(科室) / </a><a class="consoleP" href="singleVeto.html?from=1">条目缺陷占比 / </a>缺陷详情`)
|
|
|
|
- // deptId=deptListDept[0]&&deptListDept[0].deptId;
|
|
|
|
- // deptName=deptListDept[0]&&deptListDept[0].deptName;
|
|
|
|
- // deptNameTemp=deptListDept[0]&&deptListDept[0].deptName;
|
|
|
|
- // deptIdTemp=deptListDept[0]&&deptListDept[0].deptId;
|
|
|
|
- // $('.selectDept').html(deptName)
|
|
|
|
} else if (from == 3) {
|
|
} else if (from == 3) {
|
|
- // $(".partTitle .titlePic ").html(`<a href="keyItemFlawControl.html">关键条目缺陷占比 / </a>缺陷详情`)
|
|
|
|
} else {
|
|
} else {
|
|
$('.partTitle .titlePic ').html(
|
|
$('.partTitle .titlePic ').html(
|
|
`<a class="consoleD" href="console.html">控制台 / </a>31日再入院病人数`
|
|
`<a class="consoleD" href="console.html">控制台 / </a>31日再入院病人数`
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
+deptId = deptIdTemp = getUrlArgObjectNew('deptName', srcUrl) || '';
|
|
|
|
+if (deptId) {
|
|
|
|
+ $('.selectDept')
|
|
|
|
+ .html(deptId)
|
|
|
|
+ .attr({
|
|
|
|
+ 'data-id': deptId,
|
|
|
|
+ title: deptId,
|
|
|
|
+ })
|
|
|
|
+ .append(`<img class="arrow" src=${iconDown} alt="下拉">`);
|
|
|
|
+ getDeptList();
|
|
|
|
+} else {
|
|
|
|
+ getDeptList(1);
|
|
|
|
+}
|
|
|
|
|
|
if (!statisticsType) {
|
|
if (!statisticsType) {
|
|
setDatePicker($('#datepicker'), $('#datepicker2'), 'default');
|
|
setDatePicker($('#datepicker'), $('#datepicker2'), 'default');
|
|
@@ -107,7 +104,7 @@ $('.abnormalClear').click(function() {
|
|
$('.patientRecordInp').val('');
|
|
$('.patientRecordInp').val('');
|
|
$('.patientNameInp').val('');
|
|
$('.patientNameInp').val('');
|
|
// $(".deptList").css("display", "none")
|
|
// $(".deptList").css("display", "none")
|
|
- // $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`);
|
|
|
|
|
|
+ $('.selectDept').append(`<img class="arrow" src=${iconDown} alt="下拉">`);
|
|
$('th[code]').removeClass('asc desc');
|
|
$('th[code]').removeClass('asc desc');
|
|
//behospitalCode =behospitalCodeTemp= ""
|
|
//behospitalCode =behospitalCodeTemp= ""
|
|
getmoduleTypeList();
|
|
getmoduleTypeList();
|
|
@@ -167,13 +164,16 @@ function getTabData(activePage) {
|
|
fileCode: deptRecord,
|
|
fileCode: deptRecord,
|
|
startDate: dateStatrt.replace(/\//g, '-'),
|
|
startDate: dateStatrt.replace(/\//g, '-'),
|
|
endDate: dateEnd.replace(/\//g, '-'),
|
|
endDate: dateEnd.replace(/\//g, '-'),
|
|
|
|
+ deptName: deptId || '',
|
|
};
|
|
};
|
|
startDateParam = dateStatrt;
|
|
startDateParam = dateStatrt;
|
|
endDateParam = dateEnd;
|
|
endDateParam = dateEnd;
|
|
$('.pagination').html('');
|
|
$('.pagination').html('');
|
|
$('.tbody').html(emptyBox('努力加载中...', '', 1));
|
|
$('.tbody').html(emptyBox('努力加载中...', '', 1));
|
|
- post(api.reHos31DaysPage, param)
|
|
|
|
|
|
+ return;
|
|
|
|
+ post(api.reHos31DaysPageByDept, param)
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
+ console.log(res, '返回的数据');
|
|
if (res.data.code == '0') {
|
|
if (res.data.code == '0') {
|
|
const data = res.data.data || [];
|
|
const data = res.data.data || [];
|
|
const totalPage = data.pages;
|
|
const totalPage = data.pages;
|
|
@@ -310,18 +310,11 @@ function scoreDetail(id, age, hid, code, name) {
|
|
// 跳转至病人详情
|
|
// 跳转至病人详情
|
|
function bindScoreDetail(hisId) {
|
|
function bindScoreDetail(hisId) {
|
|
$('.patientNameSpan').on('click', function(e) {
|
|
$('.patientNameSpan').on('click', function(e) {
|
|
- // const id = $(this).attr('data-id')
|
|
|
|
- // const age = ''
|
|
|
|
- // const noScore = ''
|
|
|
|
- // const checkStatus = ''
|
|
|
|
- // const name = $(this).attr('data-name')
|
|
|
|
const id = $(this).attr('data-id');
|
|
const id = $(this).attr('data-id');
|
|
const age = '';
|
|
const age = '';
|
|
const noScore = '';
|
|
const noScore = '';
|
|
const checkStatus = '';
|
|
const checkStatus = '';
|
|
const name = $(this).attr('data-name');
|
|
const name = $(this).attr('data-name');
|
|
- // qcScore.html?id=ZY010000669760&age=null&name=李**&hid=1&code=YH-BLZK-ZKPF
|
|
|
|
- // console.log(id,'=',name,'=');
|
|
|
|
if (noScore) {
|
|
if (noScore) {
|
|
$.alerModal({
|
|
$.alerModal({
|
|
message: '请先进行评分!',
|
|
message: '请先进行评分!',
|
|
@@ -338,19 +331,6 @@ function bindScoreDetail(hisId) {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
-// $('.selectDept').on("click", function(e){
|
|
|
|
-// e.stopPropagation()
|
|
|
|
-// $(".selectLevel .arrow").attr("src",iconDown)
|
|
|
|
-// const showList = $(".deptList ").css("display")
|
|
|
|
-// if(showList == "none" ||!showList){
|
|
|
|
-// $(".deptList ").css("display","block")
|
|
|
|
-// $(".selectDept .arrow").attr("src",iconUp)
|
|
|
|
-// }else{
|
|
|
|
-// $(".deptList ").css("display", "none")
|
|
|
|
-// $(".selectDept .arrow").attr("src",iconDown)
|
|
|
|
-// }
|
|
|
|
-// })
|
|
|
|
-
|
|
|
|
//模块类型
|
|
//模块类型
|
|
$('.selectModuleType').on('focus', function(e) {
|
|
$('.selectModuleType').on('focus', function(e) {
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
@@ -410,94 +390,75 @@ function bindModuleTypeSelect() {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
-// 获取科室列表
|
|
|
|
-getDeptList();
|
|
|
|
-function getDeptList() {
|
|
|
|
- post(api.getDeptList, { inputStr: '' })
|
|
|
|
- .then(res => {
|
|
|
|
- if (res.data.code == '0') {
|
|
|
|
- const deptList = res.data.data;
|
|
|
|
- rendeDeptList(deptList);
|
|
|
|
- } else {
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- .catch(e => {});
|
|
|
|
-}
|
|
|
|
-//获取页面配置
|
|
|
|
-
|
|
|
|
-// function getPageSet(){
|
|
|
|
-// 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 = {
|
|
|
|
-// "name": deptName,
|
|
|
|
-// "asc":data_asc, //升序
|
|
|
|
-// "desc":data_desc, //降序
|
|
|
|
-// "startDate":dateStatrt.replace(/\//g,'-'),
|
|
|
|
-// "endDate":dateEnd.replace(/\//g,'-')
|
|
|
|
-// }
|
|
|
|
-// startDateParam = dateStatrt
|
|
|
|
-// endDateParam = dateEnd
|
|
|
|
-// post(api.unModifyMRStatistics,param).then(res =>{
|
|
|
|
-// if(res.data.code == '0'){
|
|
|
|
-// const data = res.data.data||[];
|
|
|
|
-// renderTabTitle(data) //渲染Table表头
|
|
|
|
-// }else{
|
|
|
|
-// $.alerModal({"message":res.data.msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
|
-// }
|
|
|
|
-// }).catch((e) =>{
|
|
|
|
-
|
|
|
|
-// })
|
|
|
|
-// }
|
|
|
|
-// getPageSet()
|
|
|
|
-
|
|
|
|
-// 渲染table表头
|
|
|
|
-// function renderTabTitle(data){
|
|
|
|
-// data = data.columns;
|
|
|
|
-// let str = `
|
|
|
|
-// <th class="moduleName" style="width: 65px;">序号</th>`
|
|
|
|
-// for(let i = 0; i < data.length; i++){
|
|
|
|
-// const item = data[i]
|
|
|
|
-// if(item.isShow == 1){
|
|
|
|
-// str += `<th class="textCenter beHospitalId" code="${item.fieldName}">${item.columnName}</th>`
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// $(".tabTitle").html(str)
|
|
|
|
-// bindOrder()
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
-function rendeDeptList(deptList) {
|
|
|
|
- let str = `<li class="deptItem ellipsis" data-id=" " data-name="全部">全部</li>`;
|
|
|
|
|
|
+//科室处理
|
|
|
|
+function getDeptList(flg) {
|
|
|
|
+ let str = ``;
|
|
|
|
+ if (deptList.length <= 0) return;
|
|
|
|
+ if (flg) {
|
|
|
|
+ $('.qcListCopy .selectDept ')
|
|
|
|
+ .attr('data-id', deptList[0].deptName)
|
|
|
|
+ .find('i')
|
|
|
|
+ .html(deptList[0].deptName);
|
|
|
|
+ deptId = deptIdTemp = deptList[0].deptName;
|
|
|
|
+ }
|
|
for (let i = 0; i < deptList.length; i++) {
|
|
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>`;
|
|
|
|
|
|
+ let tmp = deptList[i];
|
|
|
|
+ str += `<li class="deptItem ellipsis" title="${tmp.deptName}" data-id="${tmp.deptName}" data-name="${tmp.deptName}">${tmp.deptName}</li>`;
|
|
}
|
|
}
|
|
- $('.deptList').html(str);
|
|
|
|
- bindDeptSelect();
|
|
|
|
|
|
+ $('.qcListCopy .filterDropList').html(str);
|
|
|
|
+ getmoduleTypeList();
|
|
|
|
+ getTabData(1);
|
|
}
|
|
}
|
|
-// 科室选择
|
|
|
|
|
|
+//选择病历等级
|
|
|
|
+$('.selectLevel').on('click', function(e) {
|
|
|
|
+ e.stopPropagation();
|
|
|
|
+ $('.deptList ').css('display', 'none');
|
|
|
|
+ $('.selectDept .arrow').attr('src', iconDown);
|
|
|
|
+ const showList = $('.levelList ').css('display');
|
|
|
|
+ if (showList == 'none' || !showList) {
|
|
|
|
+ $('.levelList ').css('display', 'block');
|
|
|
|
+ $('.selectLevel .arrow').attr('src', iconUp);
|
|
|
|
+ } else {
|
|
|
|
+ $('.levelList ').css('display', 'none');
|
|
|
|
+ $('.selectLevel .arrow').attr('src', iconDown);
|
|
|
|
+ }
|
|
|
|
+});
|
|
|
|
+//全选绑定
|
|
|
|
+
|
|
|
|
+$('.selectDept').on('click', function(e) {
|
|
|
|
+ e.stopPropagation();
|
|
|
|
+ $('.levelList ').css('display', 'none');
|
|
|
|
+ $('.selectLevel .arrow').attr('src', iconDown);
|
|
|
|
+ const showList = $('.deptList ').css('display');
|
|
|
|
+ if (showList == 'none' || !showList) {
|
|
|
|
+ $('.deptList ').css('display', 'block');
|
|
|
|
+ $('.selectDept .arrow').attr('src', iconUp);
|
|
|
|
+ } else {
|
|
|
|
+ $('.deptList ').css('display', 'none');
|
|
|
|
+ $('.selectDept .arrow').attr('src', iconDown);
|
|
|
|
+ }
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+bindDeptSelect();
|
|
|
|
+//科室选择
|
|
function bindDeptSelect() {
|
|
function bindDeptSelect() {
|
|
- $('.deptItem').on('click', function() {
|
|
|
|
|
|
+ $('body').on('click', '.deptItem', function() {
|
|
const deptItemName = $(this).attr('data-name');
|
|
const deptItemName = $(this).attr('data-name');
|
|
const deptItemId = $(this).attr('data-id');
|
|
const deptItemId = $(this).attr('data-id');
|
|
deptIdTemp = deptItemId;
|
|
deptIdTemp = deptItemId;
|
|
- deptNameTemp = deptItemName === '全部' ? '' : deptItemName;
|
|
|
|
if (deptItemName.length > 10) {
|
|
if (deptItemName.length > 10) {
|
|
$('.selectDept').html(deptItemName.substring(0, 8) + '...');
|
|
$('.selectDept').html(deptItemName.substring(0, 8) + '...');
|
|
} else {
|
|
} else {
|
|
$('.selectDept').html(deptItemName);
|
|
$('.selectDept').html(deptItemName);
|
|
}
|
|
}
|
|
- $('.selectDept ').attr('title', deptItemName);
|
|
|
|
|
|
+ $('.selectDept ').attr({ title: deptItemName, 'data-id': deptItemName });
|
|
$('.selectDept').append(`<img class="arrow" src=${iconDown} alt="下拉">`);
|
|
$('.selectDept').append(`<img class="arrow" src=${iconDown} alt="下拉">`);
|
|
|
|
+
|
|
$('.deptList').css('display', 'none');
|
|
$('.deptList').css('display', 'none');
|
|
- $('.selectDept').removeClass('unSelect');
|
|
|
|
getmoduleTypeList('', deptItemId);
|
|
getmoduleTypeList('', deptItemId);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
function loading() {
|
|
function loading() {
|
|
const str = `
|
|
const str = `
|
|
<div class="loadingBox">
|
|
<div class="loadingBox">
|
|
@@ -512,7 +473,7 @@ function hideLoading() {
|
|
}
|
|
}
|
|
$(document).on('click', function() {
|
|
$(document).on('click', function() {
|
|
$('.deptList').css('display', 'none');
|
|
$('.deptList').css('display', 'none');
|
|
- // $(".selectDept .arrow").attr("src",iconDown)
|
|
|
|
|
|
+ $('.selectDept .arrow').attr('src', iconDown);
|
|
});
|
|
});
|
|
// 上升下降筛选
|
|
// 上升下降筛选
|
|
$('th[code]')
|
|
$('th[code]')
|