From 81294d4104801b9d224c09cd4946845d654c06a2 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Thu, 14 Mar 2024 10:39:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=A1=E6=A0=B8=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/auth/authAdmin.js | 8 + src/api/basic/sysApprovalFlow.js | 19 ++ src/api/basic/sysApprovalFlowConfig.js | 35 +++ src/components/ApprovalFlow/index.vue | 183 +++++++++++++ .../basic/approval/SysApprovalFlowConfig.vue | 162 +++++++++++ .../approval/sysApprovalFlowConfigEdit.vue | 259 ++++++++++++++++++ 6 files changed, 666 insertions(+) create mode 100644 src/api/basic/sysApprovalFlow.js create mode 100644 src/api/basic/sysApprovalFlowConfig.js create mode 100644 src/components/ApprovalFlow/index.vue create mode 100644 src/views/basic/approval/SysApprovalFlowConfig.vue create mode 100644 src/views/basic/approval/sysApprovalFlowConfigEdit.vue diff --git a/src/api/auth/authAdmin.js b/src/api/auth/authAdmin.js index 30340561..dbd6cc7f 100644 --- a/src/api/auth/authAdmin.js +++ b/src/api/auth/authAdmin.js @@ -81,3 +81,11 @@ export function filterByUser(query) { params: query }); } + +export function companyUserList(query) { + return axios({ + url: "/admin/auth/companyUser/list", + method: "get", + params: query + }); +} diff --git a/src/api/basic/sysApprovalFlow.js b/src/api/basic/sysApprovalFlow.js new file mode 100644 index 00000000..1f938a8b --- /dev/null +++ b/src/api/basic/sysApprovalFlow.js @@ -0,0 +1,19 @@ +import axios from "@/utils/request"; + +let BUSINESS_PRE = "/udiwms"; + +export function getDetailList(approvalFlowId) { + return axios({ + url: BUSINESS_PRE+`/sysApprovalFlow/approvalFlowDetailList/${approvalFlowId}`, + method: "GET" + }); +} + + +export function submitApprovalFlow(query) { + return axios({ + url: BUSINESS_PRE+"/sysApprovalFlow/submitApprovalFlow", + method: "post", + data: query + }); +} diff --git a/src/api/basic/sysApprovalFlowConfig.js b/src/api/basic/sysApprovalFlowConfig.js new file mode 100644 index 00000000..22c84b1a --- /dev/null +++ b/src/api/basic/sysApprovalFlowConfig.js @@ -0,0 +1,35 @@ +import axios from "@/utils/request"; +let BUSINESS_PRE = "/udiwms"; + +export function getList(query) { + return axios({ + url: BUSINESS_PRE + '/sysApprovalFlowConfig/filter', + method: 'get', + params: query + }) +} + +export function getConfigDetailList(query) { + return axios({ + url: BUSINESS_PRE + '/sysApprovalFlowConfig/detail', + method: 'get', + params: query + }) +} + +export function addConfigDetail(query) { + return axios({ + url: BUSINESS_PRE+"/sysApprovalFlowConfig/addConfigDetail", + method: "post", + data: query + }); +} + + +// 删除 +export function removeDetail(id) { + return axios({ + url: BUSINESS_PRE+`/sysApprovalFlowConfig/removeDetail/${id}`, + method: "DELETE" + }); +} diff --git a/src/components/ApprovalFlow/index.vue b/src/components/ApprovalFlow/index.vue new file mode 100644 index 00000000..c203d327 --- /dev/null +++ b/src/components/ApprovalFlow/index.vue @@ -0,0 +1,183 @@ + + + + + + + + + + 办理人: + 待办人: + {{ activity.approvalUserName }} + 办理时间:{{ activity.approvalTime }} + + + + 状态: + + {{ + activity.approvalStatus == 2 ? + '待审核' : activity.approvalStatus == 3 ? '通过' : activity.approvalStatus == 4 ? '拒绝' : '审核中' + }} + + + 审批意见:{{ activity.approvalOpinion }} + + + + + + + + + + + + + + + + + + + + + + + + 申请人:{{ activity.userName }} + 申请标题:{{ activity.title }} + 提交时间:{{ activity.createTime }} + + + + 状态: + + {{ + activity.approvalStatus == 2 ? '待审核' : activity.approvalStatus == 3 ? '通过' : activity.approvalStatus == 4 ? '拒绝' : '审核中' + }} + + + + + + + + + + + + + diff --git a/src/views/basic/approval/SysApprovalFlowConfig.vue b/src/views/basic/approval/SysApprovalFlowConfig.vue new file mode 100644 index 00000000..05e57d98 --- /dev/null +++ b/src/views/basic/approval/SysApprovalFlowConfig.vue @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 重置 + 查询 + + + + + + + + + + + + + 审批过程 + + + + + + + + + + + + + + + + diff --git a/src/views/basic/approval/sysApprovalFlowConfigEdit.vue b/src/views/basic/approval/sysApprovalFlowConfigEdit.vue new file mode 100644 index 00000000..1113c917 --- /dev/null +++ b/src/views/basic/approval/sysApprovalFlowConfigEdit.vue @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + + 新增节点 + 取消新增节点 + + + + + + + + + + {{ item.employeeName }} + + + + + + + + + + + + + 提交 + + + + + + + + + + 审批人:{{ activity.approvalUserName }} + 审批顺序:{{ activity.approvalSort }} + + + + + + + + + + + + + + + + +