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
2839feb3
Commit
2839feb3
authored
Apr 30, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单内容维护):列表对接
parent
c2f0d3f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
20 deletions
+80
-20
list.js
src/api/notificationContent/list.js
+18
-0
info.vue
...ontrolPlan/controlPlanNotice/notificationContent/info.vue
+62
-20
No files found.
src/api/notificationContent/list.js
View file @
2839feb3
...
@@ -32,3 +32,21 @@ export function getCurrentLoginUser() {
...
@@ -32,3 +32,21 @@ export function getCurrentLoginUser() {
})
})
}
}
// 新增变更记录
export
function
addChangeRecord
(
data
)
{
return
request
({
url
:
'/control/sysNotificationContent/addChangeRecord'
,
method
:
'post'
,
data
:
data
})
}
// 查询列表-维护变更记录
export
function
getInList
(
data
)
{
return
request
({
url
:
'/control/sysNotificationContent/getInList'
,
method
:
'get'
,
params
:
data
})
}
src/views/controlPlan/controlPlanNotice/notificationContent/info.vue
View file @
2839feb3
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
style=
"width: 120px"
style=
"width: 120px"
>
>
<el-option
<el-option
v-for=
"dict in c
ertification_body
"
v-for=
"dict in c
hangeType
"
:label=
"dict
.label
"
:label=
"dict"
:value=
"dict
.value
"
:value=
"dict"
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -86,23 +86,33 @@
...
@@ -86,23 +86,33 @@
<el-table
:data=
"tableList"
>
<el-table
:data=
"tableList"
>
<el-table-column
type=
"index"
width=
"55"
align=
"center"
label=
"序号"
/>
<el-table-column
type=
"index"
width=
"55"
align=
"center"
label=
"序号"
/>
<el-table-column
label=
"车型公告号"
align=
"center"
prop=
"notificationNumber"
>
<el-table-column
label=
"车型公告号"
align=
"center"
prop=
"vehicleAnnouncementNumber"
>
</el-table-column>
<el-table-column
label=
"动力类型"
align=
"center"
prop=
"powerType"
>
<template
#
default=
"scope"
>
<dict-tag
:options=
"power_type"
:value=
"scope.row.powerType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"变更类型"
align=
"center"
prop=
"changeType"
/>
<el-table-column
label=
"车辆类型"
align=
"center"
prop=
"vehicleType"
>
<
template
#
default=
"scope"
>
<dict-tag
:options=
"car_type"
:value=
"scope.row.vehicleType"
/>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"动力类型"
align=
"center"
prop=
"certificationBody"
/>
<el-table-column
label=
"项目负责人"
align=
"center"
prop=
"projectResponsiblePerson"
/>
<el-table-column
label=
"变更类型"
align=
"center"
prop=
"businessUnitName"
/>
<el-table-column
label=
"RTX/TEL"
align=
"center"
prop=
"rtxTel"
>
<el-table-column
label=
"车辆类型"
align=
"center"
prop=
"brand"
/>
<el-table-column
label=
"项目负责人"
align=
"center"
prop=
"vehicleModelCode"
/>
<el-table-column
label=
"RTX/TEL"
align=
"center"
prop=
"vehicleSeries"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<dict-tag
:options=
"getDictList(scope.row.vehicleSeries)?vehicle_model_series_icar:vehicle_model_series"
:value=
"scope.row.vehicleSeries"
/>
{{
scope
.
row
.
rtxTel
||
'--'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"认证负责人"
align=
"center"
prop=
"
productionAddress"
width=
"150"
/>
<el-table-column
label=
"认证负责人"
align=
"center"
prop=
"
certificationResponsiblePersonName"
/>
<el-table-column
label=
"完成时间"
align=
"center"
prop=
"c
hangeTyp
e"
>
<el-table-column
label=
"完成时间"
align=
"center"
prop=
"c
ompletionTim
e"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
.
vehicleAnnouncementNumber
||
'--'
}}
</span>
{{
scope
.
row
.
completionTime
||
'--'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"160"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"160"
>
...
@@ -257,29 +267,46 @@
...
@@ -257,29 +267,46 @@
</div>
</div>
</
template
>
</
template
>
</el-drawer>
</el-drawer>
<pagination
v-show=
"total>0"
:total=
"total"
v-model:page=
"queryParams.pageNum"
v-model:limit=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</div>
</div>
</template>
</template>
<
script
setup
>
<
script
setup
>
import
{
import
{
getTopDetailInfo
,
getTopDetailInfo
,
getVehicleModelAnnouncementNumber
,
getVehicleModelAnnouncementNumber
,
getCurrentLoginUser
getCurrentLoginUser
,
addChangeRecord
,
getInList
}
from
"@/api/notificationContent/list.js"
}
from
"@/api/notificationContent/list.js"
import
{
useRoute
}
from
'vue-router'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
ElMessage
}
from
"element-plus"
;
// 获取当前路由实例
const
route
=
useRoute
();
const
total
=
ref
(
0
)
const
drawerTitle
=
ref
(
''
)
const
drawerTitle
=
ref
(
''
)
const
drawer
=
ref
(
false
)
const
drawer
=
ref
(
false
)
const
drawerQueryRef
=
ref
()
const
drawerQueryRef
=
ref
()
const
tableList
=
ref
([])
const
tableList
=
ref
([])
// 从路由参数中获取 id
const
id
=
route
.
query
.
id
;
const
topDetailInfo
=
ref
({})
const
topDetailInfo
=
ref
({})
const
{
proxy
}
=
getCurrentInstance
();
const
{
proxy
}
=
getCurrentInstance
();
const
modelAnnouncementNumber
=
ref
([])
const
modelAnnouncementNumber
=
ref
([])
const
drawerQueryParams
=
ref
({
const
drawerQueryParams
=
ref
({
notificationId
:
id
})
})
const
changeType
=
ref
([
const
changeType
=
ref
([
"扩展"
,
"新增"
"扩展"
,
"新增"
])
])
const
{
power_type
}
=
proxy
.
useDict
(
'power_type'
)
const
{
power_type
}
=
proxy
.
useDict
(
'power_type'
)
const
{
car_type
}
=
proxy
.
useDict
(
'car_type'
)
const
{
car_type
}
=
proxy
.
useDict
(
'car_type'
)
const
{
notification_status
}
=
proxy
.
useDict
(
'notification_status'
)
const
{
notification_status
}
=
proxy
.
useDict
(
'notification_status'
)
...
@@ -288,10 +315,8 @@ const currentLoginInfo = ref([])
...
@@ -288,10 +315,8 @@ const currentLoginInfo = ref([])
const
{
vehicle_model_series_icar
}
=
proxy
.
useDict
(
'vehicle_model_series_icar'
)
const
{
vehicle_model_series_icar
}
=
proxy
.
useDict
(
'vehicle_model_series_icar'
)
// 从全局字典中获取除事业部 icar 外可选择的车型系列数据
// 从全局字典中获取除事业部 icar 外可选择的车型系列数据
const
{
vehicle_model_series
}
=
proxy
.
useDict
(
'vehicle_model_series'
)
const
{
vehicle_model_series
}
=
proxy
.
useDict
(
'vehicle_model_series'
)
// 获取当前路由实例
const
route
=
useRoute
();
// 从路由参数中获取 id
const
id
=
route
.
query
.
id
;
const
queryParams
=
ref
({
const
queryParams
=
ref
({
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
...
@@ -365,10 +390,18 @@ const getLabelByKey = (key) => {
...
@@ -365,10 +390,18 @@ const getLabelByKey = (key) => {
function
confirmClick
()
{
function
confirmClick
()
{
drawerQueryRef
.
value
.
validate
((
valid
)
=>
{
drawerQueryRef
.
value
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
// 处理提交逻辑
// 处理提交逻辑
console
.
log
(
drawerQueryParams
.
value
)
addChangeRecord
(
drawerQueryParams
.
value
).
then
(
res
=>
{
console
.
log
(
"提交后"
,
res
)
if
(
res
.
code
===
200
){
ElMessage
.
success
(
'提交成功'
)
getList
()
drawer
.
value
=
false
}
})
}
else
{
}
else
{
return
false
return
false
}
}
...
@@ -386,8 +419,17 @@ function getCurrentLoginInfo(){
...
@@ -386,8 +419,17 @@ function getCurrentLoginInfo(){
function
cancelClick
()
{
function
cancelClick
()
{
drawerQueryRef
.
value
.
resetFields
();
drawerQueryRef
.
value
.
resetFields
();
drawer
.
value
=
false
;
drawer
.
value
=
false
;
getList
()
}
}
function
getList
(){
getInList
(
queryParams
.
value
).
then
(
res
=>
{
console
.
log
(
res
)
tableList
.
value
=
res
.
rows
total
.
value
=
res
.
total
})
}
getList
()
getCurrentLoginInfo
()
getCurrentLoginInfo
()
getTopInfo
()
getTopInfo
()
getChexing
()
getChexing
()
...
...
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