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
430057e8
Commit
430057e8
authored
Apr 02, 2025
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(审批详情):追溯审批完
parent
072e77a0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1042 additions
and
546 deletions
+1042
-546
approve.js
api/system/approve.js
+158
-130
drawerShowEngineTrace.vue
pages/approval_detail/drawerShowEngineTrace.vue
+884
-416
No files found.
api/system/approve.js
View file @
430057e8
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
const
ProcessGroupEnum
=
{
const
ProcessGroupEnum
=
{
/**
/**
* 单据类型 AE
* 单据类型 AE
*/
*/
AE
:
'1'
,
AE
:
'1'
,
/**
/**
* 单据类型 MC
* 单据类型 MC
*/
*/
MC
:
'2'
,
MC
:
'2'
,
/**
/**
* 单据类型 DC
* 单据类型 DC
*/
*/
DC
:
'3'
DC
:
'3'
}
}
/**
/**
* Ae流程实例 - 分页查询
* Ae流程实例 - 分页查询
...
@@ -21,11 +21,11 @@ const ProcessGroupEnum = {
...
@@ -21,11 +21,11 @@ const ProcessGroupEnum = {
* @returns {*}
* @returns {*}
*/
*/
export
function
queryInstanceListAeByPage
(
query
)
{
export
function
queryInstanceListAeByPage
(
query
)
{
return
request
({
return
request
({
url
:
'/sysprocessinstance/page/ae'
,
url
:
'/sysprocessinstance/page/ae'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
}
}
/**
/**
* 查询流程列表
* 查询流程列表
...
@@ -33,11 +33,11 @@ export function queryInstanceListAeByPage(query) {
...
@@ -33,11 +33,11 @@ export function queryInstanceListAeByPage(query) {
* @returns {AxiosPromise}
* @returns {AxiosPromise}
*/
*/
export
function
queryInstanceByPage
(
params
)
{
export
function
queryInstanceByPage
(
params
)
{
return
request
({
return
request
({
url
:
`/process/instance/list`
,
url
:
`/process/instance/list`
,
method
:
'get'
,
method
:
'get'
,
params
params
})
})
}
}
/**
/**
* 流程实例 - 获取详情
* 流程实例 - 获取详情
...
@@ -45,10 +45,10 @@ export function queryInstanceByPage(params) {
...
@@ -45,10 +45,10 @@ export function queryInstanceByPage(params) {
* @returns {*}
* @returns {*}
*/
*/
export
function
getProcessNodeByInstanceId
(
instanceId
)
{
export
function
getProcessNodeByInstanceId
(
instanceId
)
{
return
request
({
return
request
({
url
:
`/sysprocessbasic/getProcessNode/
${
instanceId
}
`
,
url
:
`/sysprocessbasic/getProcessNode/
${
instanceId
}
`
,
method
:
'get'
method
:
'get'
})
})
}
}
/**
/**
* 管理员审批
* 管理员审批
...
@@ -56,116 +56,144 @@ export function getProcessNodeByInstanceId(instanceId) {
...
@@ -56,116 +56,144 @@ export function getProcessNodeByInstanceId(instanceId) {
* @returns {*}
* @returns {*}
*/
*/
export
function
approveByAdmin
(
query
)
{
export
function
approveByAdmin
(
query
)
{
// 需要根据传回的url判断是哪个接口
// 需要根据传回的url判断是哪个接口
const
{
url
}
=
query
const
{
url
}
=
query
if
(
query
.
processGroup
===
ProcessGroupEnum
.
MC
)
{
if
(
query
.
processGroup
===
ProcessGroupEnum
.
MC
)
{
return
MCService
({
return
MCService
({
url
:
url
,
url
:
url
,
method
:
'post'
,
method
:
'post'
,
params
:
query
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'
})
})
}
}
else
if
(
query
.
processGroup
===
ProcessGroupEnum
.
DC
)
{
// 1. 工具点检_根据流程实例id查找流程实例审批详情
return
DCService
({
export
function
getToolProcessDetail
(
businessId
)
{
url
:
url
,
return
request
({
method
:
'post'
,
url
:
'/toolInspectMonitor/getDetail/'
+
businessId
,
params
:
query
method
:
'get'
,
})
})
}
}
else
{
// 2. 工具点检_工具点检流程审批
export
function
toolProcessGxApproval
(
approve
)
{
return
request
({
return
request
({
url
:
'/toolInspectMonitor/processToolApproval'
,
url
:
url
,
method
:
'post'
,
method
:
'post'
,
data
:
approve
,
params
:
query
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
})
})
}
}
// 1. 生产辅材_根据流程实例id查找流程实例审批详情
}
export
function
getProcessInstanceStatus
(
instanceId
)
{
return
request
({
url
:
`/sysprocessbasic/getProcessInstanceStatus/
${
instanceId
}
`
,
method
:
'get'
})
}
// 1. 工具点检_根据流程实例id查找流程实例审批详情
export
function
getToolProcessDetail
(
businessId
)
{
return
request
({
url
:
'/toolInspectMonitor/getDetail/'
+
businessId
,
method
:
'get'
,
})
}
// 2. 工具点检_工具点检流程审批
export
function
toolProcessGxApproval
(
approve
)
{
return
request
({
url
:
'/toolInspectMonitor/processToolApproval'
,
method
:
'post'
,
data
:
approve
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
})
}
// 1. 生产辅材_根据流程实例id查找流程实例审批详情
export
function
getMateriaProcessDetail
(
businessId
)
{
export
function
getMateriaProcessDetail
(
businessId
)
{
return
request
({
return
request
({
url
:
'/aeauxiliarymaterial/getDetail/'
+
businessId
,
url
:
'/aeauxiliarymaterial/getDetail/'
+
businessId
,
method
:
'get'
,
method
:
'get'
,
})
})
}
}
// 1. 设备标定_根据流程实例id查找流程实例审批详情
// 1. 设备标定_根据流程实例id查找流程实例审批详情
export
function
getSignProcessDetail
(
businessId
)
{
export
function
getSignProcessDetail
(
businessId
)
{
return
request
({
return
request
({
url
:
'/qc/equipment/sign/getDetail/'
+
businessId
,
url
:
'/qc/equipment/sign/getDetail/'
+
businessId
,
method
:
'get'
,
method
:
'get'
,
})
})
}
}
// 1. 设备TPM_根据流程实例id查找流程实例审批详情
// 1. 设备TPM_根据流程实例id查找流程实例审批详情
export
function
getTpmProcessDetail
(
businessId
)
{
export
function
getTpmProcessDetail
(
businessId
)
{
return
request
({
return
request
({
url
:
'/qc/equipment/tpm/getDetail/'
+
businessId
,
url
:
'/qc/equipment/tpm/getDetail/'
+
businessId
,
method
:
'get'
,
method
:
'get'
,
})
})
}
}
export
function
materiaProcessGxApproval
(
approve
)
{
export
function
materiaProcessGxApproval
(
approve
)
{
return
request
({
return
request
({
url
:
'/aeauxiliarymaterial/processMaterialApproval'
,
url
:
'/aeauxiliarymaterial/processMaterialApproval'
,
method
:
'post'
,
method
:
'post'
,
data
:
approve
,
data
:
approve
,
headers
:
{
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
}
})
})
}
}
export
function
signProcessGxApproval
(
approve
)
{
export
function
signProcessGxApproval
(
approve
)
{
return
request
({
return
request
({
url
:
'/qc/equipment/sign/processCalibrationApproval'
,
url
:
'/qc/equipment/sign/processCalibrationApproval'
,
method
:
'post'
,
method
:
'post'
,
data
:
approve
,
data
:
approve
,
headers
:
{
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
}
})
})
}
}
export
function
tpmProcessGxApproval
(
approve
)
{
export
function
tpmProcessGxApproval
(
approve
)
{
return
request
({
return
request
({
url
:
'/qc/equipment/tpm/processTpmApproval'
,
url
:
'/qc/equipment/tpm/processTpmApproval'
,
method
:
'post'
,
method
:
'post'
,
data
:
approve
,
data
:
approve
,
headers
:
{
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
}
})
})
}
}
export
function
getCompletionDetail
(
businessId
)
{
export
function
getCompletionDetail
(
businessId
)
{
return
request
({
return
request
({
url
:
'/traceability/getCompletion/'
+
businessId
,
url
:
'/traceability/getCompletion/'
+
businessId
,
method
:
'get'
,
method
:
'get'
,
})
})
}
}
export
function
processCompletionApproval
(
approve
)
{
export
function
processCompletionApproval
(
approve
)
{
return
request
({
return
request
({
url
:
'/traceability/processCompletionApproval'
,
url
:
'/traceability/processCompletionApproval'
,
method
:
'post'
,
method
:
'post'
,
data
:
approve
,
data
:
approve
,
headers
:
{
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
}
})
})
}
}
\ No newline at end of file
export
function
getTraceabilityDetail
(
businessId
)
{
return
request
({
url
:
'/traceability/getDetail/'
+
businessId
,
method
:
'get'
,
})
}
/**
* 根据产线id查询工序
* @param query
* @returns {AxiosPromise}
*/
export
function
getGxByProLinId
(
query
)
{
return
request
({
url
:
'/aeprolinegx/getGxByProLinId'
,
method
:
'get'
,
params
:
query
})
}
export
function
processCalibrationApproval
(
approve
)
{
return
request
({
url
:
'/traceability/processCalibrationApproval'
,
method
:
'post'
,
data
:
approve
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
})
}
\ No newline at end of file
pages/approval_detail/drawerShowEngineTrace.vue
View file @
430057e8
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