-
@@ -2422,14 +2430,32 @@
format: "yyyy-mm-dd",
language: "zh-CN"
});
- /* var currDate=getCurrDate();
- var currDate30=getCurrDay30();
- $('#startDateTo').val(currDate30);
- $('#endDateTo').val(currDate);
- $('#startDateTo4').val(currDate30);
- $('#endDateTo4').val(currDate);
- $('#startDateTo5').val(currDate30);
- $('#endDateTo5').val(currDate);*/
+
+ var startDateTo = "";
+ var endDateTo = "";
+ if (($("#startDateTo").val() == "" && $("#endDateTo").val() == "") || ($("#startDateTo4").val() == "" && $("#endDateTo4").val() == "") ||($("#startDateTo5").val() == "" && $("#endDateTo5").val() == "") ) {
+ //获取当前日期
+ var myDate = new Date();
+ var nowY = myDate.getFullYear();
+ var nowM = myDate.getMonth() + 1;
+ var nowD = myDate.getDate();
+ endDateTo = nowY + "-" + (nowM < 10 ? "0" + nowM : nowM) + "-" + (nowD < 10 ? "0" + nowD : nowD);//当前日期
+
+ //获取三十天前日期
+ var lw = new Date(myDate - 1000 * 60 * 60 * 24 * 31);//最后一个数字30可改,30天的意思
+ var lastY = lw.getFullYear();
+ var lastM = lw.getMonth() + 1;
+ var lastD = lw.getDate();
+ startDateTo = lastY + "-" + (lastM < 10 ? "0" + lastM : lastM) + "-" + (lastD < 10 ? "0" + lastD : lastD);//三十天之前日期
+ // console.log(endDateTo);
+ // console.log(startDateTo);
+ $('#startDateTo4').val(startDateTo);
+ $('#endDateTo4').val(endDateTo);
+ $("#startDateTo5").val(startDateTo);
+ $("#endDateTo5").val(endDateTo);
+ $('#startDateTo').val(startDateTo);
+ $('#endDateTo').val(endDateTo);
+ }
$("#imgsClearBtn2").click(function () {
//console.log("===清空删除页的图片===");
@@ -3522,7 +3548,7 @@
return html;
}
}, {
- title: '状态',
+ title: '归档状态',
field: 'archivestate',
align: 'center',
valign: 'middle',
@@ -4525,32 +4551,15 @@
var url = window.location.href;
var deptName = url.substring(url.lastIndexOf('&') + 1).replace("depts=", "");
//console.log(deptName);
- var startDateTo = $("#startDateTo4").val();
- var endDateTo = $("#endDateTo4").val();
- if (startDateTo == "" && endDateTo == "") {
- //获取当前日期
- var myDate = new Date();
- var nowY = myDate.getFullYear();
- var nowM = myDate.getMonth() + 1;
- var nowD = myDate.getDate();
- endDateTo = nowY + "-" + (nowM < 10 ? "0" + nowM : nowM) + "-" + (nowD < 10 ? "0" + nowD : nowD);//当前日期
-
- //获取三十天前日期
- var lw = new Date(myDate - 1000 * 60 * 60 * 24 * 31);//最后一个数字30可改,30天的意思
- var lastY = lw.getFullYear();
- var lastM = lw.getMonth() + 1;
- var lastD = lw.getDate();
- startDateTo = lastY + "-" + (lastM < 10 ? "0" + lastM : lastM) + "-" + (lastD < 10 ? "0" + lastD : lastD);//三十天之前日期
- // console.log(endDateTo);
- // console.log(startDateTo);
- }
+
var temp = {
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令(desc,asc)
deptName: deptName.toString(),
- startDateTo: startDateTo,
- endDateTo: endDateTo
+ remark:""+$("#overdue1").val(),
+ startDateTo: $("#startDateTo4").val(),
+ endDateTo: $("#endDateTo4").val()
};
return temp;
},
@@ -4581,6 +4590,7 @@
field: 'name',
align: 'left',
valign: 'middle',
+ width: 200,
},
{
@@ -4588,27 +4598,28 @@
field: 'checkDoctor',
align: 'left',
valign: 'middle',
+ width: 150
},
{
title: '已初审病历数',
field: 'lockinfo',
align: 'left',
valign: 'middle',
- width: 150, // 定义列的宽度,单位为像素px
+ width: 150 // 定义列的宽度,单位为像素px
},
{
title: '未初审病历数',
field: 'inpNo',
align: 'center',
valign: 'middle',
- width: 50, // 定义列的宽度,单位为像素px
+ width: 150 // 定义列的宽度,单位为像素px
},
{
title: '超期未初审病历数',
field: 'visitId',
align: 'center',
valign: 'middle',
- width: 80,
+ width: 150,
cellStyle: function (value, row, index) {
return {classes: 'success'}
@@ -4686,32 +4697,15 @@
var url = window.location.href;
var deptName = url.substring(url.lastIndexOf('&') + 1).replace("depts=", "");
//console.log(deptName);
- var startDateTo = $("#startDateTo5").val();
- var endDateTo = $("#endDateTo5").val();
- if (startDateTo == "" && endDateTo == "") {
- //获取当前日期
- var myDate = new Date();
- var nowY = myDate.getFullYear();
- var nowM = myDate.getMonth() + 1;
- var nowD = myDate.getDate();
- endDateTo = nowY + "-" + (nowM < 10 ? "0" + nowM : nowM) + "-" + (nowD < 10 ? "0" + nowD : nowD);//当前日期
-
- //获取三十天前日期
- var lw = new Date(myDate - 1000 * 60 * 60 * 24 * 31);//最后一个数字30可改,30天的意思
- var lastY = lw.getFullYear();
- var lastM = lw.getMonth() + 1;
- var lastD = lw.getDate();
- startDateTo = lastY + "-" + (lastM < 10 ? "0" + lastM : lastM) + "-" + (lastD < 10 ? "0" + lastD : lastD);//三十天之前日期
- // console.log(endDateTo);
- // console.log(startDateTo);
- }
+
var temp = {
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令(desc,asc)
deptName: deptName.toString(),
- startDateTo: startDateTo,
- endDateTo: endDateTo
+ remark:""+$("#overdue2").val(),
+ startDateTo: $("#startDateTo5").val(),
+ endDateTo: $("#endDateTo5").val()
};
return temp;
},
@@ -4777,27 +4771,57 @@
field: 'archivestate',
align: 'left',
valign: 'middle',
+ width: 150,
+ formatter: function (value, row, index) {
+ //在院 未归档 归档中 初审 已归档 已认证
+ var a = '';
+ var days;//= daysBetween('2016-12-01', '2016-11-02');
+ //console.log(days+"============相差天数"+show()+row.dischargeDateTime.split(" ")[0]);
+ if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
+ days = daysBetween(show(), row.dischargeDateTime.split(" ")[0]);
+ }
+ if (value == "初审") {
+ //获取properties配置文件中的属性值
+ var expired = <%=res.getString("expired")%>;
+ if (days > expired) {
+ a = '
' + value + '(超期)';
+ } else {
+ a = '
' + value + '';
+ }
+ } else if (value == "已认证") {
+ a = '
' + value + '';
+ } else if (value == "复审退回") {
+ a = '
' + value + '';
+ } else if (value == "提交") {
+ a = '
' + value + '';
+ } else if (value == "主任退回") {
+ a = '
' + value + '';
+ }else{
+ a = '
' + value + '';
+ }
+ return a;
+ }
},
{
title: '主管医生',
field: 'doctorInCharge',
align: 'left',
valign: 'middle',
- width: 150, // 定义列的宽度,单位为像素px
+ width: 150 // 定义列的宽度,单位为像素px
},
{
title: '入院时间',
field: 'admissionDateTime',
align: 'center',
valign: 'middle',
- width: 50, // 定义列的宽度,单位为像素px
+ width: 260 // 定义列的宽度,单位为像素px
},
{
title: '超期天数',
field: 'nurseName',
align: 'center',
valign: 'middle',
- width: 80,
+ width: 200,
cellStyle: function (value, row, index) {
return {classes: 'success'}
@@ -4863,6 +4887,7 @@
var deptName = url.substring(url.lastIndexOf('&') + 1).replace("depts=", "");
var startDateTo = $("#startDateTo4").val();
var endDateTo = $("#endDateTo4").val();
+ var remark=""+$("#overdue1").val();
if (startDateTo == "" && endDateTo == "") {
//获取当前日期
@@ -4889,7 +4914,7 @@
}
}
//deptName是否为空
- window.location.href = "${path}/commCtr/exportBbSelExcel?deptName=" + deptName + "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo;
+ window.location.href = "${path}/commCtr/exportBbSelExcel?deptName=" + deptName + "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo+ "&remark=" + remark;
});
//导出当前科室超期excel功能
@@ -4963,8 +4988,9 @@
return;
}
}
+ var remark=""+$("#overdue2").val();
//deptName是否为空
- window.location.href = "${path}/commCtr/exportBbSel2Excel?deptName=" + deptName + "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo;
+ window.location.href = "${path}/commCtr/exportBbSel2Excel?deptName=" + deptName + "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo+ "&remark=" + remark;
});
var zNodes = [];
diff --git a/src/main/webapp/WEB-INF/views/medicalOverdueDir/medicalOverdueList.jsp b/src/main/webapp/WEB-INF/views/medicalOverdueDir/medicalOverdueList.jsp
index 6d49547f..786789d3 100644
--- a/src/main/webapp/WEB-INF/views/medicalOverdueDir/medicalOverdueList.jsp
+++ b/src/main/webapp/WEB-INF/views/medicalOverdueDir/medicalOverdueList.jsp
@@ -138,7 +138,7 @@