调质控接口暂时取消;出院浏览、病案示踪页部分样式改动 5/12 wzq

master
wzqgit 4 years ago
parent aba69ad1c3
commit ada63f35da

@ -306,10 +306,10 @@ public class lastVerifyController {
return archiveMasterService.updateByClo(archive_master);
}
@Transactional
//@Transactional
@ResponseBody
@RequestMapping(value = "/emrShowBackReason")
public String emrShowBackReason(Emr_Fault_Detail emrFaultDetail) throws Exception {
public String emrShowBackReason(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Detail emrFaultDetail) throws Exception {
SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
String nowTime = format1.format(new Date());
//退回原因
@ -319,13 +319,16 @@ public class lastVerifyController {
assortName.append(emr_fault_vo.getAssortName()+";");
}
Archive_Master archive_master = archiveMasterService.selectById(emrFaultDetail.getArchiveDetailId());
String result="False";
String result="false";
if (archive_master!=null){
result = emrWebServiceShowBackReason(archive_master.getPatientId(),
Integer.parseInt(archive_master.getVisitId()),
nowTime,
assortName.toString(),
archive_master.getInpNo());
if (result.contains("true")){
result = "true";
}
}
return result;
}
@ -408,7 +411,7 @@ public class lastVerifyController {
MR_FILE_CALLBACK_RECORD = XMLUtil.convertToXml(inputParam1);
MR_FILE_INDEX_CALLBACK = XMLUtil.convertToXml(inputParam2);
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n");
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>\n<root>\n");
sb.append(MR_FILE_CALLBACK_RECORD);
sb.append("\n");
sb.append(MR_FILE_INDEX_CALLBACK);
@ -439,7 +442,6 @@ public class lastVerifyController {
call.setReturnType(XMLType.XSD_STRING);//设置返回类型
try {
result = (String) call.invoke(new Object[]{sb.toString()});
//System.err.println(result);
} catch (RemoteException e) {
e.printStackTrace();
result = e.getMessage();

@ -584,5 +584,6 @@
and m.discharge_date_time &lt;= #{endDate,jdbcType=NCHAR}+ ' 23:59:59'
</when>
</choose>
order by e.create_time desc
</select>
</mapper>

@ -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("加载成功");

@ -1141,6 +1141,22 @@
success: function (result) {
}
});
/*var data2 = {};
data2.archiveDetailId = archiveDetailId;
//调平台质控接口
$.ajax({
url: "${path}/lastVerify/emrShowBackReason",
type: "POST",
data: data2,
success: function (result) {
if (result.indexOf("true")!=-1) {
console.log("调平台质控接口成功!");
}else {
console.log("调平台质控接口失败!");
}
}
});*/
} else {
toastr.warning("病案号不存在!");
}

@ -2929,7 +2929,7 @@
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -2946,7 +2946,7 @@
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -2967,7 +2967,7 @@
}
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -2987,7 +2987,7 @@
}
if (redFlag != 0) {
//缺陷
a = '<span style="color:red;">' + a + '</span>';
a = '<span style="color:#698B69;">' + a + '</span>';
}
return a;
}
@ -3004,7 +3004,7 @@
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -3028,7 +3028,7 @@
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -3047,7 +3047,7 @@
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -3064,7 +3064,7 @@
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -3083,7 +3083,7 @@
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -3112,7 +3112,7 @@
//缺陷
if (value == 1) {
//有缺陷显示红色
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:green;"></i><span style="color:red;">已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:green;"></i><span style="color:#698B69;">已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3135,7 +3135,7 @@
}
if (redFlag != 0) {
//有缺陷显示红色
a = '<span style="color:red;">' + a + '</span>';
a = '<span style="color:#698B69;">' + a + '</span>';
}
return a;
}
@ -3156,7 +3156,7 @@
}
if (redFlag != 0) {
//有缺陷显示红色
a = '<span style="color:red;">' + a + '</span>';
a = '<span style="color:#698B69;">' + a + '</span>';
}
return a;
}
@ -3178,7 +3178,7 @@
//有缺陷显示红色
if (value == 1) {
//有缺陷显示红色
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:orange;"></i><span style="color:red;">已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:orange;"></i><span style="color:#698B69;">已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3200,7 +3200,7 @@
}
if (redFlag != 0) {
//有缺陷显示红色
a = '<span style="color:red;">' + a + '</span>';
a = '<span style="color:#698B69;">' + a + '</span>';
}
return a;
}
@ -3223,7 +3223,7 @@
a = value;
} else {
//有缺陷显示红色
a = '<span style="color:red;">' + value + '</span>';
a = '<span style="color:#698B69;">' + value + '</span>';
}
return a;
}
@ -3244,7 +3244,7 @@
} else {
if (value == '提交') {
//有缺陷显示红色
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:red;">已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:#698B69;">已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3269,7 +3269,7 @@
//有缺陷显示红色
if (value == '提交') {
//有缺陷显示红色
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:red;">已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:#698B69;">已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}

Loading…
Cancel
Save