diff --git a/src/main/java/com/budwk/app/flow/controller/FlowCommonController.java b/src/main/java/com/budwk/app/flow/controller/FlowCommonController.java index 1042d3d9..a3670f22 100644 --- a/src/main/java/com/budwk/app/flow/controller/FlowCommonController.java +++ b/src/main/java/com/budwk/app/flow/controller/FlowCommonController.java @@ -80,7 +80,17 @@ public class FlowCommonController { @At @SaCheckLogin @ApiOperation("已办任务") - public Result doneTasks(Long instanceId) { + public Result doneTasks(Long instanceId, String bizId) { + if (instanceId == null && StrUtil.isBlank(bizId)) { + return Result.error("参数错误"); + } + if (instanceId == null) { + ProcessInstance instance = dao.fetch(ProcessInstance.class, Cnd.where(ProcessInstance::getBusinessNo, "=", bizId)); + if (instance == null) { + return Result.success(Collections.emptyList()); + } + instanceId = instance.getId(); + } List doneTaskVos = new ArrayList<>(); List doneTaskList = flowEngine.processTaskService().getDoneTaskList(instanceId, null); for (ProcessTask doneTask : doneTaskList) { diff --git a/src/main/java/com/budwk/app/flow/controller/FlowDefineController.java b/src/main/java/com/budwk/app/flow/controller/FlowDefineController.java index 2ec8651e..05c2c9e8 100644 --- a/src/main/java/com/budwk/app/flow/controller/FlowDefineController.java +++ b/src/main/java/com/budwk/app/flow/controller/FlowDefineController.java @@ -1,13 +1,13 @@ package com.budwk.app.flow.controller; import cn.dev33.satoken.annotation.SaCheckLogin; +import cn.hutool.core.util.StrUtil; import com.budwk.app.base.exception.BaseException; import com.budwk.app.base.page.Pagination; import com.budwk.app.base.result.Result; import com.budwk.app.flow.entity.ProcessDefine; import com.budwk.app.flow.entity.ProcessInstance; import com.budwk.app.flow.service.ProcessDefineService; -import com.budwk.app.flow.vo.ProcessDefineVO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.nutz.aop.interceptor.ioc.TransAop; @@ -45,6 +45,15 @@ public class FlowDefineController { public void preview(HttpServletRequest request) { request.setAttribute("defineId", request.getParameter("defineId")); request.setAttribute("instanceId", request.getParameter("instanceId")); + + String defineKey = request.getParameter("defineKey"); + if (StrUtil.isNotBlank(defineKey)) { + ProcessDefine define = dao.fetch(ProcessDefine.class, Cnd.where(ProcessDefine::getName, "=", defineKey).desc(ProcessDefine::getVersion)); + if (define != null) { + request.setAttribute("defineId", define.getId()); + } + } + } diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/article/controller/ArticleWriteController.java b/src/main/java/com/budwk/app/zhgh/dayofficework/article/controller/ArticleWriteController.java index 547f2d05..01e926ce 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/article/controller/ArticleWriteController.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/article/controller/ArticleWriteController.java @@ -75,9 +75,12 @@ public class ArticleWriteController { @ApiOperation("保存新闻投稿") @Aop(TransAop.READ_COMMITTED) public Result save(@Param("article") Article article) { +// dao.insertOrUpdate(article); +// // 启动流程 阻塞在第一个任务节点 +// ProcessInstance instance = flowEngine.startProcessInstanceByKey("XWTG", article.getId(), SecurityUtil.getUserId(), null); + + // 保存 dao.insertOrUpdate(article); - // 启动流程 阻塞在第一个任务节点 - ProcessInstance instance = flowEngine.startProcessInstanceByKey("XWTG", article.getId(), SecurityUtil.getUserId(), null); return Result.success(article); } diff --git a/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalApplyControllerX.java b/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalApplyControllerX.java deleted file mode 100644 index cd7fc5ac..00000000 --- a/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalApplyControllerX.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.budwk.app.zhgh.democratic.proposal.controller.transact; - -import cn.dev33.satoken.annotation.SaCheckLogin; -import com.budwk.app.base.page.Pagination; -import com.budwk.app.base.result.Result; -import com.budwk.app.flow.engine.FlowEngine; -import com.budwk.app.web.commons.auth.utils.SecurityUtil; -import com.budwk.app.zhgh.democratic.proposal.models.ProposalInfo; -import com.budwk.app.zhgh.democratic.proposal.service.ProposalWriteService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.nutz.aop.interceptor.ioc.TransAop; -import org.nutz.dao.Cnd; -import org.nutz.dao.Sqls; -import org.nutz.dao.sql.Sql; -import org.nutz.ioc.aop.Aop; -import org.nutz.ioc.loader.annotation.Inject; -import org.nutz.ioc.loader.annotation.IocBean; -import org.nutz.lang.util.NutMap; -import org.nutz.mvc.annotation.At; -import org.nutz.mvc.annotation.Ok; -import org.nutz.mvc.annotation.Param; - -@IocBean -@At("/platform/proposal/apply") -@Ok("json:full") -@Api("撰写提案") -public class ProposalApplyControllerX { - - @Inject - private FlowEngine flowEngine; - @Inject - private ProposalWriteService proposalWriteService; - - @At("/index") - @Ok("beetl:/platform/zhgh/democratic/proposal/transact/apply/index.html") - @SaCheckLogin - public void index() { - - } - - @At("/form") - @Ok("beetl:/platform/zhgh/democratic/proposal/transact/apply/form.html") - @SaCheckLogin - public void form() { - } - - @At - @SaCheckLogin - public Result pageData(Integer pageNumber, Integer pageSize) { - Sql sql = Sqls.create(""" - SELECT - info.*, - type.name AS typeName, - tcs.fullName AS sessionName, - tcd.`name` AS delegationName, - ins.id AS instanceId, - ins.businessNo, - ins.state instanceState, - ins.variable instanceVariable, - t.id taskId, - t.taskName AS taskKey, - t.displayName taskName, - t.taskType, - t.performType taskPerformType, - t.taskState, - t.finishTime, - t.taskParentId, - t.variable taskVariale, - IF((SELECT taskName FROM wf_process_task tt WHERE tt.id = t.taskParentId) = 'startTask', 1, 0) canRevoke, - (select MAX(id) from wf_process_task where processInstanceId = ins.id and taskName = 'startTask') AS startTaskId - FROM - proposal_info info - LEFT JOIN proposal_type type on type.id = info.typeId - LEFT JOIN teacher_congress_session tcs on tcs.id = info.sessionId - LEFT JOIN teacher_congress_delegation tcd on tcd.id = info.delegationId - LEFT JOIN `wf_process_instance` ins ON ins.businessNo = info.id - LEFT JOIN wf_process_task t ON t.processInstanceId = ins.id AND t.taskState = 10 - LEFT JOIN wf_process_task_actor ta ON ta.processTaskId = t.id - $condition - """); - Cnd cnd = Cnd.NEW(); - cnd.and("info.createdBy", "=", SecurityUtil.getUserId()); - cnd.desc("info.createdAt"); - sql.setCondition(cnd); - Pagination pagination = proposalWriteService.listPageMap(pageNumber, pageSize, sql); - return Result.success(pagination); - } - - @At - @SaCheckLogin - public Result info(String id) { - ProposalInfo info = proposalWriteService.fetch(id); - return Result.success(info); - } - - - @At - @SaCheckLogin - @Aop(TransAop.READ_COMMITTED) - @ApiOperation("删除") - public Result delete(@Param("id") String id) { - proposalWriteService.delete(id); - flowEngine.processInstanceService().deleteProcessInstanceByBusinessKey(id); - return Result.success(); - } - -} diff --git a/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalDelegationController.java b/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalDelegationController.java index a1ab046a..dae7a0cf 100644 --- a/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalDelegationController.java +++ b/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalDelegationController.java @@ -1,18 +1,14 @@ package com.budwk.app.zhgh.democratic.proposal.controller.transact; -import cn.dev33.satoken.annotation.SaCheckLogin; import cn.dev33.satoken.annotation.SaCheckPermission; -import cn.hutool.core.util.StrUtil; import com.budwk.app.base.annotation.SLog; import com.budwk.app.base.constant.RoleConstant; import com.budwk.app.base.page.Pagination; import com.budwk.app.base.result.Result; import com.budwk.app.base.service.BaseService; -import com.budwk.app.base.utils.PageUtil; import com.budwk.app.bpm.enums.BpmProcessTaskStatusEnum; import com.budwk.app.bpm.param.BpmTaskApprovalParam; import com.budwk.app.bpm.service.BpmService; -import com.budwk.app.flow.enums.ProcessTaskStateEnum; import com.budwk.app.web.commons.auth.utils.AuthUtil; import com.budwk.app.web.commons.auth.utils.SecurityUtil; import com.budwk.app.zhgh.democratic.proposal.controller.vo.ProposalInfoPageVO; @@ -30,13 +26,11 @@ import org.nutz.dao.util.cri.Static; import org.nutz.ioc.aop.Aop; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.ioc.loader.annotation.IocBean; -import org.nutz.lang.util.NutMap; import org.nutz.mvc.annotation.At; import org.nutz.mvc.annotation.Ok; import org.nutz.mvc.annotation.Param; import javax.validation.Valid; -import java.util.List; /** * 团长审核 @@ -48,78 +42,99 @@ import java.util.List; @Api(tags = "提案-办理-团长审核") public class ProposalDelegationController { + @Inject + private BaseService baseService; @Inject private ProposalCommonService proposalCommonService; + @Inject + private ProposalDelegationService proposalDelegationService; + @Inject + private BpmService bpmService; - @At("/index") + @At("") @Ok("beetl:/platform/zhgh/democratic/proposal/transact/delegation/index.html") - @SaCheckLogin + @SaCheckPermission("proposal.delegation") public void index() { - - } - - @At("/form") - @Ok("beetl:/platform/zhgh/democratic/proposal/transact/delegation/form.html") - @SaCheckLogin - public void form() { } @At - @SaCheckPermission("proposal.seconded") - @SaCheckLogin - public Result pageData(@Valid ProposalSearchParam pageForm, boolean approval) { + @SaCheckPermission("proposal.delegation") + @ApiOperation("分页列表") + public Result pageData(@Valid ProposalSearchParam pageForm,boolean approval) { Sql sql = Sqls.create(""" - SELECT - info.*, - type.name AS typeName, - tcs.fullName AS sessionName, - tcd.`name` AS delegationName, - ins.id AS instanceId, - ins.businessNo, - ins.state instanceState, - ins.variable instanceVariale, - t.id taskId, - t.taskName AS taskKey, - t.displayName taskName, - t.taskType, - t.performType taskPerformType, - t.taskState, - t.finishTime, - t.taskParentId, - t.variable taskVariable, - IFNULL(GROUP_CONCAT(DISTINCT nt.displayName),'结束') curTaskName, - IF(rt.id IS NOT NULL, 1, 0) AS canRevoke + SELECT + info.*, + type.name AS typeName, + tcs.fullName AS sessionName, + tcd.`name` AS delegationName, + inst.id processInstanceId, + inst.processInstanceNodeId, + inst.processInstanceNodeName, + inst.processInstanceTaskIds, + inst.processInstanceStatus, + task.id processInstanceTaskId, + task.taskStatus processInstanceTaskStatus, + EXISTS ( + SELECT 1 + FROM bpm_process_task next_task + WHERE next_task.prevTaskId = task.id + AND next_task.taskStatus = 'COMPLETE' + ) AS nextTaskIsComplete FROM - wf_process_task t - LEFT JOIN wf_process_instance ins ON ins.id = t.processInstanceId - LEFT JOIN proposal_info info ON info.id = ins.businessNo - LEFT JOIN proposal_type type on type.id = info.typeId - LEFT JOIN teacher_congress_session tcs on tcs.id = info.sessionId - LEFT JOIN teacher_congress_delegation tcd on tcd.id = info.delegationId - LEFT JOIN wf_process_task_actor ta ON ta.processTaskId = t.id - LEFT JOIN wf_process_task nt ON nt.processInstanceId = ins.id AND nt.taskState = 10 - LEFT JOIN wf_process_task rt ON rt.processInstanceId = ins.id AND rt.taskParentId = t.id AND rt.taskState = 10 + bpm_process_task task + INNER JOIN bpm_process_node_define nd ON nd.id = task.processTaskNodeId + INNER JOIN bpm_process_instance inst ON inst.id = task.processInstanceId + INNER JOIN proposal_info info ON info.id = inst.processInstanceBusinessId + LEFT JOIN proposal_type type on type.id = info.typeId + LEFT JOIN teacher_congress_session tcs ON tcs.id = info.sessionId + LEFT JOIN teacher_congress_delegation tcd ON tcd.id = info.delegationId $condition """); Cnd cnd = Cnd.NEW(); - cnd.and("t.taskName", "=", "93d5ba64-8220-4e62-9783-83422f474b36"); - cnd.and("ta.actorId", "in", List.of(SecurityUtil.getUserId())); - + if(!AuthUtil.hasRole(RoleConstant.SYSADMIN.name())){ + cnd.and(new Static("JSON_CONTAINS( task.assignments, '\"%s\"' )".formatted(SecurityUtil.getUserLoginname()))); + } + cnd.and("nd.nodeCode", "=", 30); if (approval) { - cnd.and("t.taskState", "in", List.of(ProcessTaskStateEnum.FINISHED.getCode(), ProcessTaskStateEnum.WITHDRAW.getCode(), ProcessTaskStateEnum.INTERRUPT.getCode())); + cnd.and("task.taskStatus", "=", BpmProcessTaskStatusEnum.COMPLETE); + cnd.groupBy("info.id"); } else { - cnd.and("t.taskState", "=", ProcessTaskStateEnum.DOING.getCode()); + cnd.and("task.taskStatus", "=", BpmProcessTaskStatusEnum.ACTIVE); } - - if (StrUtil.isAllBlank(pageForm.getPageOrderName(), pageForm.getPageOrderBy())) { - cnd.desc("info.createdAt"); - } else { - cnd.orderBy(pageForm.getPageOrderName(), PageUtil.getOrder(pageForm.getPageOrderBy())); - } - cnd.groupBy("t.id"); + ProposalSearchParam.buildSearch(cnd, pageForm); + cnd.and(new Static(""" + NOT EXISTS( + SELECT 1 + FROM bpm_process_task t2 + WHERE t2.processInstanceId = task.processInstanceId + AND t2.processTaskNodeCode = task.processTaskNodeCode + AND t2.createdOn > task.createdOn + ) + """)); sql.setCondition(cnd); - Pagination pageVO = proposalCommonService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql); - return Result.success(pageVO); + Pagination pagination = baseService.listPageVO(pageForm, sql, ProposalInfoPageVO.class); + return Result.success(pagination); + } + + @At + @SaCheckPermission("proposal.delegation") + @Aop(TransAop.READ_COMMITTED) + @SLog(tag = "提案", msg = "团长审核") + @ApiOperation("审核") + public Result approval(@Valid @Param("approval") BpmTaskApprovalParam approvalParam) { + proposalDelegationService.approval(approvalParam); + return Result.success(); + } + + @At + @SaCheckPermission("proposal.delegation") + @Aop(TransAop.READ_COMMITTED) + @SLog(tag = "提案", msg = "团长审核撤回") + @ApiOperation("撤回") + public Result revoke(@Valid String taskId) { + proposalDelegationService.revokeTask(taskId); +// bpmService.revokeTask(taskId); + return Result.success(); } } diff --git a/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalSecondedController.java b/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalSecondedController.java index 76cd5f69..b7195a50 100644 --- a/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalSecondedController.java +++ b/src/main/java/com/budwk/app/zhgh/democratic/proposal/controller/transact/ProposalSecondedController.java @@ -1,23 +1,19 @@ package com.budwk.app.zhgh.democratic.proposal.controller.transact; import cn.dev33.satoken.annotation.SaCheckPermission; -import cn.hutool.core.util.StrUtil; import com.budwk.app.base.annotation.SLog; import com.budwk.app.base.constant.RoleConstant; import com.budwk.app.base.page.Pagination; import com.budwk.app.base.result.Result; import com.budwk.app.base.service.BaseService; -import com.budwk.app.base.utils.PageUtil; import com.budwk.app.bpm.enums.BpmProcessTaskStatusEnum; import com.budwk.app.bpm.param.BpmTaskApprovalParam; import com.budwk.app.bpm.service.BpmService; -import com.budwk.app.flow.enums.ProcessTaskStateEnum; import com.budwk.app.web.commons.auth.utils.AuthUtil; import com.budwk.app.web.commons.auth.utils.SecurityUtil; import com.budwk.app.zhgh.democratic.proposal.controller.vo.ProposalInfoPageVO; import com.budwk.app.zhgh.democratic.proposal.param.ProposalSearchParam; import com.budwk.app.zhgh.democratic.proposal.service.ProposalSecondedService; -import com.budwk.app.zhgh.democratic.proposal.service.ProposalWriteService; import com.budwk.app.zhgh.democratic.proposal.service.common.ProposalCommonService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -31,13 +27,11 @@ import org.nutz.dao.util.cri.Static; import org.nutz.ioc.aop.Aop; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.ioc.loader.annotation.IocBean; -import org.nutz.lang.util.NutMap; import org.nutz.mvc.annotation.At; import org.nutz.mvc.annotation.Ok; import org.nutz.mvc.annotation.Param; import javax.validation.Valid; -import java.util.List; /** * 附议提案 @@ -52,76 +46,84 @@ public class ProposalSecondedController { @Inject private Dao dao; @Inject + private BaseService baseService; + @Inject private ProposalCommonService proposalCommonService; + @Inject + private BpmService bpmService; + @Inject + private ProposalSecondedService proposalSecondedService; - @At("/index") + + @At("") @Ok("beetl:/platform/zhgh/democratic/proposal/transact/seconded/index.html") @SaCheckPermission("proposal.seconded") public void index() { } - @At("/form") - @Ok("beetl:/platform/zhgh/democratic/proposal/transact/seconded/form.html") - @SaCheckPermission("proposal.seconded") - public void form() { - } - - @At @SaCheckPermission("proposal.seconded") public Result pageData(@Valid ProposalSearchParam pageForm, boolean approval) { Sql sql = Sqls.create(""" - SELECT - info.*, - type.name AS typeName, - tcs.fullName AS sessionName, - tcd.`name` AS delegationName, - ins.id AS instanceId, - ins.businessNo, - ins.state instanceState, - ins.variable instanceVariale, - t.id taskId, - t.taskName AS taskKey, - t.displayName taskName, - t.taskType, - t.performType taskPerformType, - t.taskState, - t.finishTime, - t.taskParentId, - t.variable taskVariable, - IFNULL(GROUP_CONCAT(DISTINCT nt.displayName),'结束') curTaskName, - IF(rt.id IS NOT NULL, 1, 0) AS canRevoke + SELECT + info.*, + type.name AS typeName, + tcs.fullName AS sessionName, + tcd.`name` AS delegationName, + inst.id processInstanceId, + inst.processInstanceNodeId, + inst.processInstanceNodeName, + inst.processInstanceTaskIds, + inst.processInstanceStatus, + task.id processInstanceTaskId, + task.taskStatus processInstanceTaskStatus, + JSON_EXTRACT( task.createVariable, '$.userName' ) AS seconderName, + COUNT( nt.id ) OVER ( PARTITION BY task.id ) > 0 AS nextTaskIsComplete FROM - wf_process_task t - LEFT JOIN wf_process_instance ins ON ins.id = t.processInstanceId - LEFT JOIN proposal_info info ON info.id = ins.businessNo - LEFT JOIN proposal_type type on type.id = info.typeId - LEFT JOIN teacher_congress_session tcs on tcs.id = info.sessionId - LEFT JOIN teacher_congress_delegation tcd on tcd.id = info.delegationId - LEFT JOIN wf_process_task_actor ta ON ta.processTaskId = t.id - LEFT JOIN wf_process_task nt ON nt.processInstanceId = ins.id AND nt.taskState = 10 - LEFT JOIN wf_process_task rt ON rt.processInstanceId = ins.id AND rt.taskParentId = t.id AND rt.taskState = 10 + bpm_process_task task + INNER JOIN bpm_process_node_define nd ON nd.id = task.processTaskNodeId + INNER JOIN bpm_process_instance inst ON inst.id = task.processInstanceId + INNER JOIN proposal_info info ON info.id = inst.processInstanceBusinessId + LEFT JOIN proposal_type type on type.id = info.typeId + LEFT JOIN teacher_congress_session tcs ON tcs.id = info.sessionId + LEFT JOIN teacher_congress_delegation tcd ON tcd.id = info.delegationId + LEFT JOIN bpm_process_task nt ON nt.prevTaskId = task.id AND nt.taskStatus = 'COMPLETE' $condition """); Cnd cnd = Cnd.NEW(); - cnd.and("t.taskName", "=", "74458b33-ad6e-46c4-b8d9-1aa897142b25"); - cnd.and("ta.actorId", "in", List.of(SecurityUtil.getUserId())); - + if(!AuthUtil.hasRole(RoleConstant.SYSADMIN.name())){ + cnd.and(new Static("JSON_CONTAINS( task.assignments, '\"%s\"' )".formatted(SecurityUtil.getUserLoginname()))); + } + cnd.and("nd.nodeCode", "=", 20); if (approval) { - cnd.and("t.taskState", "in", List.of(ProcessTaskStateEnum.FINISHED.getCode(), ProcessTaskStateEnum.WITHDRAW.getCode(), ProcessTaskStateEnum.INTERRUPT.getCode())); + cnd.and("task.taskStatus", "=", BpmProcessTaskStatusEnum.COMPLETE); } else { - cnd.and("t.taskState", "=", ProcessTaskStateEnum.DOING.getCode()); + cnd.and("task.taskStatus", "=", BpmProcessTaskStatusEnum.ACTIVE); } - - if (StrUtil.isAllBlank(pageForm.getPageOrderName(), pageForm.getPageOrderBy())) { - cnd.desc("info.createdAt"); - } else { - cnd.orderBy(pageForm.getPageOrderName(), PageUtil.getOrder(pageForm.getPageOrderBy())); - } - cnd.groupBy("t.id"); + ProposalSearchParam.buildSearch(cnd, pageForm); +// cnd.and(new Static(""" +// NOT EXISTS( +// SELECT 1 +// FROM bpm_process_task t2 +// WHERE t2.processInstanceId = task.processInstanceId +// AND t2.processTaskNodeCode = task.processTaskNodeCode +// AND t2.createdOn > task.createdOn +// ) +// """)); +// cnd.groupBy("task.id"); sql.setCondition(cnd); - Pagination pageVO = proposalCommonService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql); - return Result.success(pageVO); + Pagination pagination = baseService.listPageVO(pageForm, sql, ProposalInfoPageVO.class); + return Result.success(pagination); + } + + @At + @SaCheckPermission("proposal.seconded") + @ApiOperation("附议") + @Aop(TransAop.READ_COMMITTED) + @SLog(tag = "提案", msg = "提案人附议") + public Result approval(@Valid @Param("approval") BpmTaskApprovalParam approvalParam) { + proposalSecondedService.approval(approvalParam); + return Result.success(); } } diff --git a/src/main/java/com/budwk/app/zhgh/democratic/proposal/handler/ProposalLianDecisionHandler.java b/src/main/java/com/budwk/app/zhgh/democratic/proposal/handler/ProposalLianDecisionHandler.java new file mode 100644 index 00000000..cccb268d --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/democratic/proposal/handler/ProposalLianDecisionHandler.java @@ -0,0 +1,21 @@ +package com.budwk.app.zhgh.democratic.proposal.handler; + +import com.budwk.app.flow.constant.FlowConst; +import com.budwk.app.flow.engine.DecisionHandler; +import com.budwk.app.flow.engine.core.Execution; + +/** + * 提案立案 + */ +public class ProposalLianDecisionHandler implements DecisionHandler { + @Override + public String decide(Execution execution) { + + // 立案结果 + String caseFilingResult = execution.getArgs().getStr(FlowConst.TASK_FORM_DATA_PREFIX + "case_filing_result"); + + + + return caseFilingResult; + } +} diff --git a/src/main/java/com/budwk/app/zhgh/democratic/proposal/handler/ProposalUnitReplyAssignmentHandler.java b/src/main/java/com/budwk/app/zhgh/democratic/proposal/handler/ProposalUnitReplyAssignmentHandler.java new file mode 100644 index 00000000..4cb60abe --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/democratic/proposal/handler/ProposalUnitReplyAssignmentHandler.java @@ -0,0 +1,33 @@ +package com.budwk.app.zhgh.democratic.proposal.handler; + +import com.budwk.app.flow.engine.AssignmentHandler; +import com.budwk.app.flow.engine.core.Execution; +import com.budwk.app.flow.engine.core.ServiceContext; +import com.budwk.app.flow.engine.model.TaskModel; +import org.nutz.dao.Dao; + +import java.util.List; + +/** + * 承办单位答复人处理类 + */ +public class ProposalUnitReplyAssignmentHandler implements AssignmentHandler { + @Override + public List assign(TaskModel model, Execution execution) { + Dao dao = ServiceContext.find(Dao.class); + List unitIds = (List)execution.getArgs().get("unitIds"); + + + return List.of(); + } + + @Override + public String getMessage() { + return "承办单位答复人"; + } + + @Override + public int getOrder() { + return 20; + } +} diff --git a/src/main/java/com/budwk/app/zhgh/democratic/proposal/interceptor/ProposalApplyInterceptor.java b/src/main/java/com/budwk/app/zhgh/democratic/proposal/interceptor/ProposalApplyInterceptor.java index 6614509c..dc808e1a 100644 --- a/src/main/java/com/budwk/app/zhgh/democratic/proposal/interceptor/ProposalApplyInterceptor.java +++ b/src/main/java/com/budwk/app/zhgh/democratic/proposal/interceptor/ProposalApplyInterceptor.java @@ -1,11 +1,13 @@ package com.budwk.app.zhgh.democratic.proposal.interceptor; +import cn.hutool.core.util.StrUtil; 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.entity.ProcessInstance; import com.budwk.app.zhgh.democratic.proposal.models.ProposalInfo; +import com.budwk.app.zhgh.democratic.proposal.service.ProposalWriteService; import org.nutz.dao.Chain; import org.nutz.dao.Cnd; import org.nutz.dao.Dao; @@ -17,9 +19,17 @@ import org.nutz.json.Json; public class ProposalApplyInterceptor implements FlowInterceptor { @Override public void intercept(Execution execution) { + ProposalWriteService writeService = ServiceContext.find(ProposalWriteService.class); + + String formDataStr = execution.getArgs().getStr(FlowConst.FORM_DATA); ProposalInfo info = Json.fromJson(ProposalInfo.class, formDataStr); + if (StrUtil.isBlank(info.getId())) { + String code = writeService.generateProposalCode(info.getSessionId(), info.getDelegationId()); + info.setCode(code); + } + Dao dao = ServiceContext.find(Dao.class); dao.insertOrUpdate(info); execution.getArgs().set(FlowConst.FORM_DATA, Json.toJson(info)); diff --git a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxAdminController.java b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxAdminController.java deleted file mode 100644 index 93d11d39..00000000 --- a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxAdminController.java +++ /dev/null @@ -1,154 +0,0 @@ -package com.budwk.app.zhgh.democratic.suggestionBox.controller; - -import cn.dev33.satoken.annotation.SaCheckLogin; -import cn.hutool.core.util.StrUtil; -import com.budwk.app.base.page.Pagination; -import com.budwk.app.base.param.PageForm; -import com.budwk.app.base.result.Result; -import com.budwk.app.base.service.BaseService; -import com.budwk.app.web.commons.auth.utils.SecurityUtil; -import com.budwk.app.zhgh.democratic.suggestionBox.models.SuggestionBox; -import io.swagger.annotations.Api; -import org.nutz.aop.interceptor.ioc.TransAop; -import org.nutz.dao.Cnd; -import org.nutz.dao.Dao; -import org.nutz.dao.Sqls; -import org.nutz.dao.sql.Sql; -import org.nutz.dao.util.cri.SqlExpressionGroup; -import org.nutz.dao.util.cri.Static; -import org.nutz.ioc.aop.Aop; -import org.nutz.ioc.loader.annotation.Inject; -import org.nutz.ioc.loader.annotation.IocBean; -import org.nutz.mvc.annotation.At; -import org.nutz.mvc.annotation.Ok; -import org.nutz.mvc.annotation.Param; - -import java.time.LocalDateTime; -import java.util.HashMap; -import java.util.Map; - -@IocBean -@At("/platform/suggestionBox/admin") -@Ok("json:full") -@Api(tags = "意见箱管理员端") -public class SuggestionBoxAdminController { - - @Inject - private Dao dao; - @Inject - private BaseService baseService; - - @At("/h5") - @Ok("beetl:/platform/zhghh5/democratic/suggestionBox/admin.html") - @SaCheckLogin - public void h5() { - - } - - @At - @Ok("beetl:/platform/zhghh5/democratic/suggestionBox/taskForm.html") - @SaCheckLogin - public void taskForm() { - - } - - - /** - * 分页数据 - * - * @param pageForm 分页 - * @param status 状态 是否回复 - * @param timeRange 时间范围 今日 本周 本月 - * @return - */ - @At("/pageData") - @SaCheckLogin - public Result pageData(PageForm pageForm, Integer status, String timeRange, String keyword) { - Sql sql = Sqls.create("select * from suggestion_box $condition"); - Cnd cnd = Cnd.NEW(); - cnd.and("submitterId", "=", SecurityUtil.getUserId()); - cnd.andEX("isReply", "=", status); - if (StrUtil.isNotBlank(timeRange)) { - switch (timeRange) { - case "today": - cnd.and(new Static("DATE(submitTime) = CURDATE()")); - break; - case "week": - cnd.and(new Static("WEEKOFYEAR(submitTime) = WEEKOFYEAR(CURDATE())")); - break; - case "month": - cnd.and(new Static("MONTH(submitTime) = MONTH(CURDATE())")); - break; - default: - break; - } - } - if (StrUtil.isNotBlank(keyword)) { - SqlExpressionGroup seg = new SqlExpressionGroup(); - seg.orLike("submitterName", keyword); - seg.orLike("content", keyword); - seg.orLike("title", keyword); - cnd.and(seg); - } - cnd.desc("submitTime"); - sql.setCondition(cnd); - Pagination pagination = baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql); - return Result.success(pagination); - } - - /** - * 统计 - */ - @At("/getStats") - @SaCheckLogin - public Result stats() { - // 查询总意见数 - int total = dao.count(SuggestionBox.class); - // 待回复数 - int pending = dao.count(SuggestionBox.class, Cnd.where("isReply", "=", 0)); - // 已回复数 - int replied = dao.count(SuggestionBox.class, Cnd.where("isReply", "=", 1)); - // 今日新增 - int today = dao.count(SuggestionBox.class, Cnd.NEW().and(new Static("DATE(submitTime) = CURDATE()"))); - return Result.success(Map.of("total", total, "pending", pending, "replied", replied, "today", today)); - } - - /** - * 答复 - */ - @At - @SaCheckLogin - @Aop(TransAop.READ_COMMITTED) - public Result reply(@Param("reply") SuggestionBox suggestionBox, @Param("taskId") String taskId) { - // 1. 保存业务数据 - suggestionBox.setIsReply(true); - suggestionBox.setReplyTime(LocalDateTime.now()); - suggestionBox.setReplyUserId(SecurityUtil.getUserId()); - suggestionBox.setReplyUserName(SecurityUtil.getUserUsername()); - dao.update(suggestionBox, "isReply|replyContent|replyTime|replyUserId|replyUserName"); - -// // 2. 完成工作流任务 -// taskService.complete(taskId, new HashMap<>() {{ -// put("replyContent", suggestionBox.getReplyContent()); -// put("replyTime", suggestionBox.getReplyTime()); -// put("replyUserId", suggestionBox.getReplyUserId()); -// put("replyUserName", suggestionBox.getReplyUserName()); -// }}); - - return Result.success(); - } - - - /** - * 根据ID获取意见箱数据 - */ - @At("/getSuggestionById") - @SaCheckLogin - public Result getSuggestionById(@Param("id") String id) { - SuggestionBox suggestionBox = dao.fetch(SuggestionBox.class, id); - if (suggestionBox == null) { - return Result.error("数据不存在"); - } - return Result.success(suggestionBox); - } -} diff --git a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxController.java b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxController.java deleted file mode 100644 index a5a112b8..00000000 --- a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxController.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.budwk.app.zhgh.democratic.suggestionBox.controller; - -import cn.dev33.satoken.annotation.SaCheckLogin; -import cn.hutool.core.lang.Dict; -import com.budwk.app.base.page.Pagination; -import com.budwk.app.base.param.PageForm; -import com.budwk.app.base.result.Result; -import com.budwk.app.base.service.BaseService; -import com.budwk.app.flow.constant.FlowConst; -import com.budwk.app.flow.engine.FlowEngine; -import com.budwk.app.web.commons.auth.utils.SecurityUtil; -import com.budwk.app.zhgh.democratic.suggestionBox.models.SuggestionBox; -import io.swagger.annotations.Api; -import org.nutz.aop.interceptor.ioc.TransAop; -import org.nutz.dao.Cnd; -import org.nutz.dao.Dao; -import org.nutz.dao.Sqls; -import org.nutz.dao.sql.Sql; -import org.nutz.ioc.aop.Aop; -import org.nutz.ioc.loader.annotation.Inject; -import org.nutz.ioc.loader.annotation.IocBean; -import org.nutz.mvc.annotation.At; -import org.nutz.mvc.annotation.Ok; -import org.nutz.mvc.annotation.Param; - -@IocBean -@At("/platform/suggestionBox") -@Ok("json:full") -@Api(tags = "意见箱") -public class SuggestionBoxController { - - @Inject - private Dao dao; - @Inject - private BaseService baseService; - @Inject - private FlowEngine flowEngine; - -// @At -// @SaCheckLogin -// @Ok("beetl:/platform/zhghh5/democratic/suggestionBox/index.html") -// public void apply() { -// -// } -// -// -// @At("/h5") -// @Ok("beetl:/platform/zhghh5/democratic/suggestionBox/index.html") -// @SaCheckLogin -// public void h5Index() { -// -// } -// -// @At("/h5/write") -// @Ok("beetl:/platform/zhghh5/democratic/suggestionBox/write.html") -// @SaCheckLogin -// public void h5Write() { -// -// } -// -// @At("/h5/mine") -// @Ok("beetl:/platform/zhghh5/democratic/suggestionBox/mine.html") -// @SaCheckLogin -// public void h5Mine() { -// -// } - - @At - @SaCheckLogin - @Aop(TransAop.READ_COMMITTED) - public Result submit(@Param("suggestion") SuggestionBox suggestionBox) { - Dict dict = Dict.create(); - dict.set(FlowConst.FORM_DATA, suggestionBox); - flowEngine.startProcessInstanceByKey("JYXC", "", SecurityUtil.getUserId(), dict); - return Result.success(); - } - - @At - @SaCheckLogin - @Aop(TransAop.READ_COMMITTED) - public Result delete(@Param("id") String id) { - dao.delete(SuggestionBox.class, id); -// FlowInstance instance = dao.fetch(FlowInstance.class, Cnd.where(FlowInstance::getBusinessId, "=", id)); -// if (instance != null) { -// insService.remove(List.of(instance.getId())); -// } - return Result.success(); - } - - /** - * 我的意见列表 - */ - @At - @SaCheckLogin - public Result pageData(PageForm pageForm) { - Sql sql = Sqls.create(""" - SELECT - info.*, - ins.id instanceId, - ins.business_id, - ins.node_type, - ins.node_code, - ins.node_name, - ins.flow_status - FROM - suggestion_box info - LEFT JOIN flow_instance ins ON ins.business_id = info.id - $condition - """); - Cnd cnd = Cnd.NEW(); - cnd.and("info.submitterId", "=", SecurityUtil.getUserId()); - cnd.desc("info.submitTime"); - sql.setCondition(cnd); - Pagination pagination = baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql); - return Result.success(pagination); - } - -} diff --git a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionApplyController.java b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxMineController.java similarity index 88% rename from src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionApplyController.java rename to src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxMineController.java index 7ba6fe48..085ec124 100644 --- a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionApplyController.java +++ b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxMineController.java @@ -10,6 +10,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.nutz.aop.interceptor.ioc.TransAop; import org.nutz.dao.Cnd; +import org.nutz.dao.Dao; import org.nutz.dao.Sqls; import org.nutz.dao.sql.Sql; import org.nutz.ioc.aop.Aop; @@ -21,29 +22,25 @@ import org.nutz.mvc.annotation.Ok; import org.nutz.mvc.annotation.Param; @IocBean -@At("/platform/suggestionBox2/apply") +@At("/platform/suggestionBox/mine") @Ok("json:full") -@Api("意见箱") -public class SuggestionApplyController { +@Api("意见箱-我的") +public class SuggestionBoxMineController { @Inject - private SuggestionBoxService suggestionBoxService; + private Dao dao; @Inject private FlowEngine flowEngine; + @Inject + private SuggestionBoxService suggestionBoxService; - @At("/index") - @Ok("beetl:/platform/zhgh/dayofficework/suggestionBox/apply/index.html") + @At("") + @Ok("beetl:/platform/zhgh/democratic/suggestionBox/mine/index.html") @SaCheckLogin public void index() { } - @At("/form") - @Ok("beetl:/platform/zhgh/dayofficework/suggestionBox/apply/form.html") - @SaCheckLogin - public void form() { - } - @At @SaCheckLogin @@ -61,6 +58,7 @@ public class SuggestionApplyController { ins.businessNo, ins.state instanceState, ins.variable instanceVariale, + ins.processDefineId instanceProcessDefineId, t.id taskId, t.taskName AS taskKey, t.displayName taskName, @@ -71,7 +69,7 @@ public class SuggestionApplyController { t.taskParentId, t.variable taskVariale, IF((SELECT taskName FROM wf_process_task tt WHERE tt.id = t.taskParentId) = 'startTask', 1, 0) canRevoke, - (select MAX(id) from wf_process_task where processInstanceId = ins.id and taskName = 'startTask') AS startTaskId + (select MAX(id) from wf_process_task where processInstanceId = ins.id and taskName = 'startTask' AND taskState in (10,20)) AS startTaskId FROM suggestion_box info LEFT JOIN `wf_process_instance` ins ON ins.businessNo = info.id @@ -97,4 +95,5 @@ public class SuggestionApplyController { return Result.success(); } + } diff --git a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxWriteController.java b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxWriteController.java new file mode 100644 index 00000000..2e279796 --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionBoxWriteController.java @@ -0,0 +1,80 @@ +package com.budwk.app.zhgh.democratic.suggestionBox.controller; + +import cn.dev33.satoken.annotation.SaCheckLogin; +import cn.hutool.core.lang.Dict; +import com.budwk.app.base.result.Result; +import com.budwk.app.flow.constant.FlowConst; +import com.budwk.app.flow.engine.FlowEngine; +import com.budwk.app.flow.entity.ProcessInstance; +import com.budwk.app.flow.entity.ProcessTask; +import com.budwk.app.flow.enums.ProcessSubmitTypeEnum; +import com.budwk.app.web.commons.auth.utils.SecurityUtil; +import com.budwk.app.zhgh.democratic.suggestionBox.models.SuggestionBox; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.nutz.dao.Dao; +import org.nutz.ioc.loader.annotation.Inject; +import org.nutz.ioc.loader.annotation.IocBean; +import org.nutz.mvc.annotation.At; +import org.nutz.mvc.annotation.Ok; +import org.nutz.mvc.annotation.Param; + +import java.util.List; + +@IocBean +@At("/platform/suggestionBox/write") +@Ok("json:full") +@Api("意见箱-撰写") +public class SuggestionBoxWriteController { + + @Inject + private Dao dao; + @Inject + private FlowEngine flowEngine; + + @At("") + @Ok("beetl:/platform/zhgh/democratic/suggestionBox/write/index.html") + @SaCheckLogin + public void index() { + + } + + @At + @SaCheckLogin + @ApiOperation("保存申请") + public Result save(@Param("data") SuggestionBox suggestionBox) { + dao.insertOrUpdate(suggestionBox); + return Result.success(); + } + + + @At + @SaCheckLogin + @ApiOperation("提交申请") + public Result submit(@Param("data") SuggestionBox suggestionBox) { + dao.insertOrUpdate(suggestionBox); + // 开启流程实例 + Dict args = Dict.create(); + args.set(FlowConst.SUBMIT_TYPE, ProcessSubmitTypeEnum.APPLY.getCode()); + args.set(FlowConst.FORM_DATA, suggestionBox); + ProcessInstance instance = flowEngine.startProcessInstanceByKey("JYXC", suggestionBox.getId(), SecurityUtil.getUserId(), args); + + // 自动完成第一个申请任务 + List doingTaskList = flowEngine.processTaskService().getDoingTaskList(instance.getId(), null); + for (ProcessTask task : doingTaskList) { + flowEngine.executeProcessTask(task.getId(), SecurityUtil.getUserId(), args); + } + return Result.success(); + } + + + @At + @SaCheckLogin + @ApiOperation("获取申请信息") + public Result info(@Param("id") String id) { + SuggestionBox box = dao.fetch(SuggestionBox.class, id); + return Result.success(box); + } + + +} diff --git a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionCommonController.java b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionCommonController.java new file mode 100644 index 00000000..ea2dde09 --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionCommonController.java @@ -0,0 +1,33 @@ +package com.budwk.app.zhgh.democratic.suggestionBox.controller; + +import cn.dev33.satoken.annotation.SaCheckLogin; +import com.budwk.app.base.result.Result; +import com.budwk.app.zhgh.democratic.suggestionBox.models.SuggestionBox; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.nutz.dao.Dao; +import org.nutz.ioc.loader.annotation.Inject; +import org.nutz.ioc.loader.annotation.IocBean; +import org.nutz.mvc.annotation.At; +import org.nutz.mvc.annotation.Ok; +import org.nutz.mvc.annotation.Param; + +@IocBean +@At("/platform/suggestionBox/common") +@Ok("json:full") +@Api("意见箱-公共") +public class SuggestionCommonController { + + @Inject + private Dao dao; + + @At + @SaCheckLogin + @ApiOperation("获取申请信息") + public Result info(@Param("id") String id) { + SuggestionBox box = dao.fetch(SuggestionBox.class, id); + return Result.success(box); + } + + +} diff --git a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionXghController.java b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionXghController.java index b78ca772..49346cc9 100644 --- a/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionXghController.java +++ b/src/main/java/com/budwk/app/zhgh/democratic/suggestionBox/controller/SuggestionXghController.java @@ -22,7 +22,7 @@ import org.nutz.mvc.annotation.Ok; import java.util.List; @IocBean -@At("/platform/suggestionBox2/xgh") +@At("/platform/suggestionBox/xgh") @Ok("json:full") @Api("意见箱") public class SuggestionXghController { @@ -30,20 +30,13 @@ public class SuggestionXghController { @Inject private SuggestionBoxService suggestionBoxService; - @At("/index") - @Ok("beetl:/platform/zhgh/dayofficework/suggestionBox/xgh/index.html") + @At("") + @Ok("beetl:/platform/zhgh/democratic/suggestionBox/xgh/index.html") @SaCheckLogin public void index() { } - @At("/form") - @Ok("beetl:/platform/zhgh/dayofficework/suggestionBox/xgh/form.html") - @SaCheckLogin - public void form() { - } - - @At @SaCheckLogin public Result pageData(PageForm pageForm, String title, Integer year, boolean approval) { @@ -60,6 +53,7 @@ public class SuggestionXghController { ins.businessNo, ins.state instanceState, ins.variable instanceVariale, + ins.processDefineId instanceProcessDefineId, t.id taskId, t.taskName AS taskKey, t.displayName taskName, diff --git a/src/main/resources/static/assets/platform/css/common.css b/src/main/resources/static/assets/platform/css/common.css index 1b236f8f..2687073f 100644 --- a/src/main/resources/static/assets/platform/css/common.css +++ b/src/main/resources/static/assets/platform/css/common.css @@ -630,6 +630,8 @@ td.no-b { position: relative; line-height: 1.1; font-family: inherit; + display: flex; + align-items: center; } .process-title::before { diff --git a/src/main/resources/static/components/plugins/snaker/snakerChart.vue b/src/main/resources/static/components/plugins/snaker/snakerChart.vue new file mode 100644 index 00000000..f730721c --- /dev/null +++ b/src/main/resources/static/components/plugins/snaker/snakerChart.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/main/resources/static/components/plugins/snaker/snakerStart.vue b/src/main/resources/static/components/plugins/snaker/snakerStart.vue new file mode 100644 index 00000000..78478541 --- /dev/null +++ b/src/main/resources/static/components/plugins/snaker/snakerStart.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/src/main/resources/views/layouts/v4/apps.html b/src/main/resources/views/layouts/v4/apps.html index 9a48295f..fcfc8736 100644 --- a/src/main/resources/views/layouts/v4/apps.html +++ b/src/main/resources/views/layouts/v4/apps.html @@ -54,6 +54,10 @@ layout("/layouts/v4/baseLayout.html"){ background-color: #f0f0f0; } + .apps-sidebar-item i{ + min-width: 22px; + } + .apps-content { flex: 1; padding: 20px; diff --git a/src/main/resources/views/layouts/v4/baseLayout.html b/src/main/resources/views/layouts/v4/baseLayout.html index d5b81c09..ec10b51d 100644 --- a/src/main/resources/views/layouts/v4/baseLayout.html +++ b/src/main/resources/views/layouts/v4/baseLayout.html @@ -347,6 +347,8 @@ "snaker-flow-history-approval", httpVueLoader("/components/plugins/snaker/snakerFlowHisApproval.vue?v=" + new Date().getTime()) ) + Vue.component("snaker-chart", httpVueLoader("/components/plugins/snaker/snakerChart.vue?v=" + new Date().getTime())) + Vue.component("snaker-start", httpVueLoader("/components/plugins/snaker/snakerStart.vue?v=" + new Date().getTime())) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
提案类别
+
+ + {{ item.name }} + +
+
+
+
立案结果
+
+ + {{ item.label }} + +
+
+
+ + + 导出全部提案压缩包 + 导出全部提案反馈表压缩包 + 导出汇总表 + 导出立案汇总表 + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/query/chart/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/query/chart/index.html new file mode 100644 index 00000000..effff155 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/query/chart/index.html @@ -0,0 +1,263 @@ + +
+ + + + + + + + + + +
+ 提案满意度 +
+
+
+
+
+
+ + +
+ 提案类别 +
+
+
+
+
+
+
+ + + +
+ 立案结果 +
+
+
+
+
+
+ + +
+ 提案状态 +
+
+
+
+
+
+
+
+ + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/query/collectProgress/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/query/collectProgress/index.html new file mode 100644 index 00000000..2246dc27 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/query/collectProgress/index.html @@ -0,0 +1,238 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
提案类别
+
+ + {{ item.name }} + +
+
+
+
征集状态
+
+ + {{ item.name }} + +
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/query/comprehensive/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/query/comprehensive/index.html new file mode 100644 index 00000000..87adb0f6 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/query/comprehensive/index.html @@ -0,0 +1,257 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
提案类别
+
+ + {{ item.name }} + +
+
+
+
立案结果
+
+ + {{ item.label }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/query/delegation/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/query/delegation/index.html new file mode 100644 index 00000000..55fa8d4c --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/query/delegation/index.html @@ -0,0 +1,150 @@ + +
+ + + + + + + + + +
+ +
+
+
+ + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/query/delegation/proposalTable.js b/src/main/resources/views/platform/zhgh/democratic/proposal/query/delegation/proposalTable.js new file mode 100644 index 00000000..5df32ce7 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/query/delegation/proposalTable.js @@ -0,0 +1,50 @@ +const PROPOSAL_TABLE = { + template: ` +
+ + + + + + + + + + + + + + +
+ `, + props: { + sessionId: { + type: String, + required: true + }, + delegationId: { + type: String, + required: true + } + }, + mixins: [initTableMixins], + data() { + return { + pageForm: {} + } + }, + methods: { + pageData() { + this.pageForm.sessionId = this.sessionId + this.pageForm.delegationId = this.delegationId + this.$axios.post("/platform/proposal/query/delegation/getProposalsByDelegation", this.pageForm).then((res) => { + if (res.code === 0) { + this.tableData = res.data.list + this.pageForm.totalCount = res.data.totalCount + } + }) + } + } +} diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/query/history/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/query/history/index.html new file mode 100644 index 00000000..4796a5ff --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/query/history/index.html @@ -0,0 +1,255 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
提案类别
+
+ + {{ item.name }} + +
+
+
+
立案结果
+
+ + {{ item.label }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/query/underTakeReply/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/query/underTakeReply/index.html new file mode 100644 index 00000000..65d233a3 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/query/underTakeReply/index.html @@ -0,0 +1,96 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/query/yearReport/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/query/yearReport/index.html new file mode 100644 index 00000000..15e4c769 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/query/yearReport/index.html @@ -0,0 +1,259 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
提案类别
+
+ + {{ item.name }} + +
+
+
+
立案结果
+
+ + {{ item.label }} + +
+
+
+ + + 导出提案报告 + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/senior/basic/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/senior/basic/index.html new file mode 100644 index 00000000..f87cb4da --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/senior/basic/index.html @@ -0,0 +1,282 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/senior/delete/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/senior/delete/index.html new file mode 100644 index 00000000..1993bea7 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/senior/delete/index.html @@ -0,0 +1,205 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/senior/type/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/senior/type/index.html new file mode 100644 index 00000000..d146c262 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/senior/type/index.html @@ -0,0 +1,255 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/committeeFiling/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/committeeFiling/index.html new file mode 100644 index 00000000..ef7b2189 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/committeeFiling/index.html @@ -0,0 +1,431 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + 并案审核 + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/committeeFilingUnit/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/committeeFilingUnit/index.html new file mode 100644 index 00000000..9519426a --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/committeeFilingUnit/index.html @@ -0,0 +1,430 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + 重新并案审核 + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/feedbackEvaluation/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/feedbackEvaluation/index.html new file mode 100644 index 00000000..834df331 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/feedbackEvaluation/index.html @@ -0,0 +1,235 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/mine/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/mine/index.html new file mode 100644 index 00000000..6e7e8ed5 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/mine/index.html @@ -0,0 +1,171 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/mine/inviteSeconder.js b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/mine/inviteSeconder.js new file mode 100644 index 00000000..52ad4007 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/mine/inviteSeconder.js @@ -0,0 +1,150 @@ +const PROPOSAL_INVITE_SECONDER_COMPONENT = { + /*language=HTML*/ + template: ` +
+ + + + + + + + + + + 查询 + + + + + 邀请 + + + 已邀请 + 可邀请 + + + + + + + + + + + + + + + + +
+ `, + mixins: [initTableMixins], + data() { + return { + visible: false, + secondedNum: 0, + record: {}, + pageForm: { + isInvite: false + }, + config: {}, + delegationOptions: [] + } + }, + methods: { + getRowKey(val) { + return val.loginName + this.pageForm.isInvite + }, + + async onOpen(record) { + this.visible = true + this.record = record + await this.getConfig() + this.listDelegation() + this.pageData() + + const { seconderNum } = this.config + this.$alert( + "(1)请至少选择" + + seconderNum + + "位以上(含" + + seconderNum + + "位)代表附议。
\n" + + "(2)邀请附议人后将不能再编辑提案,请确认提案内容后再邀请附议人。
", + { + title: "温馨提醒", + type: "warning", + dangerouslyUseHTMLString: true, + confirmButtonText: "确定", + callback: () => {} + } + ) + }, + detail(id) {}, + invite() { + const selection = this.$refs.tableRef.selection + if (selection.length === 0) { + this.$message.warning("请先选择附议人后在点击邀请") + return + } + const loginNames = selection.map((s) => s.loginName) + const userName = selection.map((s) => s.userName) + this.$confirm("您确定要邀请" + userName.join("、") + "代表附议吗?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "info" + }).then(() => { + this.$axios + .post("/platform/proposal/mine/inviteSeconder", { + proposalId: this.record.id, + seconders: JSON.stringify(loginNames) + }) + .then((res) => { + if (res.code === 0) { + this.$message.success(res.msg) + this.$refs.tableRef.clearSelection() + this.pageData() + this.visible = false + this.$emit("refresh", null) + } + }) + }) + }, + pageData() { + this.$axios + .post(loc() + "/listSeconder", { + ...this.pageForm, + sessionId: this.record.sessionId, + proposalId: this.record.id + }) + .then((res) => { + if (res.code === 0) { + this.tableData = res.data.list + this.pageForm.totalCount = res.data.totalCount + } + }) + }, + + //查询代表团 + listDelegation() { + this.$axios.post("/platform/proposal/common/listDelegation", { sessionId: this.record.sessionId }).then((res) => { + if (res.code === 0) { + this.delegationOptions = res.data + } + }) + }, + + async getConfig() { + const { code, data } = await this.$axios.post("/platform/proposal/common/config") + if (code === 0) { + this.config = data + } + } + } +} diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/schoolLeaderApproval/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/schoolLeaderApproval/index.html new file mode 100644 index 00000000..ac7c00a4 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/schoolLeaderApproval/index.html @@ -0,0 +1,247 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/unitRead/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/unitRead/index.html new file mode 100644 index 00000000..7ae7ad6a --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/unitRead/index.html @@ -0,0 +1,256 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/unitReply/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/unitReply/index.html new file mode 100644 index 00000000..ea0825ab --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/unitReply/index.html @@ -0,0 +1,414 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + 已转办 + 未转办 + + + + 已答复 + 未答复 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/write/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/write/index.html new file mode 100644 index 00000000..625049fe --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/write/index.html @@ -0,0 +1,339 @@ + + + + +
+ + + +
+ +
+ 我已知晓 +
+
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/config/all/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/config/all/index.html new file mode 100644 index 00000000..158c35a1 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/config/all/index.html @@ -0,0 +1,123 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + 协办单位是否首先答复 + + + + + + + + + + + + + + + + + + + + + 保存 + + +
+ + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/config/type/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/config/type/index.html new file mode 100644 index 00000000..f7db934f --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/config/type/index.html @@ -0,0 +1,106 @@ + + +
+ + + + + + + + + + + 新增 + + + + + + + + + + + + + + + + + + + + + +
+ 取消 + 提交 +
+
+
+ + + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/common/info.js b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/common/info.js new file mode 100644 index 00000000..7b51ec9d --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/common/info.js @@ -0,0 +1,319 @@ +const SUGGESTION_INFO_COMPONENT = { + name: "suggestion-info", + /*language=HTML*/ + template: ` +
+
+ 意见和建议信息 +
+ + + + + {{ viewData.code }} + {{viewData.createUserName }} + {{ viewData.createTime }} + {{ viewData.sessionName || '暂无' }} + {{ viewData.unitName }} + {{ viewData.delegationName }} + + {{viewData.typeName}} + + + + + + + + + +
+
+ + + +
+ + + + +
+ 附议人信息 +
+ + + + + + + + + + + + + + + + + + +
+
+
+ {{nodeTask.nodeName}} +
+
+ + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + +
+ 同意 + + 退回重新填写 + + 建议撤销 + +
+
+ {{ task.extVariable.approvalOpinion}} + + + + + + +
+
+
+ + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + + + + + + {{ task.extVariable.approvalOpinion}} + + + + + + + +
+ +
+ + + {{ task.createVariable.underTakeName}} + ({{ task.createVariable.isMaster ? '主办' : '协办'}}) + + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + + {{task.extVariable.canTake}} + + {{ task.extVariable.approvalOpinion}} + + +
+ +
+ + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + + + + + + {{ task.extVariable.approvalOpinion}} + + + + + + + +
+ +
+ + + + {{ task.createVariable.underTakeName}} + ({{ task.createVariable.isMaster ? '主办' : '协办'}}) + + + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + +
+
+
+ + + + {{ task.createVariable.underTakeName}} + ({{ task.createVariable.isMaster ? '主办' : '协办'}}) + + + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + +
+
+
+
+
+ + + {{ task.createVariable.underTakeName}} + ({{ task.createVariable.isMaster ? '主办' : '协办'}}) + + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + + + 同意 + + 退回重新答复 + + + + {{ task.extVariable.approvalOpinion}} + + + + + + + +
+
+ + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + {{ task.extVariable.feedBackScore}} + + {{ task.extVariable.approvalOpinion}} + + + + + + + +
+ +
+
+ + +
+ +
+
+
+ + `, + dicts: ["PROPOSAL_TYPE", "SUGGESTION_CASE_FILING_RESULT"], + data() { + return { + viewData: {}, + viewDialogVisible: false + } + }, + props:{ + hide_slave:false + }, + methods: { + onOpen(id) { + this.$axios.post("/platform/suggestion/tc/common/suggestionInfo", { id }).then((res) => { + if (res.code === 0) { + this.viewData = res.data + } + }) + }, + openView(id) { + this.viewDialogVisible = true + this.$nextTick(() => { + this.$refs.infoDialogRef.onOpen(id) + }) + } + }, + style: + /*language=CSS*/ + ` + .proposal-info .el-descriptions__body .el-descriptions__table .el-descriptions-item__cell{ + text-align: left; + } + ` +} diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/export/comprehensive/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/export/comprehensive/index.html new file mode 100644 index 00000000..fd2ea08a --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/export/comprehensive/index.html @@ -0,0 +1,299 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
受理结果
+
+ + {{ item.label }} + +
+
+
+ + + 导出全部意见压缩包 + 导出全部意见反馈表压缩包 + 导出全部意见反馈表(合并情况)压缩包 + 导出汇总表 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/chart/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/chart/index.html new file mode 100644 index 00000000..fadeedf4 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/chart/index.html @@ -0,0 +1,262 @@ + +
+ + + + + + + + + + +
+ 意见满意度 +
+
+
+
+
+
+ + +
+ 意见类别 +
+
+
+
+
+
+
+ + + +
+ 受理结果 +
+
+
+
+
+
+ + +
+ 意见状态 +
+
+
+
+
+
+
+
+ + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/collectProgress/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/collectProgress/index.html new file mode 100644 index 00000000..727d3a85 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/collectProgress/index.html @@ -0,0 +1,242 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
征集状态
+
+ + {{ item.name }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/comprehensive/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/comprehensive/index.html new file mode 100644 index 00000000..4bef29a1 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/comprehensive/index.html @@ -0,0 +1,261 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
受理结果
+
+ + {{ item.label }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/delegation/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/delegation/index.html new file mode 100644 index 00000000..2786e354 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/delegation/index.html @@ -0,0 +1,150 @@ + +
+ + + + + + + + + +
+ +
+
+
+ + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/delegation/proposalTable.js b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/delegation/proposalTable.js new file mode 100644 index 00000000..94c12554 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/delegation/proposalTable.js @@ -0,0 +1,51 @@ +const PROPOSAL_TABLE = { + template: ` +
+ + + + + + + + + + + + + + + +
+ `, + props: { + sessionId: { + type: String, + required: true + }, + delegationId: { + type: String, + required: true + } + }, + mixins: [initTableMixins], + data() { + return { + pageForm: {} + } + }, + methods: { + pageData() { + this.pageForm.sessionId = this.sessionId + this.pageForm.delegationId = this.delegationId + this.$axios.post("/platform/suggestion/tc/query/delegation/getProposalsByDelegation", this.pageForm).then((res) => { + if (res.code === 0) { + this.tableData = res.data.list + this.pageForm.totalCount = res.data.totalCount + } + }) + } + } +} diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/history/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/history/index.html new file mode 100644 index 00000000..7a84add3 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/history/index.html @@ -0,0 +1,259 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
受理结果
+
+ + {{ item.label }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/underTakeReply/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/underTakeReply/index.html new file mode 100644 index 00000000..2d37593d --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/underTakeReply/index.html @@ -0,0 +1,96 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/yearReport/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/yearReport/index.html new file mode 100644 index 00000000..247348f7 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/query/yearReport/index.html @@ -0,0 +1,259 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
受理结果
+
+ + {{ item.label }} + +
+
+
+ + + 导出意见报告 + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/basic/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/basic/index.html new file mode 100644 index 00000000..37224301 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/basic/index.html @@ -0,0 +1,292 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/delete/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/delete/index.html new file mode 100644 index 00000000..8eb7584f --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/delete/index.html @@ -0,0 +1,213 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/type/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/type/index.html new file mode 100644 index 00000000..6badc43a --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/senior/type/index.html @@ -0,0 +1,259 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/committeeFiling/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/committeeFiling/index.html new file mode 100644 index 00000000..473ef943 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/committeeFiling/index.html @@ -0,0 +1,435 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 合并审核 + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/committeeFilingUnit/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/committeeFilingUnit/index.html new file mode 100644 index 00000000..f039cb0d --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/committeeFilingUnit/index.html @@ -0,0 +1,434 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重新合并审核 + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/delegation/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/delegation/index.html new file mode 100644 index 00000000..f36987e8 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/delegation/index.html @@ -0,0 +1,220 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/mine/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/mine/index.html new file mode 100644 index 00000000..7662b3a5 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/mine/index.html @@ -0,0 +1,175 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/mine/inviteSeconder.js b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/mine/inviteSeconder.js new file mode 100644 index 00000000..5c111533 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/mine/inviteSeconder.js @@ -0,0 +1,150 @@ +const PROPOSAL_INVITE_SECONDER_COMPONENT = { + /*language=HTML*/ + template: ` +
+ + + + + + + + + + + 查询 + + + + + 邀请 + + + 已邀请 + 可邀请 + + + + + + + + + + + + + + + + +
+ `, + mixins: [initTableMixins], + data() { + return { + visible: false, + secondedNum: 0, + record: {}, + pageForm: { + isInvite: false + }, + config: {}, + delegationOptions: [] + } + }, + methods: { + getRowKey(val) { + return val.loginName + this.pageForm.isInvite + }, + + async onOpen(record) { + this.visible = true + this.record = record + await this.getConfig() + this.listDelegation() + this.pageData() + + const { seconderNum } = this.config + this.$alert( + "(1)请至少选择" + + seconderNum + + "位以上(含" + + seconderNum + + "位)代表附议。
\n" + + "(2)邀请附议人后将不能再编辑,请确认内容后再邀请附议人。
", + { + title: "温馨提醒", + type: "warning", + dangerouslyUseHTMLString: true, + confirmButtonText: "确定", + callback: () => {} + } + ) + }, + detail(id) {}, + invite() { + const selection = this.$refs.tableRef.selection + if (selection.length === 0) { + this.$message.warning("请先选择附议人后在点击邀请") + return + } + const loginNames = selection.map((s) => s.loginName) + const userName = selection.map((s) => s.userName) + this.$confirm("您确定要邀请" + userName.join("、") + "代表附议吗?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "info" + }).then(() => { + this.$axios + .post(loc() + "/inviteSeconder", { + proposalId: this.record.id, + seconders: JSON.stringify(loginNames) + }) + .then((res) => { + if (res.code === 0) { + this.$message.success(res.msg) + this.$refs.tableRef.clearSelection() + this.pageData() + this.visible = false + this.$emit("refresh", null) + } + }) + }) + }, + pageData() { + this.$axios + .post(loc() + "/listSeconder", { + ...this.pageForm, + sessionId: this.record.sessionId, + proposalId: this.record.id + }) + .then((res) => { + if (res.code === 0) { + this.tableData = res.data.list + this.pageForm.totalCount = res.data.totalCount + } + }) + }, + + //查询代表团 + listDelegation() { + this.$axios.post("/platform/suggestion/tc/common/listDelegation", { sessionId: this.record.sessionId }).then((res) => { + if (res.code === 0) { + this.delegationOptions = res.data + } + }) + }, + + async getConfig() { + const { code, data } = await this.$axios.post("/platform/suggestion/tc/common/config") + if (code === 0) { + this.config = data + } + } + } +} diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/schoolLeaderApproval/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/schoolLeaderApproval/index.html new file mode 100644 index 00000000..fd8c3411 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/schoolLeaderApproval/index.html @@ -0,0 +1,251 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/seconded/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/seconded/index.html new file mode 100644 index 00000000..fac895c8 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/seconded/index.html @@ -0,0 +1,193 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已附议 + 未附议 + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/unitRead/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/unitRead/index.html new file mode 100644 index 00000000..903027c4 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/unitRead/index.html @@ -0,0 +1,260 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/unitReply/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/unitReply/index.html new file mode 100644 index 00000000..02dae08b --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/unitReply/index.html @@ -0,0 +1,410 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已转办 + 未转办 + + + + 已答复 + 未答复 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/write/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/write/index.html new file mode 100644 index 00000000..1c4cc4a2 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/tc/transact/write/index.html @@ -0,0 +1,298 @@ + + + + +
+ + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/common/info.js b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/common/info.js new file mode 100644 index 00000000..3c813d67 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/common/info.js @@ -0,0 +1,323 @@ +const SUGGESTION_INFO_COMPONENT = { + name: "suggestion-info", + /*language=HTML*/ + template: ` +
+
+ 意见基础信息 +
+

+ {{ viewData.name }} +

+ + {{ viewData.code }} + {{viewData.createUserName }} + {{ viewData.createTime }} + {{ viewData.sessionName || '暂无' }} + {{ viewData.unitName }} + {{ viewData.delegationName }} + + {{viewData.typeName}} + + + + + + + + + +
+
+ + + +
+ + + + +
+ 附议人信息 +
+ + + + + + + + + + + + + + + + + + +
+
+
+ {{nodeTask.nodeName}} +
+
+ + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + +
+ 同意 + + 退回重新填写 + + 建议撤销 + +
+
+ {{ task.extVariable.approvalOpinion}} + + + + + + +
+
+
+ + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + + + + + + {{ task.extVariable.approvalOpinion}} + + + + + + + +
+ +
+ + + {{ task.createVariable.underTakeName}} + ({{ task.createVariable.isMaster ? '主办' : '协办'}}) + + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + + {{task.extVariable.canTake}} + + {{ task.extVariable.approvalOpinion}} + + +
+ +
+ + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + + + + + + {{ task.extVariable.approvalOpinion}} + + + + + + + +
+ +
+ + + + {{ task.createVariable.underTakeName}} + ({{ task.createVariable.isMaster ? '主办' : '协办'}}) + + + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + +
+
+
+ + + + {{ task.createVariable.underTakeName}} + ({{ task.createVariable.isMaster ? '主办' : '协办'}}) + + + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + +
+
+
+
+
+ + + {{ task.createVariable.underTakeName}} + ({{ task.createVariable.isMaster ? '主办' : '协办'}}) + + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + + + 同意 + + 退回重新答复 + + + + {{ task.extVariable.approvalOpinion}} + + + + + + + +
+
+ + {{ task.actualOwnerLoginName + '-' + + task.actualOwnerUserName}} + + {{ task.endOn}} + {{ task.extVariable.feedBackScore}} + + {{ task.extVariable.approvalOpinion}} + + + + + + + +
+ +
+
+ + +
+ +
+
+
+ + `, + dicts: ["PROPOSAL_TYPE", "SUGGESTION_CASE_FILING_RESULT"], + data() { + return { + viewData: {}, + viewDialogVisible: false + } + }, + props:{ + hide_slave:false + }, + methods: { + onOpen(id) { + this.$axios.post("/platform/suggestion/wc/common/suggestionInfo", {id}).then((res) => { + if (res.code === 0) { + this.viewData = res.data + } + }) + }, + openView(id) { + this.viewDialogVisible = true + this.$nextTick(() => { + this.$refs.infoDialogRef.onOpen(id) + }) + } + }, + style: + /*language=CSS*/ + ` + .proposal-info .el-descriptions__body .el-descriptions__table .el-descriptions-item__cell { + text-align: left; + } + ` +} diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/export/comprehensive/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/export/comprehensive/index.html new file mode 100644 index 00000000..a06788be --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/export/comprehensive/index.html @@ -0,0 +1,298 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
受理结果
+
+ + {{ item.label }} + +
+
+
+ + + 导出全部意见压缩包 + 导出全部意见反馈表压缩包 + 导出全部意见反馈表(合并情况)压缩包 + 导出汇总表 + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/chart/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/chart/index.html new file mode 100644 index 00000000..dc78fcb7 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/chart/index.html @@ -0,0 +1,262 @@ + +
+ + + + + + + + + + +
+ 意见满意度 +
+
+
+
+
+
+ + +
+ 意见类别 +
+
+
+
+
+
+
+ + + +
+ 受理结果 +
+
+
+
+
+
+ + +
+ 意见状态 +
+
+
+
+
+
+
+
+ + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/collectProgress/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/collectProgress/index.html new file mode 100644 index 00000000..1aadb730 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/collectProgress/index.html @@ -0,0 +1,242 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
征集状态
+
+ + {{ item.name }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/comprehensive/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/comprehensive/index.html new file mode 100644 index 00000000..da0f1ba4 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/comprehensive/index.html @@ -0,0 +1,261 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
受理结果
+
+ + {{ item.label }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/delegation/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/delegation/index.html new file mode 100644 index 00000000..562b9986 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/delegation/index.html @@ -0,0 +1,150 @@ + +
+ + + + + + + + + +
+ +
+
+
+ + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/delegation/proposalTable.js b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/delegation/proposalTable.js new file mode 100644 index 00000000..28a65338 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/delegation/proposalTable.js @@ -0,0 +1,51 @@ +const PROPOSAL_TABLE = { + template: ` +
+ + + + + + + + + + + + + + + +
+ `, + props: { + sessionId: { + type: String, + required: true + }, + delegationId: { + type: String, + required: true + } + }, + mixins: [initTableMixins], + data() { + return { + pageForm: {} + } + }, + methods: { + pageData() { + this.pageForm.sessionId = this.sessionId + this.pageForm.delegationId = this.delegationId + this.$axios.post("/platform/suggestion/wc/query/delegation/getProposalsByDelegation", this.pageForm).then((res) => { + if (res.code === 0) { + this.tableData = res.data.list + this.pageForm.totalCount = res.data.totalCount + } + }) + } + } +} diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/history/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/history/index.html new file mode 100644 index 00000000..eaf994f7 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/history/index.html @@ -0,0 +1,259 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
受理结果
+
+ + {{ item.label }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/underTakeReply/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/underTakeReply/index.html new file mode 100644 index 00000000..d27ac0f6 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/underTakeReply/index.html @@ -0,0 +1,96 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/yearReport/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/yearReport/index.html new file mode 100644 index 00000000..b427b04d --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/query/yearReport/index.html @@ -0,0 +1,259 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
意见类别
+
+ + {{ item.name }} + +
+
+
+
受理结果
+
+ + {{ item.label }} + +
+
+
+ + + 导出意见报告 + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/basic/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/basic/index.html new file mode 100644 index 00000000..4d1bbf5e --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/basic/index.html @@ -0,0 +1,286 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/delete/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/delete/index.html new file mode 100644 index 00000000..1794bcb1 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/delete/index.html @@ -0,0 +1,209 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/type/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/type/index.html new file mode 100644 index 00000000..2b11216d --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/senior/type/index.html @@ -0,0 +1,259 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/committeeFiling/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/committeeFiling/index.html new file mode 100644 index 00000000..fb5193b8 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/committeeFiling/index.html @@ -0,0 +1,435 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 合并审核 + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/committeeFilingUnit/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/committeeFilingUnit/index.html new file mode 100644 index 00000000..c625607d --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/committeeFilingUnit/index.html @@ -0,0 +1,434 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重新合并审核 + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/delegation/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/delegation/index.html new file mode 100644 index 00000000..e198edaf --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/delegation/index.html @@ -0,0 +1,220 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/mine/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/mine/index.html new file mode 100644 index 00000000..d26580fb --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/mine/index.html @@ -0,0 +1,175 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/mine/inviteSeconder.js b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/mine/inviteSeconder.js new file mode 100644 index 00000000..a09f65fb --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/mine/inviteSeconder.js @@ -0,0 +1,150 @@ +const SUGGESTION_INVITE_SECONDER_COMPONENT = { + /*language=HTML*/ + template: ` +
+ + + + + + + + + + + 查询 + + + + + 邀请 + + + 已邀请 + 可邀请 + + + + + + + + + + + + + + + + +
+ `, + mixins: [initTableMixins], + data() { + return { + visible: false, + secondedNum: 0, + record: {}, + pageForm: { + isInvite: false + }, + config: {}, + delegationOptions: [] + } + }, + methods: { + getRowKey(val) { + return val.loginName + this.pageForm.isInvite + }, + + async onOpen(record) { + this.visible = true + this.record = record + await this.getConfig() + this.listDelegation() + this.pageData() + + const { seconderNum } = this.config + this.$alert( + "(1)请至少选择" + + seconderNum + + "位以上(含" + + seconderNum + + "位)代表附议。
\n" + + "(2)邀请附议人后将不能再编辑,请确认内容后再邀请附议人。
", + { + title: "温馨提醒", + type: "warning", + dangerouslyUseHTMLString: true, + confirmButtonText: "确定", + callback: () => {} + } + ) + }, + detail(id) {}, + invite() { + const selection = this.$refs.tableRef.selection + if (selection.length === 0) { + this.$message.warning("请先选择附议人后在点击邀请") + return + } + const loginNames = selection.map((s) => s.loginName) + const userName = selection.map((s) => s.userName) + this.$confirm("您确定要邀请" + userName.join("、") + "代表附议吗?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "info" + }).then(() => { + this.$axios + .post(loc() + "/inviteSeconder", { + proposalId: this.record.id, + seconders: JSON.stringify(loginNames) + }) + .then((res) => { + if (res.code === 0) { + this.$message.success(res.msg) + this.$refs.tableRef.clearSelection() + this.pageData() + this.visible = false + this.$emit("refresh", null) + } + }) + }) + }, + pageData() { + this.$axios + .post(loc() + "/listSeconder", { + ...this.pageForm, + sessionId: this.record.sessionId, + proposalId: this.record.id + }) + .then((res) => { + if (res.code === 0) { + this.tableData = res.data.list + this.pageForm.totalCount = res.data.totalCount + } + }) + }, + + //查询代表团 + listDelegation() { + this.$axios.post("/platform/suggestion/wc/common/listDelegation", { sessionId: this.record.sessionId }).then((res) => { + if (res.code === 0) { + this.delegationOptions = res.data + } + }) + }, + + async getConfig() { + const { code, data } = await this.$axios.post("/platform/suggestion/tc/common/config") + if (code === 0) { + this.config = data + } + } + } +} diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/schoolLeaderApproval/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/schoolLeaderApproval/index.html new file mode 100644 index 00000000..e3c6a31e --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/schoolLeaderApproval/index.html @@ -0,0 +1,251 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/seconded/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/seconded/index.html new file mode 100644 index 00000000..0eee69e1 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/seconded/index.html @@ -0,0 +1,192 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已附议 + 未附议 + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/unitRead/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/unitRead/index.html new file mode 100644 index 00000000..ce25bb55 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/unitRead/index.html @@ -0,0 +1,260 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/unitReply/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/unitReply/index.html new file mode 100644 index 00000000..7a5e0e2c --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/unitReply/index.html @@ -0,0 +1,418 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已转办 + 未转办 + + + + 已答复 + 未答复 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/write/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/write/index.html new file mode 100644 index 00000000..39b663f5 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestion/wc/transact/write/index.html @@ -0,0 +1,299 @@ + + + + +
+ + + + + + + + +
+ + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestionBox/apply.html b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/apply.html deleted file mode 100644 index 705b396b..00000000 --- a/src/main/resources/views/platform/zhgh/democratic/suggestionBox/apply.html +++ /dev/null @@ -1,18 +0,0 @@ - - -
- - - - diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestionBox/mine/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/mine/index.html new file mode 100644 index 00000000..f7553685 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/mine/index.html @@ -0,0 +1,115 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestionBox/write/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/write/index.html new file mode 100644 index 00000000..52b538e8 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/write/index.html @@ -0,0 +1,141 @@ + + +
+ + + + + {{formData.userName}} + {{formData.loginName}} + {{formData.unitName}} + {{formData.unionName}} + + + + + + + + + + + + + + 保存 + 提交 + 提交1 + + +
+ + + + + diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestionBox/xgh/index.html b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/xgh/index.html new file mode 100644 index 00000000..c515167c --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/xgh/index.html @@ -0,0 +1,159 @@ + +
+ + + + + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +