|
|
|
@ -778,7 +778,7 @@ function initTable() {
|
|
|
|
|
' <table id="table1" class="table text-nowrap"></table>\n' +
|
|
|
|
|
' </div>';
|
|
|
|
|
$detail.html(html);
|
|
|
|
|
initTable1();
|
|
|
|
|
initTable1(row);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -786,9 +786,9 @@ function initTable() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//第二层,按科室分组查
|
|
|
|
|
function initTable1() {
|
|
|
|
|
function initTable1(row) {
|
|
|
|
|
$("#table1").bootstrapTable({ // 对应table标签的id
|
|
|
|
|
url: path + "/statistics/getRecordStatisticsGroupDept", // 获取表格数据的url
|
|
|
|
|
url: path + "/beHosp/beHospList1", // 获取表格数据的url
|
|
|
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|
|
|
|
striped: true, //表格显示条纹,默认为false
|
|
|
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|
|
|
@ -804,6 +804,9 @@ function initTable1() {
|
|
|
|
|
searchTimeOut: 500,// 默认500 设置搜索超时时间。
|
|
|
|
|
showHeader: true,//是否显示列头。
|
|
|
|
|
//查询条件
|
|
|
|
|
queryParams: function (params) {
|
|
|
|
|
return queryParams(params,this,row);
|
|
|
|
|
},
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
@ -813,44 +816,45 @@ function initTable1() {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '出院科室',
|
|
|
|
|
field: 'deptNameCn',
|
|
|
|
|
title: '住院号',
|
|
|
|
|
field: 'inpNo',
|
|
|
|
|
align: 'left'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '出院人数',
|
|
|
|
|
field: 'allRecordCount',
|
|
|
|
|
title: '住院次数',
|
|
|
|
|
field: 'visitId',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '总文件数',
|
|
|
|
|
field: 'allFileCount',
|
|
|
|
|
title: '姓名',
|
|
|
|
|
field: 'name',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '总页数',
|
|
|
|
|
field: 'allPageCount',
|
|
|
|
|
title: '性别',
|
|
|
|
|
field: 'sex',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '自动采集总文件数',
|
|
|
|
|
field: 'autoCollectionFileCount',
|
|
|
|
|
title: '出院科室',
|
|
|
|
|
field: 'deptName',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '自动采集总页数',
|
|
|
|
|
field: 'autoCollectionPageCount',
|
|
|
|
|
title: '出院日期',
|
|
|
|
|
field: 'dischargeDateTime',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '扫描上传总文件数',
|
|
|
|
|
field: 'manualScanFileCount',
|
|
|
|
|
title: '主管医生',
|
|
|
|
|
field: 'doctorInCharge',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '扫描上传总页数',
|
|
|
|
|
field: 'manualScanPageCount',
|
|
|
|
|
align: 'center'
|
|
|
|
|
title: '状态',
|
|
|
|
|
field: 'status',
|
|
|
|
|
align: 'center',
|
|
|
|
|
formatter:paramsMatter
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
onLoadSuccess: function (result) { //加载成功时执行
|
|
|
|
@ -870,6 +874,49 @@ function initTable1() {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//格式化状态
|
|
|
|
|
function paramsMatter(value, row) {
|
|
|
|
|
var result = '';
|
|
|
|
|
if(row.days > 0){
|
|
|
|
|
result = '<span style="color:red">(超期)</span></span>';
|
|
|
|
|
}
|
|
|
|
|
if(value == null){
|
|
|
|
|
value = '';
|
|
|
|
|
}
|
|
|
|
|
if(result != '') {
|
|
|
|
|
return '<p title="' + value + '">' + result + row.currentStatus + '</p>';
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//各表格查询条件
|
|
|
|
|
function queryParams(params,_this,row){
|
|
|
|
|
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 deptName = row.deptCode;
|
|
|
|
|
var temp = {
|
|
|
|
|
offset:offset,
|
|
|
|
|
limit:limit,
|
|
|
|
|
deptName:deptName
|
|
|
|
|
};
|
|
|
|
|
return temp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询
|
|
|
|
|
$('#searchBtn').click(function () {
|
|
|
|
|
//查询之后重新从第一页算起
|
|
|
|
|