改动所有界面样式和BUG

master
hujl 4 years ago
parent efc606e030
commit 3942f76e84

@ -123,7 +123,7 @@ public class VCountController {
String tableThNames = "名字,入院科室,入院日期,出院科室,出院日期,主管医生";
String fieldCns = "name,deptAdmissionTo,admissionDateTime,deptName,dischargeDateTime,doctorInCharge";
//构造excel的数据
List<Archive_Master> list = archiveMasterService.selectByUnfile2(archiveMasterVo);
List<Archive_Master> list = archiveMasterService.selectByUnfile(archiveMasterVo);
Emr_Dictionary dic = new Emr_Dictionary();
dic.setEffective(1);
dic.setTypecode("dept_code");

@ -86,7 +86,7 @@ public class beHospitaledController {
String tableThNames = "病历清单id,住院号,住院次数,名字,性别,身份证,出院科室,出院日期,主管医生,状态,医生是否提交,医生,医生提交日期,护士是否提交,护士,护士提交日期,电子病历医生提交,电子病历护士提交,是否死亡";
String fieldCns = "id,inpNo,visitId,name,sex,idNo,deptName,dischargeDateTime,doctorInCharge,archivestate,cmtDoctor,doctorName,cmtDoctorDate,cmtNurse,nurseName,cmtDurseDate,emrDoctorCmt,emrNureCmt,deathFlag";
//构造excel的数据beHospList
List<Archive_Master> list = archiveMasterService.selectByColumn(archiveMasterVo);
List<Archive_Master_Vo> list = archiveMasterService.selectByColumn(archiveMasterVo);
//文件名

@ -17,12 +17,13 @@ public interface Archive_MasterMapper {
List<Archive_Master> selectByCol(Archive_Master_Vo record);
List<Archive_Master> selectByColumn(Archive_Master_Vo record);
List<Archive_Master_Vo> selectByColumn(Archive_Master_Vo record);
List<Archive_Master_Vo> selectByLast(Archive_Master_Vo record);
List<Archive_Master> selectByUnfile(Archive_Master_Vo record);
List<Archive_Master> selectByUnfile2(Archive_Master_Vo record);
//List<Archive_Master> selectByUnfile2(Archive_Master_Vo record);
/**
* 7
* @param record

@ -121,6 +121,8 @@ public class Archive_Master_Vo {
private String overdueDays;
private int numb;
public String getOverdueDays() {
return overdueDays;
}
@ -550,6 +552,13 @@ public class Archive_Master_Vo {
this.bedNumber = bedNumber;
}
public int getNumb() {
return numb;
}
public void setNumb(int numb) {
this.numb = numb;
}
}

@ -47,7 +47,7 @@ public interface Archive_MasterService {
* @param archiveMasterVo
* @return
*/
List<Archive_Master> selectByColumn(Archive_Master_Vo archiveMasterVo);
List<Archive_Master_Vo> selectByColumn(Archive_Master_Vo archiveMasterVo);
/**
@ -63,7 +63,7 @@ public interface Archive_MasterService {
* @param archiveMasterVo
* @return
*/
List<Archive_Master> selectByUnfile2(Archive_Master_Vo archiveMasterVo);
//List<Archive_Master> selectByUnfile2(Archive_Master_Vo archiveMasterVo);
/**
* 7
* @param record

@ -84,7 +84,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
}
@Override
public List<Archive_Master> selectByColumn(Archive_Master_Vo archiveMasterVo) {
public List<Archive_Master_Vo> selectByColumn(Archive_Master_Vo archiveMasterVo) {
return archiveMasterMapper.selectByColumn(archiveMasterVo);
}
@ -93,10 +93,10 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
return archiveMasterMapper.selectByUnfile(archiveMasterVo);
}
@Override
/* @Override
public List<Archive_Master> selectByUnfile2(Archive_Master_Vo archiveMasterVo) {
return archiveMasterMapper.selectByUnfile2(archiveMasterVo);
}
}*/
@Override
public List<Archive_Master> sel7DayByCol(Archive_Master_Vo archiveMasterVo) {
@ -116,7 +116,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
@Override
public OffsetLimitPage selectByColumn(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
List<Archive_Master> list = archiveMasterMapper.selectByColumn(archiveMasterVo);
List<Archive_Master_Vo> list = archiveMasterMapper.selectByColumn(archiveMasterVo);
JSONArray powerUsers = powerUserService.getPowerUserList("1");
List<JSONObject> powerUserList = JSONArray.parseArray(powerUsers.toJSONString(), JSONObject.class);
@ -127,8 +127,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
return temp.getString("userName");
}});
for (Archive_Master archive_master : list) {
for (Archive_Master_Vo archive_master : list) {
JSONObject userInfo = mappedMovies.get(archive_master.getDoctorName());
if (userInfo==null){
archive_master.setDoctorName(archive_master.getDoctorName());

@ -42,7 +42,8 @@ HomepageDictionary=http://127.0.0.1:9999/WholeCheckInterface/services/HomepageDi
HomepageMethod=CheckData
powerGetUserList=http://127.0.0.1:9999/power/font/getUserList?userName=admin
allAddortIds = 00000000
pdfWater = \u5e7f\u4e1c\u533b\u79d1\u5927\u5b66\u9644\u5c5e\u533b\u9662

@ -86,6 +86,7 @@
<result column="overdue" jdbcType="NVARCHAR" property="overdue"/>
<result column="create_time" jdbcType="NVARCHAR" property="createTime"/>
<result column="score" jdbcType="NVARCHAR" property="score"/>
<result column="numb" jdbcType="INTEGER" property="numb"/>
</resultMap>
<sql id="Base_Column_List">
id, patient_id, inp_no, visit_id, name, sex, dept_name, discharge_date_time, ArchiveState,
@ -216,11 +217,11 @@
</if>
ORDER BY m.admission_date_time desc
</select>
<select id="selectByColumn" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap">
<select id="selectByColumn" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap2">
select m.id,m.patient_id,m.inp_no,m.visit_id,m.name,m.sex,f.name
dept_name,CONVERT(varchar(10),m.discharge_date_time, 120) discharge_date_time,m.ArchiveState,CONVERT(varchar(10),m.admission_date_time, 120) admission_date_time,d.name dept_admission_to
,m.check_doctor,m.checked_datetime,m.checked_doctor,m.LockInfo,m.DOCTOR_IN_CHARGE,m.ID_NO,m.DISCHARGE_DISPOSITION,m.dept_code_lend,m.isscaned,m.is_scanning,
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,m.bed_number,ISNULL(s.bedNumber, 0) bedNumber
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,m.bed_number,ISNULL(s.numb, 0) numb
from archive_master m
LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where
typeCode='dept_code' )) d
@ -228,7 +229,7 @@
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
LEFT JOIN(select archive_detail_id,count(*) bedNumber from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1 and ArchiveState in('归档中','提交','主任退回')
<if test="emrCmit!=null and emrCmit!=''">
@ -465,7 +466,10 @@
and m.name like '%'+#{name,jdbcType=NCHAR}+'%'
</if>
<if test="archivestate != null and archivestate != ''">
and m.ArchiveState in(#{archivestate,jdbcType=NVARCHAR})
and m.ArchiveState in
<foreach item="item" collection="archivestate.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="idNo != null and idNo != ''">
and m.ID_NO like '%'+#{idNo,jdbcType=NCHAR}+'%'
@ -486,7 +490,7 @@
</foreach>
</if>
<!--<if test="deptAdmissionTo != null and deptAdmissionTo!=''">-->
<!--and m.dept_admission_to = #{deptAdmissionTo,jdbcType=NVARCHAR}-->
<!--and m.dept_admission_to = #{deptAdmissionTo,jdbcType=NVARCHAR}-->
<!--</if>-->
<if test="dischargeDateTime != null">
and m.discharge_date_time = #{dischargeDateTime,jdbcType=NVARCHAR}

File diff suppressed because it is too large Load Diff

@ -52,14 +52,13 @@
}
.modal-content {
width: 165%; /*width: 1300px;*/
width: calc(210%); /*width: 1300px;*/
overflow-x: hidden;
overflow-y: auto;
}
.modal {
margin-left: -39%;
margin-left: -45%;
overflow-x: auto;
/*z-index: 1049;*/
}
@ -69,6 +68,16 @@
width: 97.5%;
margin-top: 10px;
margin-bottom: 5px;
color: blue;
margin-left: 20px;
}
#wzContent {
margin-left: 30px;
margin-right: 30px;
/*height: 60px;*/
overflow-x: hidden;
overflow-y: hidden;
}
.labCss {
@ -87,15 +96,84 @@
margin-bottom: 10px;
}
.treeBtn1 {
margin-top: 10px;
margin-right: 10px;
width: 42%;
}
.treeBtn {
margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
width: 42%;
}
#key {
width: 70%;
!important;
}
#searchBtn1 {
width: 20%;
!important;
}
.zTreeDemo {
height: auto;
min-height: 350px;
margin-left: -10px;
}
.toolbarCss {
margin-right: 20px;
margin-bottom: 0px;
!important;
}
.fixed-table-toolbar .bs-bars .pull-right{
height: 20px;
!important;
}
#maxImg > div > div {
width: calc(210%);
}
#delPdfPageModal .modal-header2 {
width: calc(210%); /*margin-left:-15%;*/
}
#delPdfPageModal .modal-content {
width: calc(210%); /*margin-left:-15%;*/
height: calc(100vh - 100px);
overflow: hidden;
!important;
}
#infoDiv {
width: 18%;
height: 98%;
float: right;
overflow-y: hidden;
overflow-x: hidden;
}
#pdf_page {
width: 100%;
height: 94%;
!important;
}
#imglist {
text-align: center;
margin-left: 0px;
margin-bottom: 5px;
width: 98%;
height: 80%;
overflow-y: auto;
overflow-x: hidden;
}
.divCss5 {
@ -156,26 +234,26 @@
}
#returnModal .modal-content {
margin-left: 30%;
margin-top: 35%;
margin-left: 50%;
margin-top: 10%;
width: 120%;
}
#firstModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-top: 10%;
width: 100%;
}
#verifyModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-top: 10%;
width: 100%;
}
#WZModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-top: 10%;
width: 80%;
}
@ -188,7 +266,7 @@
#timeLineModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-top: 10%;
width: 100%;
}
@ -223,39 +301,42 @@
/*border-color: #3c8dbc;*/
/*}*/
.showDelDiv{
margin-left: 0px;
border: 1px solid #e5e5e5;
width: 90%;
margin-bottom: 5px;
}
.showImg2 {
margin-left: 2%;
margin-bottom: 2px;
width:95%;
height: 200px;
}
.imglist{
margin-left: 15px;
margin-bottom: 5px;
width: 90%;
height: 200px;
}
.returnPageCls{
margin-right: 2px;
}
#addDelDiv{
width: 85%;
#addDelDiv {
width: 81%;
background-color: #0b93d5;
text-align: center;
color: red;
}
#delAllImgBtn{
width: 35%;
}
#addPdfPageBtn{
width: 40%;
}
#delImgPageModalCss{
margin-left: 20%;
#delImgPageModal > div > div {
width: 70%;
margin-left: 55%;
margin-top: 20%;
}
</style>
</head>
@ -286,7 +367,7 @@
<label for="name">身份证号:</label>
<input type="text" class="input-sm form-control" id="idNo" placeholder="请输入身份证号">
</div>
<div class="form-group divCss8" id="deptDiv" style="height: 18px;margin-top: -7px;">
<div class="form-group divCss8" id="deptDiv">
<label>出院科室:</label>
<%--<select class="input-sm form-control" id="deptName">--%>
<%--<option value="">全部</option>--%>
@ -302,7 +383,7 @@
<option value="">全部</option>
</select>
</div>
<div class="form-group divCss">
<div class="form-group divCss8">
<label>出院日期:</label>
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control" name="start" id="startDateTo"/>
@ -310,7 +391,7 @@
<input type="text" class="input-sm form-control" name="end" id="endDateTo"/>
</div>
</div>
<div class="form-group divCss2">
<div class="form-group divCss8">
<label for="archivestate">归档状态:</label>
<select class="input-sm form-control" id="archivestate">
<option value="">全部</option>
@ -382,7 +463,7 @@
<!--数据表格-->
<table id="table4" class="table text-nowrap table-striped"></table>
<div id="toolbar4" class="btn-group pull-right" style="margin-right: 20px;">
<div class="columns columns-right btn-group pull-right">
<div class="columns columns-right btn-group pull-right" style="margin-top:0px;">
<div class="btn-group btn-info">
<select id="sel_exportoption4" class="form-control">                
<option value="">导出当前页面数据</option>                
@ -521,36 +602,20 @@
<button type="button" class="btn btn-info btn-sm" id="getTimeline">跟踪查看</button>
</div>
</div>
<div class="row divCss2">
<%--<div class="col-sm-4">--%>
<%--离院方式:<label id="outHospLab" class="labCss"></label>--%>
<%--</div>--%>
<%--<div class="col-sm-5">--%>
<%--主管医生:<label id="chargeLab" class="labCss"></label>--%>
<%--</div>--%>
<div class="col-sm-2">
完整性审核:
</div>
<div class="col-sm-10" style="margin-left: -70px" id="wzContent">
地三生三世所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所
</div>
</div>
<div class="row divCss4">完整性审核</div>
<div id="wzContent"></div>
</div>
<div class="divCss4"></div>
<div class="row">
<div class="row divCss3 ">病历清单</div>
<%--<div class="row divCss3 ">病历清单</div>--%>
<div class="col-sm-3 divCss2">
<div class="row titleCss"></div>
<div class="row">
<div class="col-sm-9">
<input type="text" id="key" value="" class="input-sm form-control empty"
placeholder="分段名称"/>
</div>
<div class="row form-inline">
<input type="text" id="key" value="" class="input-sm form-control empty" placeholder="分段名称"/>
<button type="button" class="btn btn-primary btn-sm" id="searchBtn1">查询</button>
</div>
<div class="row">
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="expandAll();">
<button type="button" class="btn btn-success btn-sm treeBtn1" onclick="expandAll();">
全部展开
</button>
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="collapseAll();">
@ -566,7 +631,6 @@
</div>
<div class="col-sm-8 divCss5">
<div class="row btnGroupCss">
<button type="button" class="btn btn-danger btn-sm" id="addPdfBtn">添加pdf</button>
<button type="button" class="btn btn-default btn-sm" id="uploadBtn">上传文件</button>
<button type="button" class="btn btn-info btn-sm" id="pdfBtn">查看分段PDF</button>
@ -575,12 +639,11 @@
<button type="button" class="btn btn-warning btn-sm" id="updateStateBtn">选中作废</button>
<button type="button" class="btn btn-primary btn-sm" id="updateStateBtn2">选中使用</button>
</div>
<div class="row">
<!--数据表格-->
<table id="table2" class="table text-nowrap table-striped"></table>
<div id="toolbar2" class="btn-group pull-left" style="margin-right: 20px;">
<div class="columns columns-left btn-group pull-left">
<div id="toolbar2" class="btn-group pull-left toolbarCss" >
<div class="columns columns-left btn-group pull-left" style="margin-bottom:-5px;">
<input type="checkbox" id="flag" value="1" style="margin-left: 20px;">只显示作废</input>
<%--<button class=" btn btn-success btn-sm" style="height: 34px" type="button"--%>
<%--id="refreshBtn2" name="refresh" aria-label="Refresh"--%>
@ -794,7 +857,7 @@
<%--发大弹窗--%>
<div class="modal fade" id="maxImg" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-header2" style="width: 165%">
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
</div>
@ -897,7 +960,7 @@
<span style="vertical-align:top;">医生备注:</span>
<textarea id="doctorText" rows="5" style="width:95%;" disabled></textarea>
</div>
<div class="row divCss2">
<div class="row ">
<input type="checkbox" id="isScanedChk1" />归档病历已全部无纸化无扫描件
</div>
</div>
@ -1061,20 +1124,20 @@
<%--删除pdf某页弹窗--%>
<div class="modal fade" id="delPdfPageModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content " style="width:220%;margin-left:-15%;">
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">PDF页信息</h4>
</div>
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">PDF页信息</h4>
</div>
<div class="modal-content">
<div class="modal-body divCss2" id="delPdfBody">
<div class="row form-inline">
<div style="width: 80%;float:left;" id="pdfDiv">
<iframe id="pdf_page" name="pdf_page" style="width:100%;height:100%;"></iframe>
<iframe id="pdf_page" name="pdf_page"></iframe>
</div>
<div id="arrow">&gt;</div>
<div style="width: 18%;height:100%;float:right;overflow-y:scroll;overflow-x: hidden;" id="infoDiv">
<div id="infoDiv">
<form>
<div class="row " hidden>
<input id="pdfId" hidden/>
@ -1096,14 +1159,13 @@
</div>
</div>
<div class="imglist" id="imglist">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<%--<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
</div>
</div>--%>
</div>
</div>
</div>
@ -1135,7 +1197,7 @@
<%--确认框提示清空所有图片--%>
<div class="modal fade" id="delImgPageModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content delImgPageModalCss" style="width: 70%;margin-left: 30%;">
<div class="modal-content ">
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
@ -2210,6 +2272,8 @@
spinner.spin();
if (result==1) {
toastr.success("删除所有图片成功!");
}else{
toastr.warning("没图片可删除!");
}
}
});
@ -2998,9 +3062,9 @@
striped: true, //表格显示条纹默认为false
pagination: true, // 在表格底部显示分页组件默认false
paginationShowPageGo: true,
pageList: [10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
pageList: [5, 15, 25, 35], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
smartDisplay: false,
pageSize: 2, // 页面数据条数
pageSize: 5, // 页面数据条数
pageNumber: 1, // 初始化加载第一页,默认第一页
sidePagination: 'server', // 设置为服务器端分页 客户端client
search: false,
@ -3010,7 +3074,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
//height: 560, //定义表格的高度。
height: 450, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'left',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -3492,7 +3556,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
// height: 560, //定义表格的高度。
height: 570, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -3656,7 +3720,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
//height: 560, //定义表格的高度。
height: 570, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。

@ -3,61 +3,70 @@
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<html>
<head>
<title>缺陷类别列表</title>
<title>字典列表</title>
<meta charset="utf-8">
<%@include file="../../jspf/comm.jspf" %>
<%@ include file="../../jspf/ztreeCommom.jsp" %>
<script type="text/javascript" src="${path}/static/js/pyAndWb.js"></script>
<style>
.body {
overflow-x: hidden;
overflow-y: hidden;
height: calc(100vh - 0px);
!important;
}
.titleCss {
text-align: left;
text-align: center;
vertical-align: middle;
background-color: #3c8dbc;
background-color: #2e6da4;
color: #fff;
font-size: 19px;
font-weight: bold;
height: 30px;
margin-bottom: 10px;
margin-left: 0px;
margin-right: 0px;
}
.titleCss2 {
text-align: left;
vertical-align: middle;
background-color: #3c8dbc;
color: #fff;
font-size: 19px;
font-weight: bold;
height: 30px;
margin-bottom: 10px;
.treeBtn1 {
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
width: 42%;
}
.treeBtn {
margin-left: 24px;
margin-right: 40px;
margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
width: 42%;
}
.zTreeDemo {
height: 800px;
overflow: auto;
}
/* .zTreeDemo {
height: calc(100vh - 100px);
overflow: hidden;
}*/
.content {
margin-left: 20px;
background-color: #fff;
height: 900px;
.divCss {
margin-top: 10px;
}
.row {
margin-top: 10px;
.content {
/*margin-left: 20px;*/
border-width: 0 0 0 1px;
border-style: solid;
border-color: #2e6da4;
/*background-color: #2e6da4;*/
height: calc(100vh - 0px);
overflow-x: hidden;
overflow-y: auto;
width: 75%;
float: left;
}
.control-label {
margin-right: -25px;
}
.trg {
width: 0;
height: 0;
@ -75,193 +84,225 @@
z-index: -1;
width: 200px;
}
#leftCol {
background-color: #fff;
height: calc(100vh - 20px);
width: 25%;
float: left;
!important;
}
#key {
margin-left: 10px;
margin-bottom: 5px;
width: 70%;
!important;
}
#form1 {
margin-top: 55px;
margin-left: 20px;
width: 100%;
!important;
}
#ztree {
margin-top: 10px;
margin-left: -35px;
height: calc(100vh - 180px);
overflow: auto;
!important;
}
#searchBtn {
width: 20%;
!important;
}
</style>
</head>
<body style="background-color: #c1d7e3">
<div >
<div class="col-md-3" style="background-color: #fff;">
<div class="row titleCss">
&nbsp;字典列表
</div>
<div class="form-inline ">
<input type="text" id="key" value="" class="input-sm " style="width:70%" placeholder="字典名称"/>
<button type="button" class="btn btn-primary btn-sm" id="searchBtn">查询</button>
</div>
<div class="row" style="margin-left: 5px;">
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="expandAll();">全部展开</button>
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="collapseAll();">全部收缩</button>
</div>
<div class="row">
<!--树-->
<div class="zTreeDemo">
<ul id="ztree" class="ztree" style="margin-left:-18px;"></ul>
</div>
<body>
<div id="leftCol">
<div class="row titleCss">
&nbsp;字典列表
</div>
<div class="form-inline ">
<input type="text" id="key" value="" class="input-sm " placeholder="字典名称"/>
<button type="button" class="btn btn-primary btn-sm" id="searchBtn">查询</button>
</div>
<div class="row" style="margin-left: 5px;">
<button type="button" class="btn btn-success btn-sm treeBtn1" onclick="expandAll();">全部展开</button>
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="collapseAll();">全部收缩</button>
</div>
<div class="row">
<!--树-->
<div class="zTreeDemo">
<ul id="ztree" class="ztree" style="margin-left:-18px;"></ul>
</div>
</div>
<!--内容-->
<div class="col-md-8 content" STYLE="float:left;">
<div class="row titleCss2">
&nbsp;字典信息
</div>
<!--内容-->
<div class="content">
<div class="row titleCss">
&nbsp;字典信息
</div>
<form id="form1">
<div class="row" id="btnDiv">
<button type="button" class="btn btn-info btn-sm" id="addBtn">添加叶子</button>
<button type="button" class="btn btn-danger btn-sm" id="delBtn">删除类别</button>
<button type="button" class="btn btn-primary btn-sm" id="saveBtn">保存类别</button>
<%--<button type="button" class="btn btn-warning btn-sm" id="addTypeBtn">添加类别</button>--%>
</div>
<form id="form1" style="margin-left: 150px">
<div style="text-align: right;margin-right: 200px;margin-bottom: 30px">
<button type="button" class="btn btn-info btn-sm" id="addBtn" style="display:none">添加叶子</button>
<%--<button type="button" class="btn btn-warning btn-sm" id="addTypeBtn">添加类别</button>--%>
<div id="allTypeDiv">
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">类别代码:</label>
<div class="col-sm-8"><input type="text" hidden id="id" name="id" value=""/>
<input type="text" class="input-sm form-control" id="typecode" name="typeFlag"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div id="allTypeDiv">
<div class="row">
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">类别名称:</label>
<div class="col-sm-8">
<input type="text" class="input-sm form-control" id="typename" name="typename"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div id="subTypeDiv">
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">类别代码:</label>
<div class="col-sm-4"><input type="text" hidden id="id" name="id" value=""/>
<input type="text" class="input-sm form-control" id="typecode" name="typeFlag"/>
<label class="col-sm-2 control-label">代码:</label>
<div class="col-sm-8">
<input type="text" class="input-sm form-control" id="code" name="code"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row">
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">类别名称:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="typename" name="typename"/>
<label class="col-sm-2 control-label">名称:</label>
<div class="col-sm-8">
<input type="text" class="input-sm form-control" id="name" name="name"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div id="subTypeDiv">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">代码:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="code" name="code"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">名称:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="name" name="name"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">拼音码:</label>
<div class="col-sm-4">
<input type="text" readonly class="input-sm form-control" id="pyCode" name="pyCode"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">五笔码:</label>
<div class="col-sm-4">
<input type="text" readonly class="input-sm form-control" id="wbCode" name="wbCode"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">邮编:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="zipCode" name="zipCode"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">国标码:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="gbCode" name="gbCode"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<%--<div class="row">--%>
<%--<div class="form-group">--%>
<%--<label class="col-sm-2 control-label">父级:</label>--%>
<%--<div class="col-sm-2">--%>
<%--<select id="parentId" class="input-sm form-control">                --%>
<%--&lt;%&ndash;<option value="1">有效</option>                &ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="0">无效</option>&ndash;%&gt;--%>
<%--</select>--%>
<%--</div>--%>
<%--<div class="col-sm-1"></div>--%>
<%--</div>--%>
<%--</div>--%>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">报表上可见:</label>
<div class="col-sm-2">
<select id="flag" class="input-sm form-control">
<option value="">不可见</option>
<option value="1">可见</option>
</select>
</div>
<div class="col-sm-1"></div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">拼音码:</label>
<div class="col-sm-4">
<input type="text" readonly class="input-sm form-control" id="pyCode" name="pyCode"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row" id="parentDiv">
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">上级目录</label>
<label class="col-sm-2 control-label">五笔码:</label>
<div class="col-sm-4">
<input id="parentId" name="parentId" class="input-sm form-control" style="width: 265px;"/>
<input type="text" readonly class="input-sm form-control" id="wbCode" name="wbCode"/>
</div>
<div class="col-sm-1"></div>
</div>
<%--<input id="ts_input">--%>
</div>
<div class="row">
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">是否有效:</label>
<div class="col-sm-2">
<select id="effective" class="input-sm form-control">                
<option value="1">有效</option>
               
<option value="0">无效</option>
</select>
<label class="col-sm-2 control-label">邮编:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="zipCode" name="zipCode"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row">
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">说明</label>
<div class="col-sm-6">
<textarea class="input-sm form-control" rows="5" id="cComment" name="cComment"></textarea>
<label class="col-sm-2 control-label">国标码:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="gbCode" name="gbCode"/>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row">
<%--<div class="row">--%>
<%--<div class="form-group">--%>
<%--<label class="col-sm-2 control-label">父级:</label>--%>
<%--<div class="col-sm-2">--%>
<%--<select id="parentId" class="input-sm form-control">                --%>
<%--&lt;%&ndash;<option value="1">有效</option>                &ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="0">无效</option>&ndash;%&gt;--%>
<%--</select>--%>
<%--</div>--%>
<%--<div class="col-sm-1"></div>--%>
<%--</div>--%>
<%--</div>--%>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-6">
<textarea class="input-sm form-control" rows="5" id="remark" name="recallReason"></textarea>
<label class="col-sm-2 control-label">报表上可见:</label>
<div class="col-sm-2">
<select id="flag" class="input-sm form-control">
<option value="">不可见</option>
<option value="1">可见</option>
</select>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div style="margin-left:30px;margin-top: 50px;">
<button type="button" class="btn btn-danger btn-sm" id="delBtn">删除类别</button>
<button type="button" class="btn btn-primary btn-sm" style="margin-left: 500px" id="saveBtn">保存类别</button>
</div>
<div class="row divCss" id="parentDiv" hidden>
<div class="form-group">
<label class="col-sm-2 control-label">上级目录</label>
<div class="col-sm-4">
<input id="parentId" name="parentId" class="input-sm form-control" style="width: 265px;"/>
</div>
</div>
<%--<input id="ts_input">--%>
</div>
</form>
</div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">是否有效:</label>
<div class="col-sm-2">
<select id="effective" class="input-sm form-control">                
<option value="1">有效</option>
               
<option value="0">无效</option>
</select>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">说明:</label>
<div class="col-sm-8">
<textarea class="input-sm form-control" rows="5" id="cComment" name="cComment"></textarea>
</div>
<div class="col-sm-1"></div>
</div>
</div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-8">
<textarea class="input-sm form-control" rows="5" id="remark" name="recallReason"></textarea>
</div>
<div class="col-sm-1"></div>
</div>
</div>
</div>
</form>
</div>
<script type="text/javascript">
var zNodes = [];
var nodeList = [];
var currNode;//当前选中节点
var addBol = 0;//判断添加类型或添加叶子节点
var checkNodes=[];
var checkNodes = [];
var opts = {
lines: 13, // The number of lines to draw |小长条的数量
@ -321,7 +362,7 @@
var target = document.getElementById('treediv');
spinner.spin(target);//给id为foo的div 中绑上spinner
zNodes = [];
checkNodes=[];
checkNodes = [];
//获取所有缺陷类别列表
$.ajax({
url: "${path}/dictionary/dicList",
@ -333,33 +374,33 @@
zNodes.push({id: 0, pId: 0, name: "字典列表", open: true});
checkNodes.push({id: 0, pId: 0, name: "字典列表", open: true});
//var htmlStr="";
if(result!=null){
if (result != null) {
for (var i = 0; i < result.length; i++) {
var obj = {};
obj.id = result[i].id;
obj.pid = result[i].parentId;
obj.pId = result[i].parentId;
obj.typecode = result[i].typecode;
obj.code = result[i].code;
if(result[i].parentId==0 || obj.code==null){
obj.id = result[i].id;
obj.pid = result[i].parentId;
obj.pId = result[i].parentId;
obj.typecode = result[i].typecode;
obj.code = result[i].code;
if (result[i].parentId == 0 || obj.code == null) {
obj.name = result[i].typename.trim();
// htmlStr += "<option value=" + result[i].id + ">" + result[i].typename + "</option>";
}else{
// htmlStr += "<option value=" + result[i].id + ">" + result[i].typename + "</option>";
} else {
obj.name = result[i].name.trim();
// htmlStr += "<option value=" + result[i].id + ">" + result[i].name + "</option>";
// htmlStr += "<option value=" + result[i].id + ">" + result[i].name + "</option>";
}
obj.typename = result[i].typename;
obj.cComment= result[i].cComment;
obj.cComment = result[i].cComment;
obj.effective = result[i].effective;
obj.flag = result[i].flag;
obj.gbCode = result[i].gbCode;
obj.pyCode = result[i].pyCode;
obj.wbCode = result[i].wbCode;
//console.log("obj");
//console.log("obj");
//zNodes=trans_tree(zNodes);
zNodes.push(obj);
if(obj.typecode!=null &&obj.typecode!=""){
if (obj.typecode != null && obj.typecode != "") {
checkNodes.push(obj);
}
@ -368,7 +409,9 @@
$.fn.zTree.init($("#ztree"), setting, zNodes);
var treeObj = $.fn.zTree.init($("#ztree"), setting, zNodes);
treeObj.expandAll(true);
$("#addBtn").hide();
$("#delBtn").hide();
$("#saveBtn").hide();
$("#parentId").treeSelect(checkNodes);
var node;
var currId = $("#id").val();
@ -390,6 +433,7 @@
}
currNode = node;
treeObj.selectNode(node, true);//将指定ID的节点选中
$("#addBtn").hide();
spinner.spin();
}, error: function () {
@ -402,7 +446,7 @@
}
function emptyEntity(bol) {
if(bol==1) {
if (bol == 1) {
$("#typecode").val("");
$("#typename").val("");
}
@ -444,10 +488,12 @@
callback: {
beforeClick: function (treeId, treeNode) {
$("#delBtn").show();
$("#saveBtn").show();
$("#allTypeDiv").show();
currNode=treeNode;
currNode = treeNode;
//console.log(treeNode.id);
if (treeNode.id != 0) {
if(treeNode.isParent || treeNode.pid==0||treeNode.code== null){
if (treeNode.isParent || treeNode.pid == 0 || treeNode.code == null) {
$("#typecode").removeAttr("readOnly");
$("#typename").removeAttr("readOnly");
$("#typecode").val(treeNode.typecode);
@ -457,22 +503,22 @@
$("#addBtn").show();
//判断节点是否有叶子节点,有则不可改父级,无则可改动
var childrenNodes = treeNode.children;
if(childrenNodes!= undefined){
/*if(childrenNodes!= undefined){
$("#parentDiv").hide();
}else{
$("#parentDiv").show();
}
}*/
}else{
} else {
$("#typecode").attr("readOnly", "true");
$("#typename").attr("readOnly", "true");
var pNode=treeNode.getParentNode();
var pNode = treeNode.getParentNode();
$("#typecode").val(pNode.typecode);
$("#typename").val(pNode.typename);
$("#subTypeDiv").show();
//$("#addTypeBtn").hide();
$("#addBtn").hide();
$("#parentDiv").show();
//$("#parentDiv").show();
}
$("#id").val(treeNode.id);
$("#name").val(treeNode.name);
@ -490,11 +536,12 @@
} else {
$("#subTypeDiv").removeAttr("display");
$("#addBtn").hide();
$("#delBtn").hide();
$("#saveBtn").hide();
$("#allTypeDiv").hide();
//$("#addTypeBtn").show();
$("#parentDiv").hide();
//$("#parentDiv").hide();
emptyEntity(1);
}
}
}
@ -615,7 +662,8 @@
zTree.hideNodes(hiddenNodes);
}
zTree.expandAll(true);
}
}
// function searchNode2() {
// //查询叶子节点
// var zTree = $.fn.zTree.getZTreeObj("ztree");
@ -670,7 +718,8 @@
initTree();
$("#allTypeDiv").hide();
$("#parentDiv").hide();
// $("#parentDiv").hide();
function getEntity() {
@ -702,7 +751,7 @@
return;
}
var childrenNodes = currNode.children;
if (childrenNodes&& childrenNodes.length>0) {
if (childrenNodes && childrenNodes.length > 0) {
console.log(childrenNodes);
toastr.warning("拥有子节点不可删除!");
return;
@ -734,7 +783,6 @@
});
// $("#addTypeBtn").click(function () {
// addBol = 1;
// $("#delBtn").hide();
@ -793,7 +841,7 @@
var childrenNodes = treeNode.children;
if (childrenNodes) {
for (var i = 0; i < childrenNodes.length; i++) {
if(childrenNodes[i].code==code){
if (childrenNodes[i].code == code) {
return 1;
}
//result += ',' + childrenNodes[i].id;
@ -805,9 +853,8 @@
}
$("#name").blur(function () {
if(this.value!=null && this.value) {
if (this.value != null && this.value) {
// 获取拼音首字母
var pinyin = makePy(this.value);
var wubi = makeWb(this.value);
@ -819,10 +866,10 @@
$("#saveBtn").click(function () {
var entity = getEntity();
var zTree = $.fn.zTree.getZTreeObj("ztree");
if(entity.id!=""){
if (entity.id != "") {
//叶子不能放到叶子节点,类别节点不能放到叶子节点
if (entity.parentId != "") {
if (currNode.id== pIdVal){
if (currNode.id == pIdVal) {
toastr.warning("上级目录不能是本身!");
return;
}
@ -830,12 +877,12 @@
} else {
entity.parentId = "";
}
if(currNode.code != null ){
if (currNode.code != null) {
//修改叶子节点
if (entity.code == null || entity.code == "") {
toastr.warning("代码必填!");
return;
}else if (entity.code.length>50) {
} else if (entity.code.length > 50) {
toastr.warning("代码长度不超过50");
return;
} else if (entity.code != null || entity.code != "") {
@ -857,28 +904,28 @@
toastr.warning("无该类上级目录!");
return;
}
}else if(entity.cComment.length>30){
} else if (entity.cComment.length > 30) {
toastr.warning("说明长度不超过30");
return;
} else if (entity.remark.length > 50) {
toastr.warning("备注长度不超过50");
return;
}
entity.typecode="";
entity.typename="";
entity.typecode = "";
entity.typename = "";
}else{
} else {
//修改类别节点
if (entity.typecode == null || entity.typecode == "") {
toastr.warning("类别代码必填!");
return;
}else if (entity.typecode.length > 50) {
} else if (entity.typecode.length > 50) {
toastr.warning("类别代码长度不超过50");
return;
} else if (entity.typename == null || entity.typename == "") {
toastr.warning("类别名称必填!");
return;
}else if (entity.typename.length > 50) {
} else if (entity.typename.length > 50) {
toastr.warning("类别名称长度不超过50");
return;
} else if (entity.cComment.length > 30) {
@ -894,8 +941,8 @@
}
//添加
if(entity.id==""){
if(addBol==1){
if (entity.id == "") {
if (addBol == 1) {
//添加类别
//添加
if (entity.typecode == null || entity.typecode == "") {
@ -923,24 +970,24 @@
toastr.warning("备注长度不超过50");
return;
}
if(currNode!=null){
if (currNode != null) {
entity.parentId = currNode.id;
}else{
} else {
entity.parentId = 0;
}
}else if(addBol==2){
entity.typecode="";
entity.typename="";
} else if (addBol == 2) {
entity.typecode = "";
entity.typename = "";
//添加叶子节点
if (entity.code == null || entity.code == "") {
toastr.error("代码必填!");
return;
} else if (entity.code != null || entity.code != "") {
//查找该父节点下的所有叶子节点的代码不重复
var bol=getAllChildrenNodes(currNode, entity.code);
if (bol==1) {
var bol = getAllChildrenNodes(currNode, entity.code);
if (bol == 1) {
toastr.warning("代码不可重复!");
return;
}
@ -962,7 +1009,7 @@
}
if (currNode != null) {
entity.parentId = currNode.id;
}else{
} else {
toastr.warning("请选中一个字典节点");
return;
}
@ -977,18 +1024,18 @@
type: "POST",
data: entity,
success: function (result) {
if(result.indexOf("成功")!=-1){
if (result.indexOf("成功") != -1) {
toastr.success(result);
initTree();
addBol = 0;
}else if(result.indexOf("失败") != -1){
} else if (result.indexOf("失败") != -1) {
toastr.error(result);
}else{
} else {
toastr.warning(result);
}
}, error: function () {
// toastr.error("加载失败!")
// toastr.error("加载失败!")
}
});
});

@ -36,6 +36,17 @@
/*background-color: #f9f9f9*/
/*}*/
.toolbarCss {
margin-right: 20px;
margin-bottom: 0px;
!important;
}
.fixed-table-toolbar .bs-bars .pull-right{
height: 20px;
!important;
}
</style>
</head>
<body>
@ -103,7 +114,7 @@
<!--数据表格-->
<table id="table" class="table text-nowrap table-striped"></table>
<%--</div>--%>
<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
<div id="toolbar" class="btn-group pull-right toolbarCss" >
<div class="columns columns-right btn-group pull-right" style="margin-top:0px;">
<div class="btn-group btn-info">
<select id="sel_exportoption" class="form-control">                

@ -8,181 +8,241 @@
<%@include file="../../jspf/comm.jspf" %>
<%@ include file="../../jspf/ztreeCommom.jsp" %>
<style>
.body {
overflow-x: hidden;
overflow-y: hidden;
height: calc(100vh - 0px);
!important;
}
.content {
/*margin-left: 20px;*/
border-width: 0 0 0 1px;
border-style: solid;
border-color: #2e6da4;
/*background-color: #2e6da4;*/
height: calc(100vh - 50px);
}
.divCss {
margin-top: 10px;
}
.control-label {
margin-right: -25px;
}
.titleCss {
text-align: left;
text-align: center;
vertical-align: middle;
background-color: #3c8dbc;
background-color: #2e6da4;
color: #fff;
font-size: 19px;
font-weight: bold;
height: 30px;
margin-bottom: 10px;
margin-top: 0px;
width: 115.5%;
}
.treeBtn{
margin-left: 24px;
margin-right: 40px;
.treeBtn1 {
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
width: 42%;
}
.zTreeDemo{
.treeBtn {
margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
width: 42%;
}
/*.zTreeDemo{
height: 800px;
overflow: auto;
}
.content{
}*/
#form1 {
margin-top: 55px;
margin-left: 20px;
background-color: #fff;
height: 600px;
width: 100%;
!important;
}
.row{
#ztree {
margin-top: 10px;
margin-left: -35px;
height: calc(100vh - 180px);
overflow: auto;
!important;
}
.control-label{
margin-right: -25px;
#leftCol {
background-color: #fff;
height: calc(100vh - 20px);
!important;
}
#key {
margin-left: 10px;
margin-bottom: 5px;
width: 70%;
!important;
}
#searchBtn {
width: 20%;
!important;
}
</style>
</head>
<body style="background-color: #c1d7e3">
<div >
<div class="col-md-3" style="background-color: #fff;">
<div class="row titleCss">
&nbsp;缺陷类别列表
</div>
<div class="row">
<div class="col-md-8">
<input type="text" id="key" value="" class="input-sm empty" placeholder="缺陷类别名称"/>
<button type="button" class="btn btn-primary btn-sm" id="searchBtn" >查询</button>
</div>
</div>
<div class="row">
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="expandAll();">全部展开</button>
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="collapseAll();">全部收缩</button>
</div>
<div class="row">
<!--树-->
<div class="zTreeDemo">
<ul id="ztree" class="ztree"></ul>
</div>
<body>
<div class="col-md-3" id="leftCol">
<div class="row titleCss">
&nbsp;缺陷类别列表
</div>
<div class="row form-inline">
<input type="text" id="key" value="" class="input-sm empty" placeholder="缺陷类别名称"/>
<button type="button" class="btn btn-primary btn-sm" id="searchBtn">查询</button>
</div>
<div class="row">
<button type="button" class="btn btn-success btn-sm treeBtn1" onclick="expandAll();">全部展开</button>
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="collapseAll();">全部收缩</button>
</div>
<div class="row">
<!--树-->
<div class="zTreeDemo">
<ul id="ztree" class="ztree"></ul>
</div>
</div>
<!--内容-->
<div class="col-md-8 content">
<div class="row titleCss">
&nbsp;缺陷类别信息
</div>
<!--内容-->
<div class="col-md-8 content">
<div class="row titleCss">
&nbsp;缺陷类别信息
</div>
<form id="form1">
<div class="row">
<button type="button" class="btn btn-primary btn-sm" id="saveBtn">保存类别</button>
<button type="button" class="btn btn-danger btn-sm" id="delBtn">删除类别</button>
<button type="button" class="btn btn-warning btn-sm" id="addBtn">添加类别</button>
</div>
<form id="form1" style="margin-left: 150px">
<div style="text-align: right;margin-right: 200px;margin-bottom: 30px">
<button type="button" class="btn btn-warning btn-sm" id="addBtn">添加类别</button>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">类别代码:</label>
<div class="col-sm-4"><input type="text" hidden id="id" name="id">
<input type="text" class="input-sm form-control" id="typeFlag" name="typeFlag">
</div>
<div class="col-sm-1"></div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">类别代码:</label>
<div class="col-sm-10"><input type="text" hidden id="id" name="id">
<input type="text" class="input-sm form-control" id="typeFlag" name="typeFlag">
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">类别名称:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="typeName" name="typeName">
</div>
<div class="col-sm-1"></div>
</div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">类别名称:</label>
<div class="col-sm-10">
<input type="text" class="input-sm form-control" id="typeName" name="typeName">
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">分值:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="price" name="price">
</div>
<div class="col-sm-1"></div>
</div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">分值:</label>
<div class="col-sm-4">
<input type="text" class="input-sm form-control" id="price" name="price">
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">类别排序:</label>
<div class="col-sm-4">
<input type="number" class="input-sm form-control" id="typeSort" name="typeSort">
</div>
<div class="col-sm-1"></div>
</div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">类别排序:</label>
<div class="col-sm-4">
<input type="number" class="input-sm form-control" id="typeSort" name="typeSort">
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">是否有效:</label>
<div class="col-sm-2">
<select id="effective" class="input-sm form-control">                
<option value="1">有效</option>                
<option value="0">无效</option>
</select>
</div>
<div class="col-sm-1"></div>
</div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">是否有效:</label>
<div class="col-sm-2">
<select id="effective" class="input-sm form-control">                
<option value="1">有效</option>
               
<option value="0">无效</option>
</select>
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-6">
<textarea class="input-sm form-control" rows="5" id="remark" name="recallReason"></textarea>
</div>
<div class="col-sm-1"></div>
</div>
<div class="row divCss">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-10">
<textarea class="input-sm form-control" rows="5" id="remark" name="recallReason"></textarea>
</div>
<div class="col-sm-1"></div>
</div>
<div style="margin-left:30px;margin-top: 50px;">
<button type="button" class="btn btn-primary btn-sm" id="saveBtn" >保存类别</button>
<button type="button" class="btn btn-danger btn-sm" style="margin-left: 390px" id="delBtn">删除类别</button>
</div>
</form>
</div>
</div>
<%--<div style="margin-left:30px;margin-top: 50px;">
</div>--%>
</form>
</div>
<script type="text/javascript">
var zNodes=[];
var zNodes = [];
var nodeList = [];
function initTree(){
zNodes=[];
//获取所有缺陷类别列表
$.ajax({
url: "${path}/faultType/faultTypeList",
type: "POST",
data: {},
async: true,
success: function (result) {
zNodes.push({id: 0, pId: 0, name: "缺陷类别列表", open: true});
if(result!=null) {
for (var i = 0; i < result.length; i++) {
var obj = {};
obj.id = result[i].id;
obj.pId = 0;
obj.name = result[i].typeName;
obj.price=result[i].price;
obj.typeFlag = result[i].typeFlag;
obj.typeSort = result[i].typeSort;
obj.remark = result[i].remark;
obj.effective = result[i].effective;
zNodes.push(obj);
}
}
$.fn.zTree.init($("#ztree"), setting, zNodes);
var treeObj = $.fn.zTree.init($("#ztree"), setting, zNodes);
var node;
var currId= $("#id").val();
if (currId != "" && currId != null) {
//修改选中已选节点
node = treeObj.getNodeByParam("id", currId);
}else{
//添加选中父节点
node = treeObj.getNodeByParam("id", 0);
}
treeObj.selectNode(node, true);//将指定ID的节点选中
}, error: function () {
toastr.error("加载失败!");
}
});
}
function initTree() {
zNodes = [];
//获取所有缺陷类别列表
$.ajax({
url: "${path}/faultType/faultTypeList",
type: "POST",
data: {},
async: true,
success: function (result) {
zNodes.push({id: 0, pId: 0, name: "缺陷类别列表", open: true});
if (result != null) {
for (var i = 0; i < result.length; i++) {
var obj = {};
obj.id = result[i].id;
obj.pId = 0;
obj.name = result[i].typeName;
obj.price = result[i].price;
obj.typeFlag = result[i].typeFlag;
obj.typeSort = result[i].typeSort;
obj.remark = result[i].remark;
obj.effective = result[i].effective;
zNodes.push(obj);
}
}
$.fn.zTree.init($("#ztree"), setting, zNodes);
var treeObj = $.fn.zTree.init($("#ztree"), setting, zNodes);
$("#delBtn").hide();
var node;
var currId = $("#id").val();
if (currId != "" && currId != null) {
//修改选中已选节点
node = treeObj.getNodeByParam("id", currId);
} else {
//添加选中父节点
node = treeObj.getNodeByParam("id", 0);
}
treeObj.selectNode(node, true);//将指定ID的节点选中
}, error: function () {
toastr.error("加载失败!");
}
});
}
function emptyEntity() {
$("#id").val("");
@ -217,15 +277,15 @@
},
callback: {
beforeClick: function (treeId, treeNode) {
if(treeNode.id!=0) {
if (treeNode.id != 0) {
$("#form1").show();
$("#id").val(treeNode.id);
$("#typeFlag").val(treeNode.typeFlag);
if(treeNode.typeFlag=="defined"){
$("#typeFlag").attr("readonly",true);
if (treeNode.typeFlag == "defined") {
$("#typeFlag").attr("readonly", true);
$("#delBtn").hide();
}else{
} else {
$("#typeFlag").attr("readonly", false);
$("#delBtn").show();
}
@ -234,8 +294,9 @@
$("#price").val(treeNode.price);
$("#effective").val(treeNode.effective);
$("#remark").val(treeNode.remark);
}else{
$("#form1").hide();
} else {
//$("#form1").hide();
$("#delBtn").hide();
emptyEntity();
}
}
@ -253,6 +314,7 @@
key.addClass("empty");
}
}
/**
* 遍历树节点,将
* 1.自身不满足搜索条件
@ -289,6 +351,7 @@
return true;
}
}
function searchNode() {
var zTree = $.fn.zTree.getZTreeObj("ztree");
var value = $("#key").val();
@ -313,11 +376,10 @@
}
function updateNodes(highlight) {
var zTree = $.fn.zTree.getZTreeObj("ztree");
for (var i = 0, l = nodeList.length; i < l; i++) {
zTree.showNode(nodeList[i]);
zTree.showNode(nodeList[i]);
}
}
@ -360,10 +422,10 @@
initTree();
function getEntity(){
var entity={};
entity.id=$("#id").val();
entity.typeFlag= $("#typeFlag").val();
function getEntity() {
var entity = {};
entity.id = $("#id").val();
entity.typeFlag = $("#typeFlag").val();
entity.typeName = $("#typeName").val();
entity.price = $("#price").val();
entity.typeSort = $("#typeSort").val();
@ -371,12 +433,12 @@
entity.remark = $("#remark").val();
return entity;
}
$("#searchBtn").click(function () {
searchNode();
});
$("#delBtn").click(function () {
if ($("#id").val() == null || $("#id").val() == "") {
toastr.warning("请选中一个缺陷类");
@ -387,7 +449,7 @@
type: "POST",
data: {id: $("#id").val()},
success: function (result) {
if(result==1) {
if (result == 1) {
var ztree = $.fn.zTree.getZTreeObj("ztree");
var nodes = ztree.getSelectedNodes();
for (var i = 0, l = nodes.length; i < l; i++) {
@ -399,7 +461,7 @@
ztree.selectNode(node, true);//将指定ID的节点选中
$("#form1").hide();
toastr.success("删除成功!")
}else{
} else {
toastr.error("删除失败!")
}
}, error: function () {
@ -414,10 +476,10 @@
$("#saveBtn").click(function () {
var entity = getEntity();
if(entity.typeFlag.length>32){
if (entity.typeFlag.length > 32) {
toastr.warning("代码长度不超过32");
return;
}else if (entity.typeName == null || entity.typeName == "") {
} else if (entity.typeName == null || entity.typeName == "") {
toastr.warning("名称必填");
return;
} else if (entity.typeName.length > 200) {
@ -429,7 +491,7 @@
}
if (entity.price == null || entity.price == "") {
//分值默认为0
entity.price=0;
entity.price = 0;
}
var ztree = $.fn.zTree.getZTreeObj("ztree");
//修改缺陷类别
@ -438,10 +500,10 @@
type: "POST",
data: entity,
success: function (result) {
if(result==1){
if (result == 1) {
toastr.success("修改成功!");
initTree();
}else{
} else {
toastr.error("修改失败!");
}
@ -451,11 +513,13 @@
});
});
});
//展开
function expandAll() {
var treeObj = $.fn.zTree.getZTreeObj("ztree");
treeObj.expandAll(true);
}
//收缩
function collapseAll() {
var treeObj = $.fn.zTree.getZTreeObj("ztree");

@ -1,7 +1,7 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<html>
<html style="overflow-y:hidden">
<head>
<title>首页</title>
<meta charset="utf-8">
@ -31,42 +31,42 @@
</style>
<script type="text/javascript">
$(function () {
// $.ajaxSetup({
// contentType: "application/x-www-form-urlencoded;charset=utf-8",
// complete: function (XMLHttpRequest, textStatus) {
// },
// statusCode: {
// 404: function () {
// toastr.warning('数据获取/输入失败没有此服务。404');
// },
// 504: function () {
// toastr.warning('数据获取/输入失败服务器没有响应。504');
// },
// 500: function () {
// toastr.warning('服务器有误。500');
// }
// }
// });
$(function () {
// $.ajaxSetup({
// contentType: "application/x-www-form-urlencoded;charset=utf-8",
// complete: function (XMLHttpRequest, textStatus) {
// },
// statusCode: {
// 404: function () {
// toastr.warning('数据获取/输入失败没有此服务。404');
// },
// 504: function () {
// toastr.warning('数据获取/输入失败服务器没有响应。504');
// },
// 500: function () {
// toastr.warning('服务器有误。500');
// }
// }
// });
if (${menuList == null}) {
if (${menuList == null}) {
// setTimeout(function () {
$('#exampleModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
//}, 14400000);
}else{
setTimeout(function () {
$('#exampleModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}, 14400000);
ajaxJsonFun();
}
$('#exampleModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
//}, 14400000);
}else{
setTimeout(function () {
$('#exampleModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}, 14400000);
ajaxJsonFun();
}
function ajaxJsonFun() {
//拥有的功能
var str = "";
@ -106,7 +106,7 @@
}
if (deptNameArr.indexOf(list[x].deptName) == -1) {
if(list[x].deptName!= undefined)
deptNameArr.push(list[x].deptName);
deptNameArr.push(list[x].deptName);
}
//console.log(list[x].methodParent + "=====" + list[j].menuId);
if (list[x].method != null && list[x].method != "" && list[x].methodParent == list[j].menuId) {
@ -165,7 +165,6 @@
</script>
<body class="skin-blue" data-spy="scroll" data-target="#scrollspy" style="margin-top:-20px;">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a class="logo">
@ -193,9 +192,9 @@
<li>
<div class="margin">
<div class="btn-group">
<button type="button" class="btn btn-default" style="height:2.5rem">主题</button>
<button type="button" class="btn btn-default" style="height:3rem;font-size: 14px;">主题</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
aria-expanded="false" style="height:2.5rem">
aria-expanded="false" style="height:3rem">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
@ -244,26 +243,15 @@
<%--</a>--%>
<%--<ul class="treeview-menu">--%>
<%--&lt;%&ndash;<li><a href="${path}/pdfCtr/pdfDir" target="_blank"><i class="fa fa-circle-o"></i>缺陷PDF列表</a></li>&ndash;%&gt;--%>
<%--<li><a href="${path}/vCount2/vCounts" target="iFrame1"><i class="fa fa-circle-o"></i>主管医生统计</a></li>--%>
<%--<li><a href="${path}/vCount2/vCounts" target="iFrame1"><i class="fa fa-circle-o"></i>主管医生统计</a></li>--%>
<%--</ul>--%>
<%--</li>--%>
</ul>
</section>
</aside>
<div class="content-wrapper">
<section class="content">
<!-- 内容 src="${path}/paper/allPaper"-->
<div class="page-content-wrapper">
<div class="page-content">
<div class="">
<iframe style="height:90%;width:100%; overflow-x:hidden;overflow-y:scroll" id="iFrame1" name="iFrame1" frameborder="0"></iframe>
</div>
</div>
</div>
</section>
<iframe style="height:calc(100vh - 20px);width:100%; overflow-x:hidden;overflow-y:hidden" id="iFrame1" name="iFrame1" frameborder="0"></iframe>
</div>
<footer class="main-footer">
<div class="pull-right hidden-xs">

@ -54,14 +54,13 @@
}
.modal-content {
width: 165%; /*width: 1300px;*/
width: calc(210%); /*width: 1300px;*/
overflow-x: hidden;
overflow-y: auto;
}
.modal {
margin-left: -39%;
margin-left: -45%;
overflow-x: auto;
/*z-index: 1049;*/
}
@ -71,6 +70,16 @@
width: 97.5%;
margin-top: 10px;
margin-bottom: 5px;
color: blue;
margin-left: 20px;
}
#wzContent {
margin-left: 30px;
margin-right: 30px;
/*height: 60px;*/
overflow-x: hidden;
overflow-y: hidden;
}
.labCss {
@ -89,15 +98,84 @@
margin-bottom: 10px;
}
.treeBtn1 {
margin-top: 10px;
margin-right: 10px;
width: 42%;
}
.treeBtn {
margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
width: 42%;
}
#key {
width: 70%;
!important;
}
#searchBtn1 {
width: 20%;
!important;
}
.zTreeDemo {
height: auto;
min-height: 350px;
margin-left: -10px;
}
.toolbarCss {
margin-right: 20px;
margin-bottom: 0px;
!important;
}
.fixed-table-toolbar .bs-bars .pull-right{
height: 20px;
!important;
}
#maxImg > div > div {
width: calc(210%);
}
#delPdfPageModal .modal-header2 {
width: calc(210%); /*margin-left:-15%;*/
}
#delPdfPageModal .modal-content {
width: calc(210%); /*margin-left:-15%;*/
height: calc(100vh - 100px);
overflow: hidden;
!important;
}
#infoDiv {
width: 18%;
height: 98%;
float: right;
overflow-y: hidden;
overflow-x: hidden;
}
#pdf_page {
width: 100%;
height: 95%;
!important;
}
#imglist {
text-align: center;
margin-left: 0px;
margin-bottom: 5px;
width: 98%;
height: 80%;
overflow-y: auto;
overflow-x: hidden;
}
.divCss5 {
@ -158,19 +236,19 @@
#returnModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-top: 10%;
width: 120%;
}
#firstModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-left: 55%;
margin-top: 10%;
width: 100%;
}
#verifyModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-top: 10%;
width: 100%;
}
@ -183,7 +261,7 @@
#timeLineModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-top: 10%;
width: 100%;
}
@ -223,39 +301,41 @@
/*border-color: #3c8dbc;*/
/*}*/
.showDelDiv{
margin-left: 0px;
border: 1px solid #e5e5e5;
width: 90%;
margin-bottom: 5px;
}
.showImg2 {
margin-left: 2%;
margin-bottom: 2px;
width:95%;
height: 200px;
}
.imglist{
margin-left: 15px;
margin-bottom: 5px;
width: 90%;
height: 200px;
}
.returnPageCls{
margin-right: 2px;
}
#addDelDiv{
width: 85%;
width: 81%;
background-color: #0b93d5;
text-align: center;
color: red;
}
#delAllImgBtn{
width: 35%;
}
#addPdfPageBtn{
width: 40%;
}
#delImgPageModalCss{
margin-left: 20%;
#delImgPageModal > div > div {
width: 70%;
margin-left: 55%;
margin-top: 20%;
}
</style>
</head>
@ -311,7 +391,7 @@
<input type="text" class="input-sm form-control" name="end" id="endDateTo"/>
</div>
</div>
<div class="form-group divCss" style="height: 18px;margin-top: -7px;">
<div class="form-group divCss8" style="height: 18px;margin-top: -7px;">
<label>是否扫描:</label>
<select class="selectpicker bla bla bli" data-live-search="true" name="isScanning" id="isScanning" title="是否扫描">
<option value="">全部</option>
@ -424,39 +504,37 @@
<button type="button" class="btn btn-info btn-sm" id="getTimeline">跟踪查看</button>
</div>
</div>
<div class="row divCss2">
<%--<div class="col-sm-4">--%>
<%--离院方式:<label id="outHospLab" class="labCss"></label>--%>
<%--</div>--%>
<%--<div class="col-sm-5">--%>
<%--主管医生:<label id="chargeLab" class="labCss"></label>--%>
<%--</div>--%>
<div class="row divCss4">完整性审核:<button type="button" class="btn btn-warning btn-sm" id="getReloadWz">校验完整性</button></div>
<div id="wzContent"></div>
<%--<div class="row divCss2">
&lt;%&ndash;<div class="col-sm-4">&ndash;%&gt;
&lt;%&ndash;离院方式:<label id="outHospLab" class="labCss"></label>&ndash;%&gt;
&lt;%&ndash;</div>&ndash;%&gt;
&lt;%&ndash;<div class="col-sm-5">&ndash;%&gt;
&lt;%&ndash;主管医生:<label id="chargeLab" class="labCss"></label>&ndash;%&gt;
&lt;%&ndash;</div>&ndash;%&gt;
<div class="col-sm-2">
完整性审核:
</div>
<div class="col-sm-10" style="margin-left: -70px" id="wzContent">
地三生三世所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所
</div>
<div class="col-sm-3" id="reloadWz">
<button type="button" class="btn btn-warning btn-sm" id="getReloadWz">校验完整性</button>
</div>
</div>
</div>--%>
</div>
<div class="divCss4"></div>
<div class="row">
<div class="row divCss3 ">病历清单</div>
<%--<div class="row divCss3 ">病历清单</div>--%>
<div class="col-sm-3 divCss2">
<div class="row titleCss"></div>
<div class="row">
<div class="col-sm-9">
<input type="text" id="key" value="" class="input-sm form-control empty"
placeholder="分段名称"/>
</div>
<div class="row form-inline">
<input type="text" id="key" value="" class="input-sm form-control empty" placeholder="分段名称"/>
<button type="button" class="btn btn-primary btn-sm" id="searchBtn1">查询</button>
</div>
<div class="row">
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="expandAll();">
<button type="button" class="btn btn-success btn-sm treeBtn1" onclick="expandAll();">
全部展开
</button>
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="collapseAll();">
@ -484,8 +562,8 @@
<div class="row">
<!--数据表格-->
<table id="table2" class="table text-nowrap table-striped"></table>
<div id="toolbar2" class="btn-group pull-left" style="margin-right: 20px;">
<div class="columns columns-left btn-group pull-left" style="margin-top:0px;">
<div id="toolbar2" class="btn-group pull-left toolbarCss" >
<div class="columns columns-left btn-group pull-left" style="margin-top:-5px;">
<input type="checkbox" id="flag" value="1"
style="margin-left: 20px;">只显示作废</input>
<%--<button class=" btn btn-success btn-sm" style="height: 34px" type="button"--%>
@ -700,7 +778,7 @@
<%--发大弹窗--%>
<div class="modal fade" id="maxImg" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-header2" style="width: 165%">
<div class="modal-header2" >
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
</div>
@ -773,7 +851,6 @@
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--</div>--%>
<%--</div>--%>
<%--<div class="row divCss2">--%>
<%--<span style="vertical-align:top;">内容:</span>--%>
@ -781,8 +858,6 @@
<%--</div>--%>
<%--</div>--%>
<%--</div>--%>
<%--<div class="divCss4"></div>--%>
<div class="row"><input id="backArchiveId" hidden>
<%--<div class="row divCss3 ">退回信息</div>--%>
@ -921,20 +996,20 @@
<%--删除pdf某页弹窗--%>
<div class="modal fade" id="delPdfPageModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content " style="width:220%;margin-left:-15%;">
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">PDF页信息</h4>
</div>
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">PDF页信息</h4>
</div>
<div class="modal-content ">
<div class="modal-body divCss2" id="delPdfBody">
<div class="row form-inline">
<div style="width: 80%;float:left;" id="pdfDiv">
<iframe id="pdf_page" name="pdf_page" style="width:100%;height:100%;"></iframe>
<iframe id="pdf_page"></iframe>
</div>
<div id="arrow">&gt;</div>
<div style="width: 18%;height:100%;float:right;overflow-y:scroll;overflow-x: hidden;" id="infoDiv">
<div id="infoDiv">
<form>
<div class="row " hidden>
<input id="pdfId" hidden/>
@ -961,9 +1036,9 @@
</div>
</div>
</div>
<div class="modal-footer">
<%--<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
</div>
</div>--%>
</div>
</div>
</div>
@ -995,7 +1070,7 @@
<%--确认框提示清空所有图片--%>
<div class="modal fade" id="delImgPageModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content delImgPageModalCss" style="width: 70%;margin-left: 30%;">
<div class="modal-content ">
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
@ -2024,6 +2099,8 @@
spinner.spin();
if (result==1) {
toastr.success("删除所有图片成功!");
}else{
toastr.warning("没图片可删除!");
}
}
});
@ -2193,7 +2270,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
// height: 560, //定义表格的高度。
//height: 560, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -2738,9 +2815,9 @@
striped: true, //表格显示条纹默认为false
pagination: true, // 在表格底部显示分页组件默认false
paginationShowPageGo: true,
pageList: [10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
pageList: [5, 15, 25, 35], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
smartDisplay: false,
pageSize: 2, // 页面数据条数
pageSize: 5, // 页面数据条数
pageNumber: 1, // 初始化加载第一页,默认第一页
sidePagination: 'server', // 设置为服务器端分页 客户端client
search: false,
@ -2750,7 +2827,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
// height: 560, //定义表格的高度。
height: 450, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'left',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -2758,9 +2835,9 @@
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
queryParams: function (params) {
var currPageSize = this.pageSize;
if (currPageSize == 2) {
/*if (currPageSize == 2) {
currPageSize = 10;
}
}*/
var limit = null;
var offset = params.offset;
var patientId = $("#idLab").html();
@ -3695,20 +3772,20 @@
type: "POST",
data: {masterId: masterId},
success: function (result) {
console.log(result);
//console.log(result);
if (result > 0) {
alert("重新校验成功");
toastr.success("重新校验成功!");
$.ajax({
url: "${path}/beHosp/wzByArchivId",
type: "POST",
data: {archiveDetailId: masterId},
success: function (resultWz) {
console.log(resultWz);
//console.log(resultWz);
$("#wzContent").html(resultWz);
}
});
}else {
alert("重新校验失败");
toastr.warning("重新校验失败!");
}
}
});

@ -1,4 +1,4 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<%
@ -17,21 +17,25 @@
<%@ include file="../../jspf/ztreeCommom.jsp" %>
<style>
.modal-header2 {
text-align: center !important;
vertical-align: middle !important;
background-color: #3c8dbc !important;
color: #fff;
font-size: 16px;
font-weight: bold;
padding: 5px 5px 5px 5px !important;
}
.modal-dialog {
position:fixed;!important;
top:0px;!important;
left:0px;!important;
}
.modal-header2 {
text-align: center !important;
vertical-align: middle !important;
background-color: #3c8dbc !important;
color: #fff;
font-size: 16px;
font-weight: bold;
padding: 5px 5px 5px 5px !important;
}
.modal-dialog {
position: fixed;
!important;
top: 0px;
!important;
left: 0px;
!important;
}
.modal-footer {
padding: 5px;
}
@ -202,9 +206,18 @@
width: 400px;
!important;
}
.toolbarCss {
margin-right: 20px;
margin-bottom: 0px;
!important;
}
.fixed-table-toolbar .bs-bars .pull-right {
height: 20px;
!important;
}
</style>
</head>
@ -216,7 +229,7 @@
<!--搜索-->
<form style="margin-top:20px;" onkeydown="enter()">
<div class="form-inline">
<div hidden="hidden">
<div hidden="hidden">
<label for="id">病案号:</label>
<input type="text" class="input-sm form-control" id="id" placeholder="请输入病案号">
</div>
@ -233,12 +246,13 @@
<input type="text" class="input-sm form-control" id="name" placeholder="请输入姓名">
</div>
<div class="form-group divCss8" id="deptDiv" style="height: 18px;margin-top: -7px;">
<label >入院科室 :</label>
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="deptAdmissionTo" id="deptAdmissionTo" title="请输入入院科室">
<label>入院科室 :</label>
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="deptAdmissionTo"
id="deptAdmissionTo" title="请输入入院科室">
<option value="">全部</option>
</select>
</div>
<div class="form-group divCss8" style="height: 18px;margin-top: -7px;">
<div class="form-group divCss8">
<label>出院科室 :</label>
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="deptName" id="deptName"
title="请输入出院科室">
@ -261,7 +275,7 @@
<input type="text" class="input-sm form-control" name="end" id="createTimeEnd"/>
</div>
</div>
<div class="form-group divCss">
<div class="form-group divCss8">
<label>超期天数>=</label>
<input type="text" class="input-sm form-control" id="overdueDays" placeholder="请输入超期天数">
</div>
@ -280,12 +294,14 @@
</form>
<!--数据表格-->
<table id="table" class="table text-nowrap table-striped"></table>
<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
<div id="toolbar" class="btn-group pull-right toolbarCss" >
<div class="columns columns-right btn-group pull-right" style="margin-top:0px;">
<div class="btn-group btn-info">
<select id="sel_exportoption" class="form-control">                
<option value="">导出当前页面数据</option>                
<option value="all">导出全部数据</option>              
<option value="">导出当前页面数据</option>
               
<option value="all">导出全部数据</option>
             
<option value="selected">导出选中数据</option>
</select>
</div>
@ -306,8 +322,8 @@
<%--</div>--%>
<!-- 模态框3Modal查看档案 -->
<div class="modal fade" id="selModal" tabindex="1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
<div class="modal-dialog" style="left:20%;top:5x;">
<div class="modal fade" id="selModal" tabindex="1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style="left:20%;top:5px;">
<div class="modal-content">
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
@ -326,16 +342,16 @@
<div class="col-sm-5" hidden>
病案号:<label id="idLab" class="labCss"></label><label id="assortId" hidden></label>
</div>
<div class="col-sm-3" >
<div class="col-sm-3">
住院号:<label id="inLab" class="labCss"></label>
</div>
<div class="col-sm-4">
住院次数:<label id="inTimeLab" class="labCss"></label>
</div>
<div class="col-sm-4">
姓名:<label id="nameLab" class="labCss"></label>
</div>
<div class="col-sm-4">
姓名:<label id="nameLab" class="labCss"></label>
</div>
</div>
@ -351,7 +367,7 @@
<button type="button" class="btn btn-danger btn-sm" id="getRecallBtn">退回查看</button>
</div>
<%--<div class="col-sm-3">--%>
<%--完整性审核:--%>
<%--完整性审核:--%>
<%--</div>--%>
<div class="col-sm-3" id="firstDiv">
初审管理:
@ -373,13 +389,13 @@
</div>
</div>
<%--<div class="row divCss2">--%>
<%--&lt;%&ndash;<div class="col-sm-4">&ndash;%&gt;--%>
<%--&lt;%&ndash;离院方式:<label id="outHospLab" class="labCss"></label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--&lt;%&ndash;<div class="col-sm-5">&ndash;%&gt;--%>
<%--&lt;%&ndash;主管医生:<label id="chargeLab" class="labCss"></label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%----%>
<%--&lt;%&ndash;<div class="col-sm-4">&ndash;%&gt;--%>
<%--&lt;%&ndash;离院方式:<label id="outHospLab" class="labCss"></label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--&lt;%&ndash;<div class="col-sm-5">&ndash;%&gt;--%>
<%--&lt;%&ndash;主管医生:<label id="chargeLab" class="labCss"></label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%----%>
<%--</div>--%>
</div>
@ -462,7 +478,7 @@
<div class="row" id="backDivs">
<span style="color: blue;">退回信息</span>
<!--通过审批且未过期的patientId集合-->
<form class="form-horizontal " id="form2">
<form class="form-horizontal " id="form2">
<div class="row"><input id="backArchiveId" hidden>
<%--<div class="row divCss3 ">退回信息</div>--%>
<div class="row" style="margin-left: 30px;">
@ -478,11 +494,11 @@
</div>
</form>
</div>
<div class="row" id="backDivsStaff" >
<div class="row" id="backDivsStaff">
<span style="color: blue;">备注信息</span>
<!--通过审批且未过期的patientId集合-->
<form class="form-horizontal " id="formStaff" style="margin-left: 13px;">
<div class="row " >
<form class="form-horizontal " id="formStaff" style="margin-left: 13px;">
<div class="row ">
<span style="vertical-align:top;">护士备注:</span>
<textarea id="nuresText" rows="6" style="width:82.5%;" readonly></textarea>
</div>
@ -530,8 +546,8 @@
</div>
</div>
<%--<div class="row divCss2">--%>
<%--<span style="vertical-align:top;">缺陷类型:</span>--%>
<%--<input type="text" id="assortName" readonly/>--%>
<%--<span style="vertical-align:top;">缺陷类型:</span>--%>
<%--<input type="text" id="assortName" readonly/>--%>
<%--</div>--%>
<div class="row" style="margin-left:5px;margin-top:5px;">
<div class="col-sm-8">
@ -542,17 +558,17 @@
</div>
</div>
<%--<div class="row divCss2">--%>
<%--<span class="divCss7">选项:</span>--%>
<%--<div class="divCss4" id="faultTypeDiv">--%>
<%--&lt;%&ndash;<div class="row " style="width:600px">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果 </label>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子 </label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--&lt;%&ndash;<div class="row " style="width:600px">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果水电费是否是的范德萨</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--</div>--%>
<%--<span class="divCss7">选项:</span>--%>
<%--<div class="divCss4" id="faultTypeDiv">--%>
<%--&lt;%&ndash;<div class="row " style="width:600px">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果 </label>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子 </label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--&lt;%&ndash;<div class="row " style="width:600px">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果水电费是否是的范德萨</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--</div>--%>
<%--</div>--%>
<div class="row divCss2">
<span style="vertical-align:top;">内容:</span>
@ -706,7 +722,8 @@
<%--<button type="button" class="btn btn-danger btn-sm divCss" id="imgsDelBtn">批量删除</button>--%>
<button type="button" class="btn btn-warning btn-sm divCss" id="imgsSaveBtn">保存</button>
<a href="javascript:;" class="a-upload btn btn-info btn-sm">
<input type="file" name="myFile" id="myFile" multiple="multiple" accept="image/*" hidden/>选择文件
<input type="file" name="myFile" id="myFile" multiple="multiple" accept="image/*"
hidden/>选择文件
</a>
</div>
@ -747,7 +764,7 @@
<div class="modal-body" STYLE="height: 950px">
<div class="shadeImg" onclick="javascript:closeShadeImg()">
<div class="">
<img class="showImg" src="" />
<img class="showImg" src=""/>
</div>
</div>
</div>
@ -798,9 +815,10 @@
<div class="form-group ">
<input id="archiveId2" hidden/>
<span style="vertical-align:top;">初审内容:</span>
<textarea rows="6" style="width:85%;" readonly="readonly" maxlength="255" id="firstTrial"></textarea>
<textarea rows="6" style="width:85%;" readonly="readonly" maxlength="255"
id="firstTrial"></textarea>
</div>
<div class="form-group " >
<div class="form-group ">
<span style="vertical-align:top;">护士备注:</span>
<textarea id="nuresText2" rows="6" style="width:85%;" readonly></textarea>
</div>
@ -868,7 +886,6 @@
</div>
<%--删除pdf某页弹窗--%>
<div class="modal fade" id="delPdfPageModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
@ -886,7 +903,7 @@
<span style="vertical-align:top;">pdf路径</span>
<textarea rows="6" style="width:85%;" readonly id="pathPdf"></textarea>
</div>
<div class="form-group " >
<div class="form-group ">
<span style="vertical-align:top;">删除页码:</span>
<input type="number" id="pagePdf"/>
</div>
@ -904,13 +921,13 @@
<%--删除pdf某页确认框--%>
<div class="modal fade" id="delPdfPageModal2" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content " >
<div class="modal-content ">
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title">确认</h4>
</div>
<div class="modal-body" >
<div class="modal-body">
<form>
<div class="form-group">
<label class="control-label">如果删除将不可恢复,是否删除?</label>
@ -928,7 +945,7 @@
</body>
<script type="text/javascript">
var tipLoad=1;
var tipLoad = 1;
//创建数组保存图片
var files = new Array();
var id = 0;
@ -943,7 +960,7 @@
success: function (result) {
if (result != null) {
for (var i = 0; i < result.length; i++) {
$("#faultType").append("<option value=" + result[i].id + ">" + result[i].typeName + "(" + result[i].price + "分)"+ "</option>");
$("#faultType").append("<option value=" + result[i].id + ">" + result[i].typeName + "(" + result[i].price + "分)" + "</option>");
}
// var html = '';
// var num = 0;
@ -1014,25 +1031,25 @@
toastr.warning("图片限于png,gif,jpeg,jpg格式");
//$(".shade").fadeIn(500000000);//500
//$(".text_span").text("图片限于bmp,png,gif,jpeg,jpg格式");
// this.value = "";
// this.value = "";
//$(".img_div").html("");
return false;
} else {
/**
*若规则全部通过则在此提交url到后台数据库
*/
// if (objUrl.indexOf(".") != -1) {
// img_html = "<div class='isImg' id='-1'><img src='require(" + objUrl + ")' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
// } else {
img_html = "<div class='isImg' id='-1'><img src='" + objUrl + "' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
//}
img_html += selectStr
+ " <button class='removeBtn' onclick='javascript:removeImg(this)'>x</button></div>";
img_div.append(img_html);
// img_html = "<div class='isImg' id='-1'><img src='" + objUrl + "' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
// + selectStr
// + " <button class='removeBtn' onclick='javascript:removeImg(this)'>x</button></div>";
// img_div.append(img_html);
/**
*若规则全部通过则在此提交url到后台数据库
*/
// if (objUrl.indexOf(".") != -1) {
// img_html = "<div class='isImg' id='-1'><img src='require(" + objUrl + ")' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
// } else {
img_html = "<div class='isImg' id='-1'><img src='" + objUrl + "' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
//}
img_html += selectStr
+ " <button class='removeBtn' onclick='javascript:removeImg(this)'>x</button></div>";
img_div.append(img_html);
// img_html = "<div class='isImg' id='-1'><img src='" + objUrl + "' id='" + fileALL[i].name + "' onclick='javascript:lookBigImg(this)' style='height: 100%; width: 100%;' />"
// + selectStr
// + " <button class='removeBtn' onclick='javascript:removeImg(this)'>x</button></div>";
// img_div.append(img_html);
}
}
/**
@ -1278,6 +1295,7 @@
}
});
}
function uploadFileFun() {
if ($('#addFile')[0].files[0] != undefined) {
if ($('#addFile')[0].files[0].size > 0) {
@ -1700,7 +1718,7 @@
}
function initTable() {
if(tipLoad==1){
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: "${path}/medicalOverdue/medicalOverdueList", // 获取表格数据的url
@ -1777,9 +1795,9 @@
var temp = {
limit: limit, //页面大小
offset: offset, //页码
// order: params.order, //排位命令descasc
// id: $("#id").val(),
// idNo: $("#idNo").val(),
// order: params.order, //排位命令descasc
// id: $("#id").val(),
// idNo: $("#idNo").val(),
inpNo: "" + $("#inpNo").val(),
visitId: "" + $("#visitId").val(),
name: "" + $("#name").val(),
@ -1787,10 +1805,10 @@
deptAdmissionTo: deptAdmissionTo.toString(),
startDate: $("#startDate").val(),
endDate: $("#endDate").val(),
createTimeStart:$("#createTimeStart").val(),
createTimeEnd:$("#createTimeEnd").val(),
deathFlag:$("#deathFlag").val(),
overdueDays:$("#overdueDays").val()
createTimeStart: $("#createTimeStart").val(),
createTimeEnd: $("#createTimeEnd").val(),
deathFlag: $("#deathFlag").val(),
overdueDays: $("#overdueDays").val()
};
return temp;
@ -1842,10 +1860,10 @@
align: 'center',
visible: false,
formatter: function (value, row, index) {
var result="";
if(value!=null && value!=""){
result=value.substring(0, 10);
}
var result = "";
if (value != null && value != "") {
result = value.substring(0, 10);
}
return result;
}
},
@ -1861,9 +1879,9 @@
align: 'center',
valign: 'middle',
formatter: function (value, row, index) {
var result="";
if(value!=null && value!=""){
result=value.substring(0, 10);
var result = "";
if (value != null && value != "") {
result = value.substring(0, 10);
}
return result;
}
@ -1874,9 +1892,9 @@
align: 'center',
valign: 'middle',
formatter: function (value, row, index) {
var result="";
if(value!=null && value!=""){
result=value.substring(0, 10);
var result = "";
if (value != null && value != "") {
result = value.substring(0, 10);
}
return result;
}
@ -1905,11 +1923,11 @@
}
//死亡否
var deathExpired = <%=res.getString("deathExpired")%>;
if (value != null && value != "" && value==0) {
if (value != null && value != "" && value == 0) {
result = '<span style="color:green;"><i class="fa fa-times-circle-o" aria-hidden="true"></i> </span>'
} else {
if (days > deathExpired) {
var day=days- deathExpired;
var day = days - deathExpired;
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>已死亡</span>';
} else {
result = '<span style="color:red;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>已死亡</span>';
@ -1939,7 +1957,7 @@
}
var idArr = [];
var flag=0;
var flag = 0;
function initTable2() {
idArr = [];
@ -1996,7 +2014,7 @@
order: params.order, //排位命令descasc
patientId: patientId,
assortId: assortId,
flag:flag
flag: flag
};
return temp;
},
@ -2112,11 +2130,11 @@
if (row.source != null && row.source != "") {
if (row.source.indexOf("后台") != -1) {
if (index != null && index != "" && index.indexOf("delPage") != -1) {
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
html = html + '<button type="button" class="btn btn-primary btn-sm delPdfPage" >删除页 </button>';// '<a href="javascript:;" class="delete">删除</a>';
}
}
if (index != null && index != "" && index.indexOf("delPage") != -1) {
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
html = html + '<button type="button" class="btn btn-primary btn-sm delPdfPage" >删除页 </button>';// '<a href="javascript:;" class="delete">删除</a>';
}
}
}
@ -2269,11 +2287,11 @@
var value2 = [];
//查询
$('#searchBtn').click(function () {
if ($("#deptName").val().length > 0){
if ($("#deptName").val().length > 0) {
value = $("#deptName").val();
}
if ($("#deptAdmissionTo").val().length > 0){
if ($("#deptAdmissionTo").val().length > 0) {
value2 = $("#deptAdmissionTo").val();
}
if (tipLoad == 0) {
@ -2336,7 +2354,7 @@
var inpNo = "" + $("#inpNo").val();
var visitId = "" + $("#visitId").val();
var name = "" + $("#name").val();
// var idNo = "" + $("#idNo").val();
// var idNo = "" + $("#idNo").val();
// var url = window.location.href;
// var deptName = url.substring(url.lastIndexOf('&') + 1).replace("depts=", "");
// if (deptName != null && deptName != '') {
@ -2504,11 +2522,11 @@
$("#updateStateBtn").click(function () {
//选中批量作废
var id = idArr.toString();
//判断id
if(id==null || id==''){
toastr.warning("请选择记录!");
return;
}
//判断id
if (id == null || id == '') {
toastr.warning("请选择记录!");
return;
}
$.ajax({
url: "${path}/inHosp/updateStateAll",
type: "POST",
@ -2781,132 +2799,132 @@
width: 150
},
// {
// field: 'content',
// title: '内容',
// width: 300
// },
{
title: "操作",
align: 'left',
valign: 'middle',
width: 100, // 定义列的宽度单位为像素px
formatter: function (value, row, index) {
var url = window.location.href;
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
var html = "";
if (row.dealFlag == 1) {
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
html += '<button type="button" class="btn btn-warning btn-sm dealInfo" >未处理 </button>';
}
} else {
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
html += '<button type="button" class="btn btn-info btn-sm dealInfo" >已处理 </button>';
}
}
if (index != null && index != "" && index.indexOf("select") != -1) {
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
html+= '<button type="button" class="btn btn-danger btn-sm qxInfo" >查看 </button>';// '<a href="javascript:;" class="delete">删除</a>';
}
return html;
}, events: {
'click .qxInfo': function (e, value, row, index) {
// {
// field: 'content',
// title: '内容',
// width: 300
// },
{
title: "操作",
align: 'left',
valign: 'middle',
width: 100, // 定义列的宽度单位为像素px
formatter: function (value, row, index) {
var url = window.location.href;
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
var html = "";
$('#qxModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
var backPerson = "";
if (row.backFlag == 1) {
backPerson = "主任退回医生";
} else if (row.backFlag == 2) {
backPerson = "主任退回护士";
} else if (row.backFlag == 5) {
backPerson = "病案室退回医生";
} else if (row.backFlag == 6) {
backPerson = "病案室退回护士";
}
var backPerson = "";
if (row.backFlag == 1) {
backPerson = "主任退回医生";
} else if (row.backFlag == 2) {
backPerson = "主任退回护士";
} else if (row.backFlag == 5) {
backPerson = "病案室退回医生";
} else if (row.backFlag == 6) {
backPerson = "病案室退回护士";
}
var dealFlag = "";
if (row.dealFlag == 1) {
dealFlag = "已处理";
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
$("#dealNoBtn").show();
} else {
$("#dealNoBtn").hide();
html += '<button type="button" class="btn btn-warning btn-sm dealInfo" >未处理 </button>';
}
} else {
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
$("#dealBtn").hide();
} else {
$("#dealBtn").hide();
html += '<button type="button" class="btn btn-info btn-sm dealInfo" >已处理 </button>';
}
} else {
dealFlag = "未处理";
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
$("#dealNoBtn").hide();
}
if (index != null && index != "" && index.indexOf("select") != -1) {
//return '<button class="btn btn-danger btn-sm" onclick="selectFun(\'' + row + '\')">查看 </button>';
html += '<button type="button" class="btn btn-danger btn-sm qxInfo" >查看 </button>';// '<a href="javascript:;" class="delete">删除</a>';
}
return html;
}, events: {
'click .qxInfo': function (e, value, row, index) {
var url = window.location.href;
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
var html = "";
$('#qxModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
var backPerson = "";
if (row.backFlag == 1) {
backPerson = "主任退回医生";
} else if (row.backFlag == 2) {
backPerson = "主任退回护士";
} else if (row.backFlag == 5) {
backPerson = "病案室退回医生";
} else if (row.backFlag == 6) {
backPerson = "病案室退回护士";
}
var backPerson = "";
if (row.backFlag == 1) {
backPerson = "主任退回医生";
} else if (row.backFlag == 2) {
backPerson = "主任退回护士";
} else if (row.backFlag == 5) {
backPerson = "病案室退回医生";
} else if (row.backFlag == 6) {
backPerson = "病案室退回护士";
}
var dealFlag = "";
if (row.dealFlag == 1) {
dealFlag = "已处理";
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
$("#dealNoBtn").show();
} else {
$("#dealNoBtn").hide();
}
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
$("#dealBtn").hide();
} else {
$("#dealBtn").hide();
}
} else {
$("#dealNoBtn").hide();
dealFlag = "未处理";
if (index != null && index != "" && index.indexOf("dealNO") != -1) {
$("#dealNoBtn").hide();
} else {
$("#dealNoBtn").hide();
}
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
$("#dealBtn").show();
} else {
$("#dealBtn").hide();
}
}
if (index != null && index != "" && index.indexOf("dealOk") != -1) {
$("#dealBtn").show();
var dealPerson = "";
if (dealPerson == null || dealPerson == "") {
dealPerson = "暂无";
} else {
$("#dealBtn").hide();
dealPerson = row.dealPerson;
}
}
var dealPerson = "";
if (dealPerson == null || dealPerson == "") {
dealPerson = "暂无";
} else {
dealPerson = row.dealPerson;
}
var dealTime = "";
if (dealTime == null || dealTime == "") {
dealTime = "暂无";
} else {
dealTime = row.dealTime;
var dealTime = "";
if (dealTime == null || dealTime == "") {
dealTime = "暂无";
} else {
dealTime = row.dealTime;
}
//同步dealFlag
$("#backPerson").html(backPerson);
$("#dealFlag").html(dealFlag);
$("#dealPerson").html(dealPerson);
$("#dealTime").html(dealTime);
$("#assortName").val(row.assortName);
$("#content").val(row.content);
$("#qxId").val(row.id);
$("#faultType").val(row.assortId);
// $('input[name="Fruit"]').each(function () {//遍历每一个名字为interest的复选框其中选中的执行函数
// if ($(this).val() == row.assortId) {
// $(this)[0].checked = true;
// } else {
// $(this)[0].checked = false;
// }
// });
},
'click .dealInfo': function (e, value, row, index) {
//处理操作
dealFun(row.id);
}
//同步dealFlag
$("#backPerson").html(backPerson);
$("#dealFlag").html(dealFlag);
$("#dealPerson").html(dealPerson);
$("#dealTime").html(dealTime);
$("#assortName").val(row.assortName);
$("#content").val(row.content);
$("#qxId").val(row.id);
$("#faultType").val(row.assortId);
// $('input[name="Fruit"]').each(function () {//遍历每一个名字为interest的复选框其中选中的执行函数
// if ($(this).val() == row.assortId) {
// $(this)[0].checked = true;
// } else {
// $(this)[0].checked = false;
// }
// });
},
'click .dealInfo': function (e, value, row, index) {
//处理操作
dealFun(row.id);
cellStyle: function (value, row, index) {
return {classes: 'success'}
}
},
cellStyle: function (value, row, index) {
return {classes: 'success'}
}
}
],
onLoadSuccess: function (result) { //加载成功时执行
// console.info("加载成功");
@ -2929,26 +2947,27 @@
}
getQxList();
function getStaffFun(flag){
function getStaffFun(flag) {
$.ajax({
url: "${path}/staffRemark/staffRemarkList",
type: "POST",
data: {masterId: $("#idLab").html(),effective:1},
data: {masterId: $("#idLab").html(), effective: 1},
success: function (result) {
if(result!=null){
for(var i=0;i<result.length;i++){
if(result[i].typeFlag==1){
if (result != null) {
for (var i = 0; i < result.length; i++) {
if (result[i].typeFlag == 1) {
//1护士
if(flag==1) {
if (flag == 1) {
$("#nuresText").val(result[i].content);
}else if(flag==2) {
} else if (flag == 2) {
$("#nuresText2").val(result[i].content);
}
}else if(result[i].typeFlag==0){
} else if (result[i].typeFlag == 0) {
//0医生
if(flag==1) {
if (flag == 1) {
$("#doctorText").val(result[i].content);
}else if(flag==2) {
} else if (flag == 2) {
$("#doctorText2").val(result[i].content);
}
}
@ -3004,8 +3023,6 @@
});
//删除pdf
$("#statePdfBtn").click(function () {
$('#delPdfModal').modal('hide'); //手动关闭
@ -3042,22 +3059,25 @@
//确认删除pdf页码
$("#delPageBtn2").click(function () {
var entity={};
entity.id= $("#pdfId").val();
entity.title = ""+$("#pagePdf").val();
var entity = {};
entity.id = $("#pdfId").val();
entity.title = "" + $("#pagePdf").val();
entity.pdfPath = $("#pathPdf").val();
if(entity.id==null ||entity.id=="" ){
if (entity.id == null || entity.id == "") {
toastr.warning("id不为空");
return;
} if(entity.title==null ||entity.title=="" ){
}
if (entity.title == null || entity.title == "") {
toastr.warning("页码必填!");
return;
} if(entity.title!=null && entity.title!="" ){
if(entity.title<=0){
}
if (entity.title != null && entity.title != "") {
if (entity.title <= 0) {
toastr.warning("页码大于0必填");
return;
}
} if(entity.pdfPath==null ||entity.pdfPath=="" ){
}
if (entity.pdfPath == null || entity.pdfPath == "") {
toastr.warning("PDF不存在");
return;
}
@ -3065,7 +3085,7 @@
$.ajax({
url: "${path}/inHosp/delPdfPage",
type: "POST",
data:entity,
data: entity,
success: function (result) {
$("#pagePdf").val("");
$('#delPdfPageModal').modal('hide'); //手动关闭
@ -3074,11 +3094,11 @@
//刷新
$('#table2').bootstrapTable('refresh');
initTree($("#idLab").html());
toastr.success("删除pdf页数,第"+entity.title+"页成功!");
toastr.success("删除pdf页数,第" + entity.title + "页成功!");
} else if (result ==0){
toastr.error("删除pdf页数,第"+entity.title+"页失败!");
}else if (result == 2){
} else if (result == 0) {
toastr.error("删除pdf页数,第" + entity.title + "页失败!");
} else if (result == 2) {
toastr.error("pdf文件不存在");
}
}, error: function () {
@ -3178,10 +3198,8 @@
}
});
function enter()
{
if (event.keyCode == 13)
{
function enter() {
if (event.keyCode == 13) {
document.getElementById('searchBtn').click();
}
}

@ -29,6 +29,17 @@
.table > thead:first-child > tr:first-child > th {
text-align: center !important;
}
.toolbarCss {
margin-right: 20px;
margin-bottom: 0px;
!important;
}
.fixed-table-toolbar .bs-bars .pull-right{
height: 20px;
!important;
}
</style>
</head>
@ -96,7 +107,7 @@
</form>
<!--数据表格-->
<table id="table" class="table table-striped"></table>
<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
<div id="toolbar" class="btn-group pull-right toolbarCss" >
<div class="columns columns-right btn-group pull-right" style="margin-top:0px;">
<div class="btn-group btn-info">
<select id="sel_exportoption" class="form-control">                

@ -52,6 +52,17 @@
height: 160px;
width: 500px;
}
.toolbarCss {
margin-right: 20px;
margin-bottom: 0px;
!important;
}
.fixed-table-toolbar .bs-bars .pull-right{
height: 20px;
!important;
}
</style>
<body>
<div style="margin-left:30px;margin-right:10px;height:auto">
@ -114,7 +125,7 @@
</form>
<!--数据表格-->
<table id="table" class="table text-nowrap table-striped" ></table>
<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
<div id="toolbar" class="btn-group pull-right toolbarCss" >
<div class="columns columns-right btn-group pull-right" style="margin-top:0px;">
<div class="btn-group btn-info">
<select id="sel_exportoption" class="form-control">                

@ -1,8 +1,6 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<%--<%@ include file="/WEB-INF/jspf/common.jspf" %>--%>
<html>
<head>
<title>病案封存</title>
@ -23,10 +21,11 @@
font-weight: bold;
padding: 5px 5px 5px 5px !important;
}
/*.modal-header {*/
/*padding: 5px 5px 5px 5px !important;*/
/*}*/
.modal-footer{
.modal-footer {
padding: 5px;
}
@ -48,10 +47,27 @@
.table > thead:first-child > tr:first-child > th {
text-align: center !important;
}
.enterCss2{
.enterCss2 {
height: 160px;
width: 500px;
}
#deptDiv {
height: 18px;
margin-top: -7px;
}
.toolbarCss {
margin-right: 20px;
margin-bottom: 0px;
!important;
}
.fixed-table-toolbar .bs-bars .pull-right{
height: 20px;
!important;
}
</style>
<body>
<div style="margin-left:30px;margin-right:10px;height:auto">
@ -82,7 +98,7 @@
</select>
</div>
<div class="form-group divCss8" id="deptDiv" style="height: 18px;margin-top: -7px;">
<div class="form-group " id="deptDiv">
<label>出院科室 :</label>
<%--<select class="input-sm form-control" id="deptName">--%>
<%--<option value="">全部</option>--%>
@ -98,30 +114,33 @@
<option value="">全部</option>
</select>
</div>
<%-- <div class="form-group divCss">--%>
<%-- <label for="state">召回状态 :</label>--%>
<%-- <select class="input-sm form-control" id="state">--%>
<%-- <option value="">全部</option>--%>
<%-- <option value="已召回">已召回</option>--%>
<%-- <option value="未召回">未召回</option>--%>
<%-- </select>--%>
<%-- </div>--%>
<button type="button" class="btn btn-primary btn-sm divCss"id="searchBtn">查询</button>
<%-- <div class="form-group divCss">--%>
<%-- <label for="state">召回状态 :</label>--%>
<%-- <select class="input-sm form-control" id="state">--%>
<%-- <option value="">全部</option>--%>
<%-- <option value="已召回">已召回</option>--%>
<%-- <option value="未召回">未召回</option>--%>
<%-- </select>--%>
<%-- </div>--%>
<button type="button" class="btn btn-primary btn-sm divCss" id="searchBtn">查询</button>
<button type="button" class="btn btn-info btn-sm divCss" id="excelBtn">条件导出</button>
</div>
</form>
<!--数据表格-->
<table id="table" class="table text-nowrap table-striped" ></table>
<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
<table id="table" class="table text-nowrap table-striped"></table>
<div id="toolbar" class="btn-group pull-right toolbarCss" >
<div class="columns columns-right btn-group pull-right" style="margin-top:0px;">
<div class="btn-group btn-info">
<select id="sel_exportoption" class="form-control">                
<option value="">导出当前页面数据</option>                
<option value="all">导出全部数据</option>              
<option value="">导出当前页面数据</option>
               
<option value="all">导出全部数据</option>
             
<option value="selected">导出选中数据</option>
</select>
</div>
<button class=" btn btn-success btn-sm" style="height: 34px" type="button" id="refreshBtn" name="refresh" aria-label="Refresh"
<button class=" btn btn-success btn-sm" style="height: 34px" type="button" id="refreshBtn" name="refresh"
aria-label="Refresh"
title="Refresh">
<i class="glyphicon glyphicon-refresh icon-refresh"></i>
</button>
@ -142,7 +161,9 @@
<form>
<div class="form-group ">
<input type="hidden" id="id" name="id" value=""/><label hidden id="danganhao"></label>
<span style="vertical-align:top;">取消封存概述:</span><textarea rows="6" style="width:87%;" maxlength="255" id="recallReason2"></textarea>
<span style="vertical-align:top;">取消封存概述:</span><textarea rows="6" style="width:100%;"
maxlength="255"
id="recallReason2"></textarea>
</div>
</form>
</div>
@ -167,7 +188,9 @@
<form>
<div class="form-group ">
<input type="hidden" id="id1" name="id" value=""/><label hidden id="danganhao1"></label>
<span style="vertical-align:top;">确认封存概述:</span><textarea rows="6" style="width:87%;" maxlength="255" id="recallReason"></textarea>
<span style="vertical-align:top;">确认封存概述:</span><textarea rows="6" style="width:100%;"
maxlength="255"
id="recallReason"></textarea>
</div>
</form>
</div>
@ -180,7 +203,6 @@
</div>
</body>
<script>
var tipLoad = 1;
@ -263,7 +285,7 @@
}
function initTable() {
if(tipLoad == 1){
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: "${path}/storage/StorageList", // 获取表格数据的url
@ -309,14 +331,14 @@
currPageSize = 10;
}
var limit= null;
var offset= params.offset;
var limit = null;
var offset = params.offset;
//判断是否导出全部all
if ($("#sel_exportoption").val() == "all") {
offset=0;
limit=this.totalRows;
this.pageSize= limit;
}else{
offset = 0;
limit = this.totalRows;
this.pageSize = limit;
} else {
limit = currPageSize;
this.pageSize = currPageSize;
}
@ -348,8 +370,8 @@
order: params.order, //排位命令descasc
idNo: $("#idNo").val(),
inpNo: "" + $("#inpNo").val(),
visitId:""+$("#visitId").val(),
name:""+$("#name").val(),
visitId: "" + $("#visitId").val(),
name: "" + $("#name").val(),
archivestate: "" + $("#archivestate").val(),
// state:"" + $("#state").val(),
deptName: deptName.toString()
@ -488,10 +510,10 @@
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
if (index != null && index != "" && index.indexOf("recall") != -1) {
if (row.archivestate == "已封存" || row.archivestate == "已归档") {
if(row.archivestate=="已封存"){
if (row.archivestate == "已封存") {
return '<button class="btn btn-success btn-sm" onclick="recallFun(\'' + row.id + '\',\'' + row.archiveDetailId + '\')">取消封存 </button>';
//return '<button class="btn btn-warning btn-sm" onclick="recallFun(\'' + row.id + '\',\'' + row.archiveDetailId + '\')">已封存 </button>' + '<button class="btn btn-danger btn-sm" onclick="logFun(\'' + row.id + '\',\'' + row.archiveDetailId + '\',\'' + row.recallReason + '\')">日志</button>';
}else{
} else {
return '<button class="btn btn-warning btn-sm" onclick="recallFun1(\'' + row.id + '\',\'' + row.archiveDetailId + '\')">封存 </button>';
}
} else {
@ -519,7 +541,7 @@
}
}
function recallFun(id, archiveDetailId){
function recallFun(id, archiveDetailId) {
$('#exampleModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
@ -529,7 +551,7 @@
$("#danganhao").html(archiveDetailId);
}
function recallFun1(id, archiveDetailId){
function recallFun1(id, archiveDetailId) {
$('#exampleModal1').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
@ -542,7 +564,7 @@
var value = [];
//查询
$('#searchBtn').click(function () {
if ($("#deptName").val().length > 0){
if ($("#deptName").val().length > 0) {
value = $("#deptName").val();
}
if (tipLoad == 0) {
@ -578,29 +600,29 @@
var name = "" + $("#name").val();
var idNo = "" + $("#idNo").val();
var state = "" + $("#state").val();
var archivestate=""+ $("#archivestate").val();
var deptName= $("#deptName").val();
var archivestate = "" + $("#archivestate").val();
var deptName = $("#deptName").val();
window.location.href = "${path}/medicalRecall/exportExcel?inpNo=" + inpNo + "&visitId=" + visitId +
"&name=" + name + "&state=" + state + "&idNo=" + idNo + "&archivestate=" + archivestate+ "&deptName=" + deptName;
"&name=" + name + "&state=" + state + "&idNo=" + idNo + "&archivestate=" + archivestate + "&deptName=" + deptName;
});
$("#stateBtn").click(function () {
$('#exampleModal').modal('hide'); //手动关闭
var archiveDetailId=$("#danganhao").html();
var visitId=$("#visitId").html();
var archiveDetailId = $("#danganhao").html();
var visitId = $("#visitId").html();
var id = archiveDetailId;
var ArchiveState=$("#archivestate").html();
var recallReason= $("#recallReason2").val();
var ArchiveState = $("#archivestate").html();
var recallReason = $("#recallReason2").val();
$.ajax({
url: "${path}/storage/updateState",
type: "POST",
data: {"ArchiveState":"已归档", "archiveDetailId": archiveDetailId, recallReason: recallReason},
data: {"ArchiveState": "已归档", "archiveDetailId": archiveDetailId, recallReason: recallReason},
success: function (result) {
//刷新
$('#table').bootstrapTable('refresh');
if(result>0){
if (result > 0) {
toastr.success("取消封存成功!");
}else{
} else {
toastr.error("取消封存失败!");
}
}, error: function () {
@ -613,21 +635,21 @@
$("#stateBtn1").click(function () {
$('#exampleModal1').modal('hide'); //手动关闭
var archiveDetailId=$("#danganhao1").html();
var visitId=$("#visitId").html();
var archiveDetailId = $("#danganhao1").html();
var visitId = $("#visitId").html();
var id = archiveDetailId;
var ArchiveState=$("#archivestate").html();
var recallReason= $("#recallReason").val();
var ArchiveState = $("#archivestate").html();
var recallReason = $("#recallReason").val();
$.ajax({
url: "${path}/storage/updateState",
type: "POST",
data: {"ArchiveState":"已封存", "archiveDetailId": archiveDetailId, recallReason: recallReason},
data: {"ArchiveState": "已封存", "archiveDetailId": archiveDetailId, recallReason: recallReason},
success: function (result) {
//刷新
$('#table').bootstrapTable('refresh');
if(result>0){
if (result > 0) {
toastr.success("确认封存成功!");
}else{
} else {
toastr.error("确认封存失败!");
}
}, error: function () {

@ -12,6 +12,14 @@
<script type="text/javascript" src="${path}/static/js/echarts.min.js"></script>
<%@include file="../../jspf/comm.jspf" %>
<style>
.body {
overflow-x: hidden;
overflow-y: hidden;
height: calc(100vh - 0px);
!important;
}
.divCss {
margin-top: 5px;
}
@ -30,25 +38,46 @@
.table > thead:first-child > tr:first-child > th {
text-align: center !important;
}
#toolbar > div {
margin-top: 0px;
!important;
}
#dataDiv {
margin-left: 10px;
margin-right: 10px;
height: auto;
}
.toolbarCss {
margin-right: 20px;
margin-bottom: 0px;
!important;
}
.fixed-table-toolbar .bs-bars .pull-right{
height: 20px;
!important;
}
</style>
</head>
<body>
<div style="margin-left:30px;margin-right:10px;height:auto">
<div class="row" id="dataDiv">
<!--搜索-->
<form style="margin-top:20px;">
<div class="form-inline">
<div class="form-group divCss8" style="height: 18px;margin-top: -7px;">
<label >出院科室:</label>
<label>出院科室:</label>
<%--<select class="input-sm form-control" id="deptName">--%>
<%--<option value="">全部</option>--%>
<%--&lt;%&ndash;<option value="在院">在院</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="未归档">未归档</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="归档中">归档中</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="初审">初审</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="已认证">已认证</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="已归档">已归档</option>&ndash;%&gt;--%>
<%--<option value="">全部</option>--%>
<%--&lt;%&ndash;<option value="在院">在院</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="未归档">未归档</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="归档中">归档中</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="初审">初审</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="已认证">已认证</option>&ndash;%&gt;--%>
<%--&lt;%&ndash;<option value="已归档">已归档</option>&ndash;%&gt;--%>
<%--</select>--%>
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="deptName"
id="deptName"
@ -73,7 +102,7 @@
</form>
<!--数据表格-->
<table id="table" class="table table-striped"></table>
<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
<div id="toolbar" class="btn-group pull-right toolbarCss" >
<div class="columns columns-right btn-group pull-right">
<div class="btn-group btn-info">
<select id="sel_exportoption" class="form-control">                
@ -93,17 +122,18 @@
</div>
</div>
<%--<div class="row" style="background-color:#fff;height:400px;margin-left:30px;">--%>
<%--<div class="col-sm-3" style="background-color:#ECF0F5;height:400px;" id="chartmainTwo">sss</div>--%>
<%--<div class="col-sm-4" style="margin-left:2%;background-color:#ECF0F5;height:400px;" id="chartmainThree">sss</div>--%>
<%--<div class="col-sm-4" style="margin-left:2%;background-color:#ECF0F5;height:400px;" id="chartmainFour">ss</div>--%>
<%--<div class="col-sm-3" style="background-color:#ECF0F5;height:400px;" id="chartmainTwo">sss</div>--%>
<%--<div class="col-sm-4" style="margin-left:2%;background-color:#ECF0F5;height:400px;" id="chartmainThree">sss</div>--%>
<%--<div class="col-sm-4" style="margin-left:2%;background-color:#ECF0F5;height:400px;" id="chartmainFour">ss</div>--%>
<%--</div>--%>
<div class="row" style="margin-top: 20px;margin-left:30px;background-color:#ECF0F5;width:100%;height:600px;"
<div class="row" style="margin-top: 20px;margin-left:20px;background-color:#ECF0F5;width:97%;height:600px;"
id="chartmainTwo"></div>
<div class="row" style="margin-top: 20px;margin-left:30px;background-color:#ECF0F5;width:100%;height:600px;" id="chartmainOne"></div>
<div class="row" style="margin-top: 20px;margin-left:20px;background-color:#ECF0F5;width:97%;height:600px;"
id="chartmainOne"></div>
</body>
<script>
var tipLoad = 1;
var tipLoad = 1;
$(function () {
function getDept() {
@ -161,8 +191,8 @@ var tipLoad = 1;
var day3Arr = [15, 12, 16, 18, 17, 16, 13, 36, 34];
var day7Arr = [10, 10, 10, 18, 17, 10, 63, 36, 34];
//获取部门统计列表
var entity={};
entity.deptCode= $("#deptName").val();
var entity = {};
entity.deptCode = $("#deptName").val();
entity.startDate = $("#startDate").val();
entity.endDate = $("#endDate").val();
$.ajax({
@ -172,7 +202,7 @@ var tipLoad = 1;
success: function (result) {
var optionOne;
var optionTwo;
if(result!=null){
if (result != null) {
deptArr = [];
outArr = [];
fileArr = [];
@ -486,32 +516,32 @@ var tipLoad = 1;
},
}
],
"dataZoom":[{
"show": true,
"height": 12,
"xAxisIndex": [
0
],
bottom: '8%',
"start": 10,
"end": 90,
handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z',
handleSize: '110%',
handleStyle: {
color: "#d3dee5",
"dataZoom": [{
"show": true,
"height": 12,
"xAxisIndex": [
0
],
bottom: '8%',
"start": 10,
"end": 90,
handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z',
handleSize: '110%',
handleStyle: {
color: "#d3dee5",
},
textStyle: {
color: "#90979c"
},
borderColor: "#90979c"
}, {
"type": "inside",
"show": true,
"height": 15,
"start": 1,
"end": 35
}],
},
textStyle: {
color: "#90979c"
},
borderColor: "#90979c"
}, {
"type": "inside",
"show": true,
"height": 15,
"start": 1,
"end": 35
}],
series: [
{
name: '归档率%',
@ -739,7 +769,6 @@ var tipLoad = 1;
});
});
@ -763,7 +792,7 @@ var tipLoad = 1;
// }
function initTable() {
if(tipLoad == 1){
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: "${path}/vCount/vCountList", // 获取表格数据的url
@ -773,7 +802,7 @@ var tipLoad = 1;
striped: true, //表格显示条纹默认为false
pagination: true, // 在表格底部显示分页组件默认false
paginationShowPageGo: true,
pageList: [5,10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
pageList: [10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
smartDisplay: false,
pageSize: 2, // 页面数据条数
pageNumber: 1, // 初始化加载第一页,默认第一页
@ -787,7 +816,7 @@ var tipLoad = 1;
undefinedText: '--', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
//height: 560, //定义表格的高度。
height: 560, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -911,8 +940,8 @@ var tipLoad = 1;
valign: 'middle',
formatter: function (value, row, index) {
var val;
if(row.fileRate!=null && row.fileRate!=''){
val= (row.fileRate*100)+"%";
if (row.fileRate != null && row.fileRate != '') {
val = (row.fileRate * 100) + "%";
}
return val;
@ -963,7 +992,7 @@ var tipLoad = 1;
],
onLoadSuccess: function (result) { //加载成功时执行
//console.info("加载成功");
tipLoad =0;
tipLoad = 0;
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");
@ -983,7 +1012,7 @@ var tipLoad = 1;
} else {
toastr.warning("正在查询,请稍等...");
}
$(".selectpicker").selectpicker( 'deselectAll' );
$(".selectpicker").selectpicker('deselectAll');
// $('#table').bootstrapTable('destroy');
//$('#table').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
//刷新
@ -1016,10 +1045,10 @@ var tipLoad = 1;
} else {
deptName = $("#deptName").val().toString();
}
var startDate=$("#startDate").val();
var endDate=$("#endDate").val();
window.location.href = "${path}/vCount/exportExcel?deptCode=" + deptName+"&startDate="+ startDate
+"&endDate="+ endDate;
var startDate = $("#startDate").val();
var endDate = $("#endDate").val();
window.location.href = "${path}/vCount/exportExcel?deptCode=" + deptName + "&startDate=" + startDate
+ "&endDate=" + endDate;
});
//导出excel功能
@ -1033,9 +1062,10 @@ var tipLoad = 1;
}
var startDateTo = $("#startDate").val();
var endDateTo = $("#endDate").val();
var archivestate="归档中,初审,复审退回,提交,主任退回";
window.location.href = "${path}/vCount/exportExcel2?deptName=" + deptName + "&startDateTo=" + startDateTo
+ "&endDateTo=" + endDateTo;
+ "&endDateTo=" + endDateTo+ "&archivestate=" + archivestate;
});

@ -1,7 +1,8 @@
body {
height: 90%;
height: calc(100vh - 300px);
padding: 0;
margin: 0;
}
.table th, .table td{

Loading…
Cancel
Save