From cfae039cad77c6c3caa04c5b61f3ef91259a2a24 Mon Sep 17 00:00:00 2001 From: xuhaoxiang <1216720373@qq.com> Date: Fri, 23 Jul 2021 00:11:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E7=BA=B8=E5=8C=96=E5=BD=92=E6=A1=A3?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/beHospitaledController.java | 2 +- .../emr/controller/faultTypeController.java | 6 +- .../emr/controller/inHospitalController.java | 17 +++- .../emr/controller/signListController.java | 96 +++++++++++++------ .../com/emr/dao/Archive_DetailMapper.java | 7 ++ .../com/emr/dao/Emr_Fault_TypeMapper.java | 6 +- .../com/emr/entity/Archive_Master_Vo.java | 11 +++ .../java/com/emr/entity/Sign_List_Vo.java | 25 +++++ .../emr/service/Archive_DetailService.java | 8 ++ .../emr/service/Emr_Fault_TypeService.java | 6 ++ .../ipml/Archive_DetailServiceImpl.java | 6 ++ .../ipml/Emr_Fault_TypeServiceImpl.java | 5 + .../resources/mapper/Archive_DetailMapper.xml | 93 +++++++++++++++++- .../resources/mapper/Archive_MasterMapper.xml | 11 ++- .../resources/mapper/Emr_Fault_TypeMapper.xml | 14 ++- src/main/resources/mapper/Sign_ListMapper.xml | 9 +- .../views/beHospitaledDir/beHospList.jsp | 14 ++- .../WEB-INF/views/commitDir/commitList.jsp | 22 +++-- .../views/inHospitalDir/inHositalList.jsp | 14 ++- .../views/lastVerifyDir/lastVerifyList.jsp | 22 +++-- .../medicalHandlerDir/medicalHandlerList.jsp | 20 +++- .../medicalOverdueDir/medicalOverdueList.jsp | 12 ++- .../webapp/WEB-INF/views/pdfDir/pdfDir.jsp | 2 + .../WEB-INF/views/pdfDir/pdfLastDir.jsp | 1 + .../WEB-INF/views/signListDir/signList.jsp | 56 +++++++---- .../unfileMedicalDir/unfileMedicalList.jsp | 30 +++++- src/main/webapp/static/pdfjs/web/viewer.html | 14 ++- src/main/webapp/static/pdfjs/web/viewer.js | 4 +- 28 files changed, 444 insertions(+), 89 deletions(-) diff --git a/src/main/java/com/emr/controller/beHospitaledController.java b/src/main/java/com/emr/controller/beHospitaledController.java index 9c6259bb..48d74851 100644 --- a/src/main/java/com/emr/controller/beHospitaledController.java +++ b/src/main/java/com/emr/controller/beHospitaledController.java @@ -350,7 +350,7 @@ public class beHospitaledController { archive_master_following.setHandleId(username); archive_master_following.setHandleName(handleName); bol = archive_master_followingService.insertSelective(archive_master_following); - addArchiveOther(archiveMasterVo); + //addArchiveOther(archiveMasterVo); }else{ result = "医生提交失败,存在缺陷未处理!"; } diff --git a/src/main/java/com/emr/controller/faultTypeController.java b/src/main/java/com/emr/controller/faultTypeController.java index d03aac99..66db86e2 100644 --- a/src/main/java/com/emr/controller/faultTypeController.java +++ b/src/main/java/com/emr/controller/faultTypeController.java @@ -9,6 +9,7 @@ package com.emr.controller; import com.emr.entity.Emr_Fault_Type; import com.emr.entity.Emr_Fault_Vo; import com.emr.service.Emr_Fault_TypeService; +import com.emr.util.IDHelper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; @@ -39,7 +40,7 @@ public class faultTypeController { @ResponseBody @RequestMapping(value = "/updateByClo") - public int updateByClo(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Type emrFaultType) { + public int updateByClo(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Type emrFaultType) throws Exception{ int bol=0; //判断id是否存在 if(emrFaultType.getId()!=null){ @@ -49,6 +50,9 @@ public class faultTypeController { } }else{ //不存在则添加缺陷类别记录 + //查询id最大的数据,取id+1作为新id的值 + Emr_Fault_Type emrFaultTypeNew=emrFaultTypeService.selectByColDesc(); + emrFaultType.setId(emrFaultTypeNew.getId()+1); bol= emrFaultTypeService.insertClo(emrFaultType); } return bol; diff --git a/src/main/java/com/emr/controller/inHospitalController.java b/src/main/java/com/emr/controller/inHospitalController.java index 2c5138a6..eb604199 100644 --- a/src/main/java/com/emr/controller/inHospitalController.java +++ b/src/main/java/com/emr/controller/inHospitalController.java @@ -275,9 +275,14 @@ public class inHospitalController { Archive_Detail archiveDetail = new Archive_Detail(); archiveDetail.setFlag(flag); archiveDetail.setMasterid(masterId.trim()); - archiveDetail.setTitle(assortID); - - List arList = archiveDetailService.selectByCol(archiveDetail); + List arList =new ArrayList<>(); + //如果是新生儿,则不加分段id的筛选条件, + if("1000".equals(assortID)){ + arList =archiveDetailService.selectChildList(archiveDetail); + }else{ + archiveDetail.setTitle(assortID); + arList = archiveDetailService.selectByCol(archiveDetail); + } List errorPdfList = new ArrayList<>(); int size = 0; @@ -1282,6 +1287,12 @@ public class inHospitalController { @RequestMapping(value = "/pdfStreamHandeler") public void pdfStreamHandeler(HttpServletRequest request, HttpServletResponse response) { String filePath = request.getParameter("url"); + //titleName为前端页面title显示的患者姓名,这里要去掉 + String[] list=filePath.split("titleName="); + if(list.length>1){ + String path=list[0].substring(0,list[0].length()-1); + filePath=list[0].substring(0,list[0].length()-1); + } File file = new File(filePath); byte[] data = null; try { diff --git a/src/main/java/com/emr/controller/signListController.java b/src/main/java/com/emr/controller/signListController.java index e5a1f487..e27c7a76 100644 --- a/src/main/java/com/emr/controller/signListController.java +++ b/src/main/java/com/emr/controller/signListController.java @@ -104,44 +104,86 @@ public class signListController { SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); List master=archiveMasterService.selectByCol(archiveMasterVo); Sign_List signList=new Sign_List(); - if(master!=null&&master.size()>0&&"1".equals(master.get(0).getIsscaned())){ - //判断master表里纸质病历已经提交,且有医生提交记录,则取医生数据作为提交人,否则护士为提交人 - signList.setC2("".equals(master.get(0).getDoctorName())&&master.get(0).getDoctorName()!=null?master.get(0).getDoctorName():master.get(0).getNurseName()); - //送纸质病历者所在科室 - JSONArray powerUsers = powerUserService.getPowerUserList("1"); - List powerUserList= JSONArray.parseArray(powerUsers.toJSONString(), JSONObject.class); - ln:for (JSONObject jsonObjectNew : powerUserList) { - if(jsonObjectNew.getString("userName").equals(signList.getC2())){ - signList.setC3(jsonObjectNew.getString("deptId")); - break ln; + if(master!=null&&master.size()>0){ + if(!"0".equals(master.get(0).getIsscaned())){ + //判断master表里纸质病历已经提交,且有医生提交记录,则取医生数据作为提交人,否则护士为提交人 + signList.setC2("".equals(master.get(0).getDoctorName())&&master.get(0).getDoctorName()!=null?master.get(0).getDoctorName():master.get(0).getNurseName()); + //送纸质病历者所在科室 + JSONArray powerUsers = powerUserService.getPowerUserList("1"); + List powerUserList= JSONArray.parseArray(powerUsers.toJSONString(), JSONObject.class); + ln:for (JSONObject jsonObjectNew : powerUserList) { + if(jsonObjectNew.getString("userName").equals(signList.getC2())){ + signList.setC3(jsonObjectNew.getString("deptId")); + break ln; + } } - } - //signList.setC3() - signList.setSysFlag(1); - signList.setMasterID(master.get(0).getId()); - signList.setPid(master.get(0).getPatientId()); + //signList.setC3() + signList.setSysFlag(1); + signList.setMasterID(master.get(0).getId()); + signList.setPid(master.get(0).getPatientId()); - Subject currentUser = SecurityUtils.getSubject(); - Session session = currentUser.getSession(); - signList.setC1((String)session.getAttribute("userSession")); - signList.setC5("1"); - List returnList=signListService.selectSignListWith(signList); + Subject currentUser = SecurityUtils.getSubject(); + Session session = currentUser.getSession(); + signList.setC1((String)session.getAttribute("userSession")); + signList.setC5("1"); + List returnList=signListService.selectSignListWith(signList); - signList.setId(IDHelper.NewID()); + signList.setId(IDHelper.NewID()); /*signList.setC2(master.get(0).getSigner()); signList.setC3(master.get(0).getDeptName());*/ - signList.setCreatedtime(sdf.format(new Date())); - signList.setdTime(sdf.format(new Date())); - signList.setT1(sdf.format(new Date())); - int z=signListService.insertSignList(signList); - result="签收成功"; + signList.setCreatedtime(sdf.format(new Date())); + signList.setdTime(sdf.format(new Date())); + signList.setT1(sdf.format(new Date())); + int z=signListService.insertSignList(signList); + result="签收成功"; + }else{ + result="该病历归档医生或护士尚未提交,是否强制签收?"; + } }else{ - result="医生或护士未在系统操作提交纸质病历"; + result="未查询到住院号为:"+archiveMasterVo.getInpNo()+"的患者住院病历信息"; } //OffsetLimitPage result = archiveMasterService.selectByLast(archiveMasterVo); return result; } + @ResponseBody + @RequestMapping(value = "/addSignListForce") + public String addSignListForce(HttpServletRequest request, HttpServletResponse response, Archive_Master_Vo archiveMasterVo) throws Exception { + response.setCharacterEncoding("utf-8"); + request.setCharacterEncoding("utf-8"); + String result=""; + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + List master=archiveMasterService.selectByCol(archiveMasterVo); + Sign_List signList=new Sign_List(); + signList.setOtherInfo("强制签收"); + //判断master表里纸质病历已经提交,且有医生提交记录,则取医生数据作为提交人,否则护士为提交人 + signList.setC2("".equals(master.get(0).getDoctorName())&&master.get(0).getDoctorName()!=null?master.get(0).getDoctorName():master.get(0).getNurseName()); + //送纸质病历者所在科室 + JSONArray powerUsers = powerUserService.getPowerUserList("1"); + List powerUserList= JSONArray.parseArray(powerUsers.toJSONString(), JSONObject.class); + ln:for (JSONObject jsonObjectNew : powerUserList) { + if(jsonObjectNew.getString("userName").equals(signList.getC2())){ + signList.setC3(jsonObjectNew.getString("deptId")); + break ln; + } + } + signList.setSysFlag(1); + signList.setMasterID(master.get(0).getId()); + signList.setPid(master.get(0).getPatientId()); + Subject currentUser = SecurityUtils.getSubject(); + Session session = currentUser.getSession(); + signList.setC1((String)session.getAttribute("userSession")); + signList.setC5("1"); + List returnList=signListService.selectSignListWith(signList); + signList.setId(IDHelper.NewID()); + signList.setCreatedtime(sdf.format(new Date())); + signList.setdTime(sdf.format(new Date())); + signList.setT1(sdf.format(new Date())); + signListService.insertSignList(signList); + result="签收成功"; + return result; + } + /* @ResponseBody @RequestMapping(value = "/signList") public OffsetLimitPage signList(HttpServletRequest request, HttpServletResponse response, Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) throws UnsupportedEncodingException { diff --git a/src/main/java/com/emr/dao/Archive_DetailMapper.java b/src/main/java/com/emr/dao/Archive_DetailMapper.java index 1259faf8..7ebfb510 100644 --- a/src/main/java/com/emr/dao/Archive_DetailMapper.java +++ b/src/main/java/com/emr/dao/Archive_DetailMapper.java @@ -91,6 +91,13 @@ public interface Archive_DetailMapper { */ List selectChild(Archive_Detail_Vo record); + /** + * 查询新生儿记录(非分页) + * @param record + * @return + */ + List selectChildList(Archive_Detail record); + /** * 根据可选字段查询记录 * @param record diff --git a/src/main/java/com/emr/dao/Emr_Fault_TypeMapper.java b/src/main/java/com/emr/dao/Emr_Fault_TypeMapper.java index a915b8d2..49e13aa9 100644 --- a/src/main/java/com/emr/dao/Emr_Fault_TypeMapper.java +++ b/src/main/java/com/emr/dao/Emr_Fault_TypeMapper.java @@ -32,7 +32,11 @@ public interface Emr_Fault_TypeMapper { * @return */ List selectByCol(Emr_Fault_Type record); - + /** + * 取id最大的那条数据 + * @return + */ + Emr_Fault_Type selectByColDesc(); /** * 根据可选字段修改记录 * @param record diff --git a/src/main/java/com/emr/entity/Archive_Master_Vo.java b/src/main/java/com/emr/entity/Archive_Master_Vo.java index 0ab2f8bf..0bf13b24 100644 --- a/src/main/java/com/emr/entity/Archive_Master_Vo.java +++ b/src/main/java/com/emr/entity/Archive_Master_Vo.java @@ -138,6 +138,17 @@ public class Archive_Master_Vo { private String endSignDate; + //科主任是否审核标志 + private String checkFlag; + + public String getCheckFlag() { + return checkFlag; + } + + public void setCheckFlag(String checkFlag) { + this.checkFlag = checkFlag; + } + public String getOverdueDays() { return overdueDays; } diff --git a/src/main/java/com/emr/entity/Sign_List_Vo.java b/src/main/java/com/emr/entity/Sign_List_Vo.java index 70eb21de..422dee61 100644 --- a/src/main/java/com/emr/entity/Sign_List_Vo.java +++ b/src/main/java/com/emr/entity/Sign_List_Vo.java @@ -96,6 +96,15 @@ public class Sign_List_Vo { */ private String dischargeDateTime; + /** + * 入院科室 + */ + private String deptAdmissionTo; + /** + * 入院时间 + */ + private String admissionDateTime; + /** * 是否有纸质病历送病案室 */ @@ -115,6 +124,22 @@ public class Sign_List_Vo { */ private String endSignDate; + public String getDeptAdmissionTo() { + return deptAdmissionTo; + } + + public void setDeptAdmissionTo(String deptAdmissionTo) { + this.deptAdmissionTo = deptAdmissionTo; + } + + public String getAdmissionDateTime() { + return admissionDateTime; + } + + public void setAdmissionDateTime(String admissionDateTime) { + this.admissionDateTime = admissionDateTime; + } + public String getNum() { return num; } diff --git a/src/main/java/com/emr/service/Archive_DetailService.java b/src/main/java/com/emr/service/Archive_DetailService.java index 5388c359..57acc5dd 100644 --- a/src/main/java/com/emr/service/Archive_DetailService.java +++ b/src/main/java/com/emr/service/Archive_DetailService.java @@ -40,6 +40,14 @@ public interface Archive_DetailService { */ OffsetLimitPage selectChild(Archive_Detail_Vo record, Integer offset, Integer limit); + /** + * 查询新生儿记录(非分页) + * + * @param record + * @return + */ + List selectChildList(Archive_Detail record); + /** * 根据条件查询分段详情列表分页 * diff --git a/src/main/java/com/emr/service/Emr_Fault_TypeService.java b/src/main/java/com/emr/service/Emr_Fault_TypeService.java index 99077ad2..1e9a4889 100644 --- a/src/main/java/com/emr/service/Emr_Fault_TypeService.java +++ b/src/main/java/com/emr/service/Emr_Fault_TypeService.java @@ -18,6 +18,12 @@ public interface Emr_Fault_TypeService { */ List selectByCol(Emr_Fault_Type record); + /** + * 取id最大的那条数据 + * @return + */ + Emr_Fault_Type selectByColDesc(); + /** * 根据条件修改缺陷类别信息 * diff --git a/src/main/java/com/emr/service/ipml/Archive_DetailServiceImpl.java b/src/main/java/com/emr/service/ipml/Archive_DetailServiceImpl.java index 6311961a..bf02b5ca 100644 --- a/src/main/java/com/emr/service/ipml/Archive_DetailServiceImpl.java +++ b/src/main/java/com/emr/service/ipml/Archive_DetailServiceImpl.java @@ -57,6 +57,12 @@ public class Archive_DetailServiceImpl implements Archive_DetailService { return new OffsetLimitPage((Page) list); } + @Override + public List selectChildList(Archive_Detail record) { + List list = archiveDetailMapper.selectChildList(record); + return list; + } + @Override public OffsetLimitPage detailByClo(Archive_Detail_Vo record, Integer offset, Integer limit) { PageHelper.offsetPage(offset, limit); diff --git a/src/main/java/com/emr/service/ipml/Emr_Fault_TypeServiceImpl.java b/src/main/java/com/emr/service/ipml/Emr_Fault_TypeServiceImpl.java index 2c35547e..e053276a 100644 --- a/src/main/java/com/emr/service/ipml/Emr_Fault_TypeServiceImpl.java +++ b/src/main/java/com/emr/service/ipml/Emr_Fault_TypeServiceImpl.java @@ -35,6 +35,11 @@ public class Emr_Fault_TypeServiceImpl implements Emr_Fault_TypeService { return emrFaultTypeMapper.insertClo(record); } + @Override + public Emr_Fault_Type selectByColDesc() { + return emrFaultTypeMapper.selectByColDesc(); + } + @Override public int delById(Integer id) { return emrFaultTypeMapper.delById(id); diff --git a/src/main/resources/mapper/Archive_DetailMapper.xml b/src/main/resources/mapper/Archive_DetailMapper.xml index 7708c137..f704a64a 100644 --- a/src/main/resources/mapper/Archive_DetailMapper.xml +++ b/src/main/resources/mapper/Archive_DetailMapper.xml @@ -87,6 +87,24 @@ + + + select - DISTINCT m.id, s.pid,s.createdtime, s.otherInfo, s.masterID, s.detailID, s.dTime,s.sysFlag, s.C1, s.C2, s.C3, s.C4, s.C5, s.N1, s.N2, s.N3, s.T1, - s.T2,s.T3,s.IsFullText,m.inp_no,m.visit_id,m.name,d.name as deptName,m.discharge_date_time,m.isscaned,(select COUNT(*) from archive_other where archive_other.pid=s.pid)as num + DISTINCT m.id,f.name dept_name,CONVERT(varchar(10),m.discharge_date_time, 120) discharge_date_time, s.pid,s.createdtime, s.otherInfo, s.masterID, s.detailID, s.dTime,s.sysFlag, s.C1, s.C2, s.C3, s.C4, s.C5, s.N1, s.N2, s.N3, s.T1, + s.T2,s.T3,s.IsFullText,m.inp_no,m.visit_id,m.name,CONVERT(varchar(10),m.admission_date_time, 120) admissionDateTime,d.name as deptAdmissionTo,m.isscaned,(select COUNT(*) from archive_other where archive_other.pid=s.pid)as num from archive_other s left join archive_master m on s.masterID=m.id LEFT JOIN emr_dictionary d on m.dept_admission_to=d.code + LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where + typeCode='dept_code' )) f + on m.dept_name=f.code where s.id in( (select top 1 id from archive_other a where a.pid=s.pid and a.masterID=s.masterID ORDER BY createdtime desc) ) diff --git a/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp b/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp index 04245b0c..34e5d989 100644 --- a/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp +++ b/src/main/webapp/WEB-INF/views/beHospitaledDir/beHospList.jsp @@ -666,6 +666,12 @@ 退回管理: +
+ 出院科室: +
+
+ 出院日期: +
跟踪管理: @@ -2168,6 +2174,7 @@ } //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfToPdf", type: "POST", @@ -2176,7 +2183,7 @@ if (result != "") { //绝对路径 var pdfPath = result; - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -2212,6 +2219,7 @@ //上传后预览pdf文件,根据id直接获取pdf并合成 //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfById", type: "POST", @@ -2221,7 +2229,7 @@ //绝对路径 var pdfPath = result; //console.log(result); - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -3980,6 +3988,8 @@ } $("#chargeLab").html(row.doctorInCharge); $("#deptToLab").html(row.deptAdmissionTo); + $("#outDeptToLab").html(row.deptName); + $("#outDeptDateLab").html(row.dischargeDateTime); $("#outHospLab").html(row.dischargeDisposition); $("#inLab").html(row.inpNo); $("#inTimeLab").html(row.visitId); diff --git a/src/main/webapp/WEB-INF/views/commitDir/commitList.jsp b/src/main/webapp/WEB-INF/views/commitDir/commitList.jsp index f56c576f..96b2d0b9 100644 --- a/src/main/webapp/WEB-INF/views/commitDir/commitList.jsp +++ b/src/main/webapp/WEB-INF/views/commitDir/commitList.jsp @@ -647,6 +647,10 @@
入院日期:
+
+ 初审管理: + +
退回管理: @@ -655,9 +659,11 @@ <%--退回管理:--%> <%----%> <%--
--%> -
- 初审管理: - +
+ 出院科室: +
+
+ 出院日期:
跟踪管理: @@ -2005,6 +2011,7 @@ //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfToPdf", type: "POST", @@ -2014,11 +2021,11 @@ //location.href = //var pdfPath = result; if ($("#currState").val() == "归档中") { - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + result); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + result+"?titleName="+titleName); } else { var archiveDetailId = $("#idLab").html(); //var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result; - newWindow.location.href = "${path}/pdfCtr/pdfDir?roleVal=" + encodeURI(1) + "&archiveDetailId=" + encodeURI(archiveDetailId) + "&pdfPath=" + encodeURI(result); + newWindow.location.href = "${path}/pdfCtr/pdfDir?roleVal=" + encodeURI(1) + "&archiveDetailId=" + encodeURI(archiveDetailId) + "&pdfPath=" + encodeURI(result)+"&titleName="+encodeURI(titleName); } //newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); @@ -2057,6 +2064,7 @@ //上传后预览pdf文件,根据id直接获取pdf并合成 //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfById", type: "POST", @@ -2066,7 +2074,7 @@ //var pdfPath = result; //newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); var archiveDetailId = $("#idLab").html(); - newWindow.location.href = "${path}/pdfCtr/pdfDir?roleVal=" + encodeURI(1) + "&archiveDetailId=" + encodeURI(archiveDetailId) + "&pdfPath=" + encodeURI(result); + newWindow.location.href = "${path}/pdfCtr/pdfDir?roleVal=" + encodeURI(1) + "&archiveDetailId=" + encodeURI(archiveDetailId) + "&pdfPath=" + encodeURI(result) + "&titleName=" + encodeURI(titleName); <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -3687,6 +3695,8 @@ } $("#chargeLab").html(row.doctorInCharge); $("#deptToLab").html(row.deptAdmissionTo); + $("#outDeptToLab").html(row.deptName); + $("#outDeptDateLab").html(row.dischargeDateTime); $("#outHospLab").html(row.dischargeDisposition); $("#inLab").html(row.inpNo); $("#inTimeLab").html(row.visitId); diff --git a/src/main/webapp/WEB-INF/views/inHospitalDir/inHositalList.jsp b/src/main/webapp/WEB-INF/views/inHospitalDir/inHositalList.jsp index b6135d2c..4c745cf6 100644 --- a/src/main/webapp/WEB-INF/views/inHospitalDir/inHositalList.jsp +++ b/src/main/webapp/WEB-INF/views/inHospitalDir/inHositalList.jsp @@ -558,6 +558,12 @@
入院日期:
+
+ 出院科室: +
+
+ 出院日期: +
<%--
--%> <%--完整性审核:--%> <%--
--%> @@ -1788,6 +1794,7 @@ } //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfToPdf", type: "POST", @@ -1799,7 +1806,7 @@ //var pdfPath = "C:/Users/Administrator/Desktop/测试/123.pdf"; //encodeURIComponent()处理http请求,进行转化 //pdfStreamHandeler 为 @RequestMapping(value = "/pdfStreamHandeler")方法名 - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); //var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result; // $('#pdfModal').modal({ @@ -1849,6 +1856,7 @@ //上传后预览pdf文件,根据id直接获取pdf并合成 //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfById", type: "POST", @@ -1862,7 +1870,7 @@ //var pdfPath = "C:/Users/Administrator/Desktop/测试/123.pdf"; //encodeURIComponent()处理http请求,进行转化 //pdfStreamHandeler 为 @RequestMapping(value = "/pdfStreamHandeler")方法名 - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); //var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result; @@ -2588,6 +2596,8 @@ } $("#chargeLab").html(row.doctorInCharge); $("#deptToLab").html(row.deptAdmissionTo); + $("#outDeptToLab").html(row.deptName); + $("#outDeptDateLab").html(row.dischargeDateTime); $("#outHospLab").html(row.dischargeDisposition); $("#inLab").html(row.inpNo); diff --git a/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp b/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp index d5ca8a65..fff57068 100644 --- a/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp +++ b/src/main/webapp/WEB-INF/views/lastVerifyDir/lastVerifyList.jsp @@ -575,13 +575,19 @@
入院日期:
+
+ 初审管理: + +
缺陷管理:
-
- 初审管理: - +
+ 出院科室: +
+
+ 出院日期:
跟踪管理: @@ -1959,6 +1965,7 @@ } //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfToPdf", type: "POST", @@ -1969,7 +1976,7 @@ //var pdfPath = result; //newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); var archiveDetailId = $("#idLab").html(); - newWindow.location.href = "${path}/pdfCtr/pdfLastDir?archiveDetailId=" + encodeURI(archiveDetailId) + "&isscanedVal=" + encodeURI(isscanedVal)+ "&isSignVal=" + encodeURI(isSignVal)+ "&pdfPath=" + encodeURI(result); + newWindow.location.href = "${path}/pdfCtr/pdfLastDir?archiveDetailId=" + encodeURI(archiveDetailId) + "&isscanedVal=" + encodeURI(isscanedVal)+ "&isSignVal=" + encodeURI(isSignVal)+ "&pdfPath=" + encodeURI(result)+"&titleName="+encodeURI(titleName); <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -2006,6 +2013,7 @@ //上传后预览pdf文件,根据id直接获取pdf并合成 //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfById", type: "POST", @@ -2017,7 +2025,7 @@ // var pdfPath = result; //newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); var archiveDetailId = $("#idLab").html(); - newWindow.location.href = "${path}/pdfCtr/pdfLastDir?roleVal=" + encodeURI(2) + "&archiveDetailId=" + encodeURI(archiveDetailId) + "&isscanedVal=" + encodeURI(isscanedVal)+ "&isSignVal=" + encodeURI(isSignVal)+ "&pdfPath=" + encodeURI(result); + newWindow.location.href = "${path}/pdfCtr/pdfLastDir?roleVal=" + encodeURI(2) + "&archiveDetailId=" + encodeURI(archiveDetailId) + "&isscanedVal=" + encodeURI(isscanedVal)+ "&isSignVal=" + encodeURI(isSignVal)+ "&pdfPath=" + encodeURI(result)+"&titleName="+encodeURI(titleName); //相对路径 <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%> @@ -3457,7 +3465,7 @@ if (value == "1") { showVal="已签收"; colorVal="#030378;"; - }else if (value == "0") { + }else if (value == "2") { showVal="未签收"; colorVal="#c0c0c0;"; }else { @@ -3725,6 +3733,8 @@ } $("#chargeLab").html(row.doctorInCharge); $("#deptToLab").html(row.deptAdmissionTo); + $("#outDeptToLab").html(row.deptName); + $("#outDeptDateLab").html(row.dischargeDateTime); $("#outHospLab").html(row.dischargeDisposition); $("#inLab").html(row.inpNo); $("#patientId").html(row.patientId); diff --git a/src/main/webapp/WEB-INF/views/medicalHandlerDir/medicalHandlerList.jsp b/src/main/webapp/WEB-INF/views/medicalHandlerDir/medicalHandlerList.jsp index 69cf88f5..5566e0d1 100644 --- a/src/main/webapp/WEB-INF/views/medicalHandlerDir/medicalHandlerList.jsp +++ b/src/main/webapp/WEB-INF/views/medicalHandlerDir/medicalHandlerList.jsp @@ -447,6 +447,10 @@
入院日期:
+
+ 初审管理: + +
退回管理: @@ -454,9 +458,11 @@ <%--
--%> <%--完整性审核:--%> <%--
--%> -
- 初审管理: - +
+ 出院科室: +
+
+ 出院日期:
跟踪管理: @@ -1630,6 +1636,7 @@ } //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfToPdf", type: "POST", @@ -1638,7 +1645,7 @@ if (result != "") { //绝对路径 var archiveDetailId = $("#idLab").html(); - newWindow.location.href = "${path}/pdfCtr/pdfLastDir?archiveDetailId=" + encodeURI(archiveDetailId) + "&pdfPath=" + encodeURI(result)+"&type=1"; + newWindow.location.href = "${path}/pdfCtr/pdfLastDir?archiveDetailId=" + encodeURI(archiveDetailId) + "&pdfPath=" + encodeURI(result)+"&type=1"+"&titleName="+encodeURI(titleName); //相对路径 <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -1675,6 +1682,7 @@ //上传后预览pdf文件,根据id直接获取pdf并合成 //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfById", type: "POST", @@ -1683,7 +1691,7 @@ if (result != "") { //绝对路径 var pdfPath = result; - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); //相对路径 <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -2280,6 +2288,8 @@ $("#inDateLab").html(row.admissionDateTime.substring(0, 10)); $("#chargeLab").html(row.doctorInCharge); $("#deptToLab").html(row.deptAdmissionTo); + $("#outDeptToLab").html(row.deptName); + $("#outDeptDateLab").html(row.admissionDateTime.substring(0, 10)); $("#outHospLab").html(row.dischargeDisposition); $("#inLab").html(row.inpNo); $("#inTimeLab").html(row.visitId); diff --git a/src/main/webapp/WEB-INF/views/medicalOverdueDir/medicalOverdueList.jsp b/src/main/webapp/WEB-INF/views/medicalOverdueDir/medicalOverdueList.jsp index 654819d5..919b3ab9 100644 --- a/src/main/webapp/WEB-INF/views/medicalOverdueDir/medicalOverdueList.jsp +++ b/src/main/webapp/WEB-INF/views/medicalOverdueDir/medicalOverdueList.jsp @@ -371,6 +371,12 @@ 退回管理:
+
+ 出院科室: +
+
+ 出院日期: +
<%--
--%> <%--完整性审核:--%> <%--
--%> @@ -1507,6 +1513,7 @@ } //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfToPdf", type: "POST", @@ -1515,7 +1522,7 @@ if (result != "") { //绝对路径 var pdfPath = result; - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); //相对路径 <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -1549,6 +1556,7 @@ //上传后预览pdf文件,根据id直接获取pdf并合成 //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfById", type: "POST", @@ -1557,7 +1565,7 @@ if (result != "") { //绝对路径 var pdfPath = result; - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); //相对路径 <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> diff --git a/src/main/webapp/WEB-INF/views/pdfDir/pdfDir.jsp b/src/main/webapp/WEB-INF/views/pdfDir/pdfDir.jsp index 623d0538..a35b39ea 100644 --- a/src/main/webapp/WEB-INF/views/pdfDir/pdfDir.jsp +++ b/src/main/webapp/WEB-INF/views/pdfDir/pdfDir.jsp @@ -452,6 +452,8 @@ //病案号 //var archiveDetailId="1333ad3c4d6448c89372835dbad3c364"; var archiveDetailId = GetQueryString("archiveDetailId"); + //页面标题title + document.title = decodeURIComponent(GetQueryString("titleName")) ; //1主任还是2病案室 var roleVal = 1; //自动生成PDF的路径 diff --git a/src/main/webapp/WEB-INF/views/pdfDir/pdfLastDir.jsp b/src/main/webapp/WEB-INF/views/pdfDir/pdfLastDir.jsp index af025264..0fc8eb17 100644 --- a/src/main/webapp/WEB-INF/views/pdfDir/pdfLastDir.jsp +++ b/src/main/webapp/WEB-INF/views/pdfDir/pdfLastDir.jsp @@ -373,6 +373,7 @@ var pdfPath = GetQueryString("pdfPath"); var isSignVal = GetQueryString("isSignVal"); var isscanedVal = GetQueryString("isscanedVal"); + document.title = decodeURIComponent(GetQueryString("titleName")) ; //自定义id var definedId; //判断归档状态 diff --git a/src/main/webapp/WEB-INF/views/signListDir/signList.jsp b/src/main/webapp/WEB-INF/views/signListDir/signList.jsp index 7d485b88..d7be9e5d 100644 --- a/src/main/webapp/WEB-INF/views/signListDir/signList.jsp +++ b/src/main/webapp/WEB-INF/views/signListDir/signList.jsp @@ -542,6 +542,12 @@
入院日期:
+
+ 出院科室: +
+
+ 出院日期: +
缺陷管理: @@ -1333,12 +1339,12 @@ - +
@@ -1925,6 +1931,7 @@ } //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfToPdf", type: "POST", @@ -1935,7 +1942,7 @@ //var pdfPath = result; //newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); var archiveDetailId = $("#idLab").html(); - newWindow.location.href = "${path}/pdfCtr/pdfLastDir?archiveDetailId=" + encodeURI(archiveDetailId) + "&isscanedVal=" + encodeURI(isscanedVal)+ "&isSignVal=" + encodeURI(isSignVal)+ "&pdfPath=" + encodeURI(result); + newWindow.location.href = "${path}/pdfCtr/pdfLastDir?archiveDetailId=" + encodeURI(archiveDetailId) + "&isscanedVal=" + encodeURI(isscanedVal)+ "&isSignVal=" + encodeURI(isSignVal)+ "&pdfPath=" + encodeURI(result)+"&titleName="+encodeURI(titleName); <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -1972,6 +1979,7 @@ //上传后预览pdf文件,根据id直接获取pdf并合成 //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfById", type: "POST", @@ -1983,7 +1991,7 @@ // var pdfPath = result; //newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); var archiveDetailId = $("#idLab").html(); - newWindow.location.href = "${path}/pdfCtr/pdfLastDir?roleVal=" + encodeURI(2) + "&archiveDetailId=" + encodeURI(archiveDetailId) + "&isscanedVal=" + encodeURI(isscanedVal)+ "&isSignVal=" + encodeURI(isSignVal)+ "&pdfPath=" + encodeURI(result); + newWindow.location.href = "${path}/pdfCtr/pdfLastDir?roleVal=" + encodeURI(2) + "&archiveDetailId=" + encodeURI(archiveDetailId) + "&isscanedVal=" + encodeURI(isscanedVal)+ "&isSignVal=" + encodeURI(isSignVal)+ "&pdfPath=" + encodeURI(result)+"&titleName="+encodeURI(titleName); //相对路径 <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%> @@ -2158,23 +2166,22 @@ }); function verinfyFun(){ - //审核信息保存 - var archiveDetailId = $("#archiveId").val(); - var firstTrial = $("#verifyText").val(); - if (firstTrial.length > 255) { - toastr.warning("内容长度不超过255!"); - return; - } - var state = "已归档"; + //强制签收 + var signVal= $('#archiveIdSign').val(); + signVal=signVal.trim(); + var signArr=signVal.split("-"); + var inpNo=signArr[0]; + var visitId=signArr[1]; //归档状态改为初审还是有就是初审内容保存 $.ajax({ - url: "${path}/lastVerify/updateStateByArchivId", + url: "${path}/signList/addSignListForce", type: "POST", - data: {archiveDetailId: archiveDetailId, firstTrial: firstTrial, state: state}, + data: {inpNo:inpNo, visitId: visitId}, success: function (result) { - $("#verifyModal").modal('hide'); - $("#table").bootstrapTable("refresh"); - toastr.success("终审操作成功!"); + $('#table').bootstrapTable('refresh'); + toastr.success(result); + }, error: function () { + toastr.error("操作失败!"); } }); } @@ -2197,6 +2204,7 @@ $("#verinfyQZBtn").on('click', function () { //有纸质且未签收,强制提交 verinfyFun(); + $('#archiveIdSign').val(''); $("#verinfyQZModal").modal('hide'); }); @@ -3413,6 +3421,8 @@ } $("#chargeLab").html(row.doctorInCharge); $("#deptToLab").html(row.deptAdmissionTo); + $("#outDeptToLab").html(row.deptName); + $("#outDeptDateLab").html(row.dischargeDateTime); $("#outHospLab").html(row.dischargeDisposition); $("#inLab").html(row.inpNo); $("#inTimeLab").html(row.visitId); @@ -3461,7 +3471,8 @@ var isSign=0; if(inpNo!=null && inpNo!="" && inpNo!=undefined && inpNo!="undefined" && visitId!=null && visitId!="" && inpNo!=undefined && visitId!="undefined"){ - updateSignStateFun(inpNo,visitId,isSign); + + //updateSignStateFun(inpNo,visitId,isSign); }else{ toastr.warning("签收值格式应为:住院号-住院次数!"); } @@ -3962,6 +3973,13 @@ //刷新 $('#table').bootstrapTable('refresh'); toastr.success(result); + }else if(result.indexOf("该病历归档医生或护士尚未提交")!=-1){ + //弹窗是否强制提交 + $('#verinfyQZModal').modal({ + backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。 + keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。 + show: true//弹出对话框 + }); } else { toastr.warning(result); } @@ -4015,7 +4033,7 @@ var inpNo=signArr[0]; var visitId=signArr[1]; var isSign=0; - updateSignStateFun(inpNo,visitId,isSign); + //updateSignStateFun(inpNo,visitId,isSign); $('#archiveIdSign').val(''); }else{ toastr.warning("签收值格式应为:住院号-住院次数"); diff --git a/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp b/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp index b9010f47..ae86863c 100644 --- a/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp +++ b/src/main/webapp/WEB-INF/views/unfileMedicalDir/unfileMedicalList.jsp @@ -675,6 +675,12 @@ 初审管理:
+
+ 出院科室: +
+
+ 出院日期: +
跟踪管理: @@ -2001,6 +2007,7 @@ } //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfToPdf", type: "POST", @@ -2009,7 +2016,7 @@ if (result != "") { //绝对路径 var pdfPath = result; - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); //相对路径 <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -2046,6 +2053,7 @@ //上传后预览pdf文件,根据id直接获取pdf并合成 //打开一个不被拦截的新窗口 var newWindow = window.open(); + var titleName=document.getElementById("nameLab").innerText; $.ajax({ url: "${path}/inHosp/getPdfById", type: "POST", @@ -2054,7 +2062,7 @@ if (result != "") { //绝对路径 var pdfPath = result; - newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath); + newWindow.location.href = "${path}/static/pdfjs/web/viewer.html?file=" + encodeURIComponent("${path}/inHosp/pdfStreamHandeler?url=" + pdfPath+"?titleName="+titleName); //相对路径 <%--var pdfUrl = "${path}/static/pdfjs/web/viewer.html?file=../../../static/img/pdfFiles/typesPdf/" + result;//+ result;--%> <%--newWindow.location.href = pdfUrl;--%> @@ -3318,6 +3326,20 @@ return result; } }, + { + title: '科主任是否审核', + field: 'checkFlag', + align: 'center', + formatter: function (value, row, index) { + var a = ""; + if (value == 0) { + a = '已审核'; + } else { + a = '未审核'; + } + return a; + } + }, { title: '状态', field: 'archivestate', @@ -3422,8 +3444,12 @@ if (row.admissionDateTime != null && row.admissionDateTime != '') { $("#inDateLab").html(row.admissionDateTime.substring(0, 10)); } + if (row.dischargeDateTime != null && row.dischargeDateTime != '') { + $("#outDeptDateLab").html(row.dischargeDateTime.substring(0, 10)); + } $("#chargeLab").html(row.doctorInCharge); $("#deptToLab").html(row.deptAdmissionTo); + $("#outDeptToLab").html(row.deptName); $("#outHospLab").html(row.dischargeDisposition); $("#inLab").html(row.inpNo); $("#inTimeLab").html(row.visitId); diff --git a/src/main/webapp/static/pdfjs/web/viewer.html b/src/main/webapp/static/pdfjs/web/viewer.html index 34160464..d1d2ba62 100644 --- a/src/main/webapp/static/pdfjs/web/viewer.html +++ b/src/main/webapp/static/pdfjs/web/viewer.html @@ -22,7 +22,6 @@ http://sourceforge.net/adobe/cmap/wiki/License/ - PDF.js viewer @@ -39,6 +38,18 @@ http://sourceforge.net/adobe/cmap/wiki/License/ + @@ -413,7 +424,6 @@ http://sourceforge.net/adobe/cmap/wiki/License/
diff --git a/src/main/webapp/static/pdfjs/web/viewer.js b/src/main/webapp/static/pdfjs/web/viewer.js index 5253185a..295dbbaa 100644 --- a/src/main/webapp/static/pdfjs/web/viewer.js +++ b/src/main/webapp/static/pdfjs/web/viewer.js @@ -5960,7 +5960,9 @@ var PDFViewerApplication = { setTitleUsingUrl: function pdfViewSetTitleUsingUrl(url) { this.url = url; try { - this.setTitle(decodeURIComponent(getFileName(url)) || url); + var titleTmp = (TITLE == '' || TITLE == undefined) ? + (decodeURIComponent(pdfjsLib.getFilenameFromUrl(url)) || url) : TITLE; + this.setTitle(titleTmp); } catch (e) { // decodeURIComponent may throw URIError, // fall back to using the unprocessed url in that case