Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
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
刘怀志
qr-consistency-vue3
Commits
f5dbca65
Commit
f5dbca65
authored
May 07, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单管理):提交人撤回
parent
64b4380f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
8 deletions
+86
-8
list.js
src/api/notificationContent/list.js
+8
-0
index.vue
...olPlan/controlPlanNotice/notificationManagement/index.vue
+23
-3
info.vue
...rolPlan/controlPlanNotice/notificationManagement/info.vue
+55
-5
No files found.
src/api/notificationContent/list.js
View file @
f5dbca65
...
@@ -81,3 +81,11 @@ export function getDetailList(data) {
...
@@ -81,3 +81,11 @@ export function getDetailList(data) {
params
:
data
params
:
data
})
})
}
}
// 修改通知单状态
export
function
updateStatus
(
data
)
{
return
request
({
url
:
'/control/notificationManagement/updateStatus'
,
method
:
'put'
,
params
:
data
})
}
src/views/controlPlan/controlPlanNotice/notificationManagement/index.vue
View file @
f5dbca65
...
@@ -251,7 +251,7 @@
...
@@ -251,7 +251,7 @@
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleDetail(scope.row)"
>
查看详情
</el-button>
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleDetail(scope.row)"
>
查看详情
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.notificationStatus === '1' || scope.row.notificationStatus === '4'"
style=
"color: rgb(255,54,54)"
@
click=
"delNotification(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.notificationStatus === '1' || scope.row.notificationStatus === '4'"
style=
"color: rgb(255,54,54)"
@
click=
"delNotification(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.notificationStatus === '2'"
style=
"color: rgb(255,153,0)"
@
click=
"
copeAdd
(scope.row)"
>
撤回
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.notificationStatus === '2'"
style=
"color: rgb(255,153,0)"
@
click=
"
revocation
(scope.row)"
>
撤回
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.notificationStatus === '3'"
style=
"color: rgb(255,153,0)"
@
click=
"copeAdd(scope.row)"
>
作废
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.notificationStatus === '3'"
style=
"color: rgb(255,153,0)"
@
click=
"copeAdd(scope.row)"
>
作废
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -509,6 +509,10 @@
...
@@ -509,6 +509,10 @@
<
script
setup
>
<
script
setup
>
import
DeleteDialog
from
'@/components/DeleteDialog/index.vue'
;
import
DeleteDialog
from
'@/components/DeleteDialog/index.vue'
;
import
SelectRole
from
"@/components/SelectRole/index.vue"
import
SelectRole
from
"@/components/SelectRole/index.vue"
import
{
updateStatus
}
from
"@/api/notificationContent/list.js"
import
{
import
{
addCertificationManager
,
addCertificationManager
,
brandData
,
brandData
,
...
@@ -520,7 +524,7 @@ import {
...
@@ -520,7 +524,7 @@ import {
insert
,
insert
,
list
,
list
,
delCertificationManager
,
delCertificationManager
,
updateCertificationManager
,
deleteNotificationManagementById
,
deleteNotificationManagementById
,
isOkDel
isOkDel
}
from
"@/api/notificationManagement/list.js"
}
from
"@/api/notificationManagement/list.js"
...
@@ -616,6 +620,21 @@ function handleQuery(){
...
@@ -616,6 +620,21 @@ function handleQuery(){
queryParams
.
value
.
pageNum
=
1
queryParams
.
value
.
pageNum
=
1
getList
()
getList
()
}
}
//撤回-变为待收集
function
revocation
(
row
){
//通知单状态1收集2待批准3已批准4已作废
let
obj
=
{
id
:
row
.
id
,
status
:
'1'
}
updateStatus
(
obj
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
ElMessage
.
success
(
'撤回成功'
)
getList
()
}
})
}
//重置
//重置
function
resetQuery
(){
function
resetQuery
(){
...
@@ -694,7 +713,8 @@ function handleDetail(row){
...
@@ -694,7 +713,8 @@ function handleDetail(row){
router
.
push
({
router
.
push
({
path
:
'/control/controlPlanNotice/managerInfo'
,
path
:
'/control/controlPlanNotice/managerInfo'
,
query
:
{
query
:
{
id
:
row
.
id
id
:
row
.
id
,
notificationStatus
:
row
.
notificationStatus
}
}
});
});
}
}
...
...
src/views/controlPlan/controlPlanNotice/notificationManagement/info.vue
View file @
f5dbca65
...
@@ -54,11 +54,17 @@
...
@@ -54,11 +54,17 @@
<el-button
@
click=
"resetQuery"
class=
"btn-B"
>
重置
</el-button>
<el-button
@
click=
"resetQuery"
class=
"btn-B"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<!-- 为该表单项添加 right-align 类 -->
<el-form-item
v-if=
"pageType ==='maintain'"
class=
"button-container right-align"
style=
"position: relative;"
>
<el-form-item
v-if=
"isAllOk() && notificationStatus ==='1'"
class=
"button-container right-align"
style=
"position: relative;"
>
<div
>
<el-button
type=
"primary"
class=
"btn-A"
@
click=
"tijiao"
>
提交
</el-button>
</div>
</el-form-item>
<el-form-item
v-if=
" notificationStatus ==='2'"
class=
"button-container right-align"
style=
"position: relative;"
>
<div
>
<div
>
<el-button
type=
"primary"
class=
"btn-C"
@
click=
"addWeiHu"
>
添加
</el-button>
<el-button
type=
"primary"
class=
"btn-C"
@
click=
"revocation"
>
撤回
</el-button>
<el-button
@
click=
"finishWeiHu"
class=
"btn-A"
>
完成维护
</el-button>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -121,7 +127,8 @@ import {
...
@@ -121,7 +127,8 @@ import {
getVehicleModelAnnouncementNumber
,
getVehicleModelAnnouncementNumber
,
getCurrentLoginUser
,
getCurrentLoginUser
,
completeTheMaintenance
,
completeTheMaintenance
,
getDetailList
getDetailList
,
updateStatus
}
from
"@/api/notificationContent/list.js"
}
from
"@/api/notificationContent/list.js"
import
{
useRoute
,
useRouter
}
from
'vue-router'
;
import
{
useRoute
,
useRouter
}
from
'vue-router'
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
ElMessage
}
from
"element-plus"
;
...
@@ -135,6 +142,8 @@ const drawerQueryRef =ref()
...
@@ -135,6 +142,8 @@ const drawerQueryRef =ref()
const
tableList
=
ref
([])
const
tableList
=
ref
([])
// 从路由参数中获取 id
// 从路由参数中获取 id
const
id
=
route
.
query
.
id
;
const
id
=
route
.
query
.
id
;
//通知单状态1收集2待批准3已批准4已作废
const
notificationStatus
=
route
.
query
.
notificationStatus
;
//页面类型
//页面类型
const
pageType
=
route
.
query
.
type
;
const
pageType
=
route
.
query
.
type
;
const
topDetailInfo
=
ref
({})
const
topDetailInfo
=
ref
({})
...
@@ -197,6 +206,36 @@ function finishWeiHu(){
...
@@ -197,6 +206,36 @@ function finishWeiHu(){
}
}
})
})
}
}
//提交-变为收集中
function
tijiao
(){
//通知单状态1收集2待批准3已批准4已作废
let
obj
=
{
id
:
id
,
status
:
'2'
}
updateStatus
(
obj
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
ElMessage
.
success
(
'提交成功'
)
goBack
()
}
})
}
//撤回-变为待收集
function
revocation
(){
//通知单状态1收集2待批准3已批准4已作废
let
obj
=
{
id
:
id
,
status
:
'1'
}
updateStatus
(
obj
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
ElMessage
.
success
(
'撤回成功'
)
goBack
()
}
})
}
//重置
//重置
function
resetQuery
(){
function
resetQuery
(){
...
@@ -211,8 +250,19 @@ function resetQuery(){
...
@@ -211,8 +250,19 @@ function resetQuery(){
}
}
getList
()
getList
()
}
}
function
isAllOk
(){
//判断所有的认证人是否都已经提交了
let
list
=
topDetailInfo
.
value
.
renzhengStatusList
for
(
let
item
of
list
){
if
(
item
.
certificationStatus
===
'0'
){
return
false
}
}
return
true
}
function
getTopInfo
(){
function
getTopInfo
(){
getTopDetailInfo
(
id
).
then
(
res
=>
{
getTopDetailInfo
(
id
).
then
(
res
=>
{
topDetailInfo
.
value
=
res
.
data
topDetailInfo
.
value
=
res
.
data
})
})
...
...
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