diff --git a/src/main/java/com/budwk/app/zhgh/staffmanage/member/controller/apply/MemberApplyUnionGroupApprovalController.java b/src/main/java/com/budwk/app/zhgh/staffmanage/member/controller/apply/MemberApplyUnionGroupApprovalController.java
index 80570208..4e5d3902 100644
--- a/src/main/java/com/budwk/app/zhgh/staffmanage/member/controller/apply/MemberApplyUnionGroupApprovalController.java
+++ b/src/main/java/com/budwk/app/zhgh/staffmanage/member/controller/apply/MemberApplyUnionGroupApprovalController.java
@@ -45,6 +45,11 @@ public class MemberApplyUnionGroupApprovalController {
@SaCheckPermission("member.apply.unionGroupApproval")
public void index() {}
+ @At
+ @Ok("beetl:/platform/zhghh5/staffmanage/member/apply/uniongroupapproval/index.html")
+ @SaCheckPermission("h5.member.apply.uniongroupapproval")
+ public void h5() {
+ }
@At
@ApiOperation("会员入会申请工会小组审核列表")
diff --git a/src/main/java/com/budwk/app/zhgh/staffmanage/member/interceptor/MemberApplySchoolApprovalInterceptor.java b/src/main/java/com/budwk/app/zhgh/staffmanage/member/interceptor/MemberApplySchoolApprovalInterceptor.java
index a8081588..e64beb52 100644
--- a/src/main/java/com/budwk/app/zhgh/staffmanage/member/interceptor/MemberApplySchoolApprovalInterceptor.java
+++ b/src/main/java/com/budwk/app/zhgh/staffmanage/member/interceptor/MemberApplySchoolApprovalInterceptor.java
@@ -2,12 +2,15 @@ package com.budwk.app.zhgh.staffmanage.member.interceptor;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
+import com.budwk.app.base.constant.RoleConstant;
import com.budwk.app.flow.constant.FlowConst;
import com.budwk.app.flow.engine.FlowInterceptor;
import com.budwk.app.flow.engine.core.Execution;
import com.budwk.app.flow.engine.core.ServiceContext;
import com.budwk.app.flow.enums.ProcessSubmitTypeEnum;
+import com.budwk.app.sys.models.Sys_role;
import com.budwk.app.sys.models.Sys_user;
+import com.budwk.app.sys.models.Sys_user_role;
import com.budwk.app.zhgh.staffmanage.member.models.MemberApplyRecord;
import org.nutz.dao.Chain;
import org.nutz.dao.Cnd;
@@ -45,6 +48,18 @@ public class MemberApplySchoolApprovalInterceptor implements FlowInterceptor {
BeanUtil.copyProperties(record, sysUser);
sysUser.setId(record.getUserId());
dao.updateIgnoreNull(sysUser);
+
+ // 还要设置会员角色
+ Sys_role role = dao.fetch(Sys_role.class, Cnd.where(Sys_role::getCode, "=", RoleConstant.MEMBER.name()));
+
+ int count = dao.count(Sys_user_role.class, Cnd.where("userId", "=", record.getUserId()).and("roleId", "=", role.getId()));
+ if (count == 0) {
+ Sys_user_role userRole = new Sys_user_role();
+ userRole.setUserId(record.getUserId());
+ userRole.setRoleId(role.getId());
+ dao.insert(userRole);
+ }
+
// 正常的发送短信,审核通过
} else {
// 发TMD短信 HMC,流程在流转到分工会接收环节
diff --git a/src/main/resources/views/platform/zhgh/staffmanage/member/apply/submit/index.html b/src/main/resources/views/platform/zhgh/staffmanage/member/apply/submit/index.html
index bf8d1fa1..00ddb345 100644
--- a/src/main/resources/views/platform/zhgh/staffmanage/member/apply/submit/index.html
+++ b/src/main/resources/views/platform/zhgh/staffmanage/member/apply/submit/index.html
@@ -101,7 +101,12 @@ layout("/layouts/platform.html"){
disabled style="width: 100%">
-
+
+
+
+
+
diff --git a/src/main/resources/views/platform/zhgh/staffmanage/member/change/common/memberChange.js b/src/main/resources/views/platform/zhgh/staffmanage/member/change/common/memberChange.js
index b59e0013..364a00ad 100644
--- a/src/main/resources/views/platform/zhgh/staffmanage/member/change/common/memberChange.js
+++ b/src/main/resources/views/platform/zhgh/staffmanage/member/change/common/memberChange.js
@@ -157,7 +157,7 @@ const MEMBER_CHANGE = {
diff --git a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/branchunionapproval/index.html b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/branchunionapproval/index.html
index 27e9d474..aec6692a 100644
--- a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/branchunionapproval/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/branchunionapproval/index.html
@@ -128,30 +128,32 @@ layout("/layouts/platform_h5.html"){
},
async handleTaskAction(val) {
- try {
- await this.$refs.formRef.validate();
- this.$dialog.confirm({
- title: "提示",
- message: "您确定要提交吗?"
- }).then(() => {
- this.$axios.post("/flow/common/executeTask", {
- data: JSON.stringify({
- ...this.formData,
- submitType: val
- })
- }).then((res) => {
- if (res.code === 0) {
- this.$refs.infoRef.onClose()
- this.$toast.success(res.msg)
- this.doSearch()
- }
- })
- }).catch(() => {
-
+ await this.$refs.formRef.validate();
+ this.$dialog.confirm({
+ title: "提示",
+ message: "您确定要提交吗?"
+ }).then(() => {
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
})
- } catch (error) {
-
- }
+ this.$axios.post("/flow/common/executeTask", {
+ data: JSON.stringify({
+ ...this.formData,
+ submitType: val
+ })
+ }).then((res) => {
+ if (res.code === 0) {
+ this.$refs.infoRef.onClose()
+ this.$toast.success(res.msg)
+ this.doSearch()
+ }
+ }).finally(() => {
+ loading.close()
+ })
+ })
},
// 撤回
@@ -160,11 +162,19 @@ layout("/layouts/platform_h5.html"){
title: '提示',
message: '您确定要撤回吗?',
}).then(() => {
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
+ })
this.$axios.post('/flow/common/revokeTask', {taskId: row.taskId}).then(res => {
if (res.code === 0) {
this.$toast.success('撤回成功');
this.doSearch();
}
+ }).finally(() => {
+ loading.close()
})
})
},
diff --git a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/mine/index.html b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/mine/index.html
index 66ea324f..0968b39b 100644
--- a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/mine/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/mine/index.html
@@ -98,9 +98,17 @@ layout("/layouts/platform_h5.html"){
confirmButtonText: "确定",
cancelButtonText: "取消"
}).then(() => {
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
+ })
this.$axios.post("/flow/common/revokeTask", { taskId: row.startTaskId }).then((resp) => {
this.$toast.success(resp.msg)
this.doSearch()
+ }).finally(() => {
+ loading.close()
})
})
},
@@ -112,6 +120,12 @@ layout("/layouts/platform_h5.html"){
confirmButtonText: "确定",
cancelButtonText: "取消"
}).then(() => {
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
+ })
this.$axios.post("/platform/member/apply/mine/onDelete", { id }).then((res) => {
if (res.code === 0) {
this.doSearch()
@@ -119,6 +133,8 @@ layout("/layouts/platform_h5.html"){
} else {
this.$toast.fail(res.msg)
}
+ }).finally(() => {
+ loading.close()
})
})
},
diff --git a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/schoolunionapproval/index.html b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/schoolunionapproval/index.html
index 4a249c99..9c6df876 100644
--- a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/schoolunionapproval/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/schoolunionapproval/index.html
@@ -128,30 +128,32 @@ layout("/layouts/platform_h5.html"){
},
async handleTaskAction(val) {
- try {
- await this.$refs.formRef.validate();
- this.$dialog.confirm({
- title: "提示",
- message: "您确定要提交吗?"
- }).then(() => {
- this.$axios.post("/flow/common/executeTask", {
- data: JSON.stringify({
- ...this.formData,
- submitType: val
- })
- }).then((res) => {
- if (res.code === 0) {
- this.$refs.infoRef.onClose()
- this.$toast.success(res.msg)
- this.doSearch()
- }
- })
- }).catch(() => {
-
+ await this.$refs.formRef.validate();
+ this.$dialog.confirm({
+ title: "提示",
+ message: "您确定要提交吗?"
+ }).then(() => {
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
})
- } catch (error) {
-
- }
+ this.$axios.post("/flow/common/executeTask", {
+ data: JSON.stringify({
+ ...this.formData,
+ submitType: val
+ })
+ }).then((res) => {
+ if (res.code === 0) {
+ this.$refs.infoRef.onClose()
+ this.$toast.success(res.msg)
+ this.doSearch()
+ }
+ }).finally(() => {
+ loading.close()
+ })
+ })
},
// 撤回
@@ -160,14 +162,21 @@ layout("/layouts/platform_h5.html"){
title: '提示',
message: '您确定要撤回吗?',
}).then(() => {
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
+ })
this.$axios.post('/flow/common/revokeTask', {taskId: row.startTaskId}).then(res => {
if (res.code === 0) {
this.$toast.success('撤回成功');
this.doSearch();
}
+ }).finally(() => {
+ loading.close()
})
- }).catch(() => {
- });
+ })
},
initUnion() {
diff --git a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/submit/index.html b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/submit/index.html
index f61027c0..9a5b5886 100644
--- a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/submit/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/submit/index.html
@@ -143,6 +143,14 @@ layout("/layouts/platform_h5.html"){
placeholder="请填写人员类型"
clickable
>
+
{
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
+ })
this.$axios.post('/platform/member/apply/submit/save', {data: JSON.stringify(this.formData)}).then(res => {
if (res.code === 0) {
this.$toast.success(res.msg)
@@ -286,6 +300,8 @@ layout("/layouts/platform_h5.html"){
this.$toast.fail('操作失败')
console.log(res.msg)
}
+ }).finally(() => {
+ loading.close()
})
})
},
@@ -296,6 +312,12 @@ layout("/layouts/platform_h5.html"){
title: "提示",
message: "您确定要提交吗?"
}).then(() => {
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
+ })
this.$axios.post('/platform/member/apply/submit/submit', {
data: JSON.stringify(this.formData)
}).then(res => {
@@ -306,7 +328,9 @@ layout("/layouts/platform_h5.html"){
this.$toast.fail('操作失败')
console.log(res.msg)
}
- })
+ }).finally(() => {
+ loading.close()
+ })
})
})
},
@@ -317,6 +341,12 @@ layout("/layouts/platform_h5.html"){
title: "提示",
message: "您确定要提交吗?"
}).then(() => {
+ const loading = this.$toast.loading({
+ message: "加载中...",
+ forbidClick: true,
+ overlay: true,
+ duration: 0
+ })
this.$axios.post('/platform/member/apply/submit/submitAgain', {
data: JSON.stringify(this.formData),
taskId: this.taskId,
@@ -328,7 +358,9 @@ layout("/layouts/platform_h5.html"){
this.$toast.fail('操作失败')
console.log(res.msg)
}
- })
+ }).finally(() => {
+ loading.close()
+ })
})
})
},
@@ -465,27 +497,28 @@ layout("/layouts/platform_h5.html"){
}
},
computed: {
+
nationColumns(){
if(this.dict && this.dict.type && this.dict.type.USER_NATION){
- return this.dict.type.USER_NATION.map(v=>v.value)
+ return this.dict.type.USER_NATION.map(v=>v.name)
}
return []
},
politicalColumns(){
if(this.dict && this.dict.type && this.dict.type.USER_POLITICAL){
- return this.dict.type.USER_POLITICAL.map(v=>v.value)
+ return this.dict.type.USER_POLITICAL.map(v=>v.name)
}
return []
},
educationColumns(){
if(this.dict && this.dict.type && this.dict.type.USER_EDUCATION){
- return this.dict.type.USER_EDUCATION.map(v=>v.value)
+ return this.dict.type.USER_EDUCATION.map(v=>v.name)
}
return []
},
academicDegreeColumns(){
if(this.dict && this.dict.type && this.dict.type.USER_ACADEMIC_DEGREE){
- return this.dict.type.USER_ACADEMIC_DEGREE.map(v=>v.value)
+ return this.dict.type.USER_ACADEMIC_DEGREE.map(v=>v.name)
}
return []
},
diff --git a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/uniongroupapproval/index.html b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/uniongroupapproval/index.html
new file mode 100644
index 00000000..2f200026
--- /dev/null
+++ b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/uniongroupapproval/index.html
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+ {{row.loginName}}
+ {{row.unionName}}
+ {{row.unitName}}
+ {{row.applyDateTime}}
+ {{row.curTaskName}}
+
+
+
+
+ 查看
+
+
+
+ 审核
+
+
+
+ 撤回
+
+
+
+
+
+
+
{{formData.taskName}}
+
+
+
+
+ 退回
+ 拒绝
+ 同意
+
+
+
+
+
+