Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c85ee4da
authored
Jun 09, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
91c4fa36
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
3 deletions
src/components/d2-table/index.vue
src/views/orderManage/carDamage.vue
src/views/orderManage/order.vue
src/views/orderManage/orderList.vue
src/components/d2-table/index.vue
View file @
c85ee4d
...
...
@@ -574,6 +574,8 @@ export default {
pagination
:
{},
// 多选数组
mutiSelectArr
:
{},
/** 请求序列号:防止快速切换时旧请求覆盖新数据 */
_refreshSeq
:
0
,
};
},
computed
:
{
...
...
@@ -688,6 +690,7 @@ export default {
},
refreshTable
(
clearMuti
=
false
,
resetCurrentPage
=
false
)
{
const
seq
=
++
this
.
_refreshSeq
this
.
beforeSearchFn
().
then
((
res
)
=>
{
// console.log(res)
// 清空多选
...
...
@@ -710,6 +713,7 @@ export default {
}
this
.
getListApi
(
params
)
.
then
((
res
)
=>
{
if
(
seq
!==
this
.
_refreshSeq
)
return
this
.
pagination
=
{
currentPage
:
res
.
pageNum
,
pageSize
:
res
.
pageSize
,
...
...
@@ -734,9 +738,11 @@ export default {
this
.
$emit
(
"setTableFinishFun"
,
this
.
data
,
this
.
page
.
currentPage
);
})
.
catch
(()
=>
{
if
(
seq
!==
this
.
_refreshSeq
)
return
this
.
loading
=
false
;
})
.
finally
(()
=>
{
if
(
seq
!==
this
.
_refreshSeq
)
return
this
.
$emit
(
"apiFinish"
,
this
.
data
);
});
});
...
...
src/views/orderManage/carDamage.vue
View file @
c85ee4d
...
...
@@ -1030,6 +1030,8 @@ export default {
pageSize
:
20
,
currentPage
:
1
,
approvalVisible
:
false
,
/** 请求序列号:防止快速查询时旧请求覆盖新数据 */
_searchSeq
:
0
,
}
;
}
,
computed
:
{
...
...
@@ -1504,11 +1506,13 @@ export default {
this
.
getList
();
}
,
getList
()
{
const
seq
=
++
this
.
_searchSeq
let
params
=
this
.
getParams
();
let
eventParams
=
deepClone
({
...
this
.
page
,
...
params
}
);
if
(
eventParams
?.
zyVoucherStatus
==
1
)
eventParams
.
status
=
13
;
getList
(
eventParams
).
then
((
res
)
=>
{
if
(
seq
!==
this
.
_searchSeq
)
return
this
.
tableData
=
res
.
list
.
map
((
item
)
=>
{
item
.
paySuccessDate
=
item
.
paySuccessDate
?
Util
.
dateFormate
(
item
.
paySuccessDate
,
"YYYY-MM-DD HH:mm:ss"
)
...
...
@@ -1521,11 +1525,13 @@ export default {
}
);
}
,
getOrderCount
()
{
const
seq
=
++
this
.
_searchSeq
let
params
=
this
.
getParams
();
let
eventParams
=
deepClone
({
...
params
}
);
if
(
eventParams
?.
zyVoucherStatus
==
1
)
eventParams
.
status
=
13
;
getOrderCount
(
eventParams
).
then
((
res
)
=>
{
if
(
seq
!==
this
.
_searchSeq
)
return
this
.
totalCount
=
res
.
totalPriceCount
;
}
);
}
,
...
...
src/views/orderManage/order.vue
View file @
c85ee4d
...
...
@@ -966,6 +966,8 @@ export default {
pageSize
:
20
,
currentPage
:
1
,
approvalVisible
:
false
,
/** 请求序列号:防止快速查询时旧请求覆盖新数据 */
_searchSeq
:
0
,
}
;
}
,
computed
:
{
...
...
@@ -1358,6 +1360,7 @@ export default {
this
.
getList
();
}
,
getList
()
{
const
seq
=
++
this
.
_searchSeq
let
params
=
this
.
getParams
();
params
=
{
...
this
.
page
,
...
...
@@ -1365,6 +1368,7 @@ export default {
}
;
// console.log(params)
getList
(
params
).
then
((
res
)
=>
{
if
(
seq
!==
this
.
_searchSeq
)
return
this
.
tableData
=
res
.
list
.
map
((
item
)
=>
{
item
.
paySuccessDate
=
item
.
paySuccessDate
?
Util
.
dateFormate
(
item
.
paySuccessDate
,
"YYYY-MM-DD HH:mm:ss"
)
...
...
@@ -1383,11 +1387,13 @@ export default {
}
);
}
,
getOrderCount
()
{
const
seq
=
++
this
.
_searchSeq
let
params
=
this
.
getParams
();
params
=
{
...
params
,
}
;
getOrderCount
(
params
).
then
((
res
)
=>
{
if
(
seq
!==
this
.
_searchSeq
)
return
this
.
totalCount
=
res
.
totalPriceCount
;
}
);
}
,
...
...
src/views/orderManage/orderList.vue
View file @
c85ee4d
...
...
@@ -142,7 +142,9 @@ export default {
light
:
[]
},
/** 路由带入:匹配完成后清空 */
pendingLegacyLeaf
:
null
pendingLegacyLeaf
:
null
,
/** 请求序列号:防止快速切换时旧请求覆盖新数据 */
_loadScenesSeq
:
0
}
},
computed
:
{
...
...
@@ -274,11 +276,13 @@ export default {
if
(
category
===
"renewal"
)
{
return
}
const
seq
=
++
this
.
_loadScenesSeq
this
.
scenesLoading
=
category
===
"light"
this
.
rightsScenesLoading
=
category
===
"rights"
try
{
if
(
category
===
"light"
)
{
const
res
=
await
sceneListWithOrder
({
bizTypeCode
:
"1"
})
if
(
seq
!==
this
.
_loadScenesSeq
)
return
const
arr
=
normalizeSceneResponse
(
res
)
const
mapped
=
arr
.
map
(
s
=>
buildSceneLeafItem
(
s
,
"light"
))
this
.
sceneSubs
.
light
=
mapped
.
length
?
mapped
:
[...
FALLBACK_LIGHT
]
...
...
@@ -287,10 +291,12 @@ export default {
sceneListWithOrder
({
bizTypeCode
:
"2"
,
businessType
:
1
}),
sceneListWithOrder
({
bizTypeCode
:
"2"
,
businessType
:
2
})
])
if
(
seq
!==
this
.
_loadScenesSeq
)
return
this
.
rightsScenesForEquity
=
normalizeSceneResponse
(
res1
)
this
.
rightsScenesForWarranty
=
normalizeSceneResponse
(
res2
)
}
}
catch
(
e
)
{
if
(
seq
!==
this
.
_loadScenesSeq
)
return
if
(
category
===
"light"
)
{
this
.
sceneSubs
.
light
=
[...
FALLBACK_LIGHT
]
}
else
{
...
...
@@ -298,8 +304,10 @@ export default {
this
.
rightsScenesForWarranty
=
[]
}
}
finally
{
this
.
scenesLoading
=
false
this
.
rightsScenesLoading
=
false
if
(
seq
===
this
.
_loadScenesSeq
)
{
this
.
scenesLoading
=
false
this
.
rightsScenesLoading
=
false
}
}
},
ensureLeafInCategory
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment