Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
456c71ce
Commit
456c71ce
authored
Aug 26, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve: 订单cell优化
parent
f93951f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
7 deletions
+25
-7
fiveOrders.vue
src/components/order/fiveOrders.vue
+0
-1
index.vue
src/components/order/index.vue
+25
-6
No files found.
src/components/order/fiveOrders.vue
View file @
456c71ce
...
...
@@ -5,7 +5,6 @@
safe-area-inset-bottom
width=
"690rpx"
border-radius=
"12"
@
close=
"handleClose"
close-icon-color=
"#333333"
>
<view
class=
"pop-view"
>
...
...
src/components/order/index.vue
View file @
456c71ce
...
...
@@ -312,6 +312,24 @@ export default {
finish
:
6
,
//已完工
}
},
typeList
()
{
return
[
'waitAccept'
,
// 待接单、
'waitAppointment'
,
// 待预约、
'waitCheckIn'
,
// 待签到、
'waitFinish'
,
// 待完工、
'audit'
,
// 审核中、
'exception'
,
// 异常单、
'finish'
,
//已完工
]
},
realType
()
{
if
(
this
.
type
&&
this
.
typeList
.
indexOf
(
this
.
type
)
!=
-
1
)
{
return
this
.
type
}
else
{
return
this
.
typeList
[
this
.
orderType
]
}
},
orderDistance
()
{
return
this
.
distance
(
this
.
orderData
.
contactAddressLatitud
,
...
...
@@ -340,7 +358,10 @@ export default {
异常 orderStatus ==86 工单状态 等于86
已完工 orderStatus in(80,81,89,110) 工单状态 等于80 or 81 or 89 or 110
*/
if
(
!
this
.
type
)
{
if
(
this
.
type
&&
this
.
typeList
.
indexOf
(
this
.
type
)
!=
-
1
)
{
return
this
.
types
[
this
.
type
]
}
else
{
// 没传或传错type
if
(
this
.
orderData
.
orderStatus
<
31
)
{
return
0
}
else
if
(
this
.
orderData
.
orderStatus
==
31
)
{
...
...
@@ -370,8 +391,6 @@ export default {
}
else
{
return
0
}
}
else
{
return
this
.
types
[
this
.
type
]
}
},
},
...
...
@@ -401,7 +420,7 @@ export default {
this
.
$emit
(
func
,
this
.
orderData
,
this
.
t
ype
,
this
.
realT
ype
,
this
.
showCountTime
?
'show'
:
''
)
this
.
otherAction
()
...
...
@@ -416,7 +435,7 @@ export default {
this
.
$emit
(
func
,
this
.
orderData
,
this
.
t
ype
,
this
.
realT
ype
,
this
.
showCountTime
?
'show'
:
''
)
this
.
otherAction
()
...
...
@@ -429,7 +448,7 @@ export default {
},
exceptionRecord
()
{
// 如果是异常单告诉后台
if
(
this
.
t
ype
==
'exception'
)
{
if
(
this
.
realT
ype
==
'exception'
)
{
this
.
$u
.
api
.
workerDealWithError
(
item
.
orderId
).
then
(()
=>
{})
}
},
...
...
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