|
|
|
@ -145,12 +145,12 @@
|
|
|
|
|
margin-top: 35%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#WZModal .modal-content {
|
|
|
|
|
margin-left: 50%;
|
|
|
|
|
margin-top: 35%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
<script>
|
|
|
|
|
var path = "${path}";
|
|
|
|
@ -170,7 +170,8 @@
|
|
|
|
|
<%--</div>--%>
|
|
|
|
|
<div class="form-group divCss8">
|
|
|
|
|
<label for="name">主管医生:</label>
|
|
|
|
|
<input type="text" class="input-sm form-control" id="doctorInCharge" maxlength="25" placeholder="请输入主管医生姓名">
|
|
|
|
|
<input type="text" class="input-sm form-control" id="doctorInCharge" maxlength="25"
|
|
|
|
|
placeholder="请输入主管医生姓名">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group divCss8">
|
|
|
|
|
<label for="inpNo">住院号:</label>
|
|
|
|
@ -187,13 +188,13 @@
|
|
|
|
|
<div class="form-group divCss8" id="deptDiv" style="height: 18px;margin-top: -7px;">
|
|
|
|
|
<label>出院科室:</label>
|
|
|
|
|
<%--<select class="input-sm form-control" id="deptName">--%>
|
|
|
|
|
<%--<option value="">全部</option>--%>
|
|
|
|
|
<%--<%–<option value="在院">在院</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="未归档">未归档</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="归档中">归档中</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="初审">初审</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="已认证">已认证</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="已归档">已归档</option>–%>--%>
|
|
|
|
|
<%--<option value="">全部</option>--%>
|
|
|
|
|
<%--<%–<option value="在院">在院</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="未归档">未归档</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="归档中">归档中</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="初审">初审</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="已认证">已认证</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="已归档">已归档</option>–%>--%>
|
|
|
|
|
<%--</select>--%>
|
|
|
|
|
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="deptName" id="deptName"
|
|
|
|
|
title="请输入科室">
|
|
|
|
@ -689,7 +690,61 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--查看详情diag-->
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="modal-default" tabindex="1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
|
|
|
|
|
style="margin-left: -35%">
|
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
<div class="modal-content" style="width: 155%">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
|
|
|
|
|
×
|
|
|
|
|
</button>
|
|
|
|
|
<h4 class="modal-title">
|
|
|
|
|
文件生成情况
|
|
|
|
|
</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body" style='height:90%'>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<form style="margin-top:20px;">
|
|
|
|
|
<div class="form-inline">
|
|
|
|
|
<div class="form-group divCss8">
|
|
|
|
|
<label for="name">标题:</label>
|
|
|
|
|
<input type="text" class="input-sm form-control" id="" maxlength="25"
|
|
|
|
|
placeholder="请输入标题">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group divCss8" id="">
|
|
|
|
|
<label>状态:</label>
|
|
|
|
|
<select class="form-control" data-live-search="true" name="deptName" id="">
|
|
|
|
|
<option value="">全部</option>
|
|
|
|
|
<option value="1">完成</option>
|
|
|
|
|
<option value="0">未完成</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group divCss8" id="">
|
|
|
|
|
<label>分段:</label>
|
|
|
|
|
<select class="form-control" data-live-search="true" name="deptName" id="">
|
|
|
|
|
<option value="">全部</option>
|
|
|
|
|
<option value="">首页</option>
|
|
|
|
|
<option value="">病程记录</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-sm divCss" id="searchBtn">查询</button>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-sm divCss" id="searchBtn">批量采集</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12" style="text-align: center">
|
|
|
|
|
<p>共需45份,已完成30份,未完成15份,完成率75%</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<!--数据表格-->
|
|
|
|
|
<table id="table3" class="table text-nowrap table-striped"></table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
@ -697,6 +752,7 @@
|
|
|
|
|
//创建数组保存图片
|
|
|
|
|
var files = new Array();
|
|
|
|
|
var id = 0;
|
|
|
|
|
|
|
|
|
|
function getFaultType() {
|
|
|
|
|
//获取科室列表
|
|
|
|
|
$.ajax({
|
|
|
|
@ -719,6 +775,7 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getFaultType();
|
|
|
|
|
$(function () {
|
|
|
|
|
var objUrl;
|
|
|
|
@ -741,7 +798,7 @@
|
|
|
|
|
*描述:鉴定每个图片上传尾椎限制
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
if ( ext != ".PNG" && ext != ".GIF" && ext != ".JPG" && ext != ".JPEG") {
|
|
|
|
|
if (ext != ".PNG" && ext != ".GIF" && ext != ".JPG" && ext != ".JPEG") {
|
|
|
|
|
//$(".shade").fadeIn(500000000);//500
|
|
|
|
|
toastr.warning("图片限于png,gif,jpeg,jpg格式");
|
|
|
|
|
//$(".text_span").text("图片限于bmp,png,gif,jpeg,jpg格式");
|
|
|
|
@ -749,19 +806,19 @@
|
|
|
|
|
//$(".img_div").html("");
|
|
|
|
|
return false;
|
|
|
|
|
} else {
|
|
|
|
|
/**
|
|
|
|
|
*若规则全部通过则在此提交url到后台数据库
|
|
|
|
|
*/
|
|
|
|
|
// if (objUrl.indexOf(".") != -1) {
|
|
|
|
|
// img_html = "<div class='isImg' id='-1'><img src='require(" + objUrl + ")' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
|
|
|
|
|
// } else {
|
|
|
|
|
// img_html = "<div class='isImg' id='-1'><img src='" + objUrl + "' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
|
|
|
|
|
// }
|
|
|
|
|
img_html = "<div class='isImg' id='-1'><img src='" + objUrl + "' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
|
|
|
|
|
/**
|
|
|
|
|
*若规则全部通过则在此提交url到后台数据库
|
|
|
|
|
*/
|
|
|
|
|
// if (objUrl.indexOf(".") != -1) {
|
|
|
|
|
// img_html = "<div class='isImg' id='-1'><img src='require(" + objUrl + ")' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
|
|
|
|
|
// } else {
|
|
|
|
|
// img_html = "<div class='isImg' id='-1'><img src='" + objUrl + "' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
|
|
|
|
|
// }
|
|
|
|
|
img_html = "<div class='isImg' id='-1'><img src='" + objUrl + "' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
|
|
|
|
|
|
|
|
|
|
img_html += selectStr
|
|
|
|
|
+ " <button class='removeBtn' onclick='javascript:removeImg(this)'>x</button></div>";
|
|
|
|
|
img_div.append(img_html);
|
|
|
|
|
img_html += selectStr
|
|
|
|
|
+ " <button class='removeBtn' onclick='javascript:removeImg(this)'>x</button></div>";
|
|
|
|
|
img_div.append(img_html);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
@ -824,6 +881,7 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 描述:上传图片附带删除 再次地方可以加上一个ajax进行提交到后台进行删除
|
|
|
|
|
*/
|
|
|
|
@ -869,6 +927,7 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 描述:上传图片附带放大查看处理
|
|
|
|
|
*/
|
|
|
|
@ -883,20 +942,24 @@
|
|
|
|
|
$(".showImg").attr("src", $(b).attr("src"));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 描述:关闭弹出层
|
|
|
|
|
*/
|
|
|
|
|
function closeShade() {
|
|
|
|
|
// $(".shade").fadeOut(500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*描述:关闭弹出层
|
|
|
|
|
*/
|
|
|
|
|
function closeShadeImg() {
|
|
|
|
|
// $(".shadeImg").fadeOut(500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//初始化类别
|
|
|
|
|
var selectStr = "";
|
|
|
|
|
|
|
|
|
|
function getAssortFun() {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/inHosp/getAssort",
|
|
|
|
@ -921,6 +984,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getAssortFun();
|
|
|
|
|
var opts = {
|
|
|
|
|
lines: 13, // The number of lines to draw |小长条的数量
|
|
|
|
@ -944,6 +1008,7 @@
|
|
|
|
|
};
|
|
|
|
|
var spinner = new Spinner(opts);
|
|
|
|
|
var url = "";
|
|
|
|
|
|
|
|
|
|
function uploadFileFun() {
|
|
|
|
|
var formData = new FormData();
|
|
|
|
|
formData.append('file', $('#addFile')[0].files[0]);
|
|
|
|
@ -971,13 +1036,13 @@
|
|
|
|
|
toastr.warning(result);
|
|
|
|
|
}
|
|
|
|
|
}, error: function (result) {
|
|
|
|
|
|
|
|
|
|
//$('#addFile').attr("src", $("#outDateLab").val() + ".pdf");//.val($("#outDateLab").val()+".pdf");
|
|
|
|
|
toastr.error("上传失败!");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function blobToDataURL(blob, callback) {
|
|
|
|
|
var a = new FileReader();
|
|
|
|
|
a.onload = function (e) {
|
|
|
|
@ -991,6 +1056,7 @@
|
|
|
|
|
blob.name = fileName;
|
|
|
|
|
return blob;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function imgSelectFun() {
|
|
|
|
|
var img_div = $(".img_div");
|
|
|
|
|
if ($("#inpGl").val() != "非类型") {
|
|
|
|
@ -1038,6 +1104,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#imgBtn").click(function () {
|
|
|
|
|
//console.log("===查询图片列表===");
|
|
|
|
|
//var target = document.getElementById('filesUpload');
|
|
|
|
@ -1221,7 +1288,7 @@
|
|
|
|
|
toastr.success("初审操作成功!");
|
|
|
|
|
} else {
|
|
|
|
|
$("#WzRsult").html(result);
|
|
|
|
|
$("#resultLabel").text("完整性未通过:"+result+",是否强制提交?");
|
|
|
|
|
$("#resultLabel").text("完整性未通过:" + result + ",是否强制提交?");
|
|
|
|
|
$('#WZModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
@ -1236,7 +1303,7 @@
|
|
|
|
|
$("#wzSaveBtn").on('click', function () {
|
|
|
|
|
var archiveDetailId = $("#archiveId").val();
|
|
|
|
|
var firstTrial = $("#verifyText").val();
|
|
|
|
|
var content= $("#WzRsult").html();
|
|
|
|
|
var content = $("#WzRsult").html();
|
|
|
|
|
if (firstTrial.length > 255) {
|
|
|
|
|
toastr.warning("长度不超过255!");
|
|
|
|
|
return;
|
|
|
|
@ -1247,7 +1314,7 @@
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/beHosp/forceWZ",
|
|
|
|
|
type: "POST",
|
|
|
|
|
data: {archiveDetailId: archiveDetailId, firstTrial: firstTrial, content: content},
|
|
|
|
|
data: {archiveDetailId: archiveDetailId, firstTrial: firstTrial, content: content},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
$("#WZModal").modal('hide');
|
|
|
|
|
if (result == "1") {
|
|
|
|
@ -1335,9 +1402,11 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getDept();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//处理导出内容,这个方法可以自定义某一行、某一列、甚至某个单元格的内容,也就是将其值设置为自己想要的内容
|
|
|
|
|
function DoOnCellHtmlData(cell, row, col, data) {
|
|
|
|
|
if (row == 0) {
|
|
|
|
@ -1356,6 +1425,7 @@
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据两个日期,判断相差天数
|
|
|
|
|
* @param sDate1 开始日期 如:2016-11-01
|
|
|
|
@ -1471,8 +1541,8 @@
|
|
|
|
|
startDateTo: $("#startDateTo").val(),
|
|
|
|
|
endDateTo: $("#endDateTo").val(),
|
|
|
|
|
deptName: deptName.toString(),
|
|
|
|
|
doctorInCharge:$("#doctorInCharge").val(),
|
|
|
|
|
isSearch:$("#isSearch").val()
|
|
|
|
|
doctorInCharge: $("#doctorInCharge").val(),
|
|
|
|
|
isSearch: $("#isSearch").val()
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
//console.log(deptName);
|
|
|
|
@ -1570,9 +1640,9 @@
|
|
|
|
|
//在院 未归档 归档中 初审 已归档 已认证
|
|
|
|
|
var a = '';
|
|
|
|
|
var days = row.days;
|
|
|
|
|
/* if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
|
|
|
|
|
days = daysBetween(show(), row.dischargeDateTime.split(" ")[0]);
|
|
|
|
|
}*/
|
|
|
|
|
/* if (row.dischargeDateTime != null && row.dischargeDateTime != "") {
|
|
|
|
|
days = daysBetween(show(), row.dischargeDateTime.split(" ")[0]);
|
|
|
|
|
}*/
|
|
|
|
|
if (value == "未归档") {
|
|
|
|
|
a = '<span style="color:#c0c0c0;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
} else if (value == "已归档") {
|
|
|
|
@ -1631,9 +1701,9 @@
|
|
|
|
|
});
|
|
|
|
|
$("#verifyText").val("");
|
|
|
|
|
$("#archiveId").val(row.id);
|
|
|
|
|
} else if(result == -1){
|
|
|
|
|
} else if (result == -1) {
|
|
|
|
|
toastr.warning("系统出错了请联系系统管理员");
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
toastr.warning("his系统医生或护士未完成提交");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -1671,7 +1741,7 @@
|
|
|
|
|
$("#chargeLab").html(row.doctorInCharge);
|
|
|
|
|
$("#deptToLab").html(row.deptAdmissionTo);
|
|
|
|
|
//出院
|
|
|
|
|
if(row.dischargeDateTime!=null&& row.dischargeDateTime!='') {
|
|
|
|
|
if (row.dischargeDateTime != null && row.dischargeDateTime != '') {
|
|
|
|
|
$("#inDateLab1").html(row.dischargeDateTime.substring(0, 10));
|
|
|
|
|
}
|
|
|
|
|
$("#deptToLab1").html(row.deptName);
|
|
|
|
@ -1679,18 +1749,18 @@
|
|
|
|
|
$("#outHospLab").html(row.dischargeDisposition);
|
|
|
|
|
$("#inLab").html(row.inpNo);
|
|
|
|
|
$("#inTimeLab").html(row.visitId);
|
|
|
|
|
if(row.lockinfo != ''){
|
|
|
|
|
if (row.lockinfo != '') {
|
|
|
|
|
$("#wzContent").text(row.lockinfo);
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
//请求接口查看并回显
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:'get',
|
|
|
|
|
url:'${path}/beHosp/checkSuccess',
|
|
|
|
|
data:{archiveDetailId:row.id},
|
|
|
|
|
async:false,
|
|
|
|
|
success:function(result){
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: '${path}/beHosp/checkSuccess',
|
|
|
|
|
data: {archiveDetailId: row.id},
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (result) {
|
|
|
|
|
$("#wzContent").text('');
|
|
|
|
|
if(result != ''){
|
|
|
|
|
if (result != '') {
|
|
|
|
|
$("#wzContent").text(result);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -1705,6 +1775,8 @@
|
|
|
|
|
}
|
|
|
|
|
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
|
|
|
|
|
initTree(row.id);
|
|
|
|
|
//加载文件表格
|
|
|
|
|
initTable2();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cellStyle: function (value, row, index) {
|
|
|
|
@ -1727,206 +1799,17 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var idArr = [];
|
|
|
|
|
|
|
|
|
|
function initTable2() {
|
|
|
|
|
$("#table2").bootstrapTable({ // 对应table标签的id
|
|
|
|
|
//method: 'POST',
|
|
|
|
|
url: "${path}/inHosp/getAssortdetail", // 获取表格数据的url
|
|
|
|
|
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求,注释掉这句话也能拿到数据
|
|
|
|
|
//dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
|
|
|
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|
|
|
|
striped: true, //表格显示条纹,默认为false
|
|
|
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|
|
|
|
paginationShowPageGo: true,
|
|
|
|
|
pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。
|
|
|
|
|
smartDisplay: false,
|
|
|
|
|
pageSize: 2, // 页面数据条数
|
|
|
|
|
pageNumber: 1, // 初始化加载第一页,默认第一页
|
|
|
|
|
sidePagination: 'server', // 设置为服务器端分页 客户端:client
|
|
|
|
|
search: false,
|
|
|
|
|
showColumns: true,
|
|
|
|
|
searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法
|
|
|
|
|
undefinedText: '---', //当数据为 undefined 时显示的字符
|
|
|
|
|
singleSelect: false,//设置True 将禁止多选
|
|
|
|
|
clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox
|
|
|
|
|
height: 560, //定义表格的高度。
|
|
|
|
|
searchTimeOut: 500,// 默认500 设置搜索超时时间。
|
|
|
|
|
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
|
|
|
|
|
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
|
|
|
|
|
showHeader: true,//是否显示列头。
|
|
|
|
|
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
|
|
|
|
|
queryParams: function (params) {
|
|
|
|
|
var currPageSize = this.pageSize;
|
|
|
|
|
if (currPageSize == 2) {
|
|
|
|
|
currPageSize = 10;
|
|
|
|
|
}
|
|
|
|
|
var limit = null;
|
|
|
|
|
var offset = params.offset;
|
|
|
|
|
var patientId = $("#idLab").html();
|
|
|
|
|
var assortId = $("#assortId").html();
|
|
|
|
|
if (assortId == 0) assortId = null;
|
|
|
|
|
//判断是否导出全部all
|
|
|
|
|
if ($("#sel_exportoption").val() == "all") {
|
|
|
|
|
offset = 0;
|
|
|
|
|
limit = this.totalRows;
|
|
|
|
|
this.pageSize = limit;
|
|
|
|
|
} else {
|
|
|
|
|
limit = currPageSize;
|
|
|
|
|
this.pageSize = currPageSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var temp = {
|
|
|
|
|
limit: limit, //页面大小
|
|
|
|
|
offset: offset, //页码
|
|
|
|
|
order: params.order, //排位命令(desc,asc)
|
|
|
|
|
patientId: patientId,
|
|
|
|
|
assortId: assortId
|
|
|
|
|
};
|
|
|
|
|
return temp;
|
|
|
|
|
},
|
|
|
|
|
sortName: 'assortSort', // 要排序的字段
|
|
|
|
|
sortOrder: 'desc', // 排序规则
|
|
|
|
|
columns: [{
|
|
|
|
|
title: '全选',
|
|
|
|
|
field: 'select', //复选框
|
|
|
|
|
checkbox: true,
|
|
|
|
|
width: 25,
|
|
|
|
|
align: 'center',
|
|
|
|
|
hidden: true,
|
|
|
|
|
}, {
|
|
|
|
|
title: '序',
|
|
|
|
|
field: 'id',
|
|
|
|
|
align: 'left',
|
|
|
|
|
visible: false
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: '分段类id',
|
|
|
|
|
field: 'assortId',
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
visible: false
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: '标题',
|
|
|
|
|
field: 'title',
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '上传时间',
|
|
|
|
|
field: 'uploaddatetime',
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 150, // 定义列的宽度,单位为像素px
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '来源',
|
|
|
|
|
field: 'source',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 50, // 定义列的宽度,单位为像素px
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|
field: 'flag',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 80, // 定义列的宽度,单位为像素px
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
//在院 未归档 归档中 初审 已归档 已认证
|
|
|
|
|
var a = '';
|
|
|
|
|
if (value == "1") {
|
|
|
|
|
a = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>作废</span>';
|
|
|
|
|
} else if (value == "0") {
|
|
|
|
|
a = '<span style="color:green"><i class="fa fa-check-circle-o" aria-hidden="true"></i>使用</span>';
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 120, // 定义列的宽度,单位为像素px
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
|
|
|
|
|
var html = '<button type="button" class="btn btn-info btn-sm editInfo" >编辑 </button>';// '<a href="javascript:;" class="delete">删除</a>';
|
|
|
|
|
if (row.flag == "0") {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-danger btn-sm stateInfo" >作废 </button>';
|
|
|
|
|
}
|
|
|
|
|
return html;
|
|
|
|
|
}, events: {
|
|
|
|
|
'click .editInfo': function (e, value, row, index) {
|
|
|
|
|
$('#assortModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//同步
|
|
|
|
|
$("#inpId").val(row.id);
|
|
|
|
|
$("#inpTitle").val(row.title);
|
|
|
|
|
$("#inpType").val(row.assortId);
|
|
|
|
|
$("#inpSource").val(row.source);
|
|
|
|
|
$("#inpFlag").val(row.flag);
|
|
|
|
|
if (row.pdfPath != "" && row.pdfPath != "") {
|
|
|
|
|
$("#fileUrlInp").val(row.pdfPath);
|
|
|
|
|
$('#previewFile').css("display", "block");//显示预览按钮
|
|
|
|
|
}
|
|
|
|
|
}, 'click .stateInfo': function (e, value, row, index) {
|
|
|
|
|
$('#exampleModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//同步
|
|
|
|
|
$("#idT").val(row.id);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cellStyle: function (value, row, index) {
|
|
|
|
|
return {classes: 'success'}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
onLoadSuccess: function (result) { //加载成功时执行
|
|
|
|
|
// console.info("加载成功");
|
|
|
|
|
},
|
|
|
|
|
onLoadError: function () { //加载失败时执行
|
|
|
|
|
console.info("加载数据失败");
|
|
|
|
|
}, onCheckAll: function (rows) { //点击全选框时触发的操作
|
|
|
|
|
if (rows != null && rows.length) {
|
|
|
|
|
for (var i = 0; i < rows.length; i++) {
|
|
|
|
|
idArr.push(rows[i].id)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, onCheck: function (row) {//点击每一个单选框时触发的操作
|
|
|
|
|
idArr.push(row.id)
|
|
|
|
|
}, onUncheck: function (row) {//取消每一个单选框时对应的操作;
|
|
|
|
|
var index = idArr.indexOf(row.id);
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
idArr.splice(index, 1);
|
|
|
|
|
}
|
|
|
|
|
}, onUncheckAll: function (row) {//取消每一个单选框时对应的操作;
|
|
|
|
|
idArr = [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
initTable2();
|
|
|
|
|
$("#selModal").keydown(function (e) {
|
|
|
|
|
if (e.keyCode == 13) {
|
|
|
|
|
event.preventDefault();//禁用默认回车事件
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//获取table的高度
|
|
|
|
|
function getHeight() {
|
|
|
|
|
return $(window).height() - 100;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
initTable();
|
|
|
|
|
|
|
|
|
|
//2.初始化select的change事件
|
|
|
|
@ -1963,8 +1846,8 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.location.href = "${path}/beHosp/exportExcel?inpNo=" + inpNo + "&visitId=" + visitId +
|
|
|
|
|
"&name=" + name + "&archivestate=" + archivestate + "&deptName=" + deptName
|
|
|
|
|
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo+"&isSearch="+$("#isSearch").val()+"&doctorInCharge="+$("#doctorInCharge").val();
|
|
|
|
|
"&name=" + name + "&archivestate=" + archivestate + "&deptName=" + deptName
|
|
|
|
|
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo + "&isSearch=" + $("#isSearch").val() + "&doctorInCharge=" + $("#doctorInCharge").val();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
var zNodes = [];
|
|
|
|
@ -2005,8 +1888,8 @@
|
|
|
|
|
//修改选中已选节点
|
|
|
|
|
node = treeObj.getNodeByParam("id", currId);
|
|
|
|
|
} else {*/
|
|
|
|
|
//添加选中父节点
|
|
|
|
|
var node = treeObj.getNodeByParam("id", 0);
|
|
|
|
|
//添加选中父节点
|
|
|
|
|
var node = treeObj.getNodeByParam("id", 0);
|
|
|
|
|
//}
|
|
|
|
|
treeObj.selectNode(node, true);//将指定ID的节点选中
|
|
|
|
|
//刷新
|
|
|
|
@ -2019,6 +1902,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var setting = {
|
|
|
|
|
view: {
|
|
|
|
|
addHoverDom: false,
|
|
|
|
@ -2147,6 +2031,7 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function submitForm(i) {
|
|
|
|
|
var formDate = new FormData($("#form2")[0]);
|
|
|
|
|
$.ajax({
|
|
|
|
@ -2262,9 +2147,156 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//查看缺失详情
|
|
|
|
|
$("#showDefectTable").click(function(){
|
|
|
|
|
console.log(2)
|
|
|
|
|
$("#showDefectTable").click(function () {
|
|
|
|
|
$("#modal-default").modal({
|
|
|
|
|
show: true
|
|
|
|
|
})
|
|
|
|
|
//加载文件生成情况表格
|
|
|
|
|
initTable3();
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//加载文件生成情况表格
|
|
|
|
|
function initTable3() {
|
|
|
|
|
$("#table3").bootstrapTable({ // 对应table标签的id
|
|
|
|
|
url: "${path}/inHosp/getAssortdetail", // 获取表格数据的url
|
|
|
|
|
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求,注释掉这句话也能拿到数据
|
|
|
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|
|
|
|
striped: true, //表格显示条纹,默认为false
|
|
|
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|
|
|
|
paginationShowPageGo: true,
|
|
|
|
|
pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。
|
|
|
|
|
pageSize: 2, // 页面数据条数
|
|
|
|
|
pageNumber: 1, // 初始化加载第一页,默认第一页
|
|
|
|
|
sidePagination: 'server', // 设置为服务器端分页 客户端:client
|
|
|
|
|
searchOnEnterKey: true, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法
|
|
|
|
|
undefinedText: '---', //当数据为 undefined 时显示的字符
|
|
|
|
|
clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox
|
|
|
|
|
height: 560, //定义表格的高度。
|
|
|
|
|
searchTimeOut: 500,// 默认500 设置搜索超时时间。
|
|
|
|
|
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
|
|
|
|
|
showHeader: true,//是否显示列头。
|
|
|
|
|
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
|
|
|
|
|
queryParams: function (params) {
|
|
|
|
|
var currPageSize = this.pageSize;
|
|
|
|
|
if (currPageSize == 2) {
|
|
|
|
|
currPageSize = 10;
|
|
|
|
|
}
|
|
|
|
|
var limit = null;
|
|
|
|
|
var offset = params.offset;
|
|
|
|
|
var patientId = $("#idLab").html();
|
|
|
|
|
var assortId = $("#assortId").html();
|
|
|
|
|
if (assortId == 0) assortId = null;
|
|
|
|
|
//判断是否导出全部all
|
|
|
|
|
if ($("#sel_exportoption").val() == "all") {
|
|
|
|
|
offset = 0;
|
|
|
|
|
limit = this.totalRows;
|
|
|
|
|
this.pageSize = limit;
|
|
|
|
|
} else {
|
|
|
|
|
limit = currPageSize;
|
|
|
|
|
this.pageSize = currPageSize;
|
|
|
|
|
}
|
|
|
|
|
var temp = {
|
|
|
|
|
limit: limit, //页面大小
|
|
|
|
|
offset: offset, //页码
|
|
|
|
|
order: params.order, //排位命令(desc,asc)
|
|
|
|
|
patientId: patientId,
|
|
|
|
|
assortId: assortId
|
|
|
|
|
};
|
|
|
|
|
return temp;
|
|
|
|
|
},
|
|
|
|
|
columns: [{
|
|
|
|
|
title: '全选',
|
|
|
|
|
field: 'select', //复选框
|
|
|
|
|
checkbox: true,
|
|
|
|
|
width: 25,
|
|
|
|
|
align: 'center',
|
|
|
|
|
hidden: true,
|
|
|
|
|
}, {
|
|
|
|
|
title: '序',
|
|
|
|
|
field: 'id',
|
|
|
|
|
align: 'left',
|
|
|
|
|
visible: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 100, // 定义列的宽度,单位为像素px
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var html = '<button type="button" class="btn btn-primary btn-sm firstCollect">优先采集</button>';
|
|
|
|
|
return html;
|
|
|
|
|
}, events: {
|
|
|
|
|
'click .firstCollect': function (e, value, row, index) {
|
|
|
|
|
toastr.success("及时采集标记已发送,请耐心等待");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cellStyle: function (value, row, index) {
|
|
|
|
|
return {classes: 'success'}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '标题',
|
|
|
|
|
field: 'title',
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
//格式化列
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
value = '病程记录病程记录病程记录病程记录病程记录病程记录病程记录';
|
|
|
|
|
return paramsMatterColumn(value);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|
field: 'flag',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
//在院 未归档 归档中 初审 已归档 已认证
|
|
|
|
|
var a = '';
|
|
|
|
|
if (value == "1") {
|
|
|
|
|
a = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未完成</span>';
|
|
|
|
|
} else if (value == "0") {
|
|
|
|
|
a = '<span style="color:green"><i class="fa fa-check-circle-o" aria-hidden="true"></i>完成</span>';
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '来源',
|
|
|
|
|
field: 'source',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '分段',
|
|
|
|
|
field: 'flag',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
return '检验检查报告';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '最新时间',
|
|
|
|
|
field: 'uploaddatetime',
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 150 // 定义列的宽度,单位为像素px
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '最近手动提交时间',
|
|
|
|
|
field: '',
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 150 // 定义列的宽度,单位为像素px
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
onLoadError: function () { //加载失败时执行
|
|
|
|
|
console.info("加载数据失败");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-02-13"></script>
|
|
|
|
|
<script src="${path}/static/js/hospitalLoadPdf/loadPdf.js?time=2020-09-25"></script>
|
|
|
|
|
</html>
|