Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
5476eb33
Commit
5476eb33
authored
Aug 06, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
70c7e103
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
264 additions
and
252 deletions
+264
-252
OrderList.vue
src/components/CarDealerOrder/components/OrderList.vue
+236
-237
ReservationOrder.vue
...components/CarDealerOrder/components/ReservationOrder.vue
+28
-15
No files found.
src/components/CarDealerOrder/components/OrderList.vue
View file @
5476eb33
This diff is collapsed.
Click to expand it.
src/components/CarDealerOrder/components/ReservationOrder.vue
View file @
5476eb33
...
...
@@ -362,27 +362,37 @@ export default {
let
url
// 销售 OP
if
(
this
.
pagesTitle
==
'销售'
)
{
url
=
"JapanCar_get_GetJapanOrderPageList"
url
=
"JapanCar_get_GetJapanOrder
Main
PageList"
}
else
{
url
=
"JapanCar_get_GetJapanOrderPageList"
url
=
"JapanCar_get_GetJapanOrder
Main
PageList"
}
this
.
apipost
(
url
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
.
pageData
let
addLists
=
function
(
arr
){
arr
.
forEach
(
x
=>
{
x
.
typeInfo
=
''
})
}
let
addList
=
function
(
arr
){
arr
.
forEach
(
x
=>
{
x
.
typeInfo
=
''
x
.
paymentInfo
=
{}
x
.
list
=
[]
x
.
isMore
=
false
x
.
upIcon
=
false
x
.
NewOrderDetailList
=
[]
})
}
addList
(
data
)
data
.
forEach
(
item
=>
{
item
.
typeInfo
=
this
.
OrderStatusType
.
find
(
y
=>
y
.
ID
==
item
.
OrderState
)
??
this
.
OrderStatusType
[
1
]
item
.
paymentInfo
=
this
.
PaymentMethods
.
find
(
y
=>
y
.
Id
==
item
.
PayWay
)
??
this
.
PaymentMethods
[
1
]
// addLists(data)
data
.
forEach
(
k
=>
{
addList
(
k
.
OrderList
)
// k.typeInfo = this.OrderStatusType.find(y => y.ID == k.OrderState) ?? this.OrderStatusType[1]
k
.
OrderList
.
forEach
(
item
=>
{
// item.typeInfo = this.OrderStatusType.find(y => y.ID == item.OrderState) ?? this.OrderStatusType[1]
// item.paymentInfo = this.PaymentMethods.find(y => y.Id == k.PayWay) ?? this.PaymentMethods[1]
if
(
item
.
OrderDetailList
.
length
>
2
){
item
.
isMore
=
true
}
...
...
@@ -396,7 +406,10 @@ export default {
item
.
NewOrderDetailList
=
JSON
.
parse
(
JSON
.
stringify
(
dataLists
))
})
})
this
.
OrderList
=
data
;
console
.
log
(
data
,
'--------------'
)
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
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