|
|
|
@ -3726,7 +3726,266 @@
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 80, // 定义列的宽度,单位为像素px
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
|
|
|
|
|
var url = window.location.href;
|
|
|
|
|
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
|
|
|
|
|
var html = "";
|
|
|
|
|
if (index != null && index != "") {
|
|
|
|
|
if (index.indexOf("select") != -1) {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-danger btn-sm selInfo" >查看</button>';// '<a href="javascript:;" class="delete">删除</a>';
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("first") != -1) {
|
|
|
|
|
if (row.archivestate != '初审' && row.archivestate == '提交') {
|
|
|
|
|
// html = html + '<button type="button" class="btn btn-sm btn-primary verifyInfo">初审</button>'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("hcmit") != -1) {
|
|
|
|
|
if (row.archivestate != '初审' && row.archivestate != '提交' ) {
|
|
|
|
|
if(row.cmtDoctor != 1) {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-success doctorInfo">归档医生提交</button>';
|
|
|
|
|
}else if(row.cmtDoctor == 1){
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-primary doctorInfoBack">归档医生撤回</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("ncmit") != -1) {
|
|
|
|
|
if (row.archivestate != '初审' && row.archivestate != '提交' ) {
|
|
|
|
|
if( row.cmtNurse != 1) {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-warning nursInfo">归档护士提交</button>';
|
|
|
|
|
}else if(row.cmtNurse == 1){
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-warning nursInfoBack">归档护士撤回</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("qxSel") != -1) {
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
if (redFlag != 0) {
|
|
|
|
|
//有缺陷
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-info getQXInfo">查看缺陷</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return html;
|
|
|
|
|
},
|
|
|
|
|
events: {
|
|
|
|
|
'click .verifyInfo': function (e, value, row, index) {
|
|
|
|
|
// console.log("====审核====");
|
|
|
|
|
$('#verifyModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#verifyText").val("");
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'click .doctorInfo': function (e, value, row, index) {
|
|
|
|
|
//获取完整性信息
|
|
|
|
|
getStaffRemarkFun(row.id, 0);
|
|
|
|
|
//归档状态改为初审还是有就是初审内容保存
|
|
|
|
|
if (row.cmtDoctor == '提交') {
|
|
|
|
|
$("#isScanedChk").attr("checked", false);
|
|
|
|
|
$('#doctorModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
} else {
|
|
|
|
|
if (row.id != null && row.id != "") {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/beHosp/getMaster",
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {"id": row.id},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result != null) {
|
|
|
|
|
if (result.id != null) {
|
|
|
|
|
if (result.isscaned == "1") {
|
|
|
|
|
$("#isScanedChk").attr("checked", true);
|
|
|
|
|
} else {
|
|
|
|
|
$("#isScanedChk").attr("checked", false);
|
|
|
|
|
}
|
|
|
|
|
//刷新
|
|
|
|
|
//$('#table').bootstrapTable('refresh');
|
|
|
|
|
if (result.emrDoctorCmt == '提交') {
|
|
|
|
|
$('#doctorModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("电子病历医生未提交!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案号不存在!");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案不存在!");
|
|
|
|
|
}
|
|
|
|
|
}, error: function () {
|
|
|
|
|
toastr.error("操作失败!");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案号不存在!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'click .doctorInfoBack': function (e, value, row, index) {
|
|
|
|
|
$("#idCmt").val(row.id);
|
|
|
|
|
$("#flagNurseCmt").val(row.cmtNurse);
|
|
|
|
|
$("#flagDoctorCmt").val(0);
|
|
|
|
|
if(row.cmtDoctor==1) {
|
|
|
|
|
$('#returnCmtModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
toastr.warning("归档医生已经撤回!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'click .nursInfo': function (e, value, row, index) {
|
|
|
|
|
getStaffRemarkFun(row.id, 1);
|
|
|
|
|
if (row.cmtNurse == '提交') {
|
|
|
|
|
$("#isScanedChk2").attr("checked", false);
|
|
|
|
|
$('#nursModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
} else {
|
|
|
|
|
if (row.id != null && row.id != "") {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/beHosp/getMaster",
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {"id": row.id},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result != null) {
|
|
|
|
|
if (result.id != null) {
|
|
|
|
|
if (result.isscaned == "1") {
|
|
|
|
|
$("#isScanedChk2").attr("checked", true);
|
|
|
|
|
} else {
|
|
|
|
|
$("#isScanedChk2").attr("checked", false);
|
|
|
|
|
}
|
|
|
|
|
//刷新
|
|
|
|
|
//$('#table').bootstrapTable('refresh');
|
|
|
|
|
if (result.emrNureCmt == '提交') {
|
|
|
|
|
$('#nursModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("电子病历护士未提交!");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案号不存在!");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案不存在!");
|
|
|
|
|
}
|
|
|
|
|
}, error: function () {
|
|
|
|
|
toastr.error("操作失败!");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案号不存在!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'click .nursInfoBack': function (e, value, row, index) {
|
|
|
|
|
//console.log(row.cmtNurse);
|
|
|
|
|
$("#idCmt").val(row.id);
|
|
|
|
|
$("#flagNurseCmt").val(0);
|
|
|
|
|
$("#flagDoctorCmt").val(row.cmtDoctor);
|
|
|
|
|
if(row.cmtNurse==1){
|
|
|
|
|
$('#returnCmtModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
toastr.warning("归档护士已经撤回!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'click .selInfo': function (e, value, row, index) {
|
|
|
|
|
getStaffRemarkFun(row.id, 0);
|
|
|
|
|
$('#selModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
backFlagVal = null;
|
|
|
|
|
if (row.archivestate == '复审退回' || row.archivestate == '主任退回') {
|
|
|
|
|
if (row.archivestate == '主任退回') {
|
|
|
|
|
backFlagVal = 3;
|
|
|
|
|
} else {
|
|
|
|
|
backFlagVal = 4;
|
|
|
|
|
}
|
|
|
|
|
$("#recallDiv").show();
|
|
|
|
|
} else {
|
|
|
|
|
$("#recallDiv").hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//同步
|
|
|
|
|
$("#idLab").html(row.id);
|
|
|
|
|
$("#nameLab").html(row.name);
|
|
|
|
|
if (row.admissionDateTime != null && row.admissionDateTime != '') {
|
|
|
|
|
$("#inDateLab").html(row.admissionDateTime.substring(0, 10));
|
|
|
|
|
}
|
|
|
|
|
$("#chargeLab").html(row.doctorInCharge);
|
|
|
|
|
$("#deptToLab").html(row.deptAdmissionTo);
|
|
|
|
|
$("#outHospLab").html(row.dischargeDisposition);
|
|
|
|
|
$("#inLab").html(row.inpNo);
|
|
|
|
|
$("#inTimeLab").html(row.visitId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///入/出院年+出院月+住院号+住院次数
|
|
|
|
|
var outDate = "";
|
|
|
|
|
if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
|
|
|
|
|
outDate = row.dischargeDateTime.split("-");
|
|
|
|
|
} else if (row.admissionDateTime != null && row.admissionDateTime != "") {
|
|
|
|
|
outDate = row.admissionDateTime.split("-");
|
|
|
|
|
}
|
|
|
|
|
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
|
|
|
|
|
|
|
|
|
|
initTree(row.id);
|
|
|
|
|
getSourceFun();
|
|
|
|
|
},
|
|
|
|
|
'click .getQXInfo': function (e, value, row, index) {
|
|
|
|
|
//查看缺陷列表
|
|
|
|
|
//initTableQX(row.id);
|
|
|
|
|
backFlagVal=1;
|
|
|
|
|
$("#archIdQX").val(row.id);
|
|
|
|
|
$('#tableQX').bootstrapTable('refresh');
|
|
|
|
|
$('#QXInfoModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cellStyle: function (value, row, index) {
|
|
|
|
|
return {classes: 'success'}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '病案清单id',
|
|
|
|
|
field: 'id',
|
|
|
|
|
align: 'left',
|
|
|
|
@ -4025,395 +4284,138 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '电子病历医生提交',
|
|
|
|
|
field: 'emrDoctorCmt',
|
|
|
|
|
align: 'center',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
var a = "";
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
if (value == '提交') {
|
|
|
|
|
a = '<span style="color:#269abc;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (value == '提交') {
|
|
|
|
|
//有缺陷显示红色 #269abc;
|
|
|
|
|
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:red;">已提交</span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '电子病历护士提交',
|
|
|
|
|
field: 'emrNureCmt',
|
|
|
|
|
align: 'center',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
var a = "";
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
if (value == '提交') {
|
|
|
|
|
a = '<span style="color:#269abc;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
if (value == '提交') {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:red;">已提交</span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '是否死亡',
|
|
|
|
|
field: 'deathFlag',
|
|
|
|
|
align: 'center',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var result = "";
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
var days;//当天-出院-7
|
|
|
|
|
if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
|
|
|
|
|
days = daysBetween(show(), row.dischargeDateTime.split(" ")[0]);
|
|
|
|
|
}
|
|
|
|
|
//死亡否
|
|
|
|
|
var deathExpired = <%=res.getString("deathExpired")%>;
|
|
|
|
|
if (value == null && value == "") {
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未知</span>';
|
|
|
|
|
} else {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未知</span>';
|
|
|
|
|
}
|
|
|
|
|
} else if (value == 0) {
|
|
|
|
|
if (redFlag == "0") {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未死亡</span>';
|
|
|
|
|
} else {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未死亡</span>';
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (days > deathExpired) {
|
|
|
|
|
var day = days - deathExpired;
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>已死亡</span><span style="color:red">(超期' + day + ')</span></span>';
|
|
|
|
|
} else {
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>已死亡</span>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '状态',
|
|
|
|
|
field: 'archivestate',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
//在院 未归档 归档中 初审 已归档 已认证
|
|
|
|
|
var a = '';
|
|
|
|
|
var days;
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
|
|
|
|
|
days = daysBetween(show(), row.dischargeDateTime.split(" ")[0]);
|
|
|
|
|
}
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
if (value == "未归档") {
|
|
|
|
|
a = '<span style="color:#c0c0c0;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "已归档") {
|
|
|
|
|
a = '<span style="color:#030378"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "在院") {
|
|
|
|
|
a = '<span style="color:#bfa200"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "归档中") {
|
|
|
|
|
//获取properties配置文件中的属性值
|
|
|
|
|
var expired = <%=res.getString("expired")%>;
|
|
|
|
|
//console.log(expired);
|
|
|
|
|
if (days > expired) {
|
|
|
|
|
a = '<span style="color:#5d9c0a"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '<span style="color:red">(超期)</span></span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:#5d9c0a"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
}
|
|
|
|
|
} else if (value == "初审") {
|
|
|
|
|
a = '<span style="color:#8FBC8F"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "已认证") {
|
|
|
|
|
a = '<span style="color:#FF7F24"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "复审退回") {
|
|
|
|
|
a = '<span style="color:red"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "提交") {
|
|
|
|
|
a = '<span style="color:blue"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "主任退回") {
|
|
|
|
|
a = '<span style="color:#0000FF"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
a = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 80, // 定义列的宽度,单位为像素px
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
|
|
|
|
|
var url = window.location.href;
|
|
|
|
|
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
|
|
|
|
|
var html = "";
|
|
|
|
|
if (index != null && index != "") {
|
|
|
|
|
if (index.indexOf("select") != -1) {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-danger btn-sm selInfo" >查看</button>';// '<a href="javascript:;" class="delete">删除</a>';
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("first") != -1) {
|
|
|
|
|
if (row.archivestate != '初审' && row.archivestate == '提交') {
|
|
|
|
|
// html = html + '<button type="button" class="btn btn-sm btn-primary verifyInfo">初审</button>'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("hcmit") != -1) {
|
|
|
|
|
if (row.archivestate != '初审' && row.archivestate != '提交' ) {
|
|
|
|
|
if(row.cmtDoctor != 1) {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-success doctorInfo">归档医生提交</button>';
|
|
|
|
|
}else if(row.cmtDoctor == 1){
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-primary doctorInfoBack">归档医生撤回</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("ncmit") != -1) {
|
|
|
|
|
if (row.archivestate != '初审' && row.archivestate != '提交' ) {
|
|
|
|
|
if( row.cmtNurse != 1) {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-warning nursInfo">归档护士提交</button>';
|
|
|
|
|
}else if(row.cmtNurse == 1){
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-warning nursInfoBack">归档护士撤回</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("qxSel") != -1) {
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
if (redFlag != 0) {
|
|
|
|
|
//有缺陷
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-info getQXInfo">查看缺陷</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return html;
|
|
|
|
|
},
|
|
|
|
|
events: {
|
|
|
|
|
'click .verifyInfo': function (e, value, row, index) {
|
|
|
|
|
// console.log("====审核====");
|
|
|
|
|
$('#verifyModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#verifyText").val("");
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'click .doctorInfo': function (e, value, row, index) {
|
|
|
|
|
//获取完整性信息
|
|
|
|
|
getStaffRemarkFun(row.id, 0);
|
|
|
|
|
//归档状态改为初审还是有就是初审内容保存
|
|
|
|
|
if (row.cmtDoctor == '提交') {
|
|
|
|
|
$("#isScanedChk").attr("checked", false);
|
|
|
|
|
$('#doctorModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
} else {
|
|
|
|
|
if (row.id != null && row.id != "") {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/beHosp/getMaster",
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {"id": row.id},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result != null) {
|
|
|
|
|
if (result.id != null) {
|
|
|
|
|
if (result.isscaned == "1") {
|
|
|
|
|
$("#isScanedChk").attr("checked", true);
|
|
|
|
|
} else {
|
|
|
|
|
$("#isScanedChk").attr("checked", false);
|
|
|
|
|
}
|
|
|
|
|
//刷新
|
|
|
|
|
//$('#table').bootstrapTable('refresh');
|
|
|
|
|
if (result.emrDoctorCmt == '提交') {
|
|
|
|
|
$('#doctorModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("电子病历医生未提交!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案号不存在!");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案不存在!");
|
|
|
|
|
}
|
|
|
|
|
}, error: function () {
|
|
|
|
|
toastr.error("操作失败!");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案号不存在!");
|
|
|
|
|
}
|
|
|
|
|
title: '电子病历医生提交',
|
|
|
|
|
field: 'emrDoctorCmt',
|
|
|
|
|
align: 'center',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
var a = "";
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
if (value == '提交') {
|
|
|
|
|
a = '<span style="color:#269abc;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'click .doctorInfoBack': function (e, value, row, index) {
|
|
|
|
|
$("#idCmt").val(row.id);
|
|
|
|
|
$("#flagNurseCmt").val(row.cmtNurse);
|
|
|
|
|
$("#flagDoctorCmt").val(0);
|
|
|
|
|
if(row.cmtDoctor==1) {
|
|
|
|
|
$('#returnCmtModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
toastr.warning("归档医生已经撤回!");
|
|
|
|
|
} else {
|
|
|
|
|
if (value == '提交') {
|
|
|
|
|
//有缺陷显示红色 #269abc;
|
|
|
|
|
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:red;">已提交</span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'click .nursInfo': function (e, value, row, index) {
|
|
|
|
|
getStaffRemarkFun(row.id, 1);
|
|
|
|
|
if (row.cmtNurse == '提交') {
|
|
|
|
|
$("#isScanedChk2").attr("checked", false);
|
|
|
|
|
$('#nursModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '电子病历护士提交',
|
|
|
|
|
field: 'emrNureCmt',
|
|
|
|
|
align: 'center',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
var a = "";
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
if (value == '提交') {
|
|
|
|
|
a = '<span style="color:#269abc;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
|
|
|
|
|
} else {
|
|
|
|
|
if (row.id != null && row.id != "") {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/beHosp/getMaster",
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {"id": row.id},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result != null) {
|
|
|
|
|
if (result.id != null) {
|
|
|
|
|
if (result.isscaned == "1") {
|
|
|
|
|
$("#isScanedChk2").attr("checked", true);
|
|
|
|
|
} else {
|
|
|
|
|
$("#isScanedChk2").attr("checked", false);
|
|
|
|
|
}
|
|
|
|
|
//刷新
|
|
|
|
|
//$('#table').bootstrapTable('refresh');
|
|
|
|
|
if (result.emrNureCmt == '提交') {
|
|
|
|
|
$('#nursModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("电子病历护士未提交!");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案号不存在!");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案不存在!");
|
|
|
|
|
}
|
|
|
|
|
}, error: function () {
|
|
|
|
|
toastr.error("操作失败!");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("病案号不存在!");
|
|
|
|
|
}
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'click .nursInfoBack': function (e, value, row, index) {
|
|
|
|
|
//console.log(row.cmtNurse);
|
|
|
|
|
$("#idCmt").val(row.id);
|
|
|
|
|
$("#flagNurseCmt").val(0);
|
|
|
|
|
$("#flagDoctorCmt").val(row.cmtDoctor);
|
|
|
|
|
if(row.cmtNurse==1){
|
|
|
|
|
$('#returnCmtModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
toastr.warning("归档护士已经撤回!");
|
|
|
|
|
} else {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
if (value == '提交') {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:red;">已提交</span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'click .selInfo': function (e, value, row, index) {
|
|
|
|
|
getStaffRemarkFun(row.id, 0);
|
|
|
|
|
$('#selModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
backFlagVal = null;
|
|
|
|
|
if (row.archivestate == '复审退回' || row.archivestate == '主任退回') {
|
|
|
|
|
if (row.archivestate == '主任退回') {
|
|
|
|
|
backFlagVal = 3;
|
|
|
|
|
} else {
|
|
|
|
|
backFlagVal = 4;
|
|
|
|
|
}
|
|
|
|
|
$("#recallDiv").show();
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '是否死亡',
|
|
|
|
|
field: 'deathFlag',
|
|
|
|
|
align: 'center',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var result = "";
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
var days;//当天-出院-7
|
|
|
|
|
if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
|
|
|
|
|
days = daysBetween(show(), row.dischargeDateTime.split(" ")[0]);
|
|
|
|
|
}
|
|
|
|
|
//死亡否
|
|
|
|
|
var deathExpired = <%=res.getString("deathExpired")%>;
|
|
|
|
|
if (value == null && value == "") {
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未知</span>';
|
|
|
|
|
} else {
|
|
|
|
|
$("#recallDiv").hide();
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未知</span>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//同步
|
|
|
|
|
$("#idLab").html(row.id);
|
|
|
|
|
$("#nameLab").html(row.name);
|
|
|
|
|
if (row.admissionDateTime != null && row.admissionDateTime != '') {
|
|
|
|
|
$("#inDateLab").html(row.admissionDateTime.substring(0, 10));
|
|
|
|
|
} else if (value == 0) {
|
|
|
|
|
if (redFlag == "0") {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未死亡</span>';
|
|
|
|
|
} else {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未死亡</span>';
|
|
|
|
|
}
|
|
|
|
|
$("#chargeLab").html(row.doctorInCharge);
|
|
|
|
|
$("#deptToLab").html(row.deptAdmissionTo);
|
|
|
|
|
$("#outHospLab").html(row.dischargeDisposition);
|
|
|
|
|
$("#inLab").html(row.inpNo);
|
|
|
|
|
$("#inTimeLab").html(row.visitId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///入/出院年+出院月+住院号+住院次数
|
|
|
|
|
var outDate = "";
|
|
|
|
|
if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
|
|
|
|
|
outDate = row.dischargeDateTime.split("-");
|
|
|
|
|
} else if (row.admissionDateTime != null && row.admissionDateTime != "") {
|
|
|
|
|
outDate = row.admissionDateTime.split("-");
|
|
|
|
|
} else {
|
|
|
|
|
if (days > deathExpired) {
|
|
|
|
|
var day = days - deathExpired;
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>已死亡</span><span style="color:red">(超期' + day + ')</span></span>';
|
|
|
|
|
} else {
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>已死亡</span>';
|
|
|
|
|
}
|
|
|
|
|
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
|
|
|
|
|
|
|
|
|
|
initTree(row.id);
|
|
|
|
|
getSourceFun();
|
|
|
|
|
},
|
|
|
|
|
'click .getQXInfo': function (e, value, row, index) {
|
|
|
|
|
//查看缺陷列表
|
|
|
|
|
//initTableQX(row.id);
|
|
|
|
|
backFlagVal=1;
|
|
|
|
|
$("#archIdQX").val(row.id);
|
|
|
|
|
$('#tableQX').bootstrapTable('refresh');
|
|
|
|
|
$('#QXInfoModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cellStyle: function (value, row, index) {
|
|
|
|
|
return {classes: 'success'}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '状态',
|
|
|
|
|
field: 'archivestate',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
//在院 未归档 归档中 初审 已归档 已认证
|
|
|
|
|
var a = '';
|
|
|
|
|
var days;
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
|
|
|
|
|
days = daysBetween(show(), row.dischargeDateTime.split(" ")[0]);
|
|
|
|
|
}
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
if (value == "未归档") {
|
|
|
|
|
a = '<span style="color:#c0c0c0;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "已归档") {
|
|
|
|
|
a = '<span style="color:#030378"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "在院") {
|
|
|
|
|
a = '<span style="color:#bfa200"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "归档中") {
|
|
|
|
|
//获取properties配置文件中的属性值
|
|
|
|
|
var expired = <%=res.getString("expired")%>;
|
|
|
|
|
//console.log(expired);
|
|
|
|
|
if (days > expired) {
|
|
|
|
|
a = '<span style="color:#5d9c0a"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '<span style="color:red">(超期)</span></span>';
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:#5d9c0a"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
}
|
|
|
|
|
} else if (value == "初审") {
|
|
|
|
|
a = '<span style="color:#8FBC8F"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "已认证") {
|
|
|
|
|
a = '<span style="color:#FF7F24"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "复审退回") {
|
|
|
|
|
a = '<span style="color:red"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "提交") {
|
|
|
|
|
a = '<span style="color:blue"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "主任退回") {
|
|
|
|
|
a = '<span style="color:#0000FF"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
a = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
onLoadSuccess: function (result) { //加载成功时执行
|
|
|
|
|
// console.info("加载成功");
|
|
|
|
|