修改病案清单逻辑

master
linjj 2 years ago
parent 0e8a3b6241
commit 9865c583ae

@ -148,6 +148,19 @@ public class inHospitalController {
}
return result;
}
/**
* @description:
* @params:
* @return:
* @author linjj
* @date: 2023/6/28 15:38
*/
@ResponseBody
@RequestMapping(value = "/getDetailInfo")
public Archive_Detail_Vo getDetailInfo(String detailId){
Archive_Detail_Vo detailInfo = archiveDetailService.getDetailInfo(detailId);
return detailInfo;
}
//@OptionalLog(methods = "调用单个作废")
@ResponseBody

@ -142,6 +142,15 @@ public interface Archive_DetailMapper {
*/
List<Archive_Detail> selectByIdStr(Archive_Detail record);
/**
* @description:
* @params: archiveDetailVo
* @return: List<Archive_Detail_Vo>
* @author linjj
* @date: 2023/6/28 15:39
*/
Archive_Detail_Vo getDetailInfo(@Param("detailId")String detailId);
/**
* archive_detail
* @param record

@ -40,6 +40,8 @@ public interface Archive_DetailService {
*/
OffsetLimitPage selectChild(Archive_Detail_Vo record, Integer offset, Integer limit);
/**
* ()
*
@ -62,6 +64,14 @@ public interface Archive_DetailService {
* @return
*/
List<Archive_Detail_Vo> sourceByClo(Archive_Detail_Vo record);
/**
* @description:
* @params: archiveDetailVo
* @return: List<Archive_Detail_Vo>
* @author linjj
* @date: 2023/6/28 15:39
*/
Archive_Detail_Vo getDetailInfo(String detailId);
/**
*

@ -128,6 +128,11 @@ public class Archive_DetailServiceImpl implements Archive_DetailService {
return archiveDetailMapper.sourceByClo(record);
}
@Override
public Archive_Detail_Vo getDetailInfo(String detailId) {
return archiveDetailMapper.getDetailInfo(detailId);
}
@Override
public int updateCloById(Archive_Detail record) {
return archiveDetailMapper.updateCloById(record);

@ -76,8 +76,7 @@
<select id="selectChild" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
select
a.id, a.PDF_PATH, a.MasterID, a.UpLoadDateTime, a.AssortID, a.Source, a.SubAssort, a.Title, a.flag,
a.Sys,a.page_number,a.recover_pdf_path
a.id,a.UpLoadDateTime, a.AssortID, a.Source, a.SubAssort, a.Title, a.flag
from
archive_detail a
inner join
@ -164,11 +163,8 @@
</select>
<select id="detailByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
select
t.MasterID,t.id,t.PDF_PATH,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120) UpLoadDateTime,t.SubAssort,t.Title,t.flag,t.page_number,
z.assort_id,z.assort_name,z.assort_sort,z.print_flag
t.id,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120) UpLoadDateTime,t.Title,t.flag
from archive_detail t
left join zd_assort z
on z.assort_id=t.AssortID
where 1=1
<if test="patientId != null">
and t.MasterID=#{patientId,jdbcType=VARCHAR}
@ -188,7 +184,7 @@
<if test="title != null and title != ''">
and t.title like '%'+#{title,jdbcType=VARCHAR}+'%'
</if>
ORDER BY z.assort_sort,t.Title,t.page_number,t.UpLoadDateTime
ORDER BY t.UpLoadDateTime
</select>
<!-- <select id="detailWithChildByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">-->
@ -259,8 +255,8 @@
<select id="detailWithChildByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
select
t.MasterID,t.id,t.PDF_PATH,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120)
UpLoadDateTime,t.SubAssort,t.Title,t.flag,t.page_number,t.AssortID
t.id,t.Source,CONVERT(varchar(100),t.UpLoadDateTime, 120)
UpLoadDateTime,t.Title,t.flag
from archive_detail t
<where>1=1
<if test="source != null and source != '' and source!='-1'">
@ -753,4 +749,7 @@
</if>
order by zd_assort.assort_sort
</select>
<select id="getDetailInfo" resultType="com.emr.entity.Archive_Detail_Vo">
select Title,page_number,Source,flag,PDF_PATH from Archive_Detail where ID=#{detailId}
</select>
</mapper>

@ -4895,72 +4895,19 @@
return html;
}, events: {
'click .editInfo': function (e, value, row, index) {
//判断是否包含类型
var assortIDFlag=assortIdArr.indexOf(row.assortId);
//console.log(row);
if (row.pdfPath != null && row.pdfPath != "") {
//console.log("===:" + row.pdfPath.indexOf(row.assortId + ".pdf") != -1);
if (row.pdfPath.indexOf(row.assortId + ".pdf") != -1) {
$("#upPdfDiv").hide();
//判断该分段类是否存在,如果存在禁止修改,如果不存在则显示可修改项
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
if (row.source.indexOf("后台") != -1) {
$("#addFile").show();
} else {
$("#addFile").hide();
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
var detailId = row.id;
$.ajax({
url: "${path}/inHosp/getDetailInfo",
type: "POST",
data: {detailId: detailId},
success: function (data) {
$("#inpTitle").val(data.title)
$("#pageNumber").val(data.pageNumber)
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
}
//同步
$("#inpId").val(row.id);
$("#inpTitle").val(row.title);
if(row.assortId!=null && row.assortId!="" && assortIDFlag!=-1){
$("#inpType").val(row.assortId);
}
$("#inpSource").val(row.source);
$("#inpFlag").val(row.flag);
$("#pageNumber").val(row.pageNumber);
//console.log("===="+ row.pdfPath);
$("#pdfPathVal").val(row.pdfPath);
if (row.pdfPath != "" && row.pdfPath != null) {
$("#pdfPathVal").show();
//..\..\..\static\img\pdfFiles\980bda8d-18e3-4deb-bb25-9d2b3784e9f3\HC3SL2HENH348M8X619PMCA7GC5R3125\HC3SL2HENH348M8X619PMCA7GC5R3125.pdf
var pdfUrl = "../../" + (row.pdfPath).replace(/\\/g, "/");
$("#fileUrlInp").val(pdfUrl);
// var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;
$('#previewFile').css("display", "block");//显示预览按钮
$('#addFile').attr("src", row.pdfPath);
//$("#addFile").val("ssss");
$('.inp_file').val(null);
} else {
$("#pdfPathVal").hide();
$('#addFile').attr("src", "");
$('.inp_file').val(null);
}
});
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

@ -4232,71 +4232,19 @@
return html;
}, events: {
'click .editInfo': function (e, value, row, index) {
//判断是否包含类型
var assortIDFlag=assortIdArr.indexOf(row.assortId);
//console.log(row);
if (row.pdfPath != null && row.pdfPath != "") {
//console.log("===:" + row.pdfPath.indexOf(row.assortId + ".pdf") != -1);
if (row.pdfPath.indexOf(row.assortId + ".pdf") != -1) {
$("#upPdfDiv").hide();
//判断该分段类是否存在,如果存在禁止修改,如果不存在则显示可修改项
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
if (row.source.indexOf("后台") != -1) {
$("#addFile").show();
} else {
$("#addFile").hide();
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
var detailId = row.id;
$.ajax({
url: "${path}/inHosp/getDetailInfo",
type: "POST",
data: {detailId: detailId},
success: function (data) {
$("#inpTitle").val(data.title)
$("#pageNumber").val(data.pageNumber)
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
}
//同步
$("#inpId").val(row.id);
$("#inpTitle").val(row.title);
if(row.assortId!=null && row.assortId!="" && assortIDFlag!=-1){
$("#inpType").val(row.assortId);
}
$("#inpSource").val(row.source);
$("#inpFlag").val(row.flag);
$("#pageNumber").val(row.pageNumber);
//console.log("===="+ row.pdfPath);
$("#pdfPathVal").val(row.pdfPath);
if (row.pdfPath != "" && row.pdfPath != null) {
$("#pdfPathVal").show();
//..\..\..\static\img\pdfFiles\980bda8d-18e3-4deb-bb25-9d2b3784e9f3\HC3SL2HENH348M8X619PMCA7GC5R3125\HC3SL2HENH348M8X619PMCA7GC5R3125.pdf
var pdfUrl = "../../" + (row.pdfPath).replace(/\\/g, "/");
$("#fileUrlInp").val(pdfUrl);
// var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;
$('#previewFile').css("display", "block");//显示预览按钮
$('#addFile').attr("src", row.pdfPath);
//$("#addFile").val("ssss");
$('.inp_file').val(null);
} else {
$("#pdfPathVal").hide();
$('#addFile').attr("src", "");
$('.inp_file').val(null);
}
});
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。

@ -2880,73 +2880,21 @@
return html;
}, events: {
'click .editInfo': function (e, value, row, index) {
//判断是否包含类型
var assortIDFlag=assortIdArr.indexOf(row.assortId);
if (row.pdfPath != null && row.pdfPath != "") {
//console.log("===:" + row.pdfPath.indexOf(row.assortId + ".pdf") != -1);
if (row.pdfPath.indexOf(row.assortId + ".pdf") != -1) {
$("#upPdfDiv").hide();
//判断该分段类是否存在,如果存在禁止修改,如果不存在则显示可修改项
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
if (row.source.indexOf("后台") != -1) {
$("#addFile").show();
} else {
$("#addFile").hide();
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
var detailId = row.id;
$.ajax({
url: "${path}/inHosp/getDetailInfo",
type: "POST",
data: {detailId: detailId},
success: function (data) {
console.log(data.title)
console.log(data)
$("#inpTitle").val(data.title)
$("#pageNumber").val(data.pageNumber)
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
}
//同步
$("#inpId").val(row.id);
$("#inpTitle").val(row.title);
if(row.assortId!=null && row.assortId!="" && assortIDFlag!=-1){
$("#inpType").val(row.assortId);
}
$("#inpSource").val(row.source);
$("#inpFlag").val(row.flag);
// console.log(row);
$("#pageNumber").val(row.pageNumber);
//console.log("===="+ row.pdfPath);
$("#pdfPathVal").val(row.pdfPath);
if (row.pdfPath != "" && row.pdfPath != null) {
$("#pdfPathVal").show();
//..\..\..\static\img\pdfFiles\980bda8d-18e3-4deb-bb25-9d2b3784e9f3\HC3SL2HENH348M8X619PMCA7GC5R3125\HC3SL2HENH348M8X619PMCA7GC5R3125.pdf
var pdfUrl = "../../" + (row.pdfPath).replace(/\\/g, "/");
$("#fileUrlInp").val(pdfUrl);
// var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;
$('#previewFile').css("display", "block");//显示预览按钮
$('#addFile').attr("src", row.pdfPath);
//$("#addFile").val("ssss");
$('.inp_file').val(null);
} else {
$("#pdfPathVal").hide();
$('#addFile').attr("src", "");
$('.inp_file').val(null);
}
});
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

@ -4375,82 +4375,19 @@
return html;
}, events: {
'click .editInfo': function (e, value, row, index) {
//判断是否包含类型
var assortIDFlag=0;
if(assortIdArr!=null && assortIdArr!=""){
assortIDFlag=assortIdArr.indexOf(row.assortId);
}
//console.log(row.assortId+"======"+assortIDFlag);
//console.log(row);
if (row.pdfPath != null && row.pdfPath != "") {
//console.log("===:" + row.pdfPath.indexOf(row.assortId + ".pdf") != -1);
if (row.pdfPath.indexOf(row.assortId + ".pdf") != -1) {
$("#upPdfDiv").hide();
//判断该分段类是否存在,如果存在禁止修改,如果不存在则显示可修改项
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
var detailId = row.id;
$.ajax({
url: "${path}/inHosp/getDetailInfo",
type: "POST",
data: {detailId: detailId},
success: function (data) {
$("#inpTitle").val(data.title)
$("#pageNumber").val(data.pageNumber)
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
}
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
if (row.source.indexOf("后台") != -1) {
$("#addFile").show();
} else {
$("#addFile").hide();
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
}
//同步
$("#inpId").val(row.id);
$("#inpTitle").val(row.title);
$("#inpNoB").val("_"+row.inpNo);
if(row.assortId!=null && row.assortId!="" && assortIDFlag!=-1){
$("#inpType").val(row.assortId);
}else{
}
if(row.inpNo!=null &&row.inpNo!=""){
$("#inpNoB").show();
}else{
$("#inpNoB").hide();
}
$("#inpSource").val(row.source);
$("#inpFlag").val(row.flag);
$("#pageNumber").val(row.pageNumber);
//console.log("===="+ row.pdfPath);
$("#pdfPathVal").val(row.pdfPath);
if (row.pdfPath != "" && row.pdfPath != null) {
$("#pdfPathVal").show();
//..\..\..\static\img\pdfFiles\980bda8d-18e3-4deb-bb25-9d2b3784e9f3\HC3SL2HENH348M8X619PMCA7GC5R3125\HC3SL2HENH348M8X619PMCA7GC5R3125.pdf
var pdfUrl = "../../" + (row.pdfPath).replace(/\\/g, "/");
$("#fileUrlInp").val(pdfUrl);
// var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;
$('#previewFile').css("display", "block");//显示预览按钮
$('#addFile').attr("src", row.pdfPath);
//$("#addFile").val("ssss");
$('.inp_file').val(null);
} else {
$("#pdfPathVal").hide();
$('#addFile').attr("src", "");
$('.inp_file').val(null);
}
});
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

@ -4022,57 +4022,19 @@
return html;
}, events: {
'click .editInfo': function (e, value, row, index) {
//console.log(row);
if (row.pdfPath != null && row.pdfPath != "") {
//console.log("===:" + row.pdfPath.indexOf(row.assortId + ".pdf") != -1);
if (row.pdfPath.indexOf(row.assortId + ".pdf") != -1) {
$("#upPdfDiv").hide();
$("#inpType").attr("disabled", "true");
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
var detailId = row.id;
$.ajax({
url: "${path}/inHosp/getDetailInfo",
type: "POST",
data: {detailId: detailId},
success: function (data) {
$("#inpTitle").val(data.title)
$("#pageNumber").val(data.pageNumber)
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
}
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
if (row.source.indexOf("后台") != -1) {
$("#addFile").show();
} else {
$("#addFile").hide();
$("#inpType").attr("disabled", "true");
}
//同步
$("#inpId").val(row.id);
$("#inpTitle").val(row.title);
$("#inpType").val(row.assortId);
$("#inpSource").val(row.source);
$("#inpFlag").val(row.flag);
$("#pageNumber").val(row.pageNumber);
//console.log("===="+ row.pdfPath);
$("#pdfPathVal").val(row.pdfPath);
if (row.pdfPath != "" && row.pdfPath != null) {
$("#pdfPathVal").show();
//..\..\..\static\img\pdfFiles\980bda8d-18e3-4deb-bb25-9d2b3784e9f3\HC3SL2HENH348M8X619PMCA7GC5R3125\HC3SL2HENH348M8X619PMCA7GC5R3125.pdf
var pdfUrl = "../../" + (row.pdfPath).replace(/\\/g, "/");
$("#fileUrlInp").val(pdfUrl);
// var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;
$('#previewFile').css("display", "block");//显示预览按钮
$('#addFile').attr("src", row.pdfPath);
//$("#addFile").val("ssss");
$('.inp_file').val(null);
} else {
$("#pdfPathVal").hide();
$('#addFile').attr("src", "");
$('.inp_file').val(null);
}
});
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。

@ -2839,6 +2839,9 @@
});
}
function initTable() {
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
@ -3821,71 +3824,19 @@
return html;
}, events: {
'click .editInfo': function (e, value, row, index) {
//判断是否包含类型
var assortIDFlag=assortIdArr.indexOf(row.assortId);
//console.log(row);
if (row.pdfPath != null && row.pdfPath != "") {
//console.log("===:" + row.pdfPath.indexOf(row.assortId + ".pdf") != -1);
if (row.pdfPath.indexOf(row.assortId + ".pdf") != -1) {
$("#upPdfDiv").hide();
//判断该分段类是否存在,如果存在禁止修改,如果不存在则显示可修改项
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
var detailId = row.id;
$.ajax({
url: "${path}/inHosp/getDetailInfo",
type: "POST",
data: {detailId: detailId},
success: function (data) {
$("#inpTitle").val(data.title)
$("#pageNumber").val(data.pageNumber)
$("#inpSource").val(data.source)
$("#inpFlag").val(data.flag)
$("#pdfPathVal").val(data.pdfPath)
}
} else {
$("#upPdfDiv").show();
$("#inpType").removeAttr("disabled");
}
if (row.source.indexOf("后台") != -1) {
$("#addFile").show();
} else {
$("#addFile").hide();
if(assortIDFlag==-1) {
toastr.warning("分段类不存在,需修改类!");
}
/*else{
$("#inpType").attr("disabled", "true");
}*/
}
//同步
$("#inpId").val(row.id);
$("#inpTitle").val(row.title);
if(row.assortId!=null && row.assortId!="" && assortIDFlag!=-1){
$("#inpType").val(row.assortId);
}
$("#inpSource").val(row.source);
$("#inpFlag").val(row.flag);
$("#pageNumber").val(row.pageNumber);
//console.log("===="+ row.pdfPath);
$("#pdfPathVal").val(row.pdfPath);
if (row.pdfPath != "" && row.pdfPath != null) {
$("#pdfPathVal").show();
//..\..\..\static\img\pdfFiles\980bda8d-18e3-4deb-bb25-9d2b3784e9f3\HC3SL2HENH348M8X619PMCA7GC5R3125\HC3SL2HENH348M8X619PMCA7GC5R3125.pdf
var pdfUrl = "../../" + (row.pdfPath).replace(/\\/g, "/");
$("#fileUrlInp").val(pdfUrl);
// var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;
$('#previewFile').css("display", "block");//显示预览按钮
$('#addFile').attr("src", row.pdfPath);
//$("#addFile").val("ssss");
$('.inp_file').val(null);
} else {
$("#pdfPathVal").hide();
$('#addFile').attr("src", "");
$('.inp_file').val(null);
}
});
$('#assortModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。

Loading…
Cancel
Save