@ -134,6 +134,8 @@
text-align: center !important;
}
#assortModal > div > div {
margin-top: 30%;
margin-left: 60%;
@ -142,22 +144,22 @@
}
#exampleModal > div > div {
margin-top: 5 0%;
margin-left: 7 0%;
margin-top: 3 0%;
margin-left: 6 0%;
width: 400px;
!important;
}
#delPdfModal > div > div {
margin-top: 5 0%;
margin-top: 3 0%;
margin-left: 60%;
width: 400px;
!important;
}
#tsPdfModal > div > div {
margin-top: 5 0%;
margin-left: 6 0%;
margin-top: 4 0%;
margin-left: 7 0%;
width: 400px;
!important;
}
@ -207,9 +209,9 @@
}
#returnModal .modal-content {
margin-left: 1 0%;
margin-top: 1 0%;
width: 16 0%;
margin-left: 0%;
margin-top: 0%;
width: calc(2 10%) ;
}
#returnModal2 .modal-content {
@ -225,25 +227,27 @@
}
#doctorModal .modal-content {
margin-left: 5 0%;
margin-top: 10 %;
width: 120% ;
margin-left: 0%;
margin-top: 5 %;
width: calc(210%) ;
}
#nursModal .modal-content {
margin-left: 50%;
margin-top: 10%;
width: 120%;
}
#QXInfoModal .modal-header2 {
margin-left: 0%;
margin-top: 5%;
width: calc(210%);
}
#WZModal .modal-content {
margin-left: 50%;
margin-top: 10%;
width: 80%;
margin-left: 30%;
margin-top: 0%;
width: calc(150%);
}
#WZModal2 .modal-content {
margin-left: 30%;
margin-top: 0%;
width: calc(150%);
}
#returnCmtModal .modal-content {
@ -252,11 +256,7 @@
width: 80%;
}
#WZModal2 .modal-content {
margin-left: 50%;
margin-top: 10%;
width: 120%;
}
.panel-primary > .panel-heading {
background-color: #3c8dbc;
@ -306,14 +306,14 @@
#delPdfPageModal2 > div > div {
margin-top: 20%;
margin-left: 7 0%;
width: 90% ;
margin-left: 6 0%;
width: 400px ;
!important;
}
#timeLineModal .modal-content {
margin-left: 50 %;
margin-top: 10 %;
margin-left: 55 %;
margin-top: 5 %;
width: 100%;
}
@ -407,7 +407,7 @@
}
#delImgPageModal > div > div {
width: 70% ;
width: 400px ;
margin-left: 55%;
margin-top: 20%;
}
@ -433,14 +433,14 @@
align:left;
margin-left: 5px;
height: 34px;
width:6 00px;
width:3 00px;
!important;
}
#tableQX{
text-overflow: ellipsis;
white-space: nowrap;
width:100%;
/* width:100%;*/
overflow:auto;
!important;
@ -450,6 +450,15 @@
width:600px;
!important;
}
#QXInfoModal .modal-header2 {
width: calc(210%);
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
</head>
@ -704,6 +713,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>
<button type="button" class="btn btn-primary btn-sm" id="titleSearchBtn">
查询
</button>
@ -987,7 +998,7 @@
</div>
<div class="row ">
<span style="vertical-align:top;">退回内容:</span>
<textarea id="backContent" rows="6" style="width:80 %;"></textarea>
<textarea id="backContent" rows="9" style="width:85 %;"></textarea>
</div>
</div>
</div>
@ -1032,17 +1043,22 @@
<div style="height:80%;">
<!--数据表格-->
<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>
</div>
</div>
</div>
</div>
<!-- <div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
</div>-->
</div>
</div>
</div>
<!--缺陷详情弹窗-->
<div class="modal fade" id="qxModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
@ -1077,25 +1093,7 @@
<%--<option value="非类型">非类型</option>--%>
<%--<option value="">全部</option>--%>
</select>
</div>
<%--<div class="row divCss2">--%>
<%--<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>--%>
<%--</div>--%>
<div class="row divCss2">
<span style="vertical-align:top;">内容:</span>
<textarea id="content" rows="10" style="width:90%;" readonly></textarea>
@ -1230,16 +1228,16 @@
<%--<label class="control-label">是提交该记录?</label>--%>
<div class="row divCss2">
<span style="vertical-align:top;">完整性信息:</span>
<textarea id="wzxText" rows="5" style="width:95%;" readonly ></textarea>
<textarea id="wzxText" rows="9" style="width:95%;" readonly disabled ></textarea>
</div>
<div class="row divCss2">
<span style="vertical-align:top;">护士备注:</span>
<textarea id="nuresText" rows="5" style="width:95%;" readonly ></textarea>
<textarea id="nuresText" rows="9" style="width:95%;" readonly disabled ></textarea>
</div>
<div class="row divCss2">
<span style="vertical-align:top;">医生备注:</span>
<textarea id="doctorText" rows="5 " style="width:95%;"></textarea>
<textarea id="doctorText" rows="9 " style="width:95%;"></textarea>
</div>
<div class="row divCss2">
<%--归档病历是否已全部无纸化无扫描件--%>
@ -1255,6 +1253,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
<button type="button" class="btn btn-warning btn-sm" id="selQXDoctorBtn">查看缺陷</button>
<button type="button" class="btn btn-primary btn-sm" id="doctorBtn">确认</button>
</div>
</div>
@ -1279,15 +1278,15 @@
<%--<label class="control-label">是提交该记录?</label>--%>
<div class="row divCss2">
<span style="vertical-align:top;">完整性信息:</span>
<textarea id="wzx2Text" rows="5" style="width:95%;" readonly ></textarea>
<textarea id="wzx2Text" rows="9" style="width:95%;" readonly disabled ></textarea>
</div>
<div class="row divCss2">
<span style="vertical-align:top;">医生备注:</span>
<textarea id="doctor2Text" rows="5" style="width:95%; " readonly ></textarea>
<textarea id="doctor2Text" rows="9" style="width:95%; " readonly disabled ></textarea>
</div>
<div class="row divCss2">
<span style="vertical-align:top;">护士备注:</span>
<textarea id="nures2Text" rows="5 " style="width:95%;"></textarea>
<textarea id="nures2Text" rows="9 " style="width:95%;"></textarea>
</div>
<div class="row divCss2">
<%--归档病历是否已全部无纸化无扫描件--%>
@ -1303,6 +1302,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
<button type="button" class="btn btn-warning btn-sm" id="selQXNuresBtn">查看缺陷</button>
<button type="button" class="btn btn-primary btn-sm" id="nursBtn">确认</button>
</div>
</div>
@ -1511,7 +1511,7 @@
//创建数组保存图片
var files = new Array();
var id = 0;
var backFlagVal;
var backFlagVal=null ;
function getFaultType() {
//获取科室列表
@ -1567,7 +1567,13 @@
});
}
$(function () {
// $("#selModal").draggable({
// handle: ".modal-header2" // 只能点击头部拖动
// });
// $("#selModal").css("overflow", "hidden"); // 防止出现滚动条,出现的话,你会把滚动条一起拖着走的
getFaultType();
var objUrl;
var img_html;
@ -2275,7 +2281,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: true,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时, 自动选择rediobox 和 checkbox
height: 35 0, //定义表格的高度。
height: 60 0, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
showHeader: true,//是否显示列头。
@ -2706,6 +2712,7 @@
if (result == "成功") {
$("#table").bootstrapTable("refresh");
toastr.success("归档护士提交成功!");
} else {
toastr.error("归档护士提交失败!");
}
@ -2782,23 +2789,19 @@
type: "POST",
data: entity,
success: function (result) {
if (result == "成功") {
$("#WZModal2").modal('hide');
$("#WZModal2").modal('hide');
if (result.indexOf("成功")!=-1) {
if (flag == 0) {
$("#doctorModal").modal('hide');
$("#table").bootstrapTable("refresh");
toastr.success("医生提交成功! ");
toastr.success("归档医生提交成功! ");
} else if (flag == 1) {
$("#nursModal").modal('hide');
$("#table").bootstrapTable("refresh");
toastr.success("护士提交成功! ");
toastr.success("归档护士提交成功! ");
}
} else {
if (flag == 0) {
toastr.error("医生提交失败!");
} else if (flag == 1) {
toastr.error("护士提交失败!");
}
toastr.warning(result);
}
}
@ -2893,6 +2896,7 @@
}
function getDept() {
//获取科室列表
$.ajax({
url: "${path}/inHosp/getDept",
@ -2900,6 +2904,7 @@
data: {effective: 1, typecode: "dept_code"},
success: function (result) {
if (result != null) {
$("#deptName").empty();
for (var i = 0; i < result.length; i++) {
if (deptArr.length != 1 && deptArr[0] != "") {
var bol = deptArr.indexOf(result[i].code);
@ -3406,47 +3411,112 @@
});
}
});
}
$("#selQXDoctorBtn").click(function () {
var id = $("#archiveId").val();
backFlagVal=3;
$("#archIdQX").val(id);
$('#tableQX').bootstrapTable('refresh');
$('#QXInfoModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
});
$("#selQXNuresBtn").click(function () {
var id = $("#archiveId").val();
backFlagVal=4;
$("#archIdQX").val(id);
$('#tableQX').bootstrapTable('refresh');
$('#QXInfoModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
});
$("#searchBtnQX").click(function () {
$('#tableQX').bootstrapTable('refresh');
});
var editId=null;
function dealAndConcelFun() {
if (editId == null) {
toastr.warning("选中1条记录! ");
return;
}
if (editId != null && editId != "") {
//处理记录,登录处理人信息
$.ajax({
url: "${path}/fault/dealFault",
type: "POST",
data: {id: editId},
success: function (result) {
if (result.indexOf("成功") != -1) {
//刷新
$('#table').bootstrapTable('refresh');
$('#tableQX').bootstrapTable('refresh');
toastr.success(result);
} else if (result.indexOf("失败") != -1) {
toastr.error(result);
} else {
toastr.warning(result);
}
}
});
} else {
toastr.warning("记录不存在!");
}
}
var scollPostion = null;
var backFlagVal=1;
function initTableQX() {
$("#QXDealCancelBtn").hide();
$("#QXDealBtn").show();
$('#tableQX').bootstrapTable({
url: "${path}/fault/getFaultList", // 获取表格数据的url
queryParams: function (params) {
//console.log($("#archIdQX").val());
var backFlag=1;
//(1,2,5,6)
/* if($("#backFlagQX").val()!=null && $("#backFlagQX").val()!=null){
backFlag=$("#backFlagQX").val();
}*/
var temp = {
///limit: limit, //页面大小
// offset: offset, //页码
//order: params.order, //排位命令( desc, asc)
//id: $("#id").val(),
archiveDetailId: $("#archIdQX").val(),
backContent:$("#assortNameQX").val(),
dealFlag:$("#dealFlagQX").val(),
backFlag:backFlag,
backFlag:backFlagVal
//backFlag: 1
};
//console.log(temp);
return temp;
},
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //是否显示行间隔色
showColumns: true,
toolbar: '#toolbarQX',//指定工具栏
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: true,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时, 自动选择rediobox 和 checkbox
striped: true, //是否显示行间隔色
toolbarAlign: 'left',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
showHeader: true,//是否显示列头。
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
//smartDisplay: false,
//height:'300',
//width:'100%',
//height: $(window).height() / 2,//自定义高度
sortName: 'id', // 要排序的字段
sortOrder: 'desc', // 排序规则
columns: [
/*{
{
title: '全选',
field: 'select', //复选框
checkbox: true,
width: 30,
align: 'center',
valign: 'middle'
}, */
},
{
field: 'id2',
title: '序号',
@ -3538,6 +3608,23 @@
editId = null;
//console.log("====取消选中");
},
onClickRow : function(row, tr,flied){
//console.log("====选中");
},
onCheck:function(row){
editId = row.id;
scollPostion = $('#tableQX').bootstrapTable('getScrollPosition');
if(row!=null){
if(row.dealFlag=="0"){
$("#QXDealCancelBtn").hide();
$("#QXDealBtn").show();
}else{
$("#QXDealCancelBtn").show();
$("#QXDealBtn").hide();
}
}
},
//如果想双击获取row, 把onlClickRow改为onDbClickRow, 如下
onDblClickRow: function (row) {
// if (template.defaults.imports.hasPermission('/payment_manager/payment_detail')) {
@ -3545,8 +3632,13 @@
// }
}, onRefresh: function (result) {
}, onLoadSuccess: function (result) { //加载成功时执行
} , onLoadSuccess: function (result) { //加载成功时执行
$('#tableQX').bootstrapTable('scrollTo', scollPostion); //注意此代码要在setTimeout里面执行, 原因是重新获取数据后还要生成dom节
//console.log("====加载成功时执行"+editId);
if (editId != null) {
//对刷新表格的数据选中之前选的id行
$('#tableQX').bootstrapTable("checkBy", {field: 'id', values: [editId]});
}
},
onLoadError: function () { //加载失败时执行
//$('#table').bootstrapTable("checkBy", {field: 'id', values: [selectNodeId]});
@ -3856,7 +3948,7 @@
//缺陷
if (value == 1) {
//有缺陷显示红色
a = '<span style="color:red;">< i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:green;" ></i><span style="color:red;" >已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3914,7 +4006,7 @@
var a = "";
if (redFlag == 0) {
if (value == 1) {
a = '<span style="color:gr een ;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<span style="color:oran ge;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3922,7 +4014,7 @@
//有缺陷显示红色
if (value == 1) {
//有缺陷显示红色
a = '<span style="color:red;">< i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:orange;" ></i><span style="color:red;" >已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3981,14 +4073,14 @@
var a = "";
if (redFlag == 0) {
if (value == '提交') {
a = '<span style="color:green ;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<span style="color:#269abc ;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
} else {
if (value == '提交') {
//有缺陷显示红色
a = '<span style="color:red;">< i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
//有缺陷显示红色 #269abc;
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;" ></i><span style="color:red;" >已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -4005,7 +4097,7 @@
var a = "";
if (redFlag == 0) {
if (value == '提交') {
a = '<span style="color:green ;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<span style="color:#269abc ;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -4013,7 +4105,7 @@
//有缺陷显示红色
if (value == '提交') {
//有缺陷显示红色
a = '<span style="color:red;">< i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;" ></i><span style="color:red;" >已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -4142,11 +4234,12 @@
}
}
}
var redFlag = row.numb;
if (redFlag != 0) {
//有缺陷
html = html + '<button type="button" class="btn btn-sm btn-info getQXInfo">查看缺陷</button>';
if (index.indexOf("qxSel") != -1) {
var redFlag = row.numb;
if (redFlag != 0) {
//有缺陷
html = html + '<button type="button" class="btn btn-sm btn-info getQXInfo">查看缺陷</button>';
}
}
}
return html;
@ -4342,10 +4435,12 @@
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
initTree(row.id);
getSourceFun();
},
'click .getQXInfo': function (e, value, row, index) {
//查看缺陷列表
//initTableQX(row.id);
backFlagVal=1;
$("#archIdQX").val(row.id);
$('#tableQX').bootstrapTable('refresh');
$('#QXInfoModal').modal({
@ -4407,18 +4502,12 @@
}
$("#searchBtnQX").click(function () {
$('#tableQX').bootstrapTable('refresh');
});
$("#returnCmtBtn").click(function () {
returnDoctorFun(idCmt);
});
var idArr = [];
var flag = 0;
//实现复选框单选
function checkedThis(obj, obj) {
var boxArray = document.getElementsByName(obj.name);
@ -4431,8 +4520,64 @@
}
}
function getSourceFun(){
//console.log("获取来源下拉框: sourceSearch");
var patientId = $("#idLab").html();
var source=$("#sourceSearch").val();
var assortId = $("#assortId").html();
if (assortId == 0) assortId = null;
var temp = {
patientId: patientId,
assortId: assortId,
source: source,
flag: flag
};
var title = $("#titleSearch").val();
if (title != null && title != "") {
temp.title = title;
}
$.ajax({
url: "${path}/inHosp/getSourceByClo", // 获取表格数据的url
type: "POST",
data: temp,
success: function (result) {
if (result != null) {
$("#sourceSearch").empty();
if(source==""){
$("#sourceSearch").append("<option value='' selected='slected'>全部</option>");
}else {
$("#sourceSearch").append("<option value=''>全部</option>");
}
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!=""){
$("#sourceSearch").append("<option value='" + result[i].source + "' selected='slected'>" + result[i].source + "</option>");
}else {
$("#sourceSearch").append("<option value=" + result[i].source + ">" + result[i].source + "</option>");
}
} else {
$("#sourceSearch").append("<option value='null'>未知</option>");
}
}else{
$("#sourceSearch").append("<option value='-1'>未知</option>");
}
}
$(".selectpicker").selectpicker('refresh');
} else {
toastr.warning("暂无任何来源!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
}
var idArr = [];
var flag = 0;
var scollPostion2 = null;
function initTable2() {
idArr = [];
// idArr = [];
$("#table2").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: "${path}/inHosp/getAssortdetail", // 获取表格数据的url
@ -4461,6 +4606,7 @@
showHeader: true,//是否显示列头。
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
queryParams: function (params) {
var currPageSize = this.pageSize;
/* if (currPageSize == 2) {
currPageSize = 10;
@ -4479,13 +4625,17 @@
limit = currPageSize;
this.pageSize = currPageSize;
}
var source =null;
if($("#sourceSearch").val()!=null){
source=$("#sourceSearch").val();
}
var temp = {
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令( desc, asc)
patientId: patientId,
assortId: assortId,
source: source,
flag: flag
};
@ -4730,7 +4880,12 @@
],
onLoadSuccess: function (result) { //加载成功时执行
// console.info("加载成功");
idArr = [];
//idArr = [];
$('#table2').bootstrapTable('scrollTo', scollPostion2);
if (idArr != []) {
//对刷新表格的数据选中之前选的id行
$('#table2').bootstrapTable("checkBy", {field: 'id', values: idArr});
}
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");
@ -4738,11 +4893,16 @@
}, onCheckAll: function (rows) { //点击全选框时触发的操作
if (rows != null && rows.length) {
for (var i = 0; i < rows.length; i++) {
idArr.push(rows[i].id)
if(idArr.indexOf(row.id)==-1) {
idArr.push(rows[i].id);
}
}
}
}, onCheck: function (row) {//点击每一个单选框时触发的操作
idArr.push(row.id)
scollPostion2 = $('#table2').bootstrapTable('getScrollPosition');
if(idArr.indexOf(row.id)==-1){
idArr.push(row.id);
}
}, onUncheck: function (row) {//取消每一个单选框时对应的操作;
var index = idArr.indexOf(row.id);
if (index > -1) {
@ -4768,7 +4928,7 @@
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
}
initTree($("#idLab").html());
idArr = [];
// idArr = [];
});
@ -4952,7 +5112,7 @@
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
//刷新
$('#table2').bootstrapTable('refresh');
idArr = [];
// idArr = [];
}
}
@ -5016,32 +5176,6 @@
data: {"id": id, flag: "1"},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
}, error: function () {
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量使用成功!");
} else {
toastr.error("批量使用失败,无记录!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量作废成功!");
@ -5112,16 +5246,6 @@
data: {"id": id, flag: "1"},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
}, error: function () {
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("作废成功!");
@ -5324,7 +5448,7 @@
uploadFileFun();
}
}
idArr = [];
// idArr = [];
});
$("#thPdfBtn").click(function () {