|
|
|
@ -87,6 +87,7 @@ function freshTable(){
|
|
|
|
field:'patientId',
|
|
|
|
field:'patientId',
|
|
|
|
visible:false
|
|
|
|
visible:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
debugger
|
|
|
|
var tableThNames = $("#tableThNames").val();
|
|
|
|
var tableThNames = $("#tableThNames").val();
|
|
|
|
if(tableThNames != ''){
|
|
|
|
if(tableThNames != ''){
|
|
|
|
var fieldCns = '';
|
|
|
|
var fieldCns = '';
|
|
|
|
@ -160,8 +161,8 @@ function freshTable(){
|
|
|
|
height: 400,//高度调整 //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度
|
|
|
|
height: 400,//高度调整 //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度
|
|
|
|
buttonsAlign: "left",//按钮对齐方式
|
|
|
|
buttonsAlign: "left",//按钮对齐方式
|
|
|
|
columns:columns,
|
|
|
|
columns:columns,
|
|
|
|
fixedColumns: mixFlag,//固定列
|
|
|
|
fixedColumns: true,//固定列
|
|
|
|
fixedNumber:5,//固定前五列
|
|
|
|
fixedNumber:5,//固定前七列
|
|
|
|
locale:'zh-CN',//中文支持,
|
|
|
|
locale:'zh-CN',//中文支持,
|
|
|
|
url:path+'/template/cutomSearchTable',//排序方式
|
|
|
|
url:path+'/template/cutomSearchTable',//排序方式
|
|
|
|
queryParams: function (params) {
|
|
|
|
queryParams: function (params) {
|
|
|
|
@ -323,12 +324,14 @@ function getChecked(){
|
|
|
|
$("#checks").val("");
|
|
|
|
$("#checks").val("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function reLoadTable(){
|
|
|
|
function reLoadTable(){
|
|
|
|
$("#mytab").bootstrapTable('refresh',path+'/template/cutomSearchTable?sql'+$("#sql").val());
|
|
|
|
$("#mytab").bootstrapTable('refresh',path+'/template/cutomSearchTable?sql'+$("#sql").val());
|
|
|
|
$('#mytab').bootstrapTable('selectPage', pageNumber);
|
|
|
|
$('#mytab').bootstrapTable('selectPage', pageNumber);
|
|
|
|
$("#checks").val("");
|
|
|
|
$("#checks").val("");
|
|
|
|
$("#check").val("");
|
|
|
|
$("#check").val("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//列表行‘操作’按钮
|
|
|
|
//列表行‘操作’按钮
|
|
|
|
function AddFunctionAlty(value, row, index) {
|
|
|
|
function AddFunctionAlty(value, row, index) {
|
|
|
|
var patientId = "'" + row.patientId + "'";
|
|
|
|
var patientId = "'" + row.patientId + "'";
|
|
|
|
@ -365,6 +368,7 @@ function AddFunctionAlty(value, row, index) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return str;
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*//查看详情
|
|
|
|
/*//查看详情
|
|
|
|
function showDetail(patientId){
|
|
|
|
function showDetail(patientId){
|
|
|
|
window.location.href=path+"/commom/showRecord?patientId="+patientId;
|
|
|
|
window.location.href=path+"/commom/showRecord?patientId="+patientId;
|
|
|
|
@ -375,6 +379,7 @@ function clearForm(){
|
|
|
|
document.forms[0].reset();
|
|
|
|
document.forms[0].reset();
|
|
|
|
$("#dis_dept").selectpicker("refresh");
|
|
|
|
$("#dis_dept").selectpicker("refresh");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//批量下载功能
|
|
|
|
//批量下载功能
|
|
|
|
function downloadZip(typeId){
|
|
|
|
function downloadZip(typeId){
|
|
|
|
var patientIds = "";
|
|
|
|
var patientIds = "";
|
|
|
|
@ -436,6 +441,7 @@ function downloadZip(typeId){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//下载pdf功能
|
|
|
|
//下载pdf功能
|
|
|
|
function downloadPdf(patientId){
|
|
|
|
function downloadPdf(patientId){
|
|
|
|
patientId = "'"+patientId+"'";
|
|
|
|
patientId = "'"+patientId+"'";
|
|
|
|
@ -532,6 +538,7 @@ function post(url, params) {
|
|
|
|
// 提交表单
|
|
|
|
// 提交表单
|
|
|
|
temp_form .submit();
|
|
|
|
temp_form .submit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//定义空的inputValue方法
|
|
|
|
//定义空的inputValue方法
|
|
|
|
function getInputValue(){
|
|
|
|
function getInputValue(){
|
|
|
|
//判断是否有搜索条件
|
|
|
|
//判断是否有搜索条件
|
|
|
|
@ -587,6 +594,7 @@ function loadApplyType(type){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//单个申请借阅
|
|
|
|
//单个申请借阅
|
|
|
|
function borrowing(patientId){
|
|
|
|
function borrowing(patientId){
|
|
|
|
$("#typeId").val('approves');
|
|
|
|
$("#typeId").val('approves');
|
|
|
|
@ -612,6 +620,7 @@ function borrowing(patientId){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//批量申请借阅
|
|
|
|
//批量申请借阅
|
|
|
|
function borrowings(){
|
|
|
|
function borrowings(){
|
|
|
|
$("#typeId").val('approves');
|
|
|
|
$("#typeId").val('approves');
|
|
|
|
@ -672,6 +681,7 @@ function borrowings(){
|
|
|
|
$('#borrowings').attr("data-target", "#myModal1");
|
|
|
|
$('#borrowings').attr("data-target", "#myModal1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//单个下载申请
|
|
|
|
//单个下载申请
|
|
|
|
function downBorrowing(patientId){
|
|
|
|
function downBorrowing(patientId){
|
|
|
|
$("#typeId").val('loads');
|
|
|
|
$("#typeId").val('loads');
|
|
|
|
@ -697,6 +707,7 @@ function downBorrowing(patientId){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//批量下载借阅
|
|
|
|
//批量下载借阅
|
|
|
|
function downBorrowings(){
|
|
|
|
function downBorrowings(){
|
|
|
|
$("#typeId").val('loads');
|
|
|
|
$("#typeId").val('loads');
|
|
|
|
@ -757,11 +768,13 @@ function downBorrowings(){
|
|
|
|
$('#downBorrowings').attr("data-target", "#myModal1");
|
|
|
|
$('#downBorrowings').attr("data-target", "#myModal1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//模态框保存操作
|
|
|
|
//模态框保存操作
|
|
|
|
function save(){
|
|
|
|
function save(){
|
|
|
|
var typeId = $("#typeId").val();
|
|
|
|
var typeId = $("#typeId").val();
|
|
|
|
saveMethod(1,"保存",typeId);
|
|
|
|
saveMethod(1,"保存",typeId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//模态框提交操作
|
|
|
|
//模态框提交操作
|
|
|
|
function add(){
|
|
|
|
function add(){
|
|
|
|
var typeId = $("#typeId").val();
|
|
|
|
var typeId = $("#typeId").val();
|
|
|
|
@ -819,11 +832,13 @@ function saveMethod(applyState,msg,typeId){
|
|
|
|
$("#effeTime").focus();
|
|
|
|
$("#effeTime").focus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//单个锁定
|
|
|
|
//单个锁定
|
|
|
|
function lock(patientId){
|
|
|
|
function lock(patientId){
|
|
|
|
patientId = "'"+patientId+"'";
|
|
|
|
patientId = "'"+patientId+"'";
|
|
|
|
lockMethod(patientId);
|
|
|
|
lockMethod(patientId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//批量锁定
|
|
|
|
//批量锁定
|
|
|
|
function blocks(){
|
|
|
|
function blocks(){
|
|
|
|
var locks = $("#locks").val();
|
|
|
|
var locks = $("#locks").val();
|
|
|
|
@ -891,6 +906,7 @@ function blocks(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//解锁
|
|
|
|
//解锁
|
|
|
|
function unlock(patientId){
|
|
|
|
function unlock(patientId){
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
@ -908,6 +924,7 @@ function unlock(patientId){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//批量解锁
|
|
|
|
//批量解锁
|
|
|
|
function unlocks(){
|
|
|
|
function unlocks(){
|
|
|
|
var locks = $("#locks").val();
|
|
|
|
var locks = $("#locks").val();
|
|
|
|
@ -980,6 +997,7 @@ function unlocks(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//封装锁定方法
|
|
|
|
//封装锁定方法
|
|
|
|
function lockMethod(patientId){
|
|
|
|
function lockMethod(patientId){
|
|
|
|
Common.confirm({
|
|
|
|
Common.confirm({
|
|
|
|
@ -1006,6 +1024,7 @@ function lockMethod(patientId){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//封装批量解锁方法
|
|
|
|
//封装批量解锁方法
|
|
|
|
function unlocksMethods(patientIds){
|
|
|
|
function unlocksMethods(patientIds){
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
@ -1025,6 +1044,7 @@ function unlocksMethods(patientIds){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//查询被锁定的patienId集合
|
|
|
|
//查询被锁定的patienId集合
|
|
|
|
function getLockPatientIds(){
|
|
|
|
function getLockPatientIds(){
|
|
|
|
$("#locks").val("");
|
|
|
|
$("#locks").val("");
|
|
|
|
@ -1040,6 +1060,7 @@ function getLockPatientIds(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//过滤下载,导出pdf,查看详情的patientId集合:typeId:已借阅审批病案id集合或已下载审批病案id集合
|
|
|
|
//过滤下载,导出pdf,查看详情的patientId集合:typeId:已借阅审批病案id集合或已下载审批病案id集合
|
|
|
|
function powerPotient(patientIds,flag,typeId){
|
|
|
|
function powerPotient(patientIds,flag,typeId){
|
|
|
|
//有权限的过滤
|
|
|
|
//有权限的过滤
|
|
|
|
|