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
89294617
Commit
89294617
authored
May 09, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单承接):列表查询
parent
cd7734b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
14 deletions
+62
-14
list.js
src/api/noticeAcceptance/list.js
+7
-0
index.vue
.../controlPlan/controlPlanNotice/noticeAcceptance/index.vue
+55
-14
No files found.
src/api/noticeAcceptance/list.js
View file @
89294617
...
...
@@ -8,3 +8,10 @@ export function list(query) {
params
:
query
})
}
// 事业部列表-当前用户权限
export
function
currentUnitInfo
()
{
return
request
({
url
:
'/control/unit/currentUnitInfo'
,
method
:
'get'
})
}
src/views/controlPlan/controlPlanNotice/noticeAcceptance/index.vue
View file @
89294617
...
...
@@ -90,30 +90,30 @@
<el-form-item
label=
"批准人:"
prop=
"approvalUserName"
>
<el-input
placeholder=
"请输入"
v-model=
"queryParams.approvalUserName"
style=
"width: 120px"
/>
</el-form-item>
<el-form-item
label=
"控制计划创建状态:"
prop=
"
notificatio
nStatus"
>
<el-form-item
label=
"控制计划创建状态:"
prop=
"
controlPla
nStatus"
>
<el-select
v-model=
"queryParams.
notificatio
nStatus"
v-model=
"queryParams.
controlPla
nStatus"
placeholder=
"请选择"
clearable
style=
"width: 120px"
>
<el-option
v-for=
"dict in
notification_status
"
v-for=
"dict in
kongzhiList
"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"封面创建状态:"
prop=
"
notification
Status"
>
<el-form-item
label=
"封面创建状态:"
prop=
"
cover
Status"
>
<el-select
v-model=
"queryParams.
notification
Status"
v-model=
"queryParams.
cover
Status"
placeholder=
"请选择"
clearable
style=
"width: 120px"
>
<el-option
v-for=
"dict in
notification_status
"
v-for=
"dict in
kongzhiList
"
:label=
"dict.label"
:value=
"dict.value"
/>
...
...
@@ -196,7 +196,7 @@
:sort-method=
"(a, b) => a.changeType.localeCompare(b.changeType)"
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
.
vehicleAnnouncementNumber
||
'--'
}}
</span>
<span>
{{
scope
.
row
.
changeType
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -262,7 +262,7 @@
<el-table-column
label=
"操作"
align=
"center"
width=
"200"
>
<
template
#
default=
"scope"
>
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleView(scope.row)"
>
触发控制计划
</el-button>
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleView(scope.row)"
>
触发封面
</el-button>
<el-button
v-if=
"scope.row.changeType.includes('新增')"
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleView(scope.row)"
>
触发封面
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -280,14 +280,22 @@
</template>
<
script
setup
>
import
{
list
list
,
currentUnitInfo
}
from
"@/api/noticeAcceptance/list.js"
import
{
getAllModelCode
}
from
"@/api/notificationManagement/list.js"
;
import
{
ref
}
from
"vue"
;
const
{
proxy
}
=
getCurrentInstance
();
// 从全局字典中获取事业部 icar 才能选择的车型系列数据
const
{
vehicle_model_series_icar
}
=
proxy
.
useDict
(
'vehicle_model_series_icar'
)
// 从全局字典中获取除事业部 icar 外可选择的车型系列数据
const
{
vehicle_model_series
}
=
proxy
.
useDict
(
'vehicle_model_series'
)
// 从全局字典中获取认证机构相关的数据
const
{
certification_body
}
=
proxy
.
useDict
(
'certification_body'
)
// 从全局字典中获取通知单状态相关的数据
const
{
notification_status
}
=
proxy
.
useDict
(
'notification_status'
)
const
unitList
=
ref
([])
const
total
=
ref
()
const
queryParams
=
ref
({
pageNum
:
1
,
...
...
@@ -295,10 +303,17 @@ const queryParams = ref({
})
const
tableList
=
ref
([])
const
modelCodeList
=
ref
([])
const
vehicleModelSeriesList
=
ref
([])
const
kongzhiList
=
[
{
value
:
'0'
,
label
:
'待创建'
},
{
value
:
'1'
,
label
:
'创建完成'
}
]
function
getDictList
(
v
){
//车型系列-除了事业部icar选这个
...
...
@@ -308,6 +323,17 @@ function getDictList(v){
return
true
}
else
return
false
}
function
handleQuery
(){
queryParams
.
value
.
pageNum
=
1
getList
()
}
function
resetQuery
(){
queryParams
.
value
=
{
pageNum
:
1
,
pageSize
:
10
}
getList
()
}
function
getList
(){
list
(
queryParams
.
value
).
then
(
res
=>
{
...
...
@@ -316,6 +342,21 @@ function getList(){
tableList
.
value
=
res
.
rows
})
}
//获取事业部列表
function
getUnitDataList
(){
currentUnitInfo
().
then
(
res
=>
{
console
.
log
(
res
)
unitList
.
value
=
res
.
data
})
}
function
getALLModelCodeList
(){
getAllModelCode
().
then
(
res
=>
{
modelCodeList
.
value
=
res
.
data
})
}
getALLModelCodeList
()
getUnitDataList
()
getList
()
</
script
>
...
...
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