删除页无法使用修改

master
linjj 2 years ago
parent 5f61c3b819
commit 2ae957e36c

@ -187,8 +187,26 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
PageHelper.offsetPage(offset, limit);
}
List<Archive_Master_Vo> list = archiveMasterMapper.selectByLast(archiveMasterVo);
if(list!=null && list.size()>0) {
Emr_Dictionary dic = new Emr_Dictionary();
dic.setEffective(1);
dic.setTypecode("dept_code");
setNameAndPrintFlagNew(archiveMasterVo, list);
List<Emr_Dictionary> dicList = emrDictionaryService.dicByTypeCode(dic);
//转换科室
Map<String, Emr_Dictionary> codeMap = ListUtils.toMap(dicList, Emr_Dictionary::getCode);
Setters.<Archive_Master_Vo>instance().list(list).cycleSetProperties(p -> {
String deptCode = p.getDeptName();
if(StringUtils.isNotBlank(deptCode) && codeMap.containsKey(deptCode)){
String deptName = codeMap.get(deptCode).getName();
p.setDeptName(deptName);
}
});
}
//科室列表
//设置医生、护士名称和打印标识
setNameAndPrintFlag(archiveMasterVo, list);
return list;
}

@ -4906,8 +4906,10 @@
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
$("#idPdfT").val(data.id);
}
});
$("#inpId").val(detailId);
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

@ -4243,9 +4243,10 @@
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
$("#idPdfT").val(data.id);
}
});
$("#inpId").val(detailId);
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

@ -3301,9 +3301,7 @@
fileName: document.title
},
rowStyle: rowStyle,//通过自定义函数设置行样式
// showToggle: false, //是否显示详细视图和列表视图的切换按钮
// cardView: false, //是否显示详细视图
// detailView: false, //是否显示父子表
// 是否显示父子表
queryParams: function (params) {
var currPageSize = this.pageSize;
if (currPageSize == 2) {
@ -3320,14 +3318,6 @@
limit = currPageSize;
this.pageSize = currPageSize;
}
// var url = window.location.href;
// var deptName = url.substring(url.lastIndexOf('&') + 1).replace("depts=", "");
// if (deptName != null && deptName != '') {
// deptName += "," + $("#deptName").val();
// } else {
// deptName = $("#deptName").val();
// }
//
var deptName = $("#deptName").val();
if (deptName.indexOf("") != -1) {
deptName = "";
@ -3339,21 +3329,14 @@
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令descasc
//id: $("#id").val(),
// idNo: $("#idNo").val(),
inpNo: "" + $("#inpNo").val(),
visitId: "" + $("#visitId").val(),
name: "" + $("#name").val(),
//archivestate: "" + $("#archivestate").val(),
deptName: deptName,
startDateTo: $("#startDateTo").val(),
endDateTo: $("#endDateTo").val(),
isscaned: $("#isscaned").val(),
isScanning: $("#isScanning").val(),
/*signer: "" + $("#signer").val(),*/
//startSignDate: $("#startSignDate").val(),
//endSignDate: $("#endSignDate").val(),
isSign: $("#isSign").val(),
printNum: $("#printNum").val(),
isFault: $("#isFault").val(),
@ -3383,100 +3366,30 @@
field: 'inpNo',
align: 'left',
valign: 'middle',
/*formatter: function (value, row, index) {
//console.log(row);
var redFlag = row.numb;
var a = "";
if (redFlag == 0) {
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
}
return a;
}*/
},
{
title: '住院次数',
field: 'visitId',
align: 'center',
valign: 'middle',
/*formatter: function (value, row, index) {
var redFlag = row.numb;
var a = "";
if (redFlag == 0) {
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
}
return a;
}*/
},
{
title: '姓名',
field: 'name',
align: 'left',
valign: 'middle',
/*formatter: function (value, row, index) {
var redFlag = row.numb;
var a = "";
if (redFlag == 0) {
if (value == null) {
a = "";
} else {
a = value;
}
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
}
return a;
}*/
},
{
title: '性别',
field: 'sex',
align: 'center',
valign: 'middle',
/*formatter: function (value, row, index) {
var redFlag = row.numb;
var a = "";
if (value == null || value == "null") {
a = "";
} else {
a = value;
}
if (redFlag != 0) {
//缺陷
a = '<span style="color:red;">' + a + '</span>';
}
return a;
}*/
},
// {
// title: '身份证号',
// field: 'idNo',
// align: 'center',
// valign: 'middle',
// visible: false
// },
{
title: '出院科室',
field: 'deptName',
align: 'left',
valign: 'middle',
/*formatter: function (value, row, index) {
var redFlag = row.numb;
var a = "";
if (redFlag == 0) {
a = value;
} else {
//缺陷
a = '<span style="color:red;">' + value + '</span>';
}
return a;
}*/
},
{
title: '出院日期',
@ -4441,8 +4354,10 @@
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
$("#pathPdf").val(data.pdfPath);
$("#idPdfT").val(data.id);
}
});
$("#inpId").val(detailId);
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

@ -4033,9 +4033,10 @@
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
$("#idPdfT").val(data.id);
}
});
$("#inpId").val(detailId);
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

@ -3835,8 +3835,10 @@
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
$("#idPdfT").val(data.id);
}
});
$("#inpId").val(detailId);
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

Loading…
Cancel
Save