|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %>
|
|
|
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %>
|
|
|
|
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
|
|
|
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
|
|
|
|
|
<%
|
|
|
|
@ -15,6 +15,8 @@
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<%@include file="../../jspf/comm.jspf" %>
|
|
|
|
|
<%@ include file="../../jspf/ztreeCommom.jsp" %>
|
|
|
|
|
<%--<link rel="stylesheet" href="${path}/static/css/bootstrap-table-fixed-columns.css"/>--%>
|
|
|
|
|
<%--<script src="${path}/static/js/bootstrap-table-fixed-columns.js"></script>--%>
|
|
|
|
|
<style>
|
|
|
|
|
.modal-header2 {
|
|
|
|
|
text-align: center !important;
|
|
|
|
@ -68,10 +70,10 @@
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
}病历清单
|
|
|
|
|
.labCss {
|
|
|
|
|
/*color: gainsboro;*/
|
|
|
|
|
color: #c1c3c4;
|
|
|
|
|
}
|
|
|
|
|
.labCss {
|
|
|
|
|
/*color: gainsboro;*/
|
|
|
|
|
color: #c1c3c4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.titleCss {
|
|
|
|
|
text-align: left;
|
|
|
|
@ -248,13 +250,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="请输入科室">
|
|
|
|
@ -264,7 +266,7 @@
|
|
|
|
|
<div class="form-group divCss8" style="height: 18px;margin-top: -7px;">
|
|
|
|
|
<label>主管医生:</label>
|
|
|
|
|
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="doctorInCharge" id="doctorInCharge" title="请输入主管医生">
|
|
|
|
|
<option value="">全部</option>
|
|
|
|
|
<option value="">全部</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group divCss8">
|
|
|
|
@ -296,6 +298,10 @@
|
|
|
|
|
<option value="2">护士提交</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group divCss2">
|
|
|
|
|
<label>床号:</label>
|
|
|
|
|
<input type="text" class="input-sm form-control" id="bedNumber" placeholder="请输入床号">
|
|
|
|
|
</div>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-sm divCss" id="searchBtn">查询</button>
|
|
|
|
|
<button type="button" class="btn btn-info btn-sm divCss" id="excelBtn">条件导出</button>
|
|
|
|
|
|
|
|
|
@ -685,7 +691,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" id="backDivs">
|
|
|
|
|
<span style="color: blue;">退回信息</span>
|
|
|
|
|
<!--通过审批且未过期的patientId集合-->
|
|
|
|
|
<!--通过审批且未过期的patientId集合-->
|
|
|
|
|
<form class="form-horizontal" id="form2">
|
|
|
|
|
<div class="row"><input id="backArchiveId" hidden>
|
|
|
|
|
<%--<div class="row divCss3 ">退回信息</div>--%>
|
|
|
|
@ -748,21 +754,21 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<%--<div class="row divCss2">--%>
|
|
|
|
|
<%--<span style="vertical-align:top;">缺陷类型:</span>--%>
|
|
|
|
|
<%--<input type="text" id="assortName" readonly/>--%>
|
|
|
|
|
<%--<span style="vertical-align:top;">缺陷类型:</span>--%>
|
|
|
|
|
<%--<input type="text" id="assortName" readonly/>--%>
|
|
|
|
|
<%--</div>--%>
|
|
|
|
|
<%--<div class="row divCss2" >--%>
|
|
|
|
|
<%--<span class="divCss7">选项:</span>--%>
|
|
|
|
|
<%--<div class="divCss4" id="faultTypeDiv">--%>
|
|
|
|
|
<%--<%–<div class="row " style="width:600px">–%>--%>
|
|
|
|
|
<%--<%–<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果 </label>–%>--%>
|
|
|
|
|
<%--<%–<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子 </label>–%>--%>
|
|
|
|
|
<%--<%–</div>–%>--%>
|
|
|
|
|
<%--<%–<div class="row " style="width:600px">–%>--%>
|
|
|
|
|
<%--<%–<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果水电费是否是的范德萨</label>–%>--%>
|
|
|
|
|
<%--<%–<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子</label>–%>--%>
|
|
|
|
|
<%--<%–</div>–%>--%>
|
|
|
|
|
<%--</div>--%>
|
|
|
|
|
<%--<span class="divCss7">选项:</span>--%>
|
|
|
|
|
<%--<div class="divCss4" id="faultTypeDiv">--%>
|
|
|
|
|
<%--<%–<div class="row " style="width:600px">–%>--%>
|
|
|
|
|
<%--<%–<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果 </label>–%>--%>
|
|
|
|
|
<%--<%–<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子 </label>–%>--%>
|
|
|
|
|
<%--<%–</div>–%>--%>
|
|
|
|
|
<%--<%–<div class="row " style="width:600px">–%>--%>
|
|
|
|
|
<%--<%–<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果水电费是否是的范德萨</label>–%>--%>
|
|
|
|
|
<%--<%–<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子</label>–%>--%>
|
|
|
|
|
<%--<%–</div>–%>--%>
|
|
|
|
|
<%--</div>--%>
|
|
|
|
|
<%--</div>--%>
|
|
|
|
|
<div class="row divCss2">
|
|
|
|
|
<span style="vertical-align:top;">内容:</span>
|
|
|
|
@ -1141,19 +1147,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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
@ -1722,276 +1728,276 @@
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function getQxList() {
|
|
|
|
|
$("#tableBack").bootstrapTable({ // 对应table标签的id
|
|
|
|
|
//method: 'POST',
|
|
|
|
|
url: "${path}/fault/getFaultPage", // 获取表格数据的url
|
|
|
|
|
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求,注释掉这句话也能拿到数据
|
|
|
|
|
//dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
|
|
|
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|
|
|
|
striped: true, //是否显示行间隔色
|
|
|
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|
|
|
|
paginationShowPageGo: true,
|
|
|
|
|
pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。
|
|
|
|
|
smartDisplay: false,
|
|
|
|
|
pageSize: 2, // 页面数据条数
|
|
|
|
|
pageNumber: 1, // 初始化加载第一页,默认第一页
|
|
|
|
|
sidePagination: 'server', // 设置为服务器端分页 客户端:client
|
|
|
|
|
search: false,
|
|
|
|
|
//showColumns: true,
|
|
|
|
|
//sortable: true,
|
|
|
|
|
// sortOrder: "asc",
|
|
|
|
|
//toolbar: '#toolbar',//指定工具栏
|
|
|
|
|
searchOnEnterKey: false, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法
|
|
|
|
|
undefinedText: '---', //当数据为 undefined 时显示的字符
|
|
|
|
|
singleSelect: true,//设置True 将禁止多选
|
|
|
|
|
clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox
|
|
|
|
|
height: 350, //定义表格的高度。
|
|
|
|
|
searchTimeOut: 500,// 默认500 设置搜索超时时间。
|
|
|
|
|
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
|
|
|
|
|
showHeader: true,//是否显示列头。
|
|
|
|
|
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
|
|
|
|
|
//是否显示导出按钮
|
|
|
|
|
showExport: false,
|
|
|
|
|
//导出表格方式(默认basic:只导出当前页的表格数据;all:导出所有数据;selected:导出选中的数据)
|
|
|
|
|
//exportDataType: "basic",
|
|
|
|
|
//导出文件类型
|
|
|
|
|
//exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
|
|
|
|
|
exportOptions: {
|
|
|
|
|
fileName: document.title
|
|
|
|
|
},
|
|
|
|
|
// showToggle: false, //是否显示详细视图和列表视图的切换按钮
|
|
|
|
|
// cardView: false, //是否显示详细视图
|
|
|
|
|
// detailView: false, //是否显示父子表
|
|
|
|
|
queryParams: function (params) {
|
|
|
|
|
var currPageSize = this.pageSize;
|
|
|
|
|
if (currPageSize == 2) {
|
|
|
|
|
currPageSize = 10;
|
|
|
|
|
}
|
|
|
|
|
var limit = null;
|
|
|
|
|
var offset = params.offset;
|
|
|
|
|
//判断是否导出全部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)
|
|
|
|
|
archiveDetailId: $("#idLab").html(),
|
|
|
|
|
backFlag:1
|
|
|
|
|
};
|
|
|
|
|
return temp;
|
|
|
|
|
},
|
|
|
|
|
sortName: 'id', // 要排序的字段
|
|
|
|
|
sortOrder: 'desc', // 排序规则
|
|
|
|
|
columns: [{
|
|
|
|
|
field: 'archiveDetailId',
|
|
|
|
|
title: 'id',
|
|
|
|
|
visible: false
|
|
|
|
|
}, {
|
|
|
|
|
field: 'assortId',
|
|
|
|
|
title: '缺陷类型ID',
|
|
|
|
|
width: 150,
|
|
|
|
|
visible: false
|
|
|
|
|
}, {
|
|
|
|
|
field: 'assortName',
|
|
|
|
|
title: '缺陷类型',
|
|
|
|
|
width: 150
|
|
|
|
|
}, {
|
|
|
|
|
field: 'price',
|
|
|
|
|
title: '类型分',
|
|
|
|
|
width: 60,
|
|
|
|
|
visible: false,
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var result = '<span style="color:blue;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '分</span>';
|
|
|
|
|
return result
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '退回',
|
|
|
|
|
field: 'backFlag',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 130,
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var result = "";
|
|
|
|
|
if (value == 1) {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>科主任退回医生</span>'
|
|
|
|
|
} else if (value == 2) {
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>科主任退回护士</span>'
|
|
|
|
|
} else if (value == 5) {
|
|
|
|
|
result = '<span style="color:orange;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>病案室退回医生</span>'
|
|
|
|
|
} else if (value == 6) {
|
|
|
|
|
result = '<span style="color:dodgerblue;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>病案室退回护士</span>'
|
|
|
|
|
}
|
|
|
|
|
return result
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
field: 'dealFlag',
|
|
|
|
|
title: '处理否',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 80,
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var result = "";
|
|
|
|
|
if (value == "1") {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>已处理</span>';
|
|
|
|
|
} else {
|
|
|
|
|
result = '<span style="color:blue;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未处理</span>';
|
|
|
|
|
}
|
|
|
|
|
return result
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
field: 'dealPerson',
|
|
|
|
|
title: '处理人',
|
|
|
|
|
width: 80
|
|
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
field: 'dealTime',
|
|
|
|
|
title: '处理时间',
|
|
|
|
|
width: 150
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'content',
|
|
|
|
|
// title: '内容',
|
|
|
|
|
// width: 200
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 100, // 定义列的宽度,单位为像素px
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var url = window.location.href;
|
|
|
|
|
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
|
|
|
|
|
var html = "";
|
|
|
|
|
|
|
|
|
|
if (row.dealFlag == 1) {
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
|
|
|
|
|
html += '<button type="button" class="btn btn-warning btn-sm dealInfo" >未处理 </button>';
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
|
|
|
|
|
html += '<button type="button" class="btn btn-info btn-sm dealInfo" >已处理 </button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index != null && index != "" && index.indexOf("select") != -1) {
|
|
|
|
|
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
|
|
|
|
|
html+= '<button type="button" class="btn btn-danger btn-sm qxInfo" >查看 </button>';// '<a href="javascript:;" class="delete">删除</a>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return html;
|
|
|
|
|
|
|
|
|
|
}, events: {
|
|
|
|
|
'click .qxInfo': function (e, value, row, index) {
|
|
|
|
|
var url = window.location.href;
|
|
|
|
|
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
|
|
|
|
|
var html = "";
|
|
|
|
|
|
|
|
|
|
$('#qxModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
var backPerson = "";
|
|
|
|
|
if (row.backFlag == 1) {
|
|
|
|
|
backPerson = "主任退回医生";
|
|
|
|
|
} else if (row.backFlag == 2) {
|
|
|
|
|
backPerson = "主任退回护士";
|
|
|
|
|
} else if (row.backFlag == 5) {
|
|
|
|
|
backPerson = "病案室退回医生";
|
|
|
|
|
} else if (row.backFlag == 6) {
|
|
|
|
|
backPerson = "病案室退回护士";
|
|
|
|
|
}
|
|
|
|
|
var dealFlag="";
|
|
|
|
|
if (row.dealFlag == 1) {
|
|
|
|
|
dealFlag = "已处理";
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
|
|
|
|
|
$("#dealNoBtn").show();
|
|
|
|
|
}else{
|
|
|
|
|
$("#dealNoBtn").hide();
|
|
|
|
|
}
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
|
|
|
|
|
$("#dealBtn").hide();
|
|
|
|
|
}else{
|
|
|
|
|
$("#dealBtn").hide();
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
dealFlag = "未处理";
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
|
|
|
|
|
$("#dealNoBtn").hide();
|
|
|
|
|
} else {
|
|
|
|
|
$("#dealNoBtn").hide();
|
|
|
|
|
}
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
|
|
|
|
|
$("#dealBtn").show();
|
|
|
|
|
} else {
|
|
|
|
|
$("#dealBtn").hide();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var dealPerson="";
|
|
|
|
|
if(dealPerson==null || dealPerson==""){
|
|
|
|
|
dealPerson="暂无";
|
|
|
|
|
}else{
|
|
|
|
|
dealPerson=row.dealPerson;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var dealTime = "";
|
|
|
|
|
if (dealTime == null || dealTime == "") {
|
|
|
|
|
dealTime = "暂无";
|
|
|
|
|
} else {
|
|
|
|
|
dealTime = row.dealTime;
|
|
|
|
|
}
|
|
|
|
|
//同步dealFlag
|
|
|
|
|
$("#backPerson").html(backPerson);
|
|
|
|
|
$("#dealFlag").html(dealFlag);
|
|
|
|
|
$("#dealPerson").html(dealPerson);
|
|
|
|
|
$("#dealTime").html(dealTime);
|
|
|
|
|
$("#qxId").val(row.id);
|
|
|
|
|
$("#assortName").val(row.assortName);
|
|
|
|
|
$("#content").val(row.content);
|
|
|
|
|
$("#faultType").val(row.assortId);
|
|
|
|
|
|
|
|
|
|
// $('input[name="Fruit"]').each(function () {//遍历每一个名字为interest的复选框,其中选中的执行函数
|
|
|
|
|
// if ($(this).val() == row.assortId) {
|
|
|
|
|
// $(this)[0].checked = true;
|
|
|
|
|
// } else {
|
|
|
|
|
// $(this)[0].checked = false;
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
'click .dealInfo': function (e, value, row, index) {
|
|
|
|
|
//处理操作
|
|
|
|
|
dealFun(row.id);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cellStyle: function (value, row, index) {
|
|
|
|
|
return {classes: 'success'}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
onLoadSuccess: function (result) { //加载成功时执行
|
|
|
|
|
// console.info("加载成功");
|
|
|
|
|
},
|
|
|
|
|
onLoadError: function () { //加载失败时执行
|
|
|
|
|
//console.info("加载数据失败");
|
|
|
|
|
},
|
|
|
|
|
onPostBody: function () {
|
|
|
|
|
//重点就在这里,获取渲染后的数据列td的宽度赋值给对应头部的th,这样就表头和列就对齐了
|
|
|
|
|
var header = $(".fixed-table-header table thead tr th");
|
|
|
|
|
var body = $(".fixed-table-header table tbody tr td");
|
|
|
|
|
var footer = $(".fixed-table-header table tr td");
|
|
|
|
|
body.each(function () {
|
|
|
|
|
header.width((this).width());
|
|
|
|
|
footer.width((this).width());
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
function getQxList() {
|
|
|
|
|
$("#tableBack").bootstrapTable({ // 对应table标签的id
|
|
|
|
|
//method: 'POST',
|
|
|
|
|
url: "${path}/fault/getFaultPage", // 获取表格数据的url
|
|
|
|
|
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求,注释掉这句话也能拿到数据
|
|
|
|
|
//dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
|
|
|
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|
|
|
|
striped: true, //是否显示行间隔色
|
|
|
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|
|
|
|
paginationShowPageGo: true,
|
|
|
|
|
pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。
|
|
|
|
|
smartDisplay: false,
|
|
|
|
|
pageSize: 2, // 页面数据条数
|
|
|
|
|
pageNumber: 1, // 初始化加载第一页,默认第一页
|
|
|
|
|
sidePagination: 'server', // 设置为服务器端分页 客户端:client
|
|
|
|
|
search: false,
|
|
|
|
|
//showColumns: true,
|
|
|
|
|
//sortable: true,
|
|
|
|
|
// sortOrder: "asc",
|
|
|
|
|
//toolbar: '#toolbar',//指定工具栏
|
|
|
|
|
searchOnEnterKey: false, //设置为 true时,按回车触发搜索方法,否则自动触发搜索方法
|
|
|
|
|
undefinedText: '---', //当数据为 undefined 时显示的字符
|
|
|
|
|
singleSelect: true,//设置True 将禁止多选
|
|
|
|
|
clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox
|
|
|
|
|
height: 350, //定义表格的高度。
|
|
|
|
|
searchTimeOut: 500,// 默认500 设置搜索超时时间。
|
|
|
|
|
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
|
|
|
|
|
showHeader: true,//是否显示列头。
|
|
|
|
|
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
|
|
|
|
|
//是否显示导出按钮
|
|
|
|
|
showExport: false,
|
|
|
|
|
//导出表格方式(默认basic:只导出当前页的表格数据;all:导出所有数据;selected:导出选中的数据)
|
|
|
|
|
//exportDataType: "basic",
|
|
|
|
|
//导出文件类型
|
|
|
|
|
//exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
|
|
|
|
|
exportOptions: {
|
|
|
|
|
fileName: document.title
|
|
|
|
|
},
|
|
|
|
|
// showToggle: false, //是否显示详细视图和列表视图的切换按钮
|
|
|
|
|
// cardView: false, //是否显示详细视图
|
|
|
|
|
// detailView: false, //是否显示父子表
|
|
|
|
|
queryParams: function (params) {
|
|
|
|
|
var currPageSize = this.pageSize;
|
|
|
|
|
if (currPageSize == 2) {
|
|
|
|
|
currPageSize = 10;
|
|
|
|
|
}
|
|
|
|
|
var limit = null;
|
|
|
|
|
var offset = params.offset;
|
|
|
|
|
//判断是否导出全部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)
|
|
|
|
|
archiveDetailId: $("#idLab").html(),
|
|
|
|
|
backFlag:1
|
|
|
|
|
};
|
|
|
|
|
return temp;
|
|
|
|
|
},
|
|
|
|
|
sortName: 'id', // 要排序的字段
|
|
|
|
|
sortOrder: 'desc', // 排序规则
|
|
|
|
|
columns: [{
|
|
|
|
|
field: 'archiveDetailId',
|
|
|
|
|
title: 'id',
|
|
|
|
|
visible: false
|
|
|
|
|
}, {
|
|
|
|
|
field: 'assortId',
|
|
|
|
|
title: '缺陷类型ID',
|
|
|
|
|
width: 150,
|
|
|
|
|
visible: false
|
|
|
|
|
}, {
|
|
|
|
|
field: 'assortName',
|
|
|
|
|
title: '缺陷类型',
|
|
|
|
|
width: 150
|
|
|
|
|
}, {
|
|
|
|
|
field: 'price',
|
|
|
|
|
title: '类型分',
|
|
|
|
|
width: 60,
|
|
|
|
|
visible: false,
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var result = '<span style="color:blue;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '分</span>';
|
|
|
|
|
return result
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '退回',
|
|
|
|
|
field: 'backFlag',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 130,
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var result = "";
|
|
|
|
|
if (value == 1) {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>科主任退回医生</span>'
|
|
|
|
|
} else if (value == 2) {
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>科主任退回护士</span>'
|
|
|
|
|
} else if (value == 5) {
|
|
|
|
|
result = '<span style="color:orange;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>病案室退回医生</span>'
|
|
|
|
|
} else if (value == 6) {
|
|
|
|
|
result = '<span style="color:dodgerblue;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>病案室退回护士</span>'
|
|
|
|
|
}
|
|
|
|
|
return result
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
field: 'dealFlag',
|
|
|
|
|
title: '处理否',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 80,
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var result = "";
|
|
|
|
|
if (value == "1") {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>已处理</span>';
|
|
|
|
|
} else {
|
|
|
|
|
result = '<span style="color:blue;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未处理</span>';
|
|
|
|
|
}
|
|
|
|
|
return result
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
field: 'dealPerson',
|
|
|
|
|
title: '处理人',
|
|
|
|
|
width: 80
|
|
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
field: 'dealTime',
|
|
|
|
|
title: '处理时间',
|
|
|
|
|
width: 150
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'content',
|
|
|
|
|
// title: '内容',
|
|
|
|
|
// width: 200
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
align: 'left',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 100, // 定义列的宽度,单位为像素px
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var url = window.location.href;
|
|
|
|
|
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
|
|
|
|
|
var html = "";
|
|
|
|
|
|
|
|
|
|
if (row.dealFlag == 1) {
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
|
|
|
|
|
html += '<button type="button" class="btn btn-warning btn-sm dealInfo" >未处理 </button>';
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
|
|
|
|
|
html += '<button type="button" class="btn btn-info btn-sm dealInfo" >已处理 </button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index != null && index != "" && index.indexOf("select") != -1) {
|
|
|
|
|
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
|
|
|
|
|
html+= '<button type="button" class="btn btn-danger btn-sm qxInfo" >查看 </button>';// '<a href="javascript:;" class="delete">删除</a>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return html;
|
|
|
|
|
|
|
|
|
|
}, events: {
|
|
|
|
|
'click .qxInfo': function (e, value, row, index) {
|
|
|
|
|
var url = window.location.href;
|
|
|
|
|
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
|
|
|
|
|
var html = "";
|
|
|
|
|
|
|
|
|
|
$('#qxModal').modal({
|
|
|
|
|
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
|
|
|
|
|
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
var backPerson = "";
|
|
|
|
|
if (row.backFlag == 1) {
|
|
|
|
|
backPerson = "主任退回医生";
|
|
|
|
|
} else if (row.backFlag == 2) {
|
|
|
|
|
backPerson = "主任退回护士";
|
|
|
|
|
} else if (row.backFlag == 5) {
|
|
|
|
|
backPerson = "病案室退回医生";
|
|
|
|
|
} else if (row.backFlag == 6) {
|
|
|
|
|
backPerson = "病案室退回护士";
|
|
|
|
|
}
|
|
|
|
|
var dealFlag="";
|
|
|
|
|
if (row.dealFlag == 1) {
|
|
|
|
|
dealFlag = "已处理";
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
|
|
|
|
|
$("#dealNoBtn").show();
|
|
|
|
|
}else{
|
|
|
|
|
$("#dealNoBtn").hide();
|
|
|
|
|
}
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
|
|
|
|
|
$("#dealBtn").hide();
|
|
|
|
|
}else{
|
|
|
|
|
$("#dealBtn").hide();
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
dealFlag = "未处理";
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
|
|
|
|
|
$("#dealNoBtn").hide();
|
|
|
|
|
} else {
|
|
|
|
|
$("#dealNoBtn").hide();
|
|
|
|
|
}
|
|
|
|
|
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
|
|
|
|
|
$("#dealBtn").show();
|
|
|
|
|
} else {
|
|
|
|
|
$("#dealBtn").hide();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var dealPerson="";
|
|
|
|
|
if(dealPerson==null || dealPerson==""){
|
|
|
|
|
dealPerson="暂无";
|
|
|
|
|
}else{
|
|
|
|
|
dealPerson=row.dealPerson;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var dealTime = "";
|
|
|
|
|
if (dealTime == null || dealTime == "") {
|
|
|
|
|
dealTime = "暂无";
|
|
|
|
|
} else {
|
|
|
|
|
dealTime = row.dealTime;
|
|
|
|
|
}
|
|
|
|
|
//同步dealFlag
|
|
|
|
|
$("#backPerson").html(backPerson);
|
|
|
|
|
$("#dealFlag").html(dealFlag);
|
|
|
|
|
$("#dealPerson").html(dealPerson);
|
|
|
|
|
$("#dealTime").html(dealTime);
|
|
|
|
|
$("#qxId").val(row.id);
|
|
|
|
|
$("#assortName").val(row.assortName);
|
|
|
|
|
$("#content").val(row.content);
|
|
|
|
|
$("#faultType").val(row.assortId);
|
|
|
|
|
|
|
|
|
|
// $('input[name="Fruit"]').each(function () {//遍历每一个名字为interest的复选框,其中选中的执行函数
|
|
|
|
|
// if ($(this).val() == row.assortId) {
|
|
|
|
|
// $(this)[0].checked = true;
|
|
|
|
|
// } else {
|
|
|
|
|
// $(this)[0].checked = false;
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
'click .dealInfo': function (e, value, row, index) {
|
|
|
|
|
//处理操作
|
|
|
|
|
dealFun(row.id);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cellStyle: function (value, row, index) {
|
|
|
|
|
return {classes: 'success'}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
onLoadSuccess: function (result) { //加载成功时执行
|
|
|
|
|
// console.info("加载成功");
|
|
|
|
|
},
|
|
|
|
|
onLoadError: function () { //加载失败时执行
|
|
|
|
|
//console.info("加载数据失败");
|
|
|
|
|
},
|
|
|
|
|
onPostBody: function () {
|
|
|
|
|
//重点就在这里,获取渲染后的数据列td的宽度赋值给对应头部的th,这样就表头和列就对齐了
|
|
|
|
|
var header = $(".fixed-table-header table thead tr th");
|
|
|
|
|
var body = $(".fixed-table-header table tbody tr td");
|
|
|
|
|
var footer = $(".fixed-table-header table tr td");
|
|
|
|
|
body.each(function () {
|
|
|
|
|
header.width((this).width());
|
|
|
|
|
footer.width((this).width());
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
getQxList();
|
|
|
|
|
$("#getRecallBtn").on('click', function () {
|
|
|
|
@ -2065,7 +2071,7 @@
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
//$("#table").bootstrapTable("refresh");
|
|
|
|
|
// toastr.error(result);
|
|
|
|
|
// toastr.error(result);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -2495,6 +2501,8 @@
|
|
|
|
|
//dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
|
|
|
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|
|
|
|
striped: true, //是否显示行间隔色
|
|
|
|
|
// fixedColumns: true,//固定列
|
|
|
|
|
// fixedNumber:3,//固定前两列
|
|
|
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|
|
|
|
paginationShowPageGo: true,
|
|
|
|
|
pageList: [10, 20, 50, 100], // 如果设置了分页,设置可供选择的页面数据条数。设置为All 则显示所有记录。
|
|
|
|
@ -2511,7 +2519,7 @@
|
|
|
|
|
undefinedText: '---', //当数据为 undefined 时显示的字符
|
|
|
|
|
singleSelect: false,//设置True 将禁止多选
|
|
|
|
|
clickToSelect: true,//设置true 将在点击行时,自动选择rediobox 和 checkbox
|
|
|
|
|
// height: 560, //定义表格的高度。
|
|
|
|
|
// height: 560, //定义表格的高度。
|
|
|
|
|
searchTimeOut: 500,// 默认500 设置搜索超时时间。
|
|
|
|
|
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
|
|
|
|
|
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
|
|
|
|
@ -2587,7 +2595,8 @@
|
|
|
|
|
endDateTo: $("#endDateTo").val(),
|
|
|
|
|
deptName: deptName.toString(),
|
|
|
|
|
doctorInCharge: doctorInCharge,
|
|
|
|
|
emrCmit:$("#emrCmit").val()
|
|
|
|
|
emrCmit:$("#emrCmit").val(),
|
|
|
|
|
bedNumber:$("#bedNumber").val()
|
|
|
|
|
};
|
|
|
|
|
return temp;
|
|
|
|
|
},
|
|
|
|
@ -2632,6 +2641,12 @@
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '床号',
|
|
|
|
|
field: 'bedNumber',
|
|
|
|
|
align: 'center',
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '身份证号',
|
|
|
|
|
field: 'idNo',
|
|
|
|
@ -2767,9 +2782,9 @@
|
|
|
|
|
var result = "";
|
|
|
|
|
if (value != null && value != "") {
|
|
|
|
|
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>提交</span>'
|
|
|
|
|
} else {
|
|
|
|
|
} else {
|
|
|
|
|
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>未提交</span>'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return result
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -2869,7 +2884,7 @@
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("first") != -1) {
|
|
|
|
|
if (row.archivestate != '初审' && row.archivestate == '提交') {
|
|
|
|
|
// html = html + '<button type="button" class="btn btn-sm btn-primary verifyInfo">初审</button>'
|
|
|
|
|
// html = html + '<button type="button" class="btn btn-sm btn-primary verifyInfo">初审</button>'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (index.indexOf("hcmit") != -1) {
|
|
|
|
@ -3476,9 +3491,11 @@
|
|
|
|
|
var emrCmit=$("#emrCmit").val();
|
|
|
|
|
var doctorInCharge= $("#doctorInCharge").val().toString();
|
|
|
|
|
|
|
|
|
|
var bedNumber=$("#bedNumber").val();
|
|
|
|
|
|
|
|
|
|
window.location.href = "${path}/beHosp/exportExcel?inpNo=" + inpNo + "&visitId=" + visitId +
|
|
|
|
|
"&name=" + name + "&archivestate=" + archivestate + "&deptName=" + deptName+"&emrCmit="+ emrCmit
|
|
|
|
|
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo+"&doctorInCharge="+ doctorInCharge;
|
|
|
|
|
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo+"&doctorInCharge="+ doctorInCharge+"&bedNumber="+bedNumber;
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -3500,7 +3517,7 @@
|
|
|
|
|
if (result.length > 0) {
|
|
|
|
|
for (var i = 0; i < result.length; i++) {
|
|
|
|
|
//下拉类别
|
|
|
|
|
// $("#inpType").append("<option value=" + result[i].assortId + ">" + result[i].assortName + "</option>");
|
|
|
|
|
// $("#inpType").append("<option value=" + result[i].assortId + ">" + result[i].assortName + "</option>");
|
|
|
|
|
//树列表
|
|
|
|
|
var obj = {};
|
|
|
|
|
obj.id = result[i].assortId;
|
|
|
|
@ -3783,7 +3800,7 @@
|
|
|
|
|
//确认删除pdf页码
|
|
|
|
|
$("#delPageBtn2").click(function () {
|
|
|
|
|
var entity={};出院科室:
|
|
|
|
|
entity.id= $("#pdfId").val();
|
|
|
|
|
entity.id= $("#pdfId").val();
|
|
|
|
|
entity.title = ""+$("#pagePdf").val();
|
|
|
|
|
entity.pdfPath = $("#pathPdf").val();
|
|
|
|
|
if(entity.id==null ||entity.id=="" ){
|
|
|
|
|