质控流程医生护士双方都可以看到

gaoming_branch
ALW 3 years ago
parent f5575a4074
commit e4d0720880

@ -107,18 +107,18 @@ public class ArchiveOtherExtController {
return Msg.fail("masterId不能为空!");
}
}
if (StringUtils.isNotBlank(dzblIds)) {
List<String> list = Arrays.asList(dzblIds.split(","));
for (String taskid : list) {
HttpRequest.sendGet("http://200.100.104.40:9296/api/noviewtask/MakeUp", "taskid=" + taskid);
}
}
if (StringUtils.isNotBlank(nursingIds)) {
List<String> list = Arrays.asList(nursingIds.split(","));
for (String taskid : list) {
HttpRequest.sendGet("http://200.100.104.40:9296/api/noviewtask/MakeUp", "taskid=" + taskid);
}
}
// if (StringUtils.isNotBlank(dzblIds)) {
// List<String> list = Arrays.asList(dzblIds.split(","));
// for (String taskid : list) {
// HttpRequest.sendGet("http://200.100.104.40:9296/api/noviewtask/MakeUp", "taskid=" + taskid);
// }
// }
// if (StringUtils.isNotBlank(nursingIds)) {
// List<String> list = Arrays.asList(nursingIds.split(","));
// for (String taskid : list) {
// HttpRequest.sendGet("http://200.100.104.40:9296/api/noviewtask/MakeUp", "taskid=" + taskid);
// }
// }
archiveOtherExtService.updateSubmit(ids, notNursingIds, nursingIds, detailIds, jzh, masterId, sysFlag, request);
return Msg.success();
}

@ -18,6 +18,8 @@ public interface Archive_MasterMapper {
Archive_Master selectByPrimaryKey(String id);
List<Archive_Master> selectCommonlyUsed(String idList);
List<Archive_Master> selectByCol(Archive_Master_Vo record);
List<Archive_Master_Vo> selectByColumn(Archive_Master_Vo record);
@ -30,6 +32,8 @@ public interface Archive_MasterMapper {
int updateByClo(Archive_Master record);
int deleteRecordByInp(@Param("masterId")String masterId);
int updateById(Archive_Master record);
List<DoctorStatistics> getDoctorFileInfo(@Param("deptCode")String deptCode,@Param("doctor")String doctor,@Param("startTime")String startTime,@Param("endTime")String endTime);

@ -13,6 +13,16 @@ public class Archive_Master {
private String name;
public String getDeptNameCode() {
return deptNameCode;
}
public void setDeptNameCode(String deptNameCode) {
this.deptNameCode = deptNameCode;
}
private String deptNameCode;
private String sex;
private String deptName;

File diff suppressed because it is too large Load Diff

@ -2,6 +2,7 @@ package com.emr.service.ipml;
import com.emr.dao.ArchiveCallbackInfoMapper;
import com.emr.dao.ArchiveFlowRoleMapper;
import com.emr.dao.Archive_MasterMapper;
import com.emr.entity.ArchiveCallbackInfo;
import com.emr.entity.ArchiveFlowRole;
import com.emr.entity.Archive_Master;
@ -47,6 +48,8 @@ public class ArchiveCallbackInfoService {
@Autowired
private Archive_MasterService archiveMasterService;
@Autowired
private Archive_MasterMapper archive_masterMapper;
@Autowired
private ArchiveFlowInfoService archiveFlowInfoService;
@Autowired
private CommomService commomService;
@ -80,6 +83,7 @@ public class ArchiveCallbackInfoService {
List<ArchiveFlowRole> archiveFlowRoles = flowRoleMapper.selectAll();
List<ArchiveFlowRole> currentRoleAndNextRole = archiveFlowInfoService.getCurrentRoleAndNextRole(currentCode,targetCode,archiveFlowRoles);
archiveFlowInfoService.insertFlowInfo(masterId,remark,currentRoleAndNextRole.get(0),currentRoleAndNextRole.get(1),new Date());
archive_masterMapper.deleteRecordByInp(masterId);
}
private String getAddressIp() throws Exception{

@ -13,6 +13,7 @@ import com.emr.service.Emr_Fault_DetailService;
import com.emr.util.ExceptionPrintUtil;
import com.emr.util.Msg;
import com.emr.util.OracleConnect;
import com.emr.vo.CommomVo;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.apache.commons.lang3.StringUtils;
@ -354,7 +355,16 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
for (Archive_Master_Vo masterVo : list) {
String archivestate = masterVo.getArchivestate();
String inpNo = masterVo.getPatientId();
String sql = "SELECT FISZH FROM V_JSWZH_EMR_CALLBACK WHERE JZH='"+inpNo+"'";
String sql=null;
if (archiveMasterVo.getCallBackStatus().equals("1")) {
sql = "SELECT FISZH FROM V_JSWZH_EMR_CALLBACK WHERE JZH='" + inpNo + "' AND FISZH='已召回' ";
}
if (archiveMasterVo.getCallBackStatus().equals("0")) {
sql = "SELECT FISZH FROM V_JSWZH_EMR_CALLBACK WHERE JZH='" + inpNo + "' AND FISZH !='已召回'";
}
if (archiveMasterVo.getCallBackStatus().equals("")) {
sql = "SELECT FISZH FROM V_JSWZH_EMR_CALLBACK WHERE JZH='" + inpNo + "'";
}
try {
String select = OracleConnect.select(sql);
masterVo.setHisStatic(select);
@ -371,7 +381,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
//组织已经审核的状态
archivestate = EnumVerify.DocState.GetStepName(status, role.getCode());
//组织未审核的状态
String currentArchivestate = EnumVerify.DocState.GetCurrentStepName(status, role.getCode(),qualitySwitch);
String currentArchivestate = EnumVerify.DocState.GetCurrentStepName(status, role.getCode(), qualitySwitch);
masterVo.setStatus(archivestate);
masterVo.setCurrentStatus(currentArchivestate);
//根据角色
@ -1280,9 +1290,23 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
String[] idList = ids.split(",");
String patientId = master.getPatientId();
String[] patientIdList = patientId.split(",");
CommomVo commomVo = new CommomVo();
List<ArchiveFlowRole> archiveFlowRoles = flowRoleMapper.selectAll();
for (int i = 0; i < idList.length; i++) {
String id = idList[i];
List<Archive_Master> archive_masterVos = archiveMasterMapper.selectCommonlyUsed(id);
for (Archive_Master list : archive_masterVos) {
commomVo.setPatientId(list.getId());
commomVo.setAdmissTimes(list.getVisitId());
commomVo.setInpatientNo(list.getIdNo());
commomVo.setName(list.getName());
commomVo.setAdmissId(list.getPatientId());
commomVo.setSex(list.getSex());
commomVo.setAdmissDate(list.getAdmissionDateTime());
commomVo.setDisDate(list.getDischargeDateTime());
commomVo.setDisDept(list.getDeptNameCode());
commomVo.setAttending(list.getDoctorInCharge());
}
if (StringUtils.isNotBlank(id)) {
//修改病案归档状态
Archive_Master archiveMaster = new Archive_Master();

@ -1109,6 +1109,9 @@
delete from archive_master
where id = #{id,jdbcType=NVARCHAR}
</delete>
<delete id="deleteRecordByInp" parameterType="java.lang.String">
DELETE FROM commomtable WHERE patient_id = #{masterId}
</delete>
<insert id="insert" parameterType="com.emr.entity.Archive_Master">
insert into archive_master (id, patient_id, inp_no,
visit_id, name, sex,
@ -1626,6 +1629,13 @@
<select id="selectBabyIdWithScan" resultType="java.lang.String">
<include refid="selectBabyIdWithScanSql"></include>
</select>
<select id="selectCommonlyUsed" resultType="com.emr.entity.Archive_Master"
parameterType="java.lang.String">
select m.*,d.name as deptNameCode from archive_master m
LEFT JOIN emr_dictionary d
on m.dept_name=d.code and parent_id='dept_code'
where m.id =#{id}
</select>
<sql id="selectBabyIdWithScanSql">
SELECT
b.ID

@ -225,11 +225,11 @@
<select class="form-control input-sm" id="infoId">
<option value="">全部</option>
<option value="2" <c:if test="${infoId == 2}">selected</c:if>>医生提交</option>
<option value="3" <c:if test="${infoId == 3}">selected</c:if>>医生质控员质控</option>
<option value="4" <c:if test="${infoId == 4}">selected</c:if>>科主任审核</option>
<%--<option value="3" <c:if test="${infoId == 3}">selected</c:if>>医生质控员质控</option>--%>
<%--<option value="4" <c:if test="${infoId == 4}">selected</c:if>>科主任审核</option>--%>
<option value="5" <c:if test="${infoId == 5}">selected</c:if>>护士提交</option>
<option value="6" <c:if test="${infoId == 6}">selected</c:if>>护士质控员质控</option>
<option value="7" <c:if test="${infoId == 7}">selected</c:if>>护士长审核</option>
<%--<option value="6" <c:if test="${infoId == 6}">selected</c:if>>护士质控员质控</option>--%>
<%--<option value="7" <c:if test="${infoId == 7}">selected</c:if>>护士长审核</option>--%>
<option value="8" <c:if test="${infoId == 8}">selected</c:if>>病案室审核</option>
</select>
</div>

@ -68,80 +68,247 @@
</h1>
</section>
<!-- 医生或护士查看流程显示单流程,审核角色不等于4 -->
<%--<!-- 医生或护士查看流程显示单流程,审核角色不等于4 -->--%>
<%--<c:if test="${master.role != 4}">--%>
<%--<section class="content">--%>
<%--<!-- row -->--%>
<%--<div class="row">--%>
<%--<div class="col-md-12">--%>
<%--<ul class="timeline">--%>
<%--<c:forEach items="${list}" var="info">--%>
<%--<c:if test="${info.operRole == master.role}">--%>
<%--<li class="time-label">--%>
<%--<span class="bg-green">--%>
<%--<fmt:formatDate value="${info.sumbitTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%>
<%--</span>--%>
<%--</li>--%>
<%--<li>--%>
<%--<i class="fa fa-user <%=classNames[counter%classNames.length]%>"></i>--%>
<%--<%counterFunction();%>--%>
<%--<div class="timeline-item">--%>
<%--<span class="time"><i class="fa fa-clock-o"></i>扣除假日后用时 ${info.useTime}</span>--%>
<%--<h3 class="timeline-header">--%>
<%--<span class="operName">${info.userName}</span>--%>
<%--<span>${info.sumbitName}</span>--%>
<%--<c:choose>--%>
<%--<c:when test="${info.faultId != null && info.faultId != ''}">--%>
<%--<span style="color:red">审核不通过</span>--%>
<%--</c:when>--%>
<%--<c:otherwise>--%>
<%--<span style="color:green">审核通过</span>--%>
<%--</c:otherwise>--%>
<%--</c:choose>--%>
<%--</h3>--%>
<%--<c:choose>--%>
<%--<c:when test="${info.faultId != null && info.faultId != ''}">--%>
<%--<div class="timeline-body" style="color:red">--%>
<%--<c:if test="${info.faultAssortName != '' && info.faultAssortName != null}">--%>
<%--<p>缺陷选项:${info.faultAssortName}</p>--%>
<%--</c:if>--%>
<%--<c:if test="${info.content != '' && info.content != null}">--%>
<%--<p>缺陷信息内容:${info.content}</p>--%>
<%--</c:if>--%>
<%--<c:if test="${info.backContent != '' && info.backContent != null}">--%>
<%--<p>退回信息内容:${info.backContent}</p>--%>
<%--</c:if>--%>
<%--</div>--%>
<%--</c:when>--%>
<%--<c:otherwise>--%>
<%--<c:if test="${info.remark != '' && info.remark != null}">--%>
<%--<div class="timeline-body">--%>
<%--审核答复:${info.remark}--%>
<%--</div>--%>
<%--</c:if>--%>
<%--</c:otherwise>--%>
<%--</c:choose>--%>
<%--</div>--%>
<%--</li>--%>
<%--</c:if>--%>
<%--</c:forEach>--%>
<%--<!-- END timeline item -->--%>
<%--<li class="time-label">--%>
<%--<span class="bg-green">--%>
<%--${master.dischargeDateTime}--%>
<%--</span>--%>
<%--</li>--%>
<%--<li>--%>
<%--<i class="fa fa-clock-o bg-gray"></i>--%>
<%--<div class="timeline-item">--%>
<%--<h3 class="timeline-header">出院日期</h3>--%>
<%--</div>--%>
<%--</li>--%>
<%--</ul>--%>
<%--</div>--%>
<%--</div>--%>
<%--</section>--%>
<%--</c:if>--%>
<!-- 医生或护士查看流程显示双流程,审核角色不等于4 -->
<c:if test="${master.role != 4}">
<section class="content">
<!-- row -->
<div class="row">
<div class="col-md-12">
<ul class="timeline">
<c:forEach items="${list}" var="info">
<c:if test="${info.operRole == master.role}">
<li class="time-label">
<div class="section_left">
<section class="content">
<div style="text-align:center">
<h4>医生审核</h4>
</div>
<!-- row -->
<div class="row">
<div class="col-md-12">
<ul class="timeline">
<c:forEach items="${list}" var="info">
<c:if test="${info.operRole != 2}">
<li class="time-label">
<span class="bg-green">
<fmt:formatDate value="${info.sumbitTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</span>
</li>
<li>
<i class="fa fa-user <%=classNames[counter%classNames.length]%>"></i>
<%counterFunction();%>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i>扣除假日后用时 ${info.useTime}</span>
<h3 class="timeline-header">
<span class="operName">${info.userName}</span>
<span>${info.sumbitName}</span>
</li>
<li>
<i class="fa fa-user <%=classNames[counter%classNames.length]%>"></i>
<%counterFunction();%>
<div class="timeline-item">
<span class="time"><i
class="fa fa-clock-o"></i>扣除假日后用时 ${info.useTime}</span>
<h3 class="timeline-header">
<span class="operName">${info.userName}</span>
<span>${info.sumbitName}</span>
<c:choose>
<c:when test="${info.faultId != null && info.faultId != ''}">
<span style="color:red">审核不通过</span>
</c:when>
<c:otherwise>
<span style="color:green">审核通过</span>
</c:otherwise>
</c:choose>
</h3>
<c:choose>
<c:when test="${info.faultId != null && info.faultId != ''}">
<span style="color:red">审核不通过</span>
<div class="timeline-body" style="color:red">
<c:if test="${info.faultAssortName != '' && info.faultAssortName != null}">
<p>缺陷选项:${info.faultAssortName}</p>
</c:if>
<c:if test="${info.content != '' && info.content != null}">
<p>缺陷信息内容:${info.content}</p>
</c:if>
<c:if test="${info.backContent != '' && info.backContent != null}">
<p>退回信息内容:${info.backContent}</p>
</c:if>
</div>
</c:when>
<c:otherwise>
<span style="color:green">审核通过</span>
<c:if test="${info.remark != '' && info.remark != null}">
<div class="timeline-body">
审核答复:${info.remark}
</div>
</c:if>
</c:otherwise>
</c:choose>
</h3>
<c:choose>
<c:when test="${info.faultId != null && info.faultId != ''}">
<div class="timeline-body" style="color:red">
<c:if test="${info.faultAssortName != '' && info.faultAssortName != null}">
<p>缺陷选项:${info.faultAssortName}</p>
</c:if>
<c:if test="${info.content != '' && info.content != null}">
<p>缺陷信息内容:${info.content}</p>
</c:if>
<c:if test="${info.backContent != '' && info.backContent != null}">
<p>退回信息内容:${info.backContent}</p>
</c:if>
</div>
</c:when>
<c:otherwise>
<c:if test="${info.remark != '' && info.remark != null}">
<div class="timeline-body">
审核答复:${info.remark}
</div>
</li>
</c:if>
</c:forEach>
<!-- END timeline item -->
<li class="time-label">
<span class="bg-green">
${master.dischargeDateTime}
</span>
</li>
<li>
<i class="fa fa-clock-o bg-gray"></i>
<div class="timeline-item">
<h3 class="timeline-header">出院日期</h3>
</div>
</li>
</ul>
</div>
</div>
</section>
</div>
<div class="section_right">
<section class="content">
<div style="text-align:center">
<h4>护士审核</h4>
</div>
<!-- row -->
<div class="row">
<div class="col-md-12">
<ul class="timeline">
<c:forEach items="${list}" var="info">
<c:if test="${info.operRole != 1}">
<li class="time-label">
<span class="bg-green">
<fmt:formatDate value="${info.sumbitTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</span>
</li>
<li>
<i class="fa fa-user <%=classNames[counter1%classNames.length]%>"></i>
<%counterFunction1();%>
<div class="timeline-item">
<span class="time"><i
class="fa fa-clock-o"></i>扣除假日后用时 ${info.useTime}</span>
<h3 class="timeline-header">
<span class="operName">${info.userName}</span>
<span>${info.sumbitName}</span>
<c:choose>
<c:when test="${info.faultId != null && info.faultId != ''}">
<span style="color:red">审核不通过</span>
</c:when>
<c:otherwise>
<span style="color:green">审核通过</span>
</c:otherwise>
</c:choose>
</h3>
<c:choose>
<c:when test="${info.faultId != null && info.faultId != ''}">
<div class="timeline-body" style="color:red">
<c:if test="${info.faultAssortName != '' && info.faultAssortName != null}">
<p>缺陷选项:${info.faultAssortName}</p>
</c:if>
<c:if test="${info.content != '' && info.content != null}">
<p>缺陷信息内容:${info.content}</p>
</c:if>
<c:if test="${info.backContent != '' && info.backContent != null}">
<p>退回信息内容:${info.backContent}</p>
</c:if>
</div>
</c:if>
</c:otherwise>
</c:choose>
</div>
</li>
</c:if>
</c:forEach>
<!-- END timeline item -->
<li class="time-label">
</c:when>
<c:otherwise>
<c:if test="${info.remark != '' && info.remark != null}">
<div class="timeline-body">
审核答复:${info.remark}
</div>
</c:if>
</c:otherwise>
</c:choose>
</div>
</li>
</c:if>
</c:forEach>
<!-- END timeline item -->
<li class="time-label">
<span class="bg-green">
${master.dischargeDateTime}
</span>
</li>
<li>
<i class="fa fa-clock-o bg-gray"></i>
<div class="timeline-item">
<h3 class="timeline-header">出院日期</h3>
</div>
</li>
</ul>
</li>
<li>
<i class="fa fa-clock-o bg-gray"></i>
<div class="timeline-item">
<h3 class="timeline-header">出院日期</h3>
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
</section>
</div>
</c:if>
<!-- 管理员查看流程显示双流程 role=4-->
<c:if test="${master.role == 4}">
<div class="section_left">

@ -3,12 +3,13 @@ var tipLoad = 1;
var selects = '';
//定义表格内容最大高度
var maxHeight = 0;
//出院列表
function initTable() {
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
url: path+"/beHosp/beHospList", // 获取表格数据的url
uniqueId:"id",
url: path + "/beHosp/beHospList", // 获取表格数据的url
uniqueId: "id",
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求注释掉这句话也能拿到数据
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //是否显示行间隔色
@ -64,16 +65,16 @@ function initTable() {
startDateTo: $("#startDateTo").val(),
endDateTo: $("#endDateTo").val(),
deptName: getDeptNameForQuery(),
doctorInCharge:getSelecteds('doctorInCharge'),
isSearch:$("#isSearch").val(),
status:$("#currentRoleIds").val(),
role:$("#currentRole").val(),
roles:$("#searchOperRole").val(),
isSuccess:$("#isSuccessSearch").val(),
infoId:$("#infoId").val(),
operRole:$("#checker").val(),
callBackStatus:$("#callBackStatus").val(),
printStatus:$("#printStatus").val()
doctorInCharge: getSelecteds('doctorInCharge'),
isSearch: $("#isSearch").val(),
status: $("#currentRoleIds").val(),
role: $("#currentRole").val(),
roles: $("#searchOperRole").val(),
isSuccess: $("#isSuccessSearch").val(),
infoId: $("#infoId").val(),
operRole: $("#checker").val(),
callBackStatus: $("#callBackStatus").val(),
printStatus: $("#printStatus").val()
};
return temp;
},
@ -135,17 +136,17 @@ function initTable() {
field: 'status',
align: 'center',
valign: 'middle',
formatter:paramsMatter
formatter: paramsMatter
},
{
title: '是否完整',
field: 'lockinfo',
align: 'center',
valign: 'middle',
formatter:function(value, row){
if(value == '完整'){
formatter: function (value, row) {
if (value == '完整') {
return '<span style="color:green">是</span>';
}else{
} else {
return '<span style="color:red">否</span>';
}
}
@ -155,11 +156,11 @@ function initTable() {
field: 'hisStatic',
align: 'center',
valign: 'middle',
formatter:function(value, row){
var hisStatic = row.hisStatic;
if(hisStatic == '已召回'){
return '<span style="color:green">'+hisStatic+'</span>';
}else{
formatter: function (value, row) {
var callBackStatus = row.callBackStatus;
if (callBackStatus == '召回完成' ||callBackStatus == '召回中') {
return '<span style="color:green">已召回</span>';
} else {
return '<span style="color:red">否</span>';
}
}
@ -169,10 +170,10 @@ function initTable() {
field: 'printStatus',
align: 'center',
valign: 'middle',
formatter:function(value, row){
if(value == '是'){
formatter: function (value, row) {
if (value == '是') {
return '<span style="color:green">是</span>';
}else{
} else {
return '<span style="color:red">否</span>';
}
}
@ -208,9 +209,9 @@ function initTable() {
var result = 1;
//result = selectHis(row);
if (result == 1) {
} else if(result == -1){
} else if (result == -1) {
toastr.warning("系统出错了请联系系统管理员");
}else {
} else {
toastr.warning('医生或护士未提交数据,请稍后再试');
}
$('#selModal').modal({
@ -239,7 +240,7 @@ function initTable() {
$("#chargeLab").html(row.doctorInCharge);
$("#deptToLab").html(row.deptAdmissionTo);
//出院
if(row.dischargeDateTime!=null&& row.dischargeDateTime!='') {
if (row.dischargeDateTime != null && row.dischargeDateTime != '') {
$("#inDateLab1").html(operDisTime(row.dischargeDateTime));
}
$("#deptToLab1").html(row.deptName);
@ -251,7 +252,7 @@ function initTable() {
$("#masterId").val(row.id);
//赋值总费用
var d1 = row.d1;
if(d1 != null){
if (d1 != null) {
d1 = d1.toFixed(2);
$("#d1").text(d1);
}
@ -263,7 +264,7 @@ function initTable() {
outDate = row.admissionDateTime.split("-");
}
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
initTree(row.id,$("#checker").val());
initTree(row.id, $("#checker").val());
getSource();
},
//查看流程
@ -278,7 +279,7 @@ function initTable() {
var inpNo = row.inpNo;
var visitId = row.visitId;
var dischargeDateTime = row.dischargeDateTime;
$("#showFlowInfoIframe").prop("src",path+"/beHosp/toShowFlowInfo?id="+masterId+"&name="+name+"&inpNo="+inpNo+"&visitId="+visitId+"&dischargeDateTime="+dischargeDateTime+"&role="+$("#checker").val());
$("#showFlowInfoIframe").prop("src", path + "/beHosp/toShowFlowInfo?id=" + masterId + "&name=" + name + "&inpNo=" + inpNo + "&visitId=" + visitId + "&dischargeDateTime=" + dischargeDateTime + "&role=" + $("#checker").val());
},
//跨科查阅
'click .showTransferDeptUser': function (e, value, row) {
@ -290,7 +291,7 @@ function initTable() {
var masterId = row.id;
var deptName = row.deptName;
$("#masterId1").val(masterId);
initTree2(deptName,masterId);
initTree2(deptName, masterId);
},
},
cellStyle: function () {
@ -309,6 +310,7 @@ function initTable() {
});
}
}
//确认批量审批列表
function initTable3() {
$("#table3").bootstrapTable("destroy");
@ -317,9 +319,9 @@ function initTable3() {
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //是否显示行间隔色
pagination: true, // 在表格底部显示分页组件默认false
pageSize:"5",
pageSize: "5",
sidePagination: 'client',
pageList: [5,10,20,50,100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
pageList: [5, 10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
undefinedText: '---', //当数据为 undefined 时显示的字符
height: 230, //定义表格的高度。
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -375,6 +377,7 @@ function initTable3() {
}
});
}
//审批存在不完整列表
function initTable4(data) {
$("#table4").bootstrapTable("destroy");
@ -384,8 +387,8 @@ function initTable4(data) {
striped: true, //是否显示行间隔色
pagination: true, // 在表格底部显示分页组件默认false
sidePagination: 'client',
pageSize:"5",
pageList: [5,10,20,50,100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
pageSize: "5",
pageList: [5, 10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
undefinedText: '---', //当数据为 undefined 时显示的字符
height: 230, //定义表格的高度。
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -433,7 +436,7 @@ function initTable4(data) {
field: 'unSuccessAssortNames',
align: 'left',
formatter: function (value) {
return '<span style="color: red">'+value+'</span>';
return '<span style="color: red">' + value + '</span>';
}
}
],
@ -444,22 +447,24 @@ function initTable4(data) {
}
});
}
//格式化状态
function paramsMatter(value, row) {
var result = '';
if(row.days > 0){
if (row.days > 0) {
result = '<span style="color:red">(超期)</span></span>';
}
if(value == null){
if (value == null) {
value = '';
}
if(result != '') {
return '<p title="' + value + '">' + result + row.currentStatus + '</p>';
if (result != '') {
return '<p title="' + value + '">' + result + row.currentStatus + '</p>';
}
return value;
}
//审核弹窗 单个审批①
function verifyInfo(role,archivestate,roleCode,masterId,patientId){
function verifyInfo(role, archivestate, roleCode, masterId, patientId) {
//生成表单token,防止表单重复提交
setFormToken();
//赋值审批一个
@ -479,18 +484,19 @@ function verifyInfo(role,archivestate,roleCode,masterId,patientId){
$("#roleCode").val(roleCode);
$("#archivestate").val(archivestate);
$("#role").val(role);
} else if(result == -1){
} else if (result == -1) {
toastr.warning("系统出错了请联系系统管理员");
}else {
} else {
toastr.warning("his系统医生或护士未完成提交");
}
}
//提交审核 单个审批② 批量审批③
$("#verifyBtn").on('click', function () {
$("#verifyModal").modal('hide');
$("#resultLabel1").text('');
var approveCount = $("#approveCount").val();
if(approveCount > 1) {
if (approveCount > 1) {
//大于一个弹出确认框
$("#verifyModal").modal('hide');
initTable3();
@ -499,7 +505,7 @@ $("#verifyBtn").on('click', function () {
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}else {
} else {
//审核信息保存
var id = $("#archiveId").val();
//归档状态改为初审还是有就是初审内容保存
@ -507,8 +513,8 @@ $("#verifyBtn").on('click', function () {
var result = checkSuccessMethod(id);
//记录单条完整性
$("#result").val(result);
if(result != '完整'){
result = "完整性未通过:"+result+";";
if (result != '完整') {
result = "完整性未通过:" + result + ";";
$("#resultLabel1").text(result);
}
var roleCode = $("#roleCode").val();
@ -516,17 +522,17 @@ $("#verifyBtn").on('click', function () {
var c1s = selectC1WithNotCollectFinishByPatientId();
$("#resultLabel2").text(c1s);
if (result != '完整' || c1s != '') {
if(roleCode == '8' || roleCode == '64'){
if (roleCode == '8' || roleCode == '64') {
//定义不能提交的提示语
var resultAll = '';
if(result != '完整'){
if (result != '完整') {
resultAll += result;
}
if(c1s != ''){
if (c1s != '') {
resultAll += c1s;
}
toastr.warning(resultAll + "不允许提交");
}else{
} else {
$('#WZModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
@ -535,11 +541,11 @@ $("#verifyBtn").on('click', function () {
}
} else {
//实时查询科主任或护士长审核时采集任务是否采集完成
var flag = judgeCollectCompleted('',$("#roleCode").val(),$("#jzh").val());
if(!flag){
return ;
var flag = judgeCollectCompleted('', $("#roleCode").val(), $("#jzh").val());
if (!flag) {
return;
}
save(1,'');
save(1, '');
}
}
});
@ -547,11 +553,11 @@ $("#verifyBtn").on('click', function () {
$("#wzSaveBtn").on('click', function () {
$("#WZModal").modal('hide');
//实时查询科主任或护士长审核时采集任务是否采集完成
var flag = judgeCollectCompleted('',$("#roleCode").val(),$("#jzh").val());
if(!flag){
return ;
var flag = judgeCollectCompleted('', $("#roleCode").val(), $("#jzh").val());
if (!flag) {
return;
}
save(1,'');
save(1, '');
});
//批量初审功能 批量审批①
$("#approvesBtn").on('click', function () {
@ -563,7 +569,7 @@ $("#approvesBtn").on('click', function () {
var approveCount = 0;
//定义不需审核的集合下角标
var unSelects = [];
if(count !== 0){
if (count !== 0) {
var ids = '';
var roleCode = '';
var archivestate = '';
@ -572,7 +578,7 @@ $("#approvesBtn").on('click', function () {
for (var i = 0; i < count; i++) {
//需要审批的对象
var power = selects[i].btns;
if(power != '') {
if (power != '') {
approveCount++;
//赋值审批角色
var role = power.split("(")[1].split(",")[0];
@ -594,32 +600,33 @@ $("#approvesBtn").on('click', function () {
isSuccess += "," + selects[i].isSuccess;
}
$("#role").val(roles);
}else{
} else {
unSelects.push(i);
}
}
if(ids == ''){
if (ids == '') {
toastr.warning("请选中需要审批的记录");
}else{
} else {
//从selects中删除不需审核的对象
if(unSelects.length > 0){
for(var i = count - 1;i >= 0;i--){
for(var j = 0;j < unSelects.length;j++){
if(unSelects[j] == i){
selects.splice(i,1);
if (unSelects.length > 0) {
for (var i = count - 1; i >= 0; i--) {
for (var j = 0; j < unSelects.length; j++) {
if (unSelects[j] == i) {
selects.splice(i, 1);
break;
}
}
}
}
callApproveDiag(ids,roleCode,archivestate,isSuccess,approveCount);
callApproveDiag(ids, roleCode, archivestate, isSuccess, approveCount);
}
}else{
} else {
toastr.warning("批量审批请至少选中一个");
}
});
//调用审批diag 批量审批②
function callApproveDiag(ids,roleCode,archivestate,isSuccess,approveCount) {
function callApproveDiag(ids, roleCode, archivestate, isSuccess, approveCount) {
$('#verifyModal').modal('show');
$("#archiveId").val(ids);
$("#roleCode").val(roleCode);
@ -629,8 +636,9 @@ function callApproveDiag(ids,roleCode,archivestate,isSuccess,approveCount) {
//审批个数
$("#approveCount").val(approveCount);
}
//批量初审确认 批量审批④
$("#sureBtn").click(function(){
$("#sureBtn").click(function () {
//计算完整与不完整个数及不完整集合
var successCount = 0;
var failCount = 0;
@ -638,25 +646,26 @@ $("#sureBtn").click(function(){
var flag = true;
for (var i = 0; i < selects.length; i++) {
var isSuccess = selects[i].isSuccess;
if(isSuccess == '0'){
if (isSuccess == '0') {
failCount++;
failSelects.push(selects[i]);
}else{
} else {
//实时查询科主任或护士长审核时采集任务是否采集完成
if(selects[i].operRole != null) {
flag = judgeCollectCompleted(selects[i].name,selects[i].operRole,selects[i].patientId);
if (selects[i].operRole != null) {
flag = judgeCollectCompleted(selects[i].name, selects[i].operRole, selects[i].patientId);
}
successCount++;
}
}
if(!flag){
return ;
if (!flag) {
return;
}
$('#verifyModal').modal('hide');
save(successCount,failSelects);
save(successCount, failSelects);
})
//提交后台审核
function save(successCount,failSelects){
function save(successCount, failSelects) {
$("#sureModal").modal('hide');
var roleCode = $("#roleCode").val();
var firstTrial = $("#verifyText").val();
@ -666,34 +675,43 @@ function save(successCount,failSelects){
var lockInfo = $("#result").val();
var id = $("#archiveId").val();
$.ajax({
url: path+"/beHosp/updateStateByArchivId",
url: path + "/beHosp/updateStateByArchivId",
type: "POST",
data: {id: id, remark: firstTrial,archivestate:archivestate, isSuccess:isSuccess,status: roleCode,roles:role,formToken:$("#formToken").val(),lockInfo:lockInfo},
dataType:'json',
data: {
id: id,
remark: firstTrial,
archivestate: archivestate,
isSuccess: isSuccess,
status: roleCode,
roles: role,
formToken: $("#formToken").val(),
lockInfo: lockInfo
},
dataType: 'json',
success: function (data) {
if(data.code == 100){
if (data.code == 100) {
var failList = data.extend.unSuccessList;
if(failList != undefined){
if (failList != undefined) {
//存在不完整
for (var i = 0; i < failSelects.length; i++) {
for (var j = 0; j < failList.length; j++) {
var masterId = failList[j].id.replace(/\'/g, "");
if(failSelects[i].id == masterId){
if (failSelects[i].id == masterId) {
failSelects[i].unSuccessAssortNames = failList[j].unSuccessAssortNames;
}
}
}
//赋值审核集合
var returnInfo = '审批成功'+successCount+'个,资料缺失审批失败'+failSelects.length+'个';
var returnInfo = '审批成功' + successCount + '个,资料缺失审批失败' + failSelects.length + '个';
$("#returnInfo").text(returnInfo);
//加载表格
initTable4(failSelects);
$('#unSuccessModal').modal('show');
}else{
} else {
toastr.success("审核成功!");
}
$("#table").bootstrapTable("refresh");
}else{
} else {
toastr.error(data.msg);
}
}
@ -701,19 +719,19 @@ function save(successCount,failSelects){
}
//实时查询各个采集任务是否采集完成
function judgeCollectCompleted(name,roleCode,jzh){
function judgeCollectCompleted(name, roleCode, jzh) {
var flag = true;
if(roleCode == '8' || roleCode == '64'){
if (roleCode == '8' || roleCode == '64') {
$.ajax({
async: false,
url: path+"/beHosp/judgeCollectCompleted",
url: path + "/beHosp/judgeCollectCompleted",
type: "POST",
data: {jzh:jzh},
data: {jzh: jzh},
success: function (result) {
if (result.code != 100) {
flag = false;
var msg = result.msg;
if(name != ''){
if (name != '') {
msg = name + msg;
}
toastr.warning(msg);
@ -737,7 +755,7 @@ $("#getRecallBtn").on('click', function () {
$('#returnBtn').hide();
//根据病案号获取缺陷信息
$.ajax({
url: path+"/lastVerify/getDetailByArchId",
url: path + "/lastVerify/getDetailByArchId",
type: "POST",
data: {archiveDetailId: $("#idLab").html()},
success: function (result) {
@ -764,41 +782,42 @@ $("#getRecallBtn").on('click', function () {
//搜索条件需要查询审核状态的时候异步查询该审核角色拥有的code集合
function getCurrentCodes() {
//只做一次查询赋值
if($("#currentRoleIds").val() == ''){
if ($("#currentRoleIds").val() == '') {
$.ajaxSettings.async = false;
$.get(path+"/beHosp/getCurrentCodes",function(data){
$.get(path + "/beHosp/getCurrentCodes", function (data) {
$("#currentRole").val(data.code);
$("#currentRoleIds").val(data.msg);
},'json')
}, 'json')
$.ajaxSettings.async = true;
}
}
//加载审核节点
function getApproveRoles() {
//只做一次查询赋值
$.get(path+"/beHosp/getFlowRole",function(data){
if(data.code == 100){
$.get(path + "/beHosp/getFlowRole", function (data) {
if (data.code == 100) {
var flowRoles = data.extend.list;
if(null != flowRoles && flowRoles != ''){
if (null != flowRoles && flowRoles != '') {
var html = '';
var currentRoleIds = selectMaxInfoId($("#currentRoleIds").val());
//获取操作角色
var checker = $("#checker").val();
for (var i = 0; i < flowRoles.length; i++) {
var option = '<option data-role="'+flowRoles[i].role+'" value="'+flowRoles[i].id+'">'+flowRoles[i].name+'</option>';
var option = '<option data-role="' + flowRoles[i].role + '" value="' + flowRoles[i].id + '">' + flowRoles[i].name + '</option>';
var code = flowRoles[i].code;
//过滤病案室审核128和病案室召回1024且无效的对象
if(code != '128' && code != '1024' && flowRoles[i].effective == 1){
if(code <= 64 && code >= 2 && checker != 4){
if(currentRoleIds != '' && currentRoleIds >= flowRoles[i].id && checker == flowRoles[i].role){
if (code != '128' && code != '1024' && flowRoles[i].effective == 1) {
if (code <= 64 && code >= 2 && checker != 4) {
if (currentRoleIds != '' && currentRoleIds >= flowRoles[i].id && checker == flowRoles[i].role) {
html += option;
}
}else{
if(checker != 4 && flowRoles[i].role != null){
if(checker == flowRoles[i].role){
} else {
if (checker != 4 && flowRoles[i].role != null) {
if (checker == flowRoles[i].role) {
html += option;
}
}else{
} else {
html += option;
}
}
@ -806,19 +825,19 @@ function getApproveRoles() {
}
$("#infoId").append(html);
}
}else{
} else {
toastr.error(data.msg);
}
},'json')
}, 'json')
}
//取最大的审核审核id
function selectMaxInfoId(ids){
function selectMaxInfoId(ids) {
var temp = 0;
var idArr = ids.split(',');
for (var i = 0; i < idArr.length; i++) {
if(idArr[i] != ''){
if(temp < idArr[i]){
if (idArr[i] != '') {
if (temp < idArr[i]) {
temp = idArr[i];
}
}
@ -827,11 +846,11 @@ function selectMaxInfoId(ids){
}
//监听审核节点查询的变更事件,记录属于支线
$("#infoId").change(function(){
$("#infoId").change(function () {
var dataRole = $(this).find("option:selected").attr("data-role");
if(dataRole == 1 || dataRole == 2) {
if (dataRole == 1 || dataRole == 2) {
$("#searchOperRole").val(dataRole);
}else{
} else {
$("#searchOperRole").val("");
}
})
@ -890,10 +909,10 @@ $(function () {
}
//设置默认起止日期
var logotype = $("#logotype").val();
if (logotype==1){
setDate(null,null);
if (logotype == 1) {
setDate(null, null);
} else {
setDate('startDateTo','endDateTo');
setDate('startDateTo', 'endDateTo');
}
});
@ -911,34 +930,35 @@ $("#excelBtn").click(function () {
var archivestate = $("#archivestate1").val();
var status = $("#currentRoleIds").val();
var role = $("#currentRole").val();
var url = path+"/beHosp/exportExcel";
post(url,{"doctorInCharge":doctorInCharge,
"inpNo":inpNo,
"visitId":visitId,
"name":name,
"deptName":deptName,
"startDateTo":startDateTo,
"endDateTo":endDateTo,
"isSearch":isSearch,
"archivestate":archivestate,
"status":status,
"role":role,
"roles":$("#searchOperRole").val(),
"isSuccess":$("#isSuccessSearch").val(),
"infoId":$("#infoId").val(),
"operRole":$("#checker").val(),
"callBackStatus":$("#callBackStatus").val(),
"printStatus":$("#printStatus").val()
var url = path + "/beHosp/exportExcel";
post(url, {
"doctorInCharge": doctorInCharge,
"inpNo": inpNo,
"visitId": visitId,
"name": name,
"deptName": deptName,
"startDateTo": startDateTo,
"endDateTo": endDateTo,
"isSearch": isSearch,
"archivestate": archivestate,
"status": status,
"role": role,
"roles": $("#searchOperRole").val(),
"isSuccess": $("#isSuccessSearch").val(),
"infoId": $("#infoId").val(),
"operRole": $("#checker").val(),
"callBackStatus": $("#callBackStatus").val(),
"printStatus": $("#printStatus").val()
});
});
/**
* 校验完整性
* */
$("#checkSuccessBtn").click(function(){
$("#checkSuccessBtn").click(function () {
var masterId = $("#masterId").val();
var result = checkSuccessMethod(masterId);
if(result != '失败'){
if (result != '失败') {
$("#wzContent").text(result);
//增加完整性刷新后高亮状态
$("#wzContent").addClass("wzContent");
@ -950,7 +970,7 @@ $("#checkSuccessBtn").click(function(){
lockinfo: result
}
});
}else{
} else {
toastr.warning("校验失败,校验程序未启动或出错!");
}
})
@ -979,27 +999,28 @@ var opts = {
top: '150px' // Top position relative to parent in px |相对父元素的top
};
var spinner = new Spinner(opts);
//获取所有分段列表
function initTree2(deptName,masterId) {
function initTree2(deptName, masterId) {
zNodes = []
$.ajax({
url: path+"/transferDeptUser/selectTranferDeptUserTree",
url: path + "/transferDeptUser/selectTranferDeptUserTree",
type: "POST",
data:{deptName:deptName,masterId:masterId},
data: {deptName: deptName, masterId: masterId},
success: function (result) {
var rootChecked = true;
if (result != null) {
for(var ele in result){
for (var ele in result) {
zNodes.push(result[ele]);
if(result[ele].checked == null){
if (result[ele].checked == null) {
rootChecked = false;
}
}
}
//判断是否根节点选中
if(rootChecked && result != null){
zNodes.push({id: 0, parentId: 0, name: '用户列表', open: true,checked:"true"});
}else{
if (rootChecked && result != null) {
zNodes.push({id: 0, parentId: 0, name: '用户列表', open: true, checked: "true"});
} else {
zNodes.push({id: 0, parentId: 0, name: '用户列表', open: true});
}
$.fn.zTree.init($("#ztree2"), setting1, zNodes);
@ -1047,6 +1068,7 @@ function blurKey2() {
key.addClass("empty");
}
}
function getFontCss(treeId, treeNode) {
return (!!treeNode.highlight) ? {color: "#A60000", "font-weight": "bold"} : {
color: "#333",
@ -1087,6 +1109,7 @@ function filterNodes(node, inputStr, filterResult) {
return true;
}
}
function searchNode2() {
var zTree = $.fn.zTree.getZTreeObj("ztree2");
var value = $("#key2").val();
@ -1105,24 +1128,26 @@ function searchNode2() {
}
zTree.expandAll(true);
}
//展开
function expandAll2(num) {
var treeObj = $.fn.zTree.getZTreeObj("ztree"+num);
var treeObj = $.fn.zTree.getZTreeObj("ztree" + num);
treeObj.expandAll(true);
}
//收缩
function collapseAll2(num) {
var treeObj = $.fn.zTree.getZTreeObj("ztree"+num);
var treeObj = $.fn.zTree.getZTreeObj("ztree" + num);
treeObj.expandAll(false);
}
//保存
$("#transferDeptUserBtn").click(function(){
$("#transferDeptUserBtn").click(function () {
var saveNodes = [];
var zTree = $.fn.zTree.getZTreeObj("ztree2");
var nodes=zTree.getCheckedNodes(true);
var nodes = zTree.getCheckedNodes(true);
for (var i = 0; i < nodes.length; i++) {
if(nodes[i].level == 3){
if (nodes[i].level == 3) {
var obj = new Map();
obj['deptCode'] = nodes[i].code;
obj['userName'] = nodes[i].realName;
@ -1131,26 +1156,27 @@ $("#transferDeptUserBtn").click(function(){
}
}
$.ajax({
type:'post',
url:path+'/transferDeptUser/updateTransferDeptUserSet',
data:{jsonStr:JSON.stringify(saveNodes)},
dateType:'json',
success:function(data){
if(data.code == 100){
type: 'post',
url: path + '/transferDeptUser/updateTransferDeptUserSet',
data: {jsonStr: JSON.stringify(saveNodes)},
dateType: 'json',
success: function (data) {
if (data.code == 100) {
toastr.success("保存成功");
}else{
} else {
toastr.error(data.msg);
}
}
})
});
//主管医生下拉框修改即查询
function doctorOnChange(){
function doctorOnChange() {
//标识为按条件查询
$("#isSearch").val(1);
if(tipLoad==0) {
if (tipLoad == 0) {
$("#table").bootstrapTable("refreshOptions", {pageNumber: 1});
}else{
} else {
toastr.warning("正在查询,请稍等...");
}
}

@ -1269,22 +1269,10 @@ function initTable5(data,sidePagination) {
},
events: {
'click .editInfo': function (e, value, row, index) {
var id = row.idTemp;
var sysflag = row.sysflag;
var notNursingIds = '';
var nursingIds='';
var dzblIds='';
if(sysflag = 1){
nursingIds= id;
}
if(sysflag != 1){
sysflag = '';
notNursingIds = id;
}
if(sysflag = 3){
dzblIds= id;
}
submitUpdate(id,notNursingIds,row.did,sysflag,nursingIds,dzblIds);
var ids = row.idTemp;
var sysflag = '';
var notNursingIds = row.idTemp;
submitUpdate(ids,notNursingIds,sysflag);
}
}
},
@ -1586,7 +1574,6 @@ $("#searchBtn6").click(function(){
var sysflag = '';
var notNursingIds = '';
var nursingIds='';
var dzblIds='';
var detailIds = '';
for (var i = 0; i < data.length; i++) {
var id = data[i].idTemp;
@ -1619,15 +1606,7 @@ $("#searchBtn6").click(function(){
}
notNursingIds += id;
}
if(data[i].sysflag == 3){
//判断包含护理
sysflag = 3;
if(dzblIds != ''){
dzblIds += ',';
}
dzblIds += id;
}
}
submitUpdate(ids,notNursingIds,detailIds,sysflag,nursingIds,dzblIds);
submitUpdate(ids,notNursingIds,detailIds,sysflag,nursingIds);
}
})

Loading…
Cancel
Save