Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-customer-new-master
Commits
fbcb4d3d
Commit
fbcb4d3d
authored
Jan 20, 2025
by
Smile
Committed by
wux
Jan 21, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug214 (app/h5)首页/我的订单各个tab查询订单接口status字段返回32时,前端无状态值显示
parent
d4cf105d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
8 deletions
+64
-8
index.vue
src/pages/index/index.vue
+31
-3
order.vue
src/pages/order/order.vue
+33
-5
No files found.
src/pages/index/index.vue
View file @
fbcb4d3d
...
...
@@ -130,7 +130,7 @@
<view
class=
"item-body"
>
<view
class=
"item-body-v"
>
{{
item
.
departureName
}}
</view>
<view
class=
"item-body-v-2"
>
<view
class=
""
>
{{
getStatusName
(
item
.
status
)
}}
</view>
<view
class=
""
>
{{
getStatusName
(
item
)
}}
</view>
<image
src=
"../../static/img/jiant1.png"
mode=
"widthFix"
></image>
</view>
<view
class=
"item-body-v"
>
{{
item
.
objectiveName
}}
</view>
...
...
@@ -548,7 +548,8 @@ export default {
}
})
},
getStatusName
(
status
)
{
getStatusName
(
item
)
{
let
status
=
this
.
getRealStatus
(
item
);
var
statusName
=
''
let
that
=
this
if
(
that
.
statusData
.
length
>
0
)
{
...
...
@@ -610,7 +611,7 @@ export default {
},
getOrderData
()
{
this
.
$request
.
get
(
'
/app-api/my/order/dynamic/page
'
,
{
page
:
this
.
page
,
rows
:
6
,
searchKey
:
this
.
searchKey
.
replace
(
/
\s
+/g
,
''
),
s
tatusList
:
this
.
config
.
status
.
value
[
this
.
config
.
status
.
index
]
})
.
get
(
'
/app-api/my/order/dynamic/page
'
,
{
page
:
this
.
page
,
rows
:
6
,
searchKey
:
this
.
searchKey
.
replace
(
/
\s
+/g
,
''
),
dynamicS
tatusList
:
this
.
config
.
status
.
value
[
this
.
config
.
status
.
index
]
})
.
then
((
res
)
=>
{
if
(
res
.
code
==
0
&&
res
.
data
)
{
if
(
this
.
page
==
1
){
...
...
@@ -753,6 +754,33 @@ export default {
uni
.
navigateTo
({
url
:
'
../order/order?key=
'
+
this
.
searchKey
})
},
getRealStatus
(
item
){
let
status
=
0
;
if
(
item
.
status
===
12
&&
item
.
shipmentState
===
325
){
status
=
12325
}
else
if
(
item
.
status
===
5
&&
item
.
airShipment
===
1
&&
item
.
abnormalState
===
0
&&
item
.
auditType
===
0
&&
item
.
transportId
===
3
){
status
=
10501
}
else
if
(
item
.
status
===
5
&&
(
item
.
airShipment
===
2
||
item
.
airShipment
===
3
)
&&
item
.
abnormalState
===
0
&&
item
.
auditType
===
0
&&
item
.
transportId
===
3
){
status
=
10502
}
else
if
(
item
.
status
===
5
&&
item
.
airShipment
===
4
&&
item
.
transportId
===
3
)
{
status
=
10503
;
}
else
if
(
item
.
status
===
5
&&
item
.
abnormalState
===
0
&&
item
.
auditType
===
0
&&
((
item
.
transportId
===
3
&&
(
item
.
airShipment
===
2
||
item
.
airShipment
===
3
||
item
.
airShipment
===
4
))
||
(
item
.
transportId
===
1
&&
(
item
.
airShipment
===
0
||
item
.
airShipment
===
2
||
item
.
airShipment
===
3
||
item
.
airShipment
===
4
))))
{
status
=
10504
;
}
else
if
(
item
.
status
===
32
&&
item
.
shipmentState
===
411
&&
item
.
transportId
===
3
)
{
status
=
132411
;
}
else
if
(
item
.
status
===
32
&&
item
.
shipmentState
===
412
&&
item
.
transportId
===
3
)
{
status
=
132412
;
}
else
if
(
item
.
status
===
32
&&
item
.
shipmentState
===
409
&&
item
.
transportId
===
3
)
{
status
=
132409
;
}
else
if
(
item
.
status
===
32
&&
item
.
shipmentState
===
428
&&
item
.
transportId
===
3
)
{
status
=
118428
;
}
else
{
status
=
item
.
status
;
}
return
status
}
}
}
...
...
src/pages/order/order.vue
View file @
fbcb4d3d
...
...
@@ -59,7 +59,7 @@
<view
class=
"fa-v"
>
<view
class=
"order-no"
>
<text>
{{
item
.
orderNo
}}
</text>
<text>
{{
formatMsg
(
item
.
status
)
}}
</text>
<text>
{{
formatMsg
(
item
)
}}
</text>
</view>
<view
v-if=
"item.tidanNo"
>
<text>
{{
item
.
tidanNo
}}
</text>
...
...
@@ -603,7 +603,8 @@
}
},
methods
:
{
formatMsg
(
val
){
formatMsg
(
item
){
let
val
=
this
.
getRealStatus
(
item
)
const
index
=
this
.
config
.
status
.
value
.
findIndex
(
item
=>
{
return
item
.
split
(
'
,
'
).
map
(
Number
).
includes
(
val
);
})
...
...
@@ -1119,7 +1120,7 @@
})
},
getIssued
(){
this
.
$request
.
get
(
'
/app-api/my/order/issued/page
'
,{
page
:
this
.
page
,
rows
:
6
,
searchKey
:
this
.
searchKey
.
replace
(
/
\s
+/g
,
''
),
s
tatusList
:
this
.
config
.
status
.
value
[
this
.
config
.
status
.
index
]}).
then
(
res
=>
{
this
.
$request
.
get
(
'
/app-api/my/order/issued/page
'
,{
page
:
this
.
page
,
rows
:
6
,
searchKey
:
this
.
searchKey
.
replace
(
/
\s
+/g
,
''
),
dynamicS
tatusList
:
this
.
config
.
status
.
value
[
this
.
config
.
status
.
index
]}).
then
(
res
=>
{
if
(
res
.
code
==
0
&&
res
.
data
&&
res
.
data
.
list
&&
res
.
data
.
list
.
length
>
0
){
if
(
this
.
page
==
1
){
if
(
this
.
selectIndex
==
1
){
...
...
@@ -1136,7 +1137,7 @@
})
},
getReceiver
(){
this
.
$request
.
get
(
'
/app-api/my/order/received/page
'
,{
page
:
this
.
page
,
rows
:
6
,
searchKey
:
this
.
searchKey
.
replace
(
/
\s
+/g
,
''
),
s
tatusList
:
this
.
config
.
status
.
value
[
this
.
config
.
status
.
index
]}).
then
(
res
=>
{
this
.
$request
.
get
(
'
/app-api/my/order/received/page
'
,{
page
:
this
.
page
,
rows
:
6
,
searchKey
:
this
.
searchKey
.
replace
(
/
\s
+/g
,
''
),
dynamicS
tatusList
:
this
.
config
.
status
.
value
[
this
.
config
.
status
.
index
]}).
then
(
res
=>
{
if
(
res
.
code
==
0
&&
res
.
data
&&
res
.
data
.
list
&&
res
.
data
.
list
.
length
>
0
){
if
(
this
.
page
==
1
){
if
(
this
.
selectIndex
==
2
){
...
...
@@ -1182,7 +1183,7 @@
}
},
getData
(){
this
.
$request
.
get
(
'
/app-api/my/order/all/order
'
,{
page
:
this
.
page
,
rows
:
6
,
searchKey
:
this
.
searchKey
.
replace
(
/
\s
+/g
,
''
),
s
tatusList
:
this
.
config
.
status
.
value
[
this
.
config
.
status
.
index
]}).
then
(
res
=>
{
this
.
$request
.
get
(
'
/app-api/my/order/all/order
'
,{
page
:
this
.
page
,
rows
:
6
,
searchKey
:
this
.
searchKey
.
replace
(
/
\s
+/g
,
''
),
dynamicS
tatusList
:
this
.
config
.
status
.
value
[
this
.
config
.
status
.
index
]}).
then
(
res
=>
{
if
(
res
.
code
==
0
&&
res
.
data
&&
res
.
data
.
list
&&
res
.
data
.
list
.
length
>
0
){
if
(
this
.
page
==
1
){
if
(
this
.
selectIndex
==
0
){
...
...
@@ -1417,6 +1418,33 @@
// this.$request.post("/app-api/my/order/copy/" + orderId).then(res => {
// this.toEditOrder(res.data)
// })
},
getRealStatus
(
item
){
let
status
=
0
;
if
(
item
.
status
===
12
&&
item
.
shipmentState
===
325
){
status
=
12325
}
else
if
(
item
.
status
===
5
&&
item
.
airShipment
===
1
&&
item
.
abnormalState
===
0
&&
item
.
auditType
===
0
&&
item
.
transportId
===
3
){
status
=
10501
}
else
if
(
item
.
status
===
5
&&
(
item
.
airShipment
===
2
||
item
.
airShipment
===
3
)
&&
item
.
abnormalState
===
0
&&
item
.
auditType
===
0
&&
item
.
transportId
===
3
){
status
=
10502
}
else
if
(
item
.
status
===
5
&&
item
.
airShipment
===
4
&&
item
.
transportId
===
3
)
{
status
=
10503
;
}
else
if
(
item
.
status
===
5
&&
item
.
abnormalState
===
0
&&
item
.
auditType
===
0
&&
((
item
.
transportId
===
3
&&
(
item
.
airShipment
===
2
||
item
.
airShipment
===
3
||
item
.
airShipment
===
4
))
||
(
item
.
transportId
===
1
&&
(
item
.
airShipment
===
0
||
item
.
airShipment
===
2
||
item
.
airShipment
===
3
||
item
.
airShipment
===
4
))))
{
status
=
10504
;
}
else
if
(
item
.
status
===
32
&&
item
.
shipmentState
===
411
&&
item
.
transportId
===
3
)
{
status
=
132411
;
}
else
if
(
item
.
status
===
32
&&
item
.
shipmentState
===
412
&&
item
.
transportId
===
3
)
{
status
=
132412
;
}
else
if
(
item
.
status
===
32
&&
item
.
shipmentState
===
409
&&
item
.
transportId
===
3
)
{
status
=
132409
;
}
else
if
(
item
.
status
===
32
&&
item
.
shipmentState
===
428
&&
item
.
transportId
===
3
)
{
status
=
118428
;
}
else
{
status
=
item
.
status
;
}
return
status
}
},
...
...
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