|
|
|
@ -78,7 +78,6 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.divCss4 {
|
|
|
|
|
border-top: 1px solid #e5e5e5;
|
|
|
|
|
width: 97.5%;
|
|
|
|
@ -100,6 +99,7 @@
|
|
|
|
|
/*color: gainsboro;*/
|
|
|
|
|
color: #c1c3c4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.labCss3 {
|
|
|
|
|
/*color: gainsboro;*/
|
|
|
|
|
color: #060606;
|
|
|
|
@ -145,10 +145,10 @@
|
|
|
|
|
margin-left: -10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ztree{
|
|
|
|
|
#ztree {
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
max-height: calc(60vh );
|
|
|
|
|
max-height: calc(60vh);
|
|
|
|
|
!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -182,20 +182,24 @@
|
|
|
|
|
!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img_div{
|
|
|
|
|
overflow-y:auto; overflow-x:hidden; height:calc(75vh);
|
|
|
|
|
.img_div {
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
height: calc(75vh);
|
|
|
|
|
!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img_div2{
|
|
|
|
|
overflow-y:auto; overflow-x:hidden; height:calc(75vh);
|
|
|
|
|
.img_div2 {
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
height: calc(75vh);
|
|
|
|
|
!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#imgDelPageModal .modal-content {
|
|
|
|
|
margin-left: 5%;
|
|
|
|
|
width: calc(200%); /*margin-left:-15%;*/
|
|
|
|
|
height: calc(90vh );
|
|
|
|
|
height: calc(90vh);
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
!important;
|
|
|
|
@ -461,22 +465,22 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#assortNameQX{
|
|
|
|
|
width:600px;
|
|
|
|
|
#assortNameQX {
|
|
|
|
|
width: 600px;
|
|
|
|
|
!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#tableQX{
|
|
|
|
|
#tableQX {
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
/* width:100%;*/
|
|
|
|
|
overflow:auto;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#QXInfoModal .modal-content {
|
|
|
|
|
#QXInfoModal .modal-content {
|
|
|
|
|
margin-left: 5%;
|
|
|
|
|
width: calc(210%);
|
|
|
|
|
height: calc(100vh - 80px);
|
|
|
|
@ -494,15 +498,15 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.formCss{
|
|
|
|
|
margin-top:0px;
|
|
|
|
|
margin-left:20px;
|
|
|
|
|
.formCss {
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tjCss{
|
|
|
|
|
margin-left:10px;
|
|
|
|
|
margin-right:20px;
|
|
|
|
|
height:auto;
|
|
|
|
|
.tjCss {
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
margin-right: 20px;
|
|
|
|
|
height: auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
@ -544,9 +548,10 @@
|
|
|
|
|
<%--<%–<option value="已认证">已认证</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="已归档">已归档</option>–%>--%>
|
|
|
|
|
<%--</select>--%>
|
|
|
|
|
<select class="selectpicker bla bla bli" multiple data-live-search="true" data-actions-box="true" data-deselect-all-text="取消全选" data-select-all-text="全选" name="deptAdmissionTo"
|
|
|
|
|
<select class="selectpicker bla bla bli" multiple data-live-search="true" data-actions-box="true"
|
|
|
|
|
data-deselect-all-text="取消全选" data-select-all-text="全选" name="deptAdmissionTo"
|
|
|
|
|
id="deptAdmissionTo" title="请输入入院科室">
|
|
|
|
|
<%-- <option value="">全部</option>--%>
|
|
|
|
|
<%-- <option value="">全部</option>--%>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group divCss8">
|
|
|
|
@ -568,8 +573,10 @@
|
|
|
|
|
<%--<%–<option value="已认证">已认证</option>–%>--%>
|
|
|
|
|
<%--<%–<option value="已归档">已归档</option>–%>--%>
|
|
|
|
|
<%--</select>--%>
|
|
|
|
|
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="deptName" id="deptName" data-none-results-text="没找到相应记录{0}"
|
|
|
|
|
title="请输入出院科室" data-actions-box="true" data-deselect-all-text="取消全选" data-select-all-text="全选">
|
|
|
|
|
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="deptName" id="deptName"
|
|
|
|
|
data-none-results-text="没找到相应记录{0}"
|
|
|
|
|
title="请输入出院科室" data-actions-box="true" data-deselect-all-text="取消全选"
|
|
|
|
|
data-select-all-text="全选">
|
|
|
|
|
<%--<option value="">全部</option>--%>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
@ -650,7 +657,7 @@
|
|
|
|
|
<%--</div>--%>
|
|
|
|
|
|
|
|
|
|
<!-- 模态框3(Modal)查看档案 -->
|
|
|
|
|
<div class="modal fade" id="selModal" tabindex="1" role="dialog" aria-labelledby="myModalLabel" >
|
|
|
|
|
<div class="modal fade" id="selModal" tabindex="1" role="dialog" aria-labelledby="myModalLabel">
|
|
|
|
|
<div class="modal-dialog" style="left:10%;top:5px;">
|
|
|
|
|
<div class="modal-header2">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
|
|
|
|
@ -755,7 +762,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-9 btnGroupCss">
|
|
|
|
|
<button type="button" class="btn btn-danger btn-sm" id="addPdfBtn">添加pdf</button>
|
|
|
|
|
<button type="button" class="btn btn-default btn-sm" id="uploadBtn">上传文件</button>
|
|
|
|
|
<button type="button" class="btn btn-default btn-sm" id="uploadBtn">上传文件
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-info btn-sm" id="pdfBtn">查看分段PDF</button>
|
|
|
|
|
<button type="button" class="btn btn-success btn-sm" id="pdfBtn2">查看PDF</button>
|
|
|
|
|
<%--<button type="button" class="btn btn-primary btn-sm" id="addBtn">添加清单</button>--%>
|
|
|
|
@ -774,7 +782,8 @@
|
|
|
|
|
<input class="input-sm form-control form-inline" type="text"
|
|
|
|
|
id="titleSearch" name="titleSearch" aria-label="Refresh"
|
|
|
|
|
title="Refresh" placeholder="请输入pdf相关标题"/>
|
|
|
|
|
<select class="selectpicker bla bla bli" data-live-search="true" name="sourceSearch" id="sourceSearch" title="来源">
|
|
|
|
|
<select class="selectpicker bla bla bli" data-live-search="true"
|
|
|
|
|
name="sourceSearch" id="sourceSearch" title="来源">
|
|
|
|
|
</select>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-sm" id="titleSearchBtn">
|
|
|
|
|
查询
|
|
|
|
@ -902,9 +911,13 @@
|
|
|
|
|
<!--数据表格-->
|
|
|
|
|
<table id="tableQX" class="table text-nowrap table-striped"></table>
|
|
|
|
|
<div id="toolbarQX" class="btn-group pull-right" style="margin-left:1100px">
|
|
|
|
|
<div class="columns columns-right btn-group pull-left" style="margin-top:0px;">
|
|
|
|
|
<button type="button" class="btn btn-warning btn-sm" id="QXDealBtn" onclick="dealAndConcelFun()">进行处理</button>
|
|
|
|
|
<button type="button" class="btn btn-danger btn-sm" id="QXDealCancelBtn" onclick="dealAndConcelFun()">取消处理</button>
|
|
|
|
|
<div class="columns columns-right btn-group pull-left" style="margin-top:0px;">
|
|
|
|
|
<button type="button" class="btn btn-warning btn-sm" id="QXDealBtn"
|
|
|
|
|
onclick="dealAndConcelFun()">进行处理
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-danger btn-sm" id="QXDealCancelBtn"
|
|
|
|
|
onclick="dealAndConcelFun()">取消处理
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -958,7 +971,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-info btn-sm" id="dealBtn" hiddendata-dismiss="modal">已处理</button>
|
|
|
|
|
<button type="button" class="btn btn-info btn-sm" id="dealBtn" hiddendata-dismiss="modal">已处理
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-warning btn-sm" id="dealNoBtn" data-dismiss="modal">未处理</button>
|
|
|
|
|
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
|
|
|
|
|
</div>
|
|
|
|
@ -1308,7 +1322,8 @@
|
|
|
|
|
<button type="button" class="btn btn-warning btn-sm" id="returnPdfBtn"
|
|
|
|
|
onclick="returnPdfFun()">还原最初PDF
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-danger btn-sm" id="delAllImgBtn">删除全部图片</button>
|
|
|
|
|
<button type="button" class="btn btn-danger btn-sm" id="delAllImgBtn">删除全部图片
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="imglist" id="imglist">
|
|
|
|
@ -1386,7 +1401,8 @@
|
|
|
|
|
<form id="filesUpload2" method="POST" enctype="multipart/form-data">
|
|
|
|
|
<div class="imgDivCss" id="divImg2">
|
|
|
|
|
<div class="form-inline">
|
|
|
|
|
<button type="button" class="btn btn-primary btn-sm divCss" id="imgsClearBtn2">清空图片</button>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-sm divCss" id="imgsClearBtn2">清空图片
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-warning btn-sm divCss" id="imgsSaveBtn2">保存</button>
|
|
|
|
|
<a href="javascript:;" class="a-upload btn btn-info btn-sm">
|
|
|
|
|
<input type="file" name="myFile2" id="myFile2" multiple="multiple" accept="image/*"
|
|
|
|
@ -1497,23 +1513,23 @@
|
|
|
|
|
for (var i = 0; i < fileALL.length; i++) {
|
|
|
|
|
//获取图片路径
|
|
|
|
|
objUrl = getObjectURL(fileALL[i]);
|
|
|
|
|
if(fileALL[i]!=undefined && fileALL[i]!=null && fileALL[i]!=""){
|
|
|
|
|
if(fileALL[i].name!=undefined && fileALL[i].name!=null && fileALL[i].name!=""){
|
|
|
|
|
if (fileALL[i] != undefined && fileALL[i] != null && fileALL[i] != "") {
|
|
|
|
|
if (fileALL[i].name != undefined && fileALL[i].name != null && fileALL[i].name != "") {
|
|
|
|
|
var extStart = fileALL[i].name.lastIndexOf(".");
|
|
|
|
|
var ext = fileALL[i].name.substring(extStart, fileALL[i].name.length).toUpperCase();
|
|
|
|
|
/**
|
|
|
|
|
*描述:鉴定每个图片上传尾椎限制
|
|
|
|
|
*/
|
|
|
|
|
if (ext != ".PNG" && ext != ".GIF" && ext != ".JPG" && ext != ".JPEG") {
|
|
|
|
|
toastr.warning("图片:"+fileALL[i].name+"不符,限于png,gif,jpeg,jpg格式");
|
|
|
|
|
toastr.warning("图片:" + fileALL[i].name + "不符,限于png,gif,jpeg,jpg格式");
|
|
|
|
|
return false;
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
files.push(fileALL[i]);
|
|
|
|
|
/**
|
|
|
|
|
*若规则全部通过则在此提交url到后台数据库
|
|
|
|
|
*/
|
|
|
|
|
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_html += selectStr + " <button class='removeBtn' onclick='javascript:removeImg(this)'>x</button></div>";
|
|
|
|
|
img_div.append(img_html);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1563,23 +1579,23 @@
|
|
|
|
|
for (var i = 0; i < fileALL.length; i++) {
|
|
|
|
|
//获取图片路径
|
|
|
|
|
objUrl = getObjectURL(fileALL[i]);
|
|
|
|
|
if(fileALL[i]!=undefined && fileALL[i]!=null && fileALL[i]!=""){
|
|
|
|
|
if(fileALL[i].name!=undefined && fileALL[i].name!=null && fileALL[i].name!=""){
|
|
|
|
|
if (fileALL[i] != undefined && fileALL[i] != null && fileALL[i] != "") {
|
|
|
|
|
if (fileALL[i].name != undefined && fileALL[i].name != null && fileALL[i].name != "") {
|
|
|
|
|
var extStart = fileALL[i].name.lastIndexOf(".");
|
|
|
|
|
var ext = fileALL[i].name.substring(extStart, fileALL[i].name.length).toUpperCase();
|
|
|
|
|
/**
|
|
|
|
|
*描述:鉴定每个图片上传尾椎限制
|
|
|
|
|
*/
|
|
|
|
|
if (ext != ".PNG" && ext != ".GIF" && ext != ".JPG" && ext != ".JPEG") {
|
|
|
|
|
toastr.warning("图片:"+fileALL[i].name+"不符,限于png,gif,jpeg,jpg格式");
|
|
|
|
|
toastr.warning("图片:" + fileALL[i].name + "不符,限于png,gif,jpeg,jpg格式");
|
|
|
|
|
return false;
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
files.push(fileALL[i]);
|
|
|
|
|
/**
|
|
|
|
|
*若规则全部通过则在此提交url到后台数据库
|
|
|
|
|
*/
|
|
|
|
|
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 +=" <button class='removeBtn' onclick='javascript:removeImg2(this)'>x</button></div>";
|
|
|
|
|
img_html += " <button class='removeBtn' onclick='javascript:removeImg2(this)'>x</button></div>";
|
|
|
|
|
img_div.append(img_html);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1646,12 +1662,12 @@
|
|
|
|
|
for (var j = 0; j < fileList.length; j++) {
|
|
|
|
|
//通过图片名判断图片在数组中的位置然后删除
|
|
|
|
|
// console.log(fileList[j].name + "111");
|
|
|
|
|
if(fileList[j].name!=undefined)
|
|
|
|
|
if (fileList[j].name == filename) {
|
|
|
|
|
fileList.splice(j, 1);
|
|
|
|
|
id--;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (fileList[j].name != undefined)
|
|
|
|
|
if (fileList[j].name == filename) {
|
|
|
|
|
fileList.splice(j, 1);
|
|
|
|
|
id--;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
files = fileList;
|
|
|
|
|
var id = $(r).parent().attr('id');
|
|
|
|
@ -1694,13 +1710,13 @@
|
|
|
|
|
//遍历数组
|
|
|
|
|
for (var j = 0; j < fileList.length; j++) {
|
|
|
|
|
//通过图片名判断图片在数组中的位置然后删除
|
|
|
|
|
if(fileList[j].name!=undefined)
|
|
|
|
|
if (fileList[j].name == filename) {
|
|
|
|
|
fileList.splice(j, 1);
|
|
|
|
|
id--;
|
|
|
|
|
files = fileList;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (fileList[j].name != undefined)
|
|
|
|
|
if (fileList[j].name == filename) {
|
|
|
|
|
fileList.splice(j, 1);
|
|
|
|
|
id--;
|
|
|
|
|
files = fileList;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1735,7 +1751,8 @@
|
|
|
|
|
|
|
|
|
|
//初始化类别
|
|
|
|
|
var selectStr = "";
|
|
|
|
|
var assortIdArr=[];
|
|
|
|
|
var assortIdArr = [];
|
|
|
|
|
|
|
|
|
|
function getAssortFun() {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/zdAssort/getAssort",
|
|
|
|
@ -1744,10 +1761,10 @@
|
|
|
|
|
async: true,
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result != null && result.length > 0) {
|
|
|
|
|
assortIdArr=[];
|
|
|
|
|
assortIdArr = [];
|
|
|
|
|
selectStr = "<select class='selectB'>";
|
|
|
|
|
for (i = 0; i < result.length; i++) {
|
|
|
|
|
selectStr += "<option value='" + result[i].assortId + "' title='"+result[i].assortName+"'>" + result[i].assortName + "</option>";
|
|
|
|
|
selectStr += "<option value='" + result[i].assortId + "' title='" + result[i].assortName + "'>" + result[i].assortName + "</option>";
|
|
|
|
|
$("#inpGl").append("<option value=" + result[i].assortId + ">" + result[i].assortName + "</option>");
|
|
|
|
|
$("#inpType").append("<option value=" + result[i].assortId + ">" + result[i].assortName + "</option>");
|
|
|
|
|
assortIdArr.push(result[i].assortId);
|
|
|
|
@ -1948,9 +1965,9 @@
|
|
|
|
|
if (div_data[i].value != null && div_data[i].value != "") {
|
|
|
|
|
var obj = {};
|
|
|
|
|
//console.log("第select" + (i + 1) + "个的value=" + div_data[i].value);
|
|
|
|
|
var selectedIndex=div_data[i].selectedIndex;
|
|
|
|
|
var selectedIndex = div_data[i].selectedIndex;
|
|
|
|
|
//console.log(div_data[i].options[index].getAttribute("title"));
|
|
|
|
|
obj.selectName=div_data[i].options[selectedIndex].getAttribute("title");
|
|
|
|
|
obj.selectName = div_data[i].options[selectedIndex].getAttribute("title");
|
|
|
|
|
obj.selectVal = div_data[i].value;
|
|
|
|
|
if (b < div_data.length / 2) {
|
|
|
|
|
obj.id = div_p[b].id;
|
|
|
|
@ -2034,7 +2051,7 @@
|
|
|
|
|
}
|
|
|
|
|
//打开一个不被拦截的新窗口
|
|
|
|
|
var newWindow = window.open();
|
|
|
|
|
var titleName=document.getElementById("nameLab").innerText;
|
|
|
|
|
var titleName = document.getElementById("nameLab").innerText;
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/inHosp/getPdfToPdf",
|
|
|
|
|
type: "POST",
|
|
|
|
@ -2043,7 +2060,7 @@
|
|
|
|
|
if (result != "") {
|
|
|
|
|
//绝对路径
|
|
|
|
|
var pdfPath = result;
|
|
|
|
|
newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName);
|
|
|
|
|
newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath + "?titleName=" + titleName);
|
|
|
|
|
//相对路径
|
|
|
|
|
<%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result;--%>
|
|
|
|
|
<%--newWindow.location.href = pdfUrl;--%>
|
|
|
|
@ -2080,7 +2097,7 @@
|
|
|
|
|
//上传后预览pdf文件,根据id直接获取pdf并合成
|
|
|
|
|
//打开一个不被拦截的新窗口
|
|
|
|
|
var newWindow = window.open();
|
|
|
|
|
var titleName=document.getElementById("nameLab").innerText;
|
|
|
|
|
var titleName = document.getElementById("nameLab").innerText;
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/inHosp/getPdfById",
|
|
|
|
|
type: "POST",
|
|
|
|
@ -2089,7 +2106,7 @@
|
|
|
|
|
if (result != "") {
|
|
|
|
|
//绝对路径
|
|
|
|
|
var pdfPath = result;
|
|
|
|
|
newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName);
|
|
|
|
|
newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath + "?titleName=" + titleName);
|
|
|
|
|
//相对路径
|
|
|
|
|
<%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%>
|
|
|
|
|
<%--newWindow.location.href = pdfUrl;--%>
|
|
|
|
@ -2190,6 +2207,7 @@
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
language: "zh-CN"
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/*var currDate=getCurrDate();
|
|
|
|
|
var currDate30=getCurrDay30();
|
|
|
|
|
$('#startDate').val(currDate30);
|
|
|
|
@ -2213,6 +2231,7 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getDept();
|
|
|
|
|
|
|
|
|
|
$("#imgsClearBtn2").click(function () {
|
|
|
|
@ -2603,7 +2622,8 @@
|
|
|
|
|
$('#tableQX').bootstrapTable('refresh');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var editId=null;
|
|
|
|
|
var editId = null;
|
|
|
|
|
|
|
|
|
|
function dealAndConcelFun() {
|
|
|
|
|
if (editId == null) {
|
|
|
|
|
toastr.warning("选中1条记录!");
|
|
|
|
@ -2636,6 +2656,7 @@
|
|
|
|
|
|
|
|
|
|
var scollPostion = null;
|
|
|
|
|
var docNorFlag = 1;
|
|
|
|
|
|
|
|
|
|
function initTableQX() {
|
|
|
|
|
$("#QXDealCancelBtn").hide();
|
|
|
|
|
$("#QXDealBtn").show();
|
|
|
|
@ -2643,11 +2664,11 @@
|
|
|
|
|
url: "${path}/fault/getFaultList", // 获取表格数据的url
|
|
|
|
|
queryParams: function (params) {
|
|
|
|
|
//console.log($("#archIdQX").val());
|
|
|
|
|
var backFlag=1;
|
|
|
|
|
if(docNorFlag==3){
|
|
|
|
|
backFlag=3
|
|
|
|
|
}else if(docNorFlag==4){
|
|
|
|
|
backFlag=4
|
|
|
|
|
var backFlag = 1;
|
|
|
|
|
if (docNorFlag == 3) {
|
|
|
|
|
backFlag = 3
|
|
|
|
|
} else if (docNorFlag == 4) {
|
|
|
|
|
backFlag = 4
|
|
|
|
|
}
|
|
|
|
|
//(1,2,5,6)
|
|
|
|
|
/* if($("#backFlagQX").val()!=null && $("#backFlagQX").val()!=null){
|
|
|
|
@ -2659,9 +2680,9 @@
|
|
|
|
|
//order: params.order, //排位命令(desc,asc)
|
|
|
|
|
//id: $("#id").val(),
|
|
|
|
|
archiveDetailId: $("#archIdQX").val(),
|
|
|
|
|
backContent:$("#assortNameQX").val(),
|
|
|
|
|
dealFlag:$("#dealFlagQX").val(),
|
|
|
|
|
backFlag:backFlag,
|
|
|
|
|
backContent: $("#assortNameQX").val(),
|
|
|
|
|
dealFlag: $("#dealFlagQX").val(),
|
|
|
|
|
backFlag: backFlag,
|
|
|
|
|
//backFlag: 1
|
|
|
|
|
};
|
|
|
|
|
return temp;
|
|
|
|
@ -2680,7 +2701,7 @@
|
|
|
|
|
//smartDisplay: false,
|
|
|
|
|
//height:'300',
|
|
|
|
|
//width:'100%',
|
|
|
|
|
height: $(window).height() -150,//自定义高度
|
|
|
|
|
height: $(window).height() - 150,//自定义高度
|
|
|
|
|
sortName: 'id', // 要排序的字段
|
|
|
|
|
sortOrder: 'desc', // 排序规则
|
|
|
|
|
columns: [
|
|
|
|
@ -2787,17 +2808,17 @@
|
|
|
|
|
editId = null;
|
|
|
|
|
//console.log("====取消选中");
|
|
|
|
|
},
|
|
|
|
|
onClickRow : function(row, tr,flied){
|
|
|
|
|
onClickRow: function (row, tr, flied) {
|
|
|
|
|
//console.log("====选中");
|
|
|
|
|
},
|
|
|
|
|
onCheck:function(row){
|
|
|
|
|
onCheck: function (row) {
|
|
|
|
|
editId = row.id;
|
|
|
|
|
scollPostion = $('#tableQX').bootstrapTable('getScrollPosition');
|
|
|
|
|
if(row!=null){
|
|
|
|
|
if(row.dealFlag=="0"){
|
|
|
|
|
if (row != null) {
|
|
|
|
|
if (row.dealFlag == "0") {
|
|
|
|
|
$("#QXDealCancelBtn").hide();
|
|
|
|
|
$("#QXDealBtn").show();
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
$("#QXDealCancelBtn").show();
|
|
|
|
|
$("#QXDealBtn").hide();
|
|
|
|
|
}
|
|
|
|
@ -2811,7 +2832,7 @@
|
|
|
|
|
// }
|
|
|
|
|
}, onRefresh: function (result) {
|
|
|
|
|
|
|
|
|
|
} , onLoadSuccess: function (result) { //加载成功时执行
|
|
|
|
|
}, onLoadSuccess: function (result) { //加载成功时执行
|
|
|
|
|
$('#tableQX').bootstrapTable('scrollTo', scollPostion); //注意此代码要在setTimeout里面执行,原因是重新获取数据后还要生成dom节
|
|
|
|
|
//console.log("====加载成功时执行"+editId);
|
|
|
|
|
if (editId != null) {
|
|
|
|
@ -2827,7 +2848,7 @@
|
|
|
|
|
|
|
|
|
|
initTableQX();
|
|
|
|
|
|
|
|
|
|
function getWzxFun(archiveDetailId){
|
|
|
|
|
function getWzxFun(archiveDetailId) {
|
|
|
|
|
//实时获取完整性
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "${path}/beHosp/wzByArchivId",
|
|
|
|
@ -2841,8 +2862,6 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function initTable() {
|
|
|
|
|
if (tipLoad == 1) {
|
|
|
|
|
$("#table").bootstrapTable({ // 对应table标签的id
|
|
|
|
@ -2946,7 +2965,7 @@
|
|
|
|
|
endDate: $("#endDate").val(),
|
|
|
|
|
bedNumber: $("#bedNumber").val(),
|
|
|
|
|
deathFlag: $("#deathFlag").val(),
|
|
|
|
|
printNum:$("#printNum").val()
|
|
|
|
|
printNum: $("#printNum").val()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return temp;
|
|
|
|
@ -3223,9 +3242,9 @@
|
|
|
|
|
if (redFlag == 0) {
|
|
|
|
|
if (value == 1) {
|
|
|
|
|
a = '<span style="color:orange;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
|
|
|
|
|
} else if (value !=1 &&row.nurseName==null) {
|
|
|
|
|
} else if (value != 1 && row.nurseName == null) {
|
|
|
|
|
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
a = '<span style="color:orange;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -3368,7 +3387,7 @@
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
},{
|
|
|
|
|
}, {
|
|
|
|
|
title: '是否打印',
|
|
|
|
|
field: 'printNum',
|
|
|
|
|
align: 'center',
|
|
|
|
@ -3376,9 +3395,9 @@
|
|
|
|
|
var printNum = row.printNum;
|
|
|
|
|
var html = '';
|
|
|
|
|
if (printNum == '未打印') {
|
|
|
|
|
html = '<span style="color:green"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>'+printNum+'</span>';
|
|
|
|
|
html = '<span style="color:green"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>' + printNum + '</span>';
|
|
|
|
|
} else {
|
|
|
|
|
html = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>'+printNum+'</span>';
|
|
|
|
|
html = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>' + printNum + '</span>';
|
|
|
|
|
}
|
|
|
|
|
return html;
|
|
|
|
|
}
|
|
|
|
@ -3425,7 +3444,7 @@
|
|
|
|
|
} else if (value == "主任退回") {
|
|
|
|
|
a = '<span style="color:#0000FF"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
//有缺陷显示红色
|
|
|
|
|
a = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '</span>';
|
|
|
|
|
}
|
|
|
|
@ -3445,6 +3464,9 @@
|
|
|
|
|
if (index != null && index != "" && index.indexOf("select") != -1 && row.archivestate != "已封存") {
|
|
|
|
|
html = '<button type="button" class="btn btn-danger btn-sm selInfo" onclick="initTable2()">查看</button>';// '<a href="javascript:;" class="delete">删除</a>';
|
|
|
|
|
}
|
|
|
|
|
if (index != null && index != "" && index.indexOf("select") != -1 && row.archivestate != "已封存") {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-danger btn-sm downloadPdfBlood"">导出PDF</button>';// '<a href="javascript:;" class="delete">删除</a>';
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("qxSel") != -1) {
|
|
|
|
|
var redFlag = row.numb;
|
|
|
|
|
var redFlagDoc = row.faultDoctorNum;
|
|
|
|
@ -3452,17 +3474,23 @@
|
|
|
|
|
//有缺陷
|
|
|
|
|
if (redFlag != 0) {
|
|
|
|
|
//有退回给医生的缺陷
|
|
|
|
|
if(redFlagDoc!= 0 && redFlagDoc!= null){
|
|
|
|
|
if (redFlagDoc != 0 && redFlagDoc != null) {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-info getQXDoctorInfo">医生查看缺陷</button>';
|
|
|
|
|
}
|
|
|
|
|
//有退回给护士的缺陷
|
|
|
|
|
if(redFlagNur!= 0 && redFlagNur!= null){
|
|
|
|
|
if (redFlagNur != 0 && redFlagNur != null) {
|
|
|
|
|
html = html + '<button type="button" class="btn btn-sm btn-info getQXNurseInfo">护士查看缺陷</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return html;
|
|
|
|
|
}, events: {
|
|
|
|
|
'click .downloadPdfBlood': function (e, value, row, index) {
|
|
|
|
|
var id = row.id;
|
|
|
|
|
var inpNo = row.inpNo;
|
|
|
|
|
var dischargeDateTime = row.dischargeDateTime;
|
|
|
|
|
downloadPdfBlood(id,inpNo,dischargeDateTime)
|
|
|
|
|
},
|
|
|
|
|
'click .selInfo': function (e, value, row, index) {
|
|
|
|
|
$("#printTableFlag").hide();
|
|
|
|
|
if (row.printNum == '已打印') {
|
|
|
|
@ -3527,7 +3555,7 @@
|
|
|
|
|
//查看缺陷列表
|
|
|
|
|
//initTableQX(row.id);
|
|
|
|
|
$("#archIdQX").val(row.id);
|
|
|
|
|
docNorFlag= 4;
|
|
|
|
|
docNorFlag = 4;
|
|
|
|
|
$('#tableQX').bootstrapTable('refresh');
|
|
|
|
|
$('#QXInfoModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
@ -3539,14 +3567,14 @@
|
|
|
|
|
//查看缺陷列表
|
|
|
|
|
//initTableQX(row.id);
|
|
|
|
|
$("#archIdQX").val(row.id);
|
|
|
|
|
docNorFlag= 3;
|
|
|
|
|
docNorFlag = 3;
|
|
|
|
|
$('#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'}
|
|
|
|
@ -3567,10 +3595,38 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getSourceFun(){
|
|
|
|
|
function downloadPdfBlood(id,inpNo,dischargeDateTime) {
|
|
|
|
|
post(path + '/unfile/downloadPdfBlood', {
|
|
|
|
|
"masterId": id,
|
|
|
|
|
"inpNo": inpNo,
|
|
|
|
|
"dischargeDateTime": dischargeDateTime
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function post(url, params) {
|
|
|
|
|
// 创建form元素
|
|
|
|
|
var temp_form = document.createElement("form");
|
|
|
|
|
// 设置form属性
|
|
|
|
|
temp_form .action = url;
|
|
|
|
|
temp_form .target = "_self";
|
|
|
|
|
temp_form .method = "post";
|
|
|
|
|
temp_form .style.display = "none";
|
|
|
|
|
// 处理需要传递的参数
|
|
|
|
|
for (var x in params) {
|
|
|
|
|
var opt = document.createElement("textarea");
|
|
|
|
|
opt.name = x;
|
|
|
|
|
opt.value = params[x];
|
|
|
|
|
temp_form .appendChild(opt);
|
|
|
|
|
}
|
|
|
|
|
document.body.appendChild(temp_form);
|
|
|
|
|
// 提交表单
|
|
|
|
|
temp_form .submit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getSourceFun() {
|
|
|
|
|
//console.log("获取来源下拉框:sourceSearch");
|
|
|
|
|
var patientId = $("#idLab").html();
|
|
|
|
|
var source=$("#sourceSearch").val();
|
|
|
|
|
var source = $("#sourceSearch").val();
|
|
|
|
|
var assortId = $("#assortId").html();
|
|
|
|
|
if (assortId == 0) assortId = null;
|
|
|
|
|
var temp = {
|
|
|
|
@ -3590,23 +3646,23 @@
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result != null) {
|
|
|
|
|
$("#sourceSearch").empty();
|
|
|
|
|
if(source==""){
|
|
|
|
|
if (source == "") {
|
|
|
|
|
$("#sourceSearch").append("<option value='' selected='slected'>全部</option>");
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
$("#sourceSearch").append("<option value=''>全部</option>");
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<result.length;i++){
|
|
|
|
|
if(result[i]!=null) {
|
|
|
|
|
for (var i = 0; i < result.length; i++) {
|
|
|
|
|
if (result[i] != null) {
|
|
|
|
|
if (result[i].source != "" && result[i].source != null && result[i].source != undefined) {
|
|
|
|
|
if(source==result[i].source && source!=""){
|
|
|
|
|
if (source == result[i].source && source != "") {
|
|
|
|
|
$("#sourceSearch").append("<option value='" + result[i].source + "' selected='slected'>" + result[i].source + "</option>");
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
$("#sourceSearch").append("<option value=" + result[i].source + ">" + result[i].source + "</option>");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$("#sourceSearch").append("<option value='null'>未知</option>");
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
$("#sourceSearch").append("<option value='-1'>未知</option>");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -3702,7 +3758,7 @@
|
|
|
|
|
//导出excel功能
|
|
|
|
|
$("#excelBtn").click(function () {
|
|
|
|
|
toastr.warning("正在导出,请稍等...");
|
|
|
|
|
// var url = window.location.href;
|
|
|
|
|
// var url = window.location.href;
|
|
|
|
|
// var deptName = url.substring(url.lastIndexOf('&') + 1).replace("depts=", "");
|
|
|
|
|
// if (deptName != null && deptName != '') {
|
|
|
|
|
// deptName += "," + $("#deptName").val();
|
|
|
|
|