@ -1654,8 +1654,8 @@
var size = all_size / 1024;
if (size > 500000000) {//500
//$(".shade").fadeIn(500);
//$(".text_span").text("上传的图片大小不能超过100k! ");
toastr.warning("上传的图片大小不能超过10000000k! ");
//$(".text_span").text("上传的图片大小不能超过100k! ");
toastr.warning("上传的图片大小不能超过10000000k! ");
this.value = "";
$(".img_div").html("");
return false;
@ -1668,7 +1668,7 @@
// img.src = objUrl;
// img.onload = function() {
// if (img.width > 100 && img.height > 100) {
// toastr.warning("图片宽高不能大于一百! ");
// toastr.warning("图片宽高不能大于一百! ");
// $("#myFile").val("");
// $(".img_div").html("");
// return false;
@ -1719,7 +1719,7 @@
all_size = all_size + fileALL[j].size;
var size = all_size / 1024;
if (size > 500000000) {
toastr.warning("上传的图片大小不能超过10000000k! ");
toastr.warning("上传的图片大小不能超过10000000k! ");
this.value = "";
$(".img_div2").html("");
return false;
@ -1798,7 +1798,7 @@
toastr.error(result);
}
}, error: function () {
//toastr.error("加载失败! ");
//toastr.error("加载失败! ");
}
});
}
@ -1879,7 +1879,7 @@
}
}
}, error: function () {
//toastr.error("加载失败! ");
//toastr.error("加载失败! ");
}
});
@ -1952,7 +1952,7 @@
$('#assortModal').modal('hide'); //手动关闭
toastr.success("操作成功!");
//$('#addFile').attr("src", $("#outDateLab").val() + ".pdf");//.val($("#outDateLab").val()+".pdf");
//toastr.error("上传PDF失败! ");
//toastr.error("上传PDF失败! ");
//刷新
$('#table2').bootstrapTable('refresh');
initTree($("#idLab").html());
@ -1967,11 +1967,11 @@
//新增或修改
uploadFileAndDate();
} else {
toastr.warning("文件为空! ");
toastr.warning("文件为空! ");
}
} else {
if ($('#pdfPathVal').val() == null || $('#pdfPathVal').val() == "") {
toastr.warning("请选择文件! ");
toastr.warning("请选择文件! ");
} else {
//修改
uploadFileAndDate();
@ -2044,13 +2044,13 @@
img_div.find("select").eq(i).val(result[i].assortId);
}
} else {
toastr.success("暂无数据! ");
toastr.success("暂无数据! ");
}
spinner.spin();
},
error: function () {
toastr.error("获取图片列表失败! ");
toastr.error("获取图片列表失败! ");
}
});
} else {
@ -2130,14 +2130,14 @@
},
error: function () {
spinner.spin();
toastr.error("批量上传失败! ");
toastr.error("批量上传失败! ");
}
});
}
} else {
spinner.spin();
toastr.warning("请选择上传的图片! ");
toastr.warning("请选择上传的图片! ");
}
});
@ -2159,7 +2159,7 @@
}
//判断id
if (imgStr == null || imgStr == '') {
toastr.warning("请选择分段类别! ");
toastr.warning("请选择分段类别! ");
return;
}
if ($("#flag").is(":checked") == true) {
@ -2181,15 +2181,15 @@
<%--newWindow.location.href = pdfUrl;--%>
} else {
newWindow.close();//此处为ajax失败方法, 自动关闭刚才会打开的页面
toastr.warning("勾选的PDF文件不存在或破损! ");
toastr.warning("勾选的PDF文件不存在或破损! ");
}
}, error: function (result) {
newWindow.close();//此处为ajax失败方法, 自动关闭刚才会打开的页面
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
} else {
toastr.warning("病案不存在! ");
toastr.warning("病案不存在! ");
}
});
@ -2205,7 +2205,7 @@
idStr += getSelectRows[i].id + ",";
}
} else {
toastr.warning("请选择记录! ");
toastr.warning("请选择记录! ");
return;
}
//上传后预览pdf文件,根据id直接获取pdf并合成
@ -2227,11 +2227,11 @@
} else {
newWindow.close();//此处为ajax失败方法, 自动关闭刚才会打开的页面
toastr.warning("勾选的PDF文件不存在或破损! ");
toastr.warning("勾选的PDF文件不存在或破损! ");
}
}, error: function (result) {
newWindow.close();//此处为ajax失败方法, 自动关闭刚才会打开的页面
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
});
@ -2570,7 +2570,7 @@
$("#backContent").val(result.backContent);
$("#score").val(result.score);
} else {
toastr.warning("无退回数据! ");
toastr.warning("无退回数据! ");
}
}
});
@ -2596,7 +2596,7 @@
var archiveDetailId = $("#archiveId").val();
var firstTrial = $("#verifyText").val();
if (firstTrial.length > 255) {
toastr.warning("长度不超过255! ");
toastr.warning("长度不超过255! ");
return;
}
var state = "初审";
@ -2611,7 +2611,7 @@
$("#verifyModal").modal('hide');
if (result == "完整") {
$("#table").bootstrapTable("refresh");
toastr.success("初审操作成功! ");
toastr.success("初审操作成功! ");
} else {
$("#WzRsult").html(result);
$('#WZModal').modal({
@ -2632,78 +2632,51 @@
var doctorFlag = 1;
var id = $("#archiveId").val();
if (id == "" || id == null) {
toastr.warning("病案不存在! ");
toastr.warning("病案不存在! ");
return;
}
var lockinfo = $("#wzxText").val();
var content = $("#doctorText").val();
var isScanedChk = 0;
if ($('.isScanedChk1').is(':checked')) {
isScanedChk = "1";
if (lockinfo == "完整") {
$.ajax({
url: "${path}/beHosp/cmtDoctorOrNurs",
type: "POST",
data: {cmtDoctor: doctorFlag, id: id, lockinfo: lockinfo, content: content, isscaned: isScanedChk},
success: function (result) {
$("#doctorModal").modal('hide');
if (result == "成功") {
$("#table").bootstrapTable("refresh");
toastr.success("归档医生提交成功!");
} else {
toastr.error("归档医生提交失败!");
}
}
});
var isScanedChk = "0";
if (lockinfo == "完整") {
if ($('.isScanedChk1').is(':checked')) {
isScanedChk = "1";
} else if ($('.isScanedChk2').is(':checked')) {
isScanedChk = "0";
} else {
//如果缺失病案首页或入院记录则无法强制提交
if (lockinfo.indexOf("病案首页") != -1 || lockinfo.indexOf("入院记录") != -1) {
alert("缺失病案首页或入院记录,无法强制提交!");
} else {
$("#flagStaff").val(0);
//弹窗提示是否强制性
$("#WzRsult2").html(lockinfo);
$('#WZModal2').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}
toastr.warning("必填项未选择,归档医生提交失败!");
return;
}
} else if ($('.isScanedChk2').is(':checked')) {
if (lockinfo == "完整") {
$.ajax({
url: "${path}/beHosp/cmtDoctorOrNurs",
type: "POST",
data: {cmtDoctor: doctorFlag, id: id, lockinfo: lockinfo, content: content, isscaned: isScanedChk},
success: function (result) {
$("#doctorModal").modal('hide');
if (result == "成功") {
$("#table").bootstrapTable("refresh");
toastr.success("归档医生提交成功!");
} else {
toastr.error("归档医生提交失败!");
}
$.ajax({
url: "${path}/beHosp/cmtDoctorOrNurs",
type: "POST",
data: {cmtDoctor: doctorFlag, id: id, lockinfo: lockinfo, content: content, isscaned: isScanedChk},
success: function (result) {
$("#doctorModal").modal('hide');
if (result.indexOf("成功")) {
$("#table").bootstrapTable("refresh");
toastr.success("归档医生提交成功!");
} else {
toastr.warning(result);
}
});
} else {
//如果缺失病案首页或入院记录则无法强制提交
if (lockinfo.indexOf("病案首页") != -1 || lockinfo.indexOf("入院记录") != -1) {
alert("缺失病案首页或入院记录,无法强制提交!");
} else {
$("#flagStaff").val(0);
//弹窗提示是否强制性
$("#WzRsult2").html(lockinfo);
$('#WZModal2').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}
});
}else{
//如果缺失病案首页或入院记录则无法强制提交
if (lockinfo.indexOf("病案首页") != -1 || lockinfo.indexOf("入院记录") != -1) {
toastr.warning("缺失病案首页或入院记录,无法强制提交!");
} else {
$("#flagStaff").val(0);
//弹窗提示是否强制性
$("#WzRsult2").html(lockinfo);
$('#WZModal2').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}
} else {
toastr.warning("必填项未选择!归档医生提交失败!");
}
});
//护士提交
@ -2712,68 +2685,44 @@
var nursFlag = 1;
var id = $("#archiveId").val();
if (id == "" || id == null) {
toastr.warning("病案不存在! ");
toastr.warning("病案不存在! ");
return;
}
var lockinfo = $("#wzx2Text").val();
var content = $("#nures2Text").val();
var isScanedChk2 = 0;
if ($('.isScanedChk3').is(':checked')) {
isScanedChk2 = "1";
if (lockinfo == "完整") {
$.ajax({
url: "${path}/beHosp/cmtDoctorOrNurs",
type: "POST",
data: {cmtNurse: nursFlag, id: id, lockinfo: lockinfo, content: content, isscaned: isScanedChk2},
success: function (result) {
$("#nursModal").modal('hide');
if (result == "成功") {
$("#table").bootstrapTable("refresh");
toastr.success("归档护士提交成功!");
} else {
toastr.error("归档护士提交失败!");
}
}
});
var isScanedChk2 = "0";
if (lockinfo == "完整") {
if ($('.isScanedChk3').is(':checked')) {
isScanedChk2 = "1";
} else if ($('.isScanedChk4').is(':checked')) {
isScanedChk2 = "0";
} else {
$("#flagStaff").val(1);
//弹窗提示是否强制性
$("#WzRsult2").html(lockinfo);
$('#WZModal2').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
toastr.error("必填项未选择,归档护士提交失败!");
return;
}
} else if ($('.isScanedChk4').is(':checked')) {
if (lockinfo == "完整") {
$.ajax({
url: "${path}/beHosp/cmtDoctorOrNurs",
type: "POST",
data: {cmtNurse: nursFlag, id: id, lockinfo: lockinfo, content: content, isscaned: isScanedChk2},
success: function (result) {
$("#nursModal").modal('hide');
if (result == "成功") {
$("#table").bootstrapTable("refresh");
toastr.success("归档护士提交成功!");
} else {
toastr.error("归档护士提交失败!");
}
$.ajax({
url: "${path}/beHosp/cmtDoctorOrNurs",
type: "POST",
data: {cmtNurse: nursFlag, id: id, lockinfo: lockinfo, content: content, isscaned: isScanedChk2},
success: function (result) {
$("#nursModal").modal('hide');
if (result == "成功") {
$("#table").bootstrapTable("refresh");
toastr.success("归档护士提交成功!");
} else {
toastr.error("归档护士提交失败!");
}
});
} else {
$("#flagStaff").val(1);
//弹窗提示是否强制性
$("#WzRsult2").html(lockinfo);
$('#WZModal2').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}
} else {
toastr.error("必填项未选择!归档护士提交失败!");
}
});
}else{
$("#flagStaff").val(1);
//弹窗提示是否强制性
$("#WzRsult2").html(lockinfo);
$('#WZModal2').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}
});
@ -2831,10 +2780,9 @@
var firstTrial = $("#verifyText").val();
var content = $("#WzRsult").html();
if (firstTrial.length > 255) {
toastr.warning("长度不超过255! ");
toastr.warning("长度不超过255! ");
return;
}
//console.log(archiveDetailId+"==="+ firstTrial+"==="+ content);
//完整性强制提交 forceWZ
$.ajax({
@ -2846,11 +2794,11 @@
if (result == "1") {
$("#WZModal").modal('hide');
$("#table").bootstrapTable("refresh");
toastr.success("强制提交成功! ");
toastr.success("强制提交成功! ");
} else {
$("#WZModal").modal('hide');
$("#table").bootstrapTable("refresh");
toastr.error("强制提交失败! ");
toastr.error("强制提交失败! ");
}
}
});
@ -3020,7 +2968,7 @@
}
} else {
toastr.warning("请选择上传的图片! ");
toastr.warning("请选择上传的图片! ");
}
} else {
@ -3378,12 +3326,13 @@
spinnerStaff2.spin(target2);
}
$.ajax({
url: "${path}/beHosp/wzByArchivId",
type: "POST",
data: {archiveDetailId: archiveDetailId},
success: function (resultWz) {
$("#wzContent").empty();
$("#wzContent").html(resultWz);
if (staffFlag == 0) {
//医生提交
$("#wzxText").val(resultWz);
@ -3461,7 +3410,7 @@
var editId=null;
function dealAndConcelFun() {
if (editId == null) {
toastr.warning("选中1条记录! ");
toastr.warning("选中1条记录! ");
return;
}
if (editId != null && editId != "") {
@ -4279,8 +4228,6 @@
show: true//弹出对话框
});
$("#archiveId").val(row.id);
} else {
if (row.id != null && row.id != "") {
$.ajax({
@ -4315,7 +4262,7 @@
toastr.warning("病案不存在!");
}
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
} else {
@ -4381,7 +4328,7 @@
toastr.warning("病案不存在!");
}
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
} else {
@ -4406,6 +4353,7 @@
},
'click .selInfo': function (e, value, row, index) {
getStaffRemarkFun(row.id, 0);
$('#selModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
@ -4434,7 +4382,7 @@
$("#outHospLab").html(row.dischargeDisposition);
$("#inLab").html(row.inpNo);
$("#inTimeLab").html(row.visitId);
$("#wzContent").html(row.lockinfo);
///入/出院年+出院月+住院号+住院次数
var outDate = "";
@ -4579,7 +4527,7 @@
toastr.warning("暂无任何来源!");
}
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
}
@ -4863,7 +4811,7 @@
$('#pdf_page').attr('src', pdfPath);
//病案号 45e9b098f9da49ffba1843bfc6930cb8
} else {
toastr.warning("勾选的PDF文件不存在或破损! ");
toastr.warning("勾选的PDF文件不存在或破损! ");
}
//删除pdf某一页
@ -4900,7 +4848,7 @@
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");
//toastr.warning("用户长时间未操作,请重新登录! ");
//toastr.warning("用户长时间未操作,请重新登录! ");
}, onCheckAll: function (rows) { //点击全选框时触发的操作
if (rows != null && rows.length) {
for (var i = 0; i < rows.length; i++) {
@ -4979,7 +4927,7 @@
$('#pdfPathVal').val("");
} else {
toastr.warning("请选择分段类别! ");
toastr.warning("请选择分段类别! ");
}
});
@ -5082,7 +5030,7 @@
$('#table2').bootstrapTable('refresh');
spinner.spin();
}, error: function () {
//toastr.error("加载失败! ");
//toastr.error("加载失败! ");
}
});
@ -5119,7 +5067,6 @@
$('#table2').bootstrapTable('refresh');
// idArr = [];
}
}
};
@ -5172,7 +5119,7 @@
var id = idArr.toString();
//判断id
if (id == null || id == '') {
toastr.warning("请选择记录! ");
toastr.warning("请选择记录! ");
return;
}
$.ajax({
@ -5183,12 +5130,12 @@
if (result == 1) {
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量作废成功! ");
toastr.success("批量作废成功! ");
} else {
toastr.error("批量作废失败,无记录! ");
toastr.error("批量作废失败,无记录! ");
}
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
});
@ -5198,7 +5145,7 @@
var id = idArr.toString();
//判断id
if (id == null || id == '') {
toastr.warning("请选择记录! ");
toastr.warning("请选择记录! ");
return;
}
$.ajax({
@ -5210,12 +5157,12 @@
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量使用成功! ");
toastr.success("批量使用成功! ");
} else {
toastr.error("批量使用失败,无记录! ");
toastr.error("批量使用失败,无记录! ");
}
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
});
@ -5253,12 +5200,12 @@
if (result == 1) {
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("作废成功! ");
toastr.success("作废成功! ");
} else {
toastr.error("作废失败,无该条记录! ");
toastr.error("作废失败,无该条记录! ");
}
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
@ -5279,12 +5226,12 @@
//刷新
$('#table2').bootstrapTable('refresh');
initTree($("#idLab").html());
toastr.success("删除成功! ");
toastr.success("删除成功! ");
} else {
toastr.error("删除失败,无该条记录! ");
toastr.error("删除失败,无该条记录! ");
}
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
@ -5294,12 +5241,12 @@
$("#delPageBtn").click(function () {
var pagePdfVal = $("#pagePdf").val();
if (pagePdfVal == null || pagePdfVal == "") {
toastr.warning("页码必填! ");
toastr.warning("页码必填! ");
return;
}
if (pagePdfVal != null && pagePdfVal != "") {
if (pagePdfVal <= 0) {
toastr.warning("起始页码大于0且必填! ");
toastr.warning("起始页码大于0且必填! ");
return;
}
}
@ -5324,7 +5271,7 @@
show: true//弹出对话框
});
} else {
toastr.warning("请输入页码! ");
toastr.warning("请输入页码! ");
}
});
@ -5380,27 +5327,27 @@
$('#table2').bootstrapTable('refresh');
initTree($("#idLab").html());
if (entity.sys == "") {
toastr.success("删除pdf页数,第" + entity.title + "页成功! ");
toastr.success("删除pdf页数,第" + entity.title + "页成功! ");
} else {
toastr.success("删除pdf页数,第" + entity.title + "至" + entity.sys + "页成功! ");
toastr.success("删除pdf页数,第" + entity.title + "至" + entity.sys + "页成功! ");
}
} else if (result == 0) {
if (entity.sys == "") {
toastr.warning("删除pdf页数,第" + entity.title + "页失败! ");
toastr.warning("删除pdf页数,第" + entity.title + "页失败! ");
} else {
toastr.success("删除pdf页数,第" + entity.title + "至" + entity.sys + "页成失败! ");
toastr.success("删除pdf页数,第" + entity.title + "至" + entity.sys + "页成失败! ");
}
} else if (result == 2) {
toastr.warning("pdf文件不存在! ");
toastr.warning("pdf文件不存在! ");
} else if (result == 3) {
toastr.warning("删除页码或页数不得大于总页数! ");
toastr.warning("删除页码或页数不得大于总页数! ");
} else if (result == 4) {
toastr.warning("删除页码前备份失败! ");
toastr.warning("删除页码前备份失败! ");
} else if (result == 5) {
toastr.warning("只剩一页不可再删! ");
toastr.warning("只剩一页不可再删! ");
}
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
});
@ -5431,7 +5378,7 @@
$("#saveBtn").click(function () {
if ($("#inpTitle").val().length > 100) {
toastr.warning("内容长度不超过100! ");
toastr.warning("内容长度不超过100! ");
return;
}
//判断file是否为空, 如果不是弹出提示框标识该文件已经存在是否替换
@ -5523,7 +5470,7 @@
param.data = result;
oTimeAxiosFun = new oTimeAxios(param);
}, error: function () {
toastr.error("操作失败! ");
toastr.error("操作失败! ");
}
});
})