From 43653ebcdf5a05d772831a5a165539872da5becf Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 28 Aug 2024 10:52:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B5=81=E7=A8=8B=E6=8A=84?= =?UTF-8?q?=E9=80=81=E6=94=B9=E4=B8=BA=E5=B7=A5=E4=BD=9C=E6=B5=81=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../liuchengchaosong/liuchengchaosong.js | 64 +++++++++++++++++-- anrui-system-ui/src/router/index.js | 2 +- anrui-system-ui/src/views/Home/Home.vue | 2 +- .../copyofprocess/liuchengchasongguanli.vue | 20 ++++-- 4 files changed, 75 insertions(+), 13 deletions(-) diff --git a/anrui-system-ui/src/api/system/liuchengchaosong/liuchengchaosong.js b/anrui-system-ui/src/api/system/liuchengchaosong/liuchengchaosong.js index 7b9305ef4b..c1a0179763 100644 --- a/anrui-system-ui/src/api/system/liuchengchaosong/liuchengchaosong.js +++ b/anrui-system-ui/src/api/system/liuchengchaosong/liuchengchaosong.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -// 获取菜单 分页列表 +// 流程抄送 -- 获取菜单 分页列表 export function pageList(data) { return request({ url: '/portal/v1/sysflowcc/listPage', @@ -10,7 +10,7 @@ export function pageList(data) { }) } -// 新增 +// 流程抄送 -- 新增 export function save(data) { return request({ url: '/portal/v1/sysflowcc/save', @@ -20,7 +20,7 @@ export function save(data) { }) } -// 初始化应用 +// 流程抄送 -- 初始化应用 export function fetchSid(data) { return request({ url: '/portal/v1/sysflowcc/fetchDetailsBySid/' + data, @@ -28,7 +28,7 @@ export function fetchSid(data) { }) } -// 删除 +// 流程抄送 -- 删除 export function delBySids(data) { return request({ url: '/portal/v1/sysflowcc/delBySids', @@ -38,8 +38,53 @@ export function delBySids(data) { }) } +// 流程审批权限 -- 新增 +export function saveByPower(data) { + return request({ + url: '/portal/v1/sysflowpower/save', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) +} + +// 流程审批权限 -- 初始化 +export function initByPower(data) { + return request({ + url: '/portal/v1/sysflowpower/listPage', + method: 'post', + params: data + }) +} + +// 流程审批权限 -- 回显 +export function fetchSidByPower(data) { + return request({ + url: '/portal/v1/sysflowpower/fetchDetailsBySid/' + data, + method: 'get' + }) +} + +// 流程审批权限 -- 删除 +export function delByPower(data) { + return request({ + url: '/portal/v1/sysflowpower/delBySids', + method: 'DELETE', + params: data + }) +} + +// 根据流程flowKey获取该流程的环节名称 +export function selecTaskByProId(data) { + return request({ + url: '/flowable/v1/flowable/proUrl/selecTaskByProId', + method: 'post', + params: data + }) +} + // 查询角色列表 -export function roleList(data){ +export function roleList(data) { return request({ url: '/portal/v1/sysrole/listAll', method: 'post', @@ -47,3 +92,12 @@ export function roleList(data){ headers: { 'Content-Type': 'application/json' } }) } + +// 获取所有分公司 +export function selectOrgSidList(data) { + return request({ + url: '/portal/v1/sysorganization/selectOrgSidList', + method: 'get', + params: data + }) +} diff --git a/anrui-system-ui/src/router/index.js b/anrui-system-ui/src/router/index.js index 7d3b170e84..a1bfd7a703 100644 --- a/anrui-system-ui/src/router/index.js +++ b/anrui-system-ui/src/router/index.js @@ -172,7 +172,7 @@ export const constantRoutes = [ component: () => import('@/views/copyofprocess/liuchengchasongguanli'), name: 'mobileterminal', meta: { - title: '流程抄送' + title: '工作流设置' } }] }, diff --git a/anrui-system-ui/src/views/Home/Home.vue b/anrui-system-ui/src/views/Home/Home.vue index 9288daddad..d54e151464 100644 --- a/anrui-system-ui/src/views/Home/Home.vue +++ b/anrui-system-ui/src/views/Home/Home.vue @@ -403,7 +403,7 @@ export default { // let myPopup = window.open('http://127.0.0.1:9531/reportcenter/#/' + '?token=' + getStorage() + '&organizationData=' + encodeURI((JSON.stringify(organizationData))), '_blank') let myPopup = window.open('http://anrui.yyundong.com/reportcenter/#/' + '?token=' + getStorage() + '&organizationData=' + encodeURI((JSON.stringify(organizationData))), '_blank') // let myPopup = window.open('http://120.46.172.184/reportcenter/#/' + '?token=' + getStorage() + '&organizationData=' + encodeURI((JSON.stringify(organizationData))), '_blank') - } else if (index == '7') { + } else if (index == '7') { // let myPopup = window.open('http://127.0.0.1:9531/base/#/' + '?token=' + getStorage() + '&organizationData=' + encodeURI((JSON.stringify(organizationData))), '_blank') let myPopup = window.open('http://anrui.yyundong.com/base/#/' + '?token=' + getStorage() + '&organizationData=' + encodeURI((JSON.stringify(organizationData))), '_blank') // let myPopup = window.open('http://120.46.172.184/base/#/' + '?token=' + getStorage() + '&organizationData=' + encodeURI((JSON.stringify(organizationData))), '_blank') diff --git a/anrui-system-ui/src/views/copyofprocess/liuchengchasongguanli.vue b/anrui-system-ui/src/views/copyofprocess/liuchengchasongguanli.vue index 9b136da3dd..8d665cfd0c 100644 --- a/anrui-system-ui/src/views/copyofprocess/liuchengchasongguanli.vue +++ b/anrui-system-ui/src/views/copyofprocess/liuchengchasongguanli.vue @@ -1,7 +1,7 @@ @@ -62,6 +64,7 @@ import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' import liuchengchaosongAdd from './liuchengchaosongAdd' +import power from './power' export default { name: 'liuchengchaosong', @@ -69,7 +72,8 @@ export default { Pagination, pageye, ButtonBar, - liuchengchaosongAdd + liuchengchaosongAdd, + power }, data() { return { @@ -192,10 +196,14 @@ export default { this.$refs['divadd'].showAdd() }, // 编辑 - handleUpdate(row) { + toSend(row) { this.viewState = 3 this.$refs['divadd'].showEdit(row) }, + toPower(row) { + this.viewState = 4 + this.$refs['divPower'].showInit(row) + }, handleDelete(row) { const tip = '请确认是否删除' this.$confirm(tip, '提示', {