commit
This commit is contained in:
@@ -13,17 +13,17 @@ public class ClubRegistAuditState {
|
|||||||
public static final Integer NOT_SUBMIT = 800;
|
public static final Integer NOT_SUBMIT = 800;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 待二级单位党委书记审核
|
* 待分工会审核
|
||||||
*/
|
*/
|
||||||
public static final Integer UNIT_PART_READY = 801;
|
public static final Integer UNIT_PART_READY = 801;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 二级单位党委书记退回修改
|
* 分工会退回修改
|
||||||
*/
|
*/
|
||||||
public static final Integer UNIT_PART_BACK_MODIFY = 802;
|
public static final Integer UNIT_PART_BACK_MODIFY = 802;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 二级单位党委书记审核拒绝
|
* 分工会审核拒绝
|
||||||
*/
|
*/
|
||||||
public static final Integer UNIT_PART_REJECTED = 803;
|
public static final Integer UNIT_PART_REJECTED = 803;
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -5,6 +5,7 @@ import io.v.nutz.base.model.Audit;
|
|||||||
import io.v.nutz.base.query.PageForm;
|
import io.v.nutz.base.query.PageForm;
|
||||||
import io.v.nutz.base.service.BaseService;
|
import io.v.nutz.base.service.BaseService;
|
||||||
import io.v.nutz.base.utils.Roles;
|
import io.v.nutz.base.utils.Roles;
|
||||||
|
import io.v.nutz.base.utils.Vi;
|
||||||
import io.v.nutz.sys.controllers.platform.sys.handler.ClubExamineToDoHandler;
|
import io.v.nutz.sys.controllers.platform.sys.handler.ClubExamineToDoHandler;
|
||||||
import io.v.nutz.sys.models.Sys_user_role;
|
import io.v.nutz.sys.models.Sys_user_role;
|
||||||
import io.v.nutz.sys.models.sys_club_examine_register;
|
import io.v.nutz.sys.models.sys_club_examine_register;
|
||||||
@@ -64,7 +65,7 @@ public class ClubExamineRegisterUnitPartAuditController {
|
|||||||
$condition
|
$condition
|
||||||
""");
|
""");
|
||||||
if (!ShiroUtil.hasAnyRoles(new String[]{"sysadmin", "A06", "xxhgly"})) {
|
if (!ShiroUtil.hasAnyRoles(new String[]{"sysadmin", "A06", "xxhgly"})) {
|
||||||
cnd.and("u1.unitId", "=", ShiroUtil.getUnitId());
|
cnd.and("u1.unionId", "=", Vi.getUnionId());
|
||||||
}
|
}
|
||||||
cnd.andEX("YEAR(scer.registerDate)", "=", year);
|
cnd.andEX("YEAR(scer.registerDate)", "=", year);
|
||||||
cnd.andEX("scer.clubId", "=", clubId);
|
cnd.andEX("scer.clubId", "=", clubId);
|
||||||
|
|||||||
+3
-2
@@ -4,6 +4,7 @@ import cn.wizzer.framework.page.Pagination;
|
|||||||
import io.v.nutz.base.annontation.ViReturn;
|
import io.v.nutz.base.annontation.ViReturn;
|
||||||
import io.v.nutz.base.model.Audit;
|
import io.v.nutz.base.model.Audit;
|
||||||
import io.v.nutz.base.query.PageForm;
|
import io.v.nutz.base.query.PageForm;
|
||||||
|
import io.v.nutz.base.utils.Vi;
|
||||||
import io.v.nutz.sys.constant.club.ClubRegistAuditState;
|
import io.v.nutz.sys.constant.club.ClubRegistAuditState;
|
||||||
import io.v.nutz.sys.models.Sys_club;
|
import io.v.nutz.sys.models.Sys_club;
|
||||||
import io.v.nutz.sys.services.SysClubService;
|
import io.v.nutz.sys.services.SysClubService;
|
||||||
@@ -23,7 +24,7 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* @Author JyuHsin
|
* @Author JyuHsin
|
||||||
* @Date 2022/4/14
|
* @Date 2022/4/14
|
||||||
* @Description 二级单位审核
|
* @Description 分工会审核
|
||||||
*/
|
*/
|
||||||
@IocBean
|
@IocBean
|
||||||
@At("/platform/sys/club/unitPartAudit")
|
@At("/platform/sys/club/unitPartAudit")
|
||||||
@@ -51,7 +52,7 @@ public class ClubUnitPartAuditController {
|
|||||||
@Param(value = "isAudit", required = false) Boolean isAudit) {
|
@Param(value = "isAudit", required = false) Boolean isAudit) {
|
||||||
Cnd cnd = Cnd.NEW();
|
Cnd cnd = Cnd.NEW();
|
||||||
if (!ShiroUtil.hasAnyRoles(new String[]{"sysadmin", "A06", "xxhgly"})) {
|
if (!ShiroUtil.hasAnyRoles(new String[]{"sysadmin", "A06", "xxhgly"})) {
|
||||||
cnd.and("u.unitId", "=", ShiroUtil.getUnitId());
|
cnd.and("u.unionId", "=", Vi.getUnionId());
|
||||||
}
|
}
|
||||||
if (isAudit == null) {
|
if (isAudit == null) {
|
||||||
cnd.and("c.state", ">=", ClubRegistAuditState.UNIT_PART_READY);
|
cnd.and("c.state", ">=", ClubRegistAuditState.UNIT_PART_READY);
|
||||||
|
|||||||
+9
-9
@@ -97,7 +97,7 @@ public enum ClubExamineToDoHandler {
|
|||||||
GROUP BY
|
GROUP BY
|
||||||
sur.userId
|
sur.userId
|
||||||
""");
|
""");
|
||||||
sqlStr.setCondition(Cnd.NEW().and("sur.roleId", "in", Lang.array(Roles.club01, Roles.club02, Roles.club03, Roles.club04)));
|
sqlStr.setCondition(Cnd.NEW().and("sur.roleId", "in", Lang.array(Roles.club01)));
|
||||||
Sql sql = Sqls.queryString(sqlStr.toString());
|
Sql sql = Sqls.queryString(sqlStr.toString());
|
||||||
dao.execute(sql);
|
dao.execute(sql);
|
||||||
List<String> loginNames = sql.getList(String.class);
|
List<String> loginNames = sql.getList(String.class);
|
||||||
@@ -131,12 +131,12 @@ public enum ClubExamineToDoHandler {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 给二级单位发任务
|
* 给分工会发任务
|
||||||
*/
|
*/
|
||||||
CREATE_UNIT_PART_TASK() {
|
CREATE_UNIT_PART_TASK() {
|
||||||
@Override
|
@Override
|
||||||
public void exec(sys_club_examine_register examineRegister) {
|
public void exec(sys_club_examine_register examineRegister) {
|
||||||
//查询二级单位党委书记
|
//查询分工会
|
||||||
Sql sqlStr = Sqls.create("""
|
Sql sqlStr = Sqls.create("""
|
||||||
SELECT
|
SELECT
|
||||||
u.loginname
|
u.loginname
|
||||||
@@ -147,26 +147,26 @@ public enum ClubExamineToDoHandler {
|
|||||||
GROUP BY
|
GROUP BY
|
||||||
sur.userId
|
sur.userId
|
||||||
""");
|
""");
|
||||||
sqlStr.setCondition(Cnd.NEW().and("sur.roleId", "=", Roles.GH03));
|
sqlStr.setCondition(Cnd.NEW().and("sur.roleId", "in", Lang.array(Roles.GH01, Roles.UNION_MANGER)));
|
||||||
Sql sql = Sqls.queryString(sqlStr.toString());
|
Sql sql = Sqls.queryString(sqlStr.toString());
|
||||||
dao.execute(sql);
|
dao.execute(sql);
|
||||||
List<String> loginNames = sql.getList(String.class);
|
List<String> loginNames = sql.getList(String.class);
|
||||||
localProcessService.createTask(
|
localProcessService.createTask(
|
||||||
"sys_club_examine_register@" + examineRegister.getId(),
|
"sys_club_examine_register@" + examineRegister.getId(),
|
||||||
"unitPartAuditId",
|
"unitPartAuditId",
|
||||||
"二级单位审核",
|
"分工会审核",
|
||||||
ShiroUtil.getUserId(),
|
ShiroUtil.getUserId(),
|
||||||
loginNames,
|
loginNames,
|
||||||
"/platform/sys/club/examine/register/xghAudit",
|
"/platform/sys/club/examine/register/unitPartAudit",
|
||||||
"/platform/sys/club/examine/register/xghAudit",
|
"/platform/sys/club/examine/register/unitPartAudit",
|
||||||
"",
|
"",
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
localProcessService.updateProcessNodeName("sys_club_examine_register@" + examineRegister.getId(), "二级单位审核");
|
localProcessService.updateProcessNodeName("sys_club_examine_register@" + examineRegister.getId(), "分工会审核");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 二级单位任务完成
|
* 分工会任务完成
|
||||||
*/
|
*/
|
||||||
COMPLETE_UNIT_PART_TASK() {
|
COMPLETE_UNIT_PART_TASK() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ public class Sys_club {
|
|||||||
private List<Sys_club_sponsor> sponsors;
|
private List<Sys_club_sponsor> sponsors;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("二级单位党委书记审核记录id")
|
@Comment("分工会审核记录id")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||||
private String unitPartAuditId;
|
private String unitPartAuditId;
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public class sys_club_examine_register {
|
|||||||
private String hzAuditId;
|
private String hzAuditId;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("二级单位审核意见id")
|
@Comment("分工会审核意见id")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||||
private String unitPartAuditId;
|
private String unitPartAuditId;
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane label="二级单位党委书记审核信息" name="2" v-if="hasPane(2) && viewData.unitPartAuditId">
|
<el-tab-pane label="分工会审核信息" name="2" v-if="hasPane(2) && viewData.unitPartAuditId">
|
||||||
<vi-title title="审核信息"></vi-title>
|
<vi-title title="审核信息"></vi-title>
|
||||||
<el-descriptions :column="2" border class="table_fixed">
|
<el-descriptions :column="2" border class="table_fixed">
|
||||||
<el-descriptions-item label="审核人员">
|
<el-descriptions-item label="审核人员">
|
||||||
|
|||||||
@@ -131,8 +131,8 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="二级单位审核信息" name="6" v-if="viewData.unitPartAudit">
|
<el-tab-pane label="分工会审核信息" name="6" v-if="viewData.unitPartAudit">
|
||||||
<vi-title title="二级单位审核信息"></vi-title>
|
<vi-title title="分工会审核信息"></vi-title>
|
||||||
<el-descriptions :column="2" border class="table_fixed">
|
<el-descriptions :column="2" border class="table_fixed">
|
||||||
<el-descriptions-item label="审核人员">
|
<el-descriptions-item label="审核人员">
|
||||||
{{ viewData.unitPartAudit.username }}({{ viewData.unitPartAudit.loginname }})
|
{{ viewData.unitPartAudit.username }}({{ viewData.unitPartAudit.loginname }})
|
||||||
|
|||||||
@@ -982,6 +982,7 @@ layout("/layouts/platform.html"){
|
|||||||
const resp = await $.post('/platform/sys/club/clubMyApply/doDelete', {id: id})
|
const resp = await $.post('/platform/sys/club/clubMyApply/doDelete', {id: id})
|
||||||
this.notifySuccess("删除成功")
|
this.notifySuccess("删除成功")
|
||||||
this.doSearch()
|
this.doSearch()
|
||||||
|
await this.loadTree()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fzrChange(id) {
|
fzrChange(id) {
|
||||||
|
|||||||
@@ -381,6 +381,7 @@ layout("/layouts/platform.html"){
|
|||||||
row.loginname = user.loginname
|
row.loginname = user.loginname
|
||||||
row.unitname = user.unitname
|
row.unitname = user.unitname
|
||||||
row.mobile = user.mobile
|
row.mobile = user.mobile
|
||||||
|
this.userOptions = []
|
||||||
},
|
},
|
||||||
sponsorPersonChange(val, row, index) {
|
sponsorPersonChange(val, row, index) {
|
||||||
const cloneData = clone(this.sponsorData)
|
const cloneData = clone(this.sponsorData)
|
||||||
@@ -398,6 +399,8 @@ layout("/layouts/platform.html"){
|
|||||||
row.loginname = user.loginname
|
row.loginname = user.loginname
|
||||||
row.unitname = user.unitname
|
row.unitname = user.unitname
|
||||||
row.mobile = user.mobile
|
row.mobile = user.mobile
|
||||||
|
|
||||||
|
this.userOptions = []
|
||||||
},
|
},
|
||||||
fzrChange(id) {
|
fzrChange(id) {
|
||||||
const user = this.userOptions.find(v => {
|
const user = this.userOptions.find(v => {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ layout("/layouts/platform.html"){
|
|||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<template #edit>
|
<template #edit>
|
||||||
<club-regist-info ref="info2" :handle="true" label="二级单位党委书记审核" :panes="[2]">
|
<club-regist-info ref="info2" :handle="true" label="分工会审核" :panes="[2]">
|
||||||
<template #handle>
|
<template #handle>
|
||||||
<vi-title title="审核信息"></vi-title>
|
<vi-title title="审核信息"></vi-title>
|
||||||
<el-form :model="formData" ref="form" :rules="formRules" label-position="right"
|
<el-form :model="formData" ref="form" :rules="formRules" label-position="right"
|
||||||
|
|||||||
Reference in New Issue
Block a user