任务详情根据医生、护士优先显示电子病历、护理文书

master
linjj 2 years ago
parent 1f62189686
commit ea10074362

@ -28,6 +28,7 @@ import javax.servlet.http.HttpServletResponse;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Controller
@RequestMapping("lastVerify")
public class lastVerifyController {
@ -49,30 +50,30 @@ public class lastVerifyController {
private EmrOvertimeSetService emrOvertimeSetService;
@RequestMapping(value = "/lastVerifys")
public String faults(Integer flag, Model model,String startDateTo,String endDateTo){
if(null != flag){
model.addAttribute("flag",flag);
model.addAttribute("overDateSet",overDateSet);
public String faults(Integer flag, Model model, String startDateTo, String endDateTo) {
if (null != flag) {
model.addAttribute("flag", flag);
model.addAttribute("overDateSet", overDateSet);
//获取超期提醒日期
String remindDate = emrOvertimeSetService.getRemindDate();
if(StringUtils.isNotBlank(remindDate)){
model.addAttribute("remindDate",remindDate);
if (StringUtils.isNotBlank(remindDate)) {
model.addAttribute("remindDate", remindDate);
}
}
model.addAttribute("startDate",startDateTo);
model.addAttribute("endDate",endDateTo);
model.addAttribute("startDate", startDateTo);
model.addAttribute("endDate", endDateTo);
return "lastVerifyDir/lastVerifyList";
}
/**
*
* */
*/
@ResponseBody
@RequestMapping(value = "/lastVerifyList")
public OffsetLimitPage lastVerifyList(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit,Integer isSearch) {
public OffsetLimitPage lastVerifyList(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit, Integer isSearch) {
//判断是否是初始化查询,是初始化查询把开始结束时间置空
if(isSearch == 0){
if (isSearch == 0) {
archiveMasterVo.setStartDateTo(null);
archiveMasterVo.setEndDateTo(null);
}
@ -89,9 +90,9 @@ public class lastVerifyController {
@ResponseBody
@RequestMapping(value = "/exportExcel")
public void exportExcel(HttpServletResponse response, Archive_Master_Vo archiveMasterVo,Integer isSearch){
public void exportExcel(HttpServletResponse response, Archive_Master_Vo archiveMasterVo, Integer isSearch) {
//判断是否是初始化查询,是初始化查询把开始结束时间置空
if(isSearch == 0){
if (isSearch == 0) {
archiveMasterVo.setStartDateTo(null);
archiveMasterVo.setEndDateTo(null);
}
@ -126,6 +127,24 @@ public class lastVerifyController {
}
}
/**
* @description:
* @author linjj
* @date: 2023/12/6 17:13
*/
@ResponseBody
@RequestMapping(value = "/addPaperStatic")
public int addPaperStatic(String id, int paperStatic) {
int i = 0;
if (paperStatic == 0) {
i = archiveMasterService.addPaperStatic(id, 1);
}
if (paperStatic == 1) {
i = archiveMasterService.addPaperStatic(id, 0);
}
return i;
}
@ResponseBody
@RequestMapping(value = "/getDetailByArchId")
@ -141,6 +160,7 @@ public class lastVerifyController {
/**
* 退
*
* @param request
* @param emrFaultDetail
* @return
@ -148,7 +168,7 @@ public class lastVerifyController {
*/
@ResponseBody
@RequestMapping(value = "/updateDetailByArchivId")
public Msg updateDetailByArchivId(HttpServletRequest request,Emr_Fault_Detail_Vo emrFaultDetail) throws Exception{
public Msg updateDetailByArchivId(HttpServletRequest request, Emr_Fault_Detail_Vo emrFaultDetail) throws Exception {
boolean flag = FormTokenFlagUtil.isFlag(request);
if (!flag) {
return Msg.fail("请不要重复提交!");
@ -160,7 +180,7 @@ public class lastVerifyController {
//终审
@ResponseBody
@RequestMapping(value = "/updateStateByArchivId")
public Msg updateStateByArchivId(HttpServletRequest request,Archive_Master_Vo master) throws Exception{
public Msg updateStateByArchivId(HttpServletRequest request, Archive_Master_Vo master) throws Exception {
boolean flag = FormTokenFlagUtil.isFlag(request);
if (!flag) {
return Msg.fail("请不要重复提交!");
@ -172,9 +192,9 @@ public class lastVerifyController {
@ResponseBody
@RequestMapping(value = "/selectIsScan")
public Msg selectIsScan(String ids) throws Exception{
public Msg selectIsScan(String ids) throws Exception {
ids = archiveDetailService.selectIsScan(ids);
return Msg.success().add("ids",ids);
return Msg.success().add("ids", ids);
}
}

@ -31,6 +31,12 @@ public interface Archive_MasterMapper {
int updateByClo(Archive_Master record);
int addPaperStatic(@Param("id") String id,@Param("paperStatic") int paperStatic);
int updateByClo1(Archive_Master record);
int updateById(Archive_Master record);
List<DoctorStatistics> getDoctorFileInfo(@Param("deptCode")String deptCode,@Param("doctor")String doctor,@Param("startTime")String startTime,@Param("endTime")String endTime);

@ -32,6 +32,8 @@ public class Archive_Master_Vo extends Archive_Master{
private String SubAssort;
private int paperStatic;
private String btns;//拼接按钮
private String status;//转换中文状态

@ -83,7 +83,7 @@ public interface Archive_MasterService {
OffsetLimitPage selectByLast(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit);
int addPaperStatic(String id,int paperStatic);
/**
*
* @param record
@ -91,6 +91,8 @@ public interface Archive_MasterService {
*/
int updateByClo(Archive_Master record);
int updateByClo1(Archive_Master record);
/**
* id
* @param record

@ -88,7 +88,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
archiveMasterVo.setUserName(user.getUserName());
}
//查询
List<Archive_Master_Vo> list = selectByColumn(offset, limit,archiveMasterVo,request);
return new OffsetLimitPage((Page) list);
@ -263,6 +262,11 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
return new OffsetLimitPage((Page) list);
}
@Override
public int addPaperStatic(String id, int paperStatic) {
return archiveMasterMapper.addPaperStatic(id,paperStatic);
}
/**
*
* */
@ -323,40 +327,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
PageHelper.offsetPage(offset, limit);
}
list = archiveMasterMapper.selectByColumn(archiveMasterVo);
//组织完整性字段并完整的更新archive_master表的完整性字段值为完整LockInfo='完整'
//updateMasterBySuccess(list);
//转换科室与赋值超期天数
// selectByColumnChange(list);
//根据状态code转换状态及判断显示按钮
/*if(null != list && !list.isEmpty()){
//查询流转角色集合
List<ArchiveFlowRole> flowRoles = flowRoleMapper.selectAll();
//计算属于哪种审核角色
Msg role = getRole();
if(null != role) {
for (Archive_Master_Vo masterVo : list) {
String archivestate = masterVo.getArchivestate();
if (StringUtils.isNotBlank(archivestate)) {
//转换中文状态
boolean numeric = isNumeric(archivestate);
if (numeric) {
Integer status = Integer.valueOf(archivestate);
//组织已经审核的状态
archivestate = EnumVerify.DocState.GetStepName(status, role.getCode());
//组织未审核的状态
String currentArchivestate = EnumVerify.DocState.GetCurrentStepName(status, role.getCode());
masterVo.setStatus(archivestate);
masterVo.setCurrentStatus(currentArchivestate);
//根据角色
//获取审核按钮和退回按钮集合
String btns = getBtns(status, flowRoles, masterVo.getId());
masterVo.setBtns(btns);
}
}
}
}
}*/
Emr_Dictionary dictionary = new Emr_Dictionary();
dictionary.setTypecode("dept_code");
List<Emr_Dictionary> dictionaries = dictionaryMapper.dicByTypeCode(dictionary);
@ -774,6 +744,14 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
return archiveMasterMapper.updateByClo(record);
}
@Override
public int updateByClo1(Archive_Master record) {
return archiveMasterMapper.updateByClo1(record);
}
@Override
public int updateById(Archive_Master record) {
return archiveMasterMapper.updateById(record);
@ -1289,7 +1267,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
//设为已归档状态
archiveMaster.setArchivestate(EnumVerify.DocState.MedicalRoomCheck.getCode() + "");
//更新
updateByClo(archiveMaster);
updateByClo1(archiveMaster);
//当前节点两种可能病案室审核和已召回
//是已召回将当前节点code置为病案室审核
String currentStatus = EnumVerify.DocState.MedicalRoomCheck.getCode() + "";

@ -3,7 +3,7 @@
#POWER_PORT = 8081
POWER_IP = localhost
POWER_PORT = 8083
POWER_PORT = 8081
#power\u6743\u9650\u7CFB\u7EDF\u7684\u670D\u52A1\u5668\u5730\u5740\u5934
POWER_URLHEAD = http://${POWER_IP}:${POWER_PORT}/power

@ -48,6 +48,7 @@
<result column="DISCHARGE_DISPOSITION" jdbcType="NVARCHAR" property="dischargeDisposition"/>
<result column="dept_code_lend" jdbcType="NVARCHAR" property="deptCodeLend"/>
<result column="days" jdbcType="NVARCHAR" property="days"/>
<result column="paper_static" property="paperStatic"/>
</resultMap>
<resultMap id="BaseResultMap3" type="com.emr.vo.DoctorStatistics">
@ -641,7 +642,7 @@
</sql>
<sql id="selectPatientIdByPrintInfo">
(SELECT DISTINCT patient_id FROM archive_printInfo WHERE print_userid not in (1,2399) and D1 > 0)
(SELECT DISTINCT patient_id FROM archive_printInfo WHERE print_userid not in ('1','2399') and D1 > 0)
</sql>
<!---出院-->
<select id="selectByColumn" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap2">
@ -653,13 +654,7 @@
'是'
ELSE
'否'
END callBackStatus,
CASE
WHEN printInfoTable.patient_id IS NOT NULL THEN
'是'
ELSE
'否'
END printStatus
END callBackStatus
from archive_master
LEFT JOIN <include refid="selectCallBackList"></include> archive_other_ext ON archive_master.patient_id = archive_other_ext.jzh
LEFT JOIN <include refid="selectPatientIdByPrintInfo"></include> printInfoTable ON printInfoTable.patient_id = archive_master.patient_id
@ -693,13 +688,7 @@
'是'
ELSE
'否'
END callBackStatus,
CASE
WHEN printInfoTable.patient_id IS NOT NULL THEN
'是'
ELSE
'否'
END printStatus
END callBackStatus
from
archive_transfer_dept_user
inner join
@ -757,7 +746,7 @@
<!--终审-->
<select id="selectByLast" 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,
select m.id,m.patient_id,m.inp_no,m.visit_id,m.name,m.sex,m.paper_static,
dept_name,m.discharge_date_time,m.ArchiveState,m.admission_date_time,dept_admission_to
,m.check_doctor,m.check_datetime,m.checked_doctor,m.checked_datetime,m.LockInfo,m.DOCTOR_IN_CHARGE,m.ID_NO,m.DISCHARGE_DISPOSITION,m.dept_code_lend,
datediff(day,m.discharge_date_time,getdate()) -
@ -1376,6 +1365,9 @@
</if>
</trim>
</insert>
<insert id="addPaperStatic">
update archive_master set paper_static=#{paperStatic} where id=#{id}
</insert>
<update id="updateByClo" parameterType="com.emr.entity.Archive_Master">
update archive_master
<set>
@ -1518,6 +1510,78 @@
UPDATE archive_master SET LockInfo = #{lockinfo}
WHERE id IN (${masterIds})
</update>
<update id="updateByClo1">
update archive_master
<set>
<if test="inpNo != null">
inp_no = #{inpNo,jdbcType=NVARCHAR},
</if>
<if test="visitId != null">
visit_id = #{visitId,jdbcType=NVARCHAR},
</if>
<if test="name != null">
name = #{name,jdbcType=NVARCHAR},
</if>
<if test="sex != null">
sex = #{sex,jdbcType=NVARCHAR},
</if>
<if test="deptName != null">
dept_name = #{deptName,jdbcType=NVARCHAR},
</if>
<if test="dischargeDateTime != null">
discharge_date_time = #{dischargeDateTime,jdbcType=NVARCHAR},
</if>
<if test="archivestate != null">
ArchiveState = #{archivestate,jdbcType=NVARCHAR},
</if>
<if test="admissionDateTime != null">
admission_date_time = #{admissionDateTime,jdbcType=NVARCHAR},
</if>
<if test="deptAdmissionTo != null">
dept_admission_to = #{deptAdmissionTo,jdbcType=NVARCHAR},
</if>
<if test="checkDoctor != null">
check_doctor = #{checkDoctor,jdbcType=NVARCHAR},
</if>
<if test="checkDatetime != null">
check_datetime = #{checkDatetime,jdbcType=NVARCHAR},
</if>
<if test="checkedDoctor != null">
checked_doctor = #{checkedDoctor,jdbcType=NVARCHAR},
</if>
<if test="checkedDatetime != null">
checked_datetime = #{checkedDatetime,jdbcType=NVARCHAR},
</if>
<if test="lockinfo != null">
LockInfo = #{lockinfo,jdbcType=NVARCHAR},
</if>
<if test="doctorInCharge != null">
DOCTOR_IN_CHARGE = #{doctorInCharge,jdbcType=NVARCHAR},
</if>
<if test="idNo != null">
ID_NO = #{idNo,jdbcType=NVARCHAR},
</if>
<if test="dischargeDisposition != null">
DISCHARGE_DISPOSITION = #{dischargeDisposition,jdbcType=NVARCHAR},
</if>
<if test="deptCodeLend != null">
dept_code_lend = #{deptCodeLend,jdbcType=NVARCHAR},
</if>
<if test="returntoRole != null">
returnto_role = #{returntoRole,jdbcType=NVARCHAR},
</if>
<if test="returnOperUsername != null">
return_oper_username = #{returnOperUsername,jdbcType=NVARCHAR},
</if>
<if test="changeReason != null">
change_reason = #{changeReason,jdbcType=NVARCHAR},
</if>
<if test="changeReason != null">
change_reason = #{changeReason,jdbcType=NVARCHAR},
</if>
</set>
where id = #{id,jdbcType=NVARCHAR}
</update>
<!---查询出院工作日-->
<select id="selectDaysByMasterIds" resultMap="BaseResultMap2">
SELECT

@ -220,19 +220,19 @@
<option value="1">已审核</option>
</select>
</div>
<div class="form-group divCss">
<label>待审核节点:</label>
<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="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="8" <c:if test="${infoId == 8}">selected</c:if>>病案室审核</option>
</select>
</div>
<%-- <div class="form-group divCss">--%>
<%-- <label>待审核节点:</label>--%>
<%-- <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="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="8" <c:if test="${infoId == 8}">selected</c:if>>病案室审核</option>--%>
<%-- </select>--%>
<%-- </div>--%>
<div class="form-group divCss">
<label>HIS召回状态:</label>
<select class="form-control input-sm" id="callBackStatus">

@ -130,13 +130,13 @@ function initTable() {
field: 'doctorInCharge',
align: 'left'
},
{
title: '状态',
field: 'status',
align: 'center',
valign: 'middle',
formatter:paramsMatter
},
// {
// title: '状态',
// field: 'status',
// align: 'center',
// valign: 'middle',
// formatter:paramsMatter
// },
{
title: '是否完整',
field: 'lockinfo',
@ -185,9 +185,9 @@ function initTable() {
if (selectPower == 1) {
html += '<button type="button" class="btn btn-danger btn-sm selInfo" title="查看">查看</button>';
}
if (row.btns != '' && row.btns != null) {
html += row.btns;
}
// if (row.btns != '' && row.btns != null) {
// html += row.btns;
// }
if (showFlowPower == 1) {
html += '<button type="button" class="btn btn-sm btn-success showFlowInfo" title="查看流程">查看流程</button>'
}

@ -5,12 +5,13 @@ var id = 0;
var selects = '';
//定义表格内容最大高度
var maxHeight = 0;
//终审列表
function initTable() {
if (tipLoad == 1) {
$("#table").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: path+"/lastVerify/lastVerifyList", // 获取表格数据的url
url: path + "/lastVerify/lastVerifyList", // 获取表格数据的url
contentType: "application/x-www-form-urlencoded",//一种编码。好像在post请求的时候需要用到。这里用的get请求注释掉这句话也能拿到数据
//dataField: "data",//这是返回的json数组的key.默认是"rows".这里只有前后端约定好就行
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
@ -71,12 +72,12 @@ function initTable() {
deptName: getDeptName(),
startDateTo: $("#startDateTo").val(),
endDateTo: $("#endDateTo").val(),
doctorInCharge:$("#doctorInCharge").val(),
isSign:$("#isSign").val(),
isSearch:$("#isSearch").val(),
checkName:$("#checkName").val(),
callBackStatus:$("#callBackStatus").val(),
printStatus:$("#printStatus").val()
doctorInCharge: $("#doctorInCharge").val(),
isSign: $("#isSign").val(),
isSearch: $("#isSearch").val(),
checkName: $("#checkName").val(),
callBackStatus: $("#callBackStatus").val(),
printStatus: $("#printStatus").val()
};
return temp;
},
@ -145,7 +146,7 @@ function initTable() {
overTimeStr = '<span style="color:red">(超期)</span>';
}
var str = '<span style="color:#8FBC8F"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
return overTimeStr+str;
return overTimeStr + str;
}
},
{
@ -155,18 +156,18 @@ function initTable() {
valign: 'middle',
formatter: function (value, row) {
var isSign = $("#isSign").val();
if(isSign != '') {
if (isSign != '') {
value = isSign == 1 ? '已签收' : '未签收';
}
var colorStr = ''
if(value == '已签收'){
if (value == '已签收') {
colorStr = '#8FBC8F';
}else if(value == '未签收'){
} else if (value == '未签收') {
colorStr = 'red';
}else{
} else {
value = '';
}
var str = '<span style="color:'+colorStr+'"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
var str = '<span style="color:' + colorStr + '"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
return str;
}
},
@ -177,14 +178,14 @@ function initTable() {
valign: 'middle',
formatter: function (value, row) {
var colorStr = ''
if(value == '是'){
if (value == '是') {
colorStr = '#8FBC8F';
}else if(value == '否'){
} else if (value == '否') {
colorStr = 'red';
}else{
} else {
value = '';
}
var str = '<span style="color:'+colorStr+'"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
var str = '<span style="color:' + colorStr + '"><i class="fa fa-check-circle-o" aria-hidden="true"></i>' + value + '</span>';
return str;
}
},
@ -193,10 +194,10 @@ function initTable() {
field: 'callBackStatus',
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>';
}
}
@ -206,10 +207,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>';
}
}
@ -227,18 +228,23 @@ function initTable() {
if (udpatePower == 1) {
html += '<button type="button" class="btn btn-sm btn-primary verifyInfo" title="审核">审核</button>';
}
if (backToPower == 1) {
html += '<button type="button" class="btn btn-warning btn-sm returnInfo" title="退回">退回</button>';
}
if (showFlowPower == 1) {
html += '<button type="button" class="btn btn-sm btn-success showFlowInfo" title="查看流程">查看流程</button>'
}
if (row.paperStatic == 1) {
html += '<button type="button" class="btn btn-danger btn-sm addPaperStatic" title="取消签收">取消签收</button>'
}
if (row.paperStatic == 0) {
html += '<button type="button" class="btn btn-sm btn-primary addPaperStatic" title="纸质签收">纸质签收</button>'
}
return html;
},
events: {
'click .addPaperStatic': function (e, value, row, index) {
addPaperStatic(row.id,row.paperStatic)
},
'click .returnInfo': function (e, value, row, index) {
setFormToken();
//console.log("=====退回======");
$("#backArchiveId").val(row.id);
$("#status").val(row.archivestate);
$('#form2').find('input,textarea,checkbox').prop('readonly', false);
@ -260,7 +266,7 @@ function initTable() {
},
'click .verifyInfo': function (e, value, row, index) {
//调用审批diag
callApproveDiag(row.id,1,row.patientId);
callApproveDiag(row.id, 1, row.patientId);
},
'click .selInfo': function (e, value, row, index) {
//查询是否医生或护士是否提交
@ -294,7 +300,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);
@ -325,7 +331,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());
}
},
cellStyle: function (value, row, index) {
@ -345,6 +351,37 @@ function initTable() {
});
}
}
//签收、取消签收
function addPaperStatic(id,paperStatic) {
$.ajax({
url: path + "/lastVerify/addPaperStatic", // 获取表格数据的url
type: "POST",
data: {id: id,paperStatic:paperStatic},
success: function (result) {
if (result==0){
reLoad();
return toastr.warning("失败!");
}
if (result==1){
reLoad();
return toastr.success("成功!");
}
}
});
}
//批量申请确认提交后刷新页面
function reLoad() {
$("#addPaperStatic").bootstrapTable('refresh', path + '/lastVerify/lastVerifyList');//排序方式
}
//确认批量审批列表
function initTable3() {
$("#table3").bootstrapTable("destroy");
@ -353,8 +390,8 @@ function initTable3() {
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //是否显示行间隔色
pagination: true, // 在表格底部显示分页组件默认false
pageSize:"5",
pageList: [5,10,20,50,100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
pageSize: "5",
pageList: [5, 10, 20, 50, 100], // 如果设置了分页设置可供选择的页面数据条数。设置为All 则显示所有记录。
undefinedText: '---', //当数据为 undefined 时显示的字符
height: 240, //定义表格的高度。
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
@ -417,7 +454,7 @@ $("#verifyBtn").on('click', function () {
//审核信息保存
//获取审批个数
var approveCount = $("#approveCount").val();
if(approveCount > 1){
if (approveCount > 1) {
//大于一个弹出确认框
$("#verifyModal").modal('hide');
initTable3();
@ -426,22 +463,22 @@ $("#verifyBtn").on('click', function () {
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
}else{
} else {
var ids = $("#archiveId").val();
//只有一个直接提交
//获取柜子列个数
var paperPostionValueLength = $("#paperPostionValueLength").val();
if(paperPostionValueLength >= 1){
for(var i = 1;i<=paperPostionValueLength;i++) {
if (paperPostionValueLength >= 1) {
for (var i = 1; i <= paperPostionValueLength; i++) {
//判断是否必填
var document = $("#paperPosition"+i);
var document = $("#paperPosition" + i);
var isRequire = document.attr("data");
if(isRequire == 1){
if (isRequire == 1) {
//判断是否为空
var val = document.val();
if(val == ''){
if (val == '') {
//获取下个节点属性
var text = $("#paperPosition"+i + "_" + i).text();
var text = $("#paperPosition" + i + "_" + i).text();
toastr.warning(text + "不能为空");
document.focus();
return false;
@ -451,23 +488,23 @@ $("#verifyBtn").on('click', function () {
}
//判断是否有扫描纸质
$.ajax({
type:'get',
url:path+'/lastVerify/selectIsScan',
data:{ids:ids},
dataType:'json',
success:function(data){
if(data.code == 100){
type: 'get',
url: path + '/lastVerify/selectIsScan',
data: {ids: ids},
dataType: 'json',
success: function (data) {
if (data.code == 100) {
var str = data.extend.ids;
if(str != ''){
if (str != '') {
//允许提交
approveMethod();
}else{
} else {
//弹窗确认
$("#WZModal").modal({show:"true"});
$("#WZModal").modal({show: "true"});
}
//隐藏该窗口
$("#verifyModal").modal('hide');
}else{
} else {
toastr.error(data.msg);
}
}
@ -476,13 +513,13 @@ $("#verifyBtn").on('click', function () {
});
//单个终审判断纸质未扫描仍强制提交
$("#wzSaveBtn").click(function(){
$("#wzSaveBtn").click(function () {
approveMethod();
$("#WZModal").modal('hide');
})
//终审方法
function approveMethod(){
function approveMethod() {
var paperPosition = null;
var paperPosition1 = null;
var paperPosition2 = null;
@ -490,45 +527,51 @@ function approveMethod(){
var paperPosition4 = null;
//获取纸质输入类型
var paperPostionValue = $("#paperPostionValue").val();
if(paperPostionValue == 1){
if (paperPostionValue == 1) {
//获取柜子列个数
var paperPostionValueLength = $("#paperPostionValueLength").val();
if(paperPostionValueLength >= 1){
if($("#paperPosition1").val() != 'undefined') {
if (paperPostionValueLength >= 1) {
if ($("#paperPosition1").val() != 'undefined') {
paperPosition1 = $("#paperPosition1").val();
}
}
if(paperPostionValueLength >= 2){
if($("#paperPosition2").val() != 'undefined') {
if (paperPostionValueLength >= 2) {
if ($("#paperPosition2").val() != 'undefined') {
paperPosition2 = $("#paperPosition2").val();
}
}
if(paperPostionValueLength >= 3){
if($("#paperPosition3").val() != 'undefined') {
if (paperPostionValueLength >= 3) {
if ($("#paperPosition3").val() != 'undefined') {
paperPosition3 = $("#paperPosition3").val();
}
}
if(paperPostionValueLength >= 4){
if($("#paperPosition4").val() != 'undefined') {
if (paperPostionValueLength >= 4) {
if ($("#paperPosition4").val() != 'undefined') {
paperPosition4 = $("#paperPosition4").val();
}
}
}else{
} else {
paperPosition = $("#paperPosition").val();
}
//归档状态改为初审还是有就是初审内容保存
$.ajax({
url: path+"/lastVerify/updateStateByArchivId",
url: path + "/lastVerify/updateStateByArchivId",
type: "POST",
data: {id: $("#archiveId").val(), remark: $("#verifyText").val(),changeReason:$("#changeReason").val(),checkedDatetime:$("#checkedDateTime").val(),status:$("#status1").val(),formToken:$("#formToken").val(),
paperPosition:paperPosition,
paperPosition1:paperPosition1,
paperPosition2:paperPosition2,
paperPosition3:paperPosition3,
paperPosition4:paperPosition4,
patientId:$("#patientId").val()
data: {
id: $("#archiveId").val(),
remark: $("#verifyText").val(),
changeReason: $("#changeReason").val(),
checkedDatetime: $("#checkedDateTime").val(),
status: $("#status1").val(),
formToken: $("#formToken").val(),
paperPosition: paperPosition,
paperPosition1: paperPosition1,
paperPosition2: paperPosition2,
paperPosition3: paperPosition3,
paperPosition4: paperPosition4,
patientId: $("#patientId").val()
},
dataType:'json',
dataType: 'json',
success: function (result) {
if (result.code == 100) {
$("#verifyModal").modal('hide');
@ -547,31 +590,31 @@ $("#approvesBtn").on('click', function () {
setFormToken();
selects = $("#table").bootstrapTable('getSelections');
var count = selects.length;
if(count !== 0){
if (count !== 0) {
var ids = '';
var patientIds = '';
for (var i = 0; i < count; i++) {
if(i === 0){
if (i === 0) {
ids += selects[i].id;
patientIds += selects[i].patientId;
}else{
} else {
ids += "," + selects[i].id;
patientIds += "," + selects[i].patientId;
}
}
callApproveDiag(ids,count,patientIds);
}else{
callApproveDiag(ids, count, patientIds);
} else {
toastr.warning("批量审批请至少选中一个");
}
});
//批量终审确认提交
$("#sureBtn").on('click',function(){
$("#sureBtn").on('click', function () {
approveMethod();
});
//调用审批diag
function callApproveDiag(ids,count,patientId) {
function callApproveDiag(ids, count, patientId) {
$('#verifyModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: false,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
@ -596,21 +639,11 @@ $("#getFirstBtn").on('click', function () {
show: true//弹出对话框
});
//获取初审
$.ajax({
url: path+"/lastVerify/getDetailByArchId", // 获取表格数据的url
type: "POST",
data: {archiveDetailId: $("#idLab").html()},
success: function (result) {
//console.log(result);
if (result != null) {
$("#firstTrial").val(result.firstTrial);
}
}, error: function () {
}
});
});
//查看召回信息
$("#getRecallBtn").on('click', function () {
//退回信息保存
@ -623,7 +656,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) {
@ -690,30 +723,31 @@ $(function () {
});
//变更修改时间
function changeBox(){
function changeBox() {
var flag = $("#isChange").is(":checked");
var time = getFormatDate();
if(flag){
if (flag) {
//获取医生初审时间
var html = '<div class="form-group"><span style="vertical-align:top;">审核时间:</span>'
+'<input type="text" class="input-sm" value="'+time+'" id="checkedDateTime" name="checkedDateTime" maxlength="30"></div>'
+'<div class="form-group ">'
+'<span style="vertical-align:top;">修改原因:</span><textarea rows="6" cols="66" id="changeReason" name="changeReason" maxlength="500"></textarea></div>';
+ '<input type="text" class="input-sm" value="' + time + '" id="checkedDateTime" name="checkedDateTime" maxlength="30"></div>'
+ '<div class="form-group ">'
+ '<span style="vertical-align:top;">修改原因:</span><textarea rows="6" cols="66" id="changeReason" name="changeReason" maxlength="500"></textarea></div>';
$("#block").append(html);
}else{
} else {
$("#block").empty();
}
}
//获取当前时间
function getFormatDate(){
function getFormatDate() {
var nowDate = new Date();
var year = nowDate.getFullYear();
var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1;
var date = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate();
var hour = nowDate.getHours()< 10 ? "0" + nowDate.getHours() : nowDate.getHours();
var minute = nowDate.getMinutes()< 10 ? "0" + nowDate.getMinutes() : nowDate.getMinutes();
var second = nowDate.getSeconds()< 10 ? "0" + nowDate.getSeconds() : nowDate.getSeconds();
return year + "-" + month + "-" + date+" "+hour+":"+minute+":"+second;
var hour = nowDate.getHours() < 10 ? "0" + nowDate.getHours() : nowDate.getHours();
var minute = nowDate.getMinutes() < 10 ? "0" + nowDate.getMinutes() : nowDate.getMinutes();
var second = nowDate.getSeconds() < 10 ? "0" + nowDate.getSeconds() : nowDate.getSeconds();
return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
}
//导出excel功能
@ -729,55 +763,58 @@ $("#excelBtn").click(function () {
}
var startDateTo = $("#startDateTo").val();
var endDateTo = $("#endDateTo").val();
window.location.href = path+"/lastVerify/exportExcel?inpNo=" + inpNo + "&visitId=" + visitId +
"&name=" + name + "&deptName=" + deptName
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo+"&isSearch="+$("#isSearch").val()+"&doctorInCharge="+$("#doctorInCharge").val()+"&isSign="+$("#isSign").val()+"&checkName="+$("#checkName").val();
window.location.href = path + "/lastVerify/exportExcel?inpNo=" + inpNo + "&visitId=" + visitId +
"&name=" + name + "&deptName=" + deptName
+ "&startDateTo=" + startDateTo + "&endDateTo=" + endDateTo + "&isSearch=" + $("#isSearch").val() + "&doctorInCharge=" + $("#doctorInCharge").val() + "&isSign=" + $("#isSign").val() + "&checkName=" + $("#checkName").val();
});
//纸质位置切换自定义输入
function paperSelect(){
function paperSelect() {
$("#block1").empty();
var str = '<input type="text" id="paperPosition" class="input-sm" maxlength="16">\n' +
' <label for="paperPositionSelect1" style="cursor:pointer"><input type="checkbox" title="选择输入" onchange="paperSelect1()" id="paperPositionSelect1">选择输入</label>';
$("#block1").append(str);
$("#paperPostionValue").val(2);
};
//纸质位置切换选择输入
function paperSelect1(){
function paperSelect1() {
loadSelectPaperPostion();
};
//查询纸质位置字典
function selectPaperPositonDictionary(){
function selectPaperPositonDictionary() {
var selectValue = '';
$.ajax({
type:'get',
url:path+'/paperPostion/selectPaperPositonDictionary',
dateType:'json',
async:false,
success:function(data){
if(null != data) {
type: 'get',
url: path + '/paperPostion/selectPaperPositonDictionary',
dateType: 'json',
async: false,
success: function (data) {
if (null != data) {
for (var i = 0; i < data.length; i++) {
//获取输入框类型
//1选择框 2输入框
var inputType = data[i].int1;
//组织id
var id = 'paperPosition'+(i+1);
var id = 'paperPosition' + (i + 1);
//获取是否必填 1是0否
var isRequire = data[i].int2;
var labelId = id + '_' + (i+1);
if(inputType == 1){
var labelId = id + '_' + (i + 1);
if (inputType == 1) {
//选择框
selectValue += '<select id="'+id+'" data="'+isRequire+'"><option value="">请选择</option>';
selectValue += '<select id="' + id + '" data="' + isRequire + '"><option value="">请选择</option>';
//取出选择值集合
var typeValues = data[i].typevalue.split(",");
for(var j = 0;j < typeValues.length;j++){
selectValue += '<option value="'+typeValues[j]+'">'+typeValues[j]+'</option>';
for (var j = 0; j < typeValues.length; j++) {
selectValue += '<option value="' + typeValues[j] + '">' + typeValues[j] + '</option>';
}
selectValue += '</select>';
selectValue += '<label id="'+labelId+'">'+data[i].typename+'</label>';
}else if(inputType == 2){
selectValue += '<label id="' + labelId + '">' + data[i].typename + '</label>';
} else if (inputType == 2) {
//输入框
selectValue += '<input id="'+id+'" maxlength="16" data="'+isRequire+'" autocomplete="off"/>';
selectValue += '<label id="'+labelId+'">'+data[i].typename+'</label>';
selectValue += '<input id="' + id + '" maxlength="16" data="' + isRequire + '" autocomplete="off"/>';
selectValue += '<label id="' + labelId + '">' + data[i].typename + '</label>';
}
}
$("#paperPostionValueLength").val(data.length);
@ -788,13 +825,14 @@ function selectPaperPositonDictionary(){
}
//返回纸质选择输入html字符串
function selectSelectPaperPostion(){
function selectSelectPaperPostion() {
var paperPositionSelect = selectPaperPositonDictionary();
paperPositionSelect += '<label for="paperPositionSelect" style="cursor:pointer"><input type="checkbox" title="自定义输入" onchange="paperSelect()" id="paperPositionSelect">自定义输入</label>';
return paperPositionSelect;
}
//加载纸质选择输入
function loadSelectPaperPostion(){
function loadSelectPaperPostion() {
$("#block1").empty();
var str = selectSelectPaperPostion();
$("#block1").append(str);

Loading…
Cancel
Save