This commit is contained in:
cwchen 2024-07-25 14:59:09 +08:00
parent 1c3ef85396
commit 31fa45c17f
5 changed files with 11 additions and 10 deletions

View File

@ -101,7 +101,7 @@ public class ExamineServiceImpl implements ExamineService {
// auditType 审核类型 1 审阅 2 审核 3 审批 auditStatus 审核结果 2 不通过 1通过 // auditType 审核类型 1 审阅 2 审核 3 审批 auditStatus 审核结果 2 不通过 1通过
Integer status = 0, auditStatus = 0; Integer status = 0, auditStatus = 0;
if (Objects.equals(vo.getAuditStatus(), Constants.PASS)) { if (Objects.equals(vo.getAuditStatus(), Constants.PASS)) {
// 审查通过 // 审查通过
Integer[] valArr = handleData(vo, 1); Integer[] valArr = handleData(vo, 1);
status = valArr[0]; status = valArr[0];
auditStatus = valArr[1]; auditStatus = valArr[1];
@ -129,7 +129,7 @@ public class ExamineServiceImpl implements ExamineService {
audtiStatus = valArr[1]; audtiStatus = valArr[1];
} }
// 审核状态流程状态不为0时修改收样信息审核状态 // 审核状态流程状态不为0时修改收样信息审核状态
if(!Objects.equals(audtiStatus, Constants.ALL_EXPER_INDEX) && !Objects.equals(processStatus, Constants.ALL_EXPER_INDEX)){ if(!Objects.equals(audtiStatus, Constants.ALL_EXPER_INDEX) || !Objects.equals(processStatus, Constants.ALL_EXPER_INDEX)){
mapper.updateSampleStatus(vo, audtiStatus, processStatus); mapper.updateSampleStatus(vo, audtiStatus, processStatus);
} }
} catch (Exception e) { } catch (Exception e) {

View File

@ -167,9 +167,9 @@ public class Constants
/**审阅*/ /**审阅*/
public static final Integer AUDIT_TYPE_1 = 1; public static final Integer AUDIT_TYPE_1 = 1;
/**审核*/ /**审核*/
public static final Integer AUDIT_TYPE_2 = 1; public static final Integer AUDIT_TYPE_2 = 2;
/**审批*/ /**审批*/
public static final Integer AUDIT_TYPE_3 = 1; public static final Integer AUDIT_TYPE_3 = 3;
public static final Integer NOT_PASS_INDEX = 2; public static final Integer NOT_PASS_INDEX = 2;
public static final Integer PASS_INDEX = 1; public static final Integer PASS_INDEX = 1;

View File

@ -193,7 +193,7 @@
</update> </update>
<!--更新试验表中数据为待审阅--> <!--更新试验表中数据为待审阅-->
<update id="updateExperStatus"> <update id="updateExperStatus">
UPDATE tb_exper SET status = 1,audit_status = 0 UPDATE tb_exper SET status = 1,audit_status = 0,audit_user_name = null,audit_time = null,audit_remakr = null
WHERE sample_id IN WHERE sample_id IN
<foreach collection="list" item="item" open="(" close=")" separator=","> <foreach collection="list" item="item" open="(" close=")" separator=",">
#{item} #{item}

View File

@ -97,9 +97,10 @@
(ts.process_status = 4 AND audti_status = 1) (ts.process_status = 4 AND audti_status = 1)
) )
</if> </if>
/*管理员-审阅不通过/待审核/审核不通过/待审批/审批不通过/试验完成*/ /*管理员-待审阅/审阅不通过/待审核/审核不通过/待审批/审批不通过/试验完成*/
<if test="roleCode == 'administrators'"> <if test="roleCode == 'administrators'">
AND ( AND (
(ts.process_status = 1 AND audti_status = 0) OR
(ts.process_status = 1 AND audti_status = 2) OR (ts.process_status = 1 AND audti_status = 2) OR
(ts.process_status = 2 AND audti_status = 0) OR (ts.process_status = 2 AND audti_status = 0) OR
(ts.process_status = 2 AND audti_status = 2) OR (ts.process_status = 2 AND audti_status = 2) OR

View File

@ -86,7 +86,7 @@ function initTable(dataList, limit, page) {
[ [
//表头 //表头
{ {
type: 'checkbox', fixed: 'left' type: 'checkbox'
}, },
{ {
title: "序号", width: 80, unresize: true, align: "center", title: "序号", width: 80, unresize: true, align: "center",
@ -172,7 +172,7 @@ function initTable(dataList, limit, page) {
} else { } else {
temp_table_list.forEach(function (o, i) { temp_table_list.forEach(function (o, i) {
let index = checkAllList(temp_all_list, o); let index = checkAllList(temp_all_list, o);
if (index == -1 && isCheck(o.status)) { if (index == -1 && isCheck(o.status) && (checkNameArr.indexOf(o.status) + 1 === parseInt(statusParam))) {
temp_all_list.push(o); temp_all_list.push(o);
} }
}) })
@ -256,7 +256,7 @@ function query() {
} }
function reloadData() { function reloadData() {
temp_all_list.splice(0, temp_all_list.length); temp_all_list.splice(0,temp_all_list.length)
pages(pageNum, limitSize); pages(pageNum, limitSize);
} }
@ -309,7 +309,7 @@ function batchAudit(type) {
saveData(experIdArr, sampleId); saveData(experIdArr, sampleId);
}) })
} else if (type === 2) { // 批量不通过 } else if (type === 2) { // 批量不通过
let index = layer.confirm('批量' + (type === 1 ? '通过' : '不通过') + '确认,请仔细检查数据?', { let index = layer.confirm('批量' + (type === 1 ? '通过' : '不通过') + '确认,请仔细检查数据?', {
title: '操作提示', title: '操作提示',
icon: 7, icon: 7,
move: false move: false