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
072e77a0
Commit
072e77a0
authored
Mar 31, 2025
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(审批详情):追溯审批1
parent
106e6be8
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
531 additions
and
245 deletions
+531
-245
approve.js
api/system/approve.js
+16
-0
production-approval.vue
components/home-approval/production-approval.vue
+4
-4
drawerShow.vue
pages/approval_detail/drawerShow.vue
+3
-3
drawerShowTraceError.vue
pages/approval_detail/drawerShowTraceError.vue
+508
-238
fileIcon.png
static/images/fileIcon.png
+0
-0
No files found.
api/system/approve.js
View file @
072e77a0
...
@@ -152,4 +152,20 @@ export function getTpmProcessDetail(businessId) {
...
@@ -152,4 +152,20 @@ export function getTpmProcessDetail(businessId) {
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
}
})
})
}
export
function
getCompletionDetail
(
businessId
)
{
return
request
({
url
:
'/traceability/getCompletion/'
+
businessId
,
method
:
'get'
,
})
}
export
function
processCompletionApproval
(
approve
)
{
return
request
({
url
:
'/traceability/processCompletionApproval'
,
method
:
'post'
,
data
:
approve
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
// 接口修改传参类型
}
})
}
}
\ No newline at end of file
components/home-approval/production-approval.vue
View file @
072e77a0
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
mesType
:
'1'
,
mesType
:
'1'
,
processGroup
:
'1'
,
processGroup
:
'1'
}
,
}
,
defaultPageSize
:
10
,
defaultPageSize
:
10
,
// 底部加载
// 底部加载
...
@@ -129,14 +129,14 @@ export default {
...
@@ -129,14 +129,14 @@ export default {
methods
:
{
methods
:
{
goDetail
(
processId
,
processCode
,
processStatus
,
allowApprove
,
processName
)
{
goDetail
(
processId
,
processCode
,
processStatus
,
allowApprove
,
processName
)
{
let
path
=
''
let
path
=
''
if
(
this
.
processCode
===
'00016'
||
this
.
processCode
===
'00017'
)
{
if
(
processCode
===
'00016'
||
processCode
===
'00017'
)
{
// 00016(铸造科对发动机装配科发起追溯) 00017(机加工科对发动机装配科发起追溯) => drawerShowEngineTrace
// 00016(铸造科对发动机装配科发起追溯) 00017(机加工科对发动机装配科发起追溯) => drawerShowEngineTrace
path
=
'drawerShowEngineTrace'
path
=
'drawerShowEngineTrace'
}
else
if
(
this
.
processCode
!==
'00019'
)
{
}
else
if
(
processCode
!==
'00019'
)
{
// processCode.value !== '00019' =>drawerShow
// processCode.value !== '00019' =>drawerShow
path
=
'drawerShow'
path
=
'drawerShow'
}
else
{
}
else
{
console
.
log
(
'3'
,
this
.
processCode
)
console
.
log
(
'3'
,
processCode
)
// 00019(追溯完成度异常提醒) => drawerShowTraceError
// 00019(追溯完成度异常提醒) => drawerShowTraceError
path
=
'drawerShowTraceError'
path
=
'drawerShowTraceError'
}
}
...
...
pages/approval_detail/drawerShow.vue
View file @
072e77a0
...
@@ -423,8 +423,8 @@
...
@@ -423,8 +423,8 @@
></u-datetime-picker>
></u-datetime-picker>
<!-- 按钮区域 -->
<!-- 按钮区域 -->
<view
class=
"btns-container"
>
<view
class=
"btns-container"
>
<view
class=
"btn reject-btn"
@
click=
"handleClose('REJECT')"
>
反
回
</view>
<view
class=
"btn reject-btn"
v-if=
"processStatus && isUpdate"
@
click=
"handleClose('REJECT')"
>
返
回
</view>
<view
class=
"btn approve-btn"
:loading=
"btnLoading"
@
click=
"handleConfirm('CONSENT')"
>
确定
</view>
<view
class=
"btn approve-btn"
v-if=
"processStatus && isUpdate"
:loading=
"btnLoading"
@
click=
"handleConfirm('CONSENT')"
>
确定
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -453,7 +453,7 @@
...
@@ -453,7 +453,7 @@
this
.
processId
=
option
.
processId
;
this
.
processId
=
option
.
processId
;
this
.
processCode
=
option
.
processCode
;
this
.
processCode
=
option
.
processCode
;
this
.
processStatus
=
option
.
processStatus
;
this
.
processStatus
=
option
.
processStatus
;
this
.
isUpdate
=
option
.
allowApprove
;
this
.
isUpdate
=
option
.
allowApprove
&&
option
.
processStatus
===
'0'
;
this
.
processName
=
option
.
processName
;
this
.
processName
=
option
.
processName
;
this
.
getList
();
this
.
getList
();
this
.
getInstanceDetail
();
this
.
getInstanceDetail
();
...
...
pages/approval_detail/drawerShowTraceError.vue
View file @
072e77a0
This diff is collapsed.
Click to expand it.
static/images/fileIcon.png
0 → 100644
View file @
072e77a0
529 Bytes
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