Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db_qms_wx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
db_qms_wx
Commits
5842a2df
Commit
5842a2df
authored
Mar 24, 2025
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(审批详情): 审批详情接口对接1
parent
7e9c6402
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
331 additions
and
48 deletions
+331
-48
approve.js
api/system/approve.js
+60
-0
base-data-approval.vue
components/home-approval/base-data-approval.vue
+4
-3
base-data-start.vue
components/home-approval/base-data-start.vue
+3
-3
baseDetail.vue
pages/approval_detail/baseDetail.vue
+264
-42
No files found.
api/system/approve.js
View file @
5842a2df
import
request
from
'@/utils/request'
const
ProcessGroupEnum
=
{
/**
* 单据类型 AE
*/
AE
:
'1'
,
/**
* 单据类型 MC
*/
MC
:
'2'
,
/**
* 单据类型 DC
*/
DC
:
'3'
}
/**
* Ae流程实例 - 分页查询
* @param query
...
...
@@ -23,4 +38,49 @@ export function queryInstanceByPage(params) {
method
:
'get'
,
params
})
}
/**
* 流程实例 - 获取详情
* @param instanceId
* @returns {*}
*/
export
function
getProcessNodeByInstanceId
(
instanceId
)
{
return
request
({
url
:
`/sysprocessbasic/getProcessNode/
${
instanceId
}
`
,
method
:
'get'
})
}
/**
* 管理员审批
* @param query
* @returns {*}
*/
export
function
approveByAdmin
(
query
)
{
// 需要根据传回的url判断是哪个接口
const
{
url
}
=
query
if
(
query
.
processGroup
===
ProcessGroupEnum
.
MC
)
{
return
MCService
({
url
:
url
,
method
:
'post'
,
params
:
query
})
}
else
if
(
query
.
processGroup
===
ProcessGroupEnum
.
DC
)
{
return
DCService
({
url
:
url
,
method
:
'post'
,
params
:
query
})
}
else
{
return
request
({
url
:
url
,
method
:
'post'
,
params
:
query
})
}
}
export
function
getProcessInstanceStatus
(
instanceId
)
{
return
request
({
url
:
`/sysprocessbasic/getProcessInstanceStatus/
${
instanceId
}
`
,
method
:
'get'
})
}
\ No newline at end of file
components/home-approval/base-data-approval.vue
View file @
5842a2df
...
...
@@ -7,7 +7,7 @@
:scroll-with-animation=
"true"
>
<view
v-for=
"(item,key) in noticeList"
:key=
"key"
style=
"display: flex;background-color: #ffffff"
>
<!-- 原消息卡片模板 -->
<view
class=
"noticeCard"
@
click=
"goDetail"
>
<view
class=
"noticeCard"
@
click=
"goDetail
(item.businessId,item.processType,item.status === '10' && item.allowApprove)
"
>
<view
class=
"noticeTop"
>
<view
class=
"titleClass"
>
<img
:src=
"leftIconTwo"
/>
...
...
@@ -115,6 +115,7 @@ export default {
rows
:
10
,
mesType
:
'1'
,
processGroup
:
'1'
,
completeStatus
:
false
}
,
defaultPageSize
:
10
,
// 底部加载
...
...
@@ -145,9 +146,9 @@ export default {
}
,
}
,
methods
:
{
goDetail
()
{
goDetail
(
processId
,
processType
,
status
)
{
uni
.
navigateTo
({
url
:
'/pages/approval_detail/baseDetail?id=1'
url
:
`/pages/approval_detail/baseDetail?processId=${processId
}
&isView=0&status=${status
}
&processType=${processType
}
&label=${this.getLabelByValue(this.tableUserFormList, processType)
}
`
}
)
}
,
/**
...
...
components/home-approval/base-data-start.vue
View file @
5842a2df
...
...
@@ -7,7 +7,7 @@
:scroll-with-animation=
"true"
>
<view
v-for=
"(item,key) in noticeList"
:key=
"key"
style=
"display: flex;background-color: #ffffff"
>
<!-- 原消息卡片模板 -->
<view
class=
"noticeCard"
@
click=
"goDetail"
>
<view
class=
"noticeCard"
@
click=
"goDetail
(item.businessId,item.processType,item.status === '10' && item.allowApprove)
"
>
<view
class=
"noticeTop"
>
<view
class=
"titleClass"
>
<img
:src=
"leftIconOne"
/>
...
...
@@ -145,9 +145,9 @@ export default {
}
,
}
,
methods
:
{
goDetail
()
{
goDetail
(
processId
,
processType
,
status
)
{
uni
.
navigateTo
({
url
:
'/pages/approval_detail/baseDetail?id=1'
url
:
`/pages/approval_detail/baseDetail?processId=${processId
}
&isView=1&status=${status
}
&processType=${processType
}
&label=${this.getLabelByValue(this.tableUserFormList, processType)
}
`
}
)
}
,
/**
...
...
pages/approval_detail/baseDetail.vue
View file @
5842a2df
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment