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
c3cb5637
Commit
c3cb5637
authored
Jun 04, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
d8dfe0c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
performanceRecord.vue
src/components/order/performanceRecord.vue
+2
-2
detail.vue
src/pages/order/detail.vue
+19
-19
No files found.
src/components/order/performanceRecord.vue
View file @
c3cb5637
...
...
@@ -8,7 +8,7 @@
<view
class=
"record-right-view"
>
<view
class=
"dashed-line-view"
></view>
<view
class=
"order-list"
>
<view
v-for=
"(record,index) in sh
wo
OrderRecords"
:key=
"record.operationContent"
:class=
"['order-cell',
{'first': index == 0}]">
<view
v-for=
"(record,index) in sh
ow
OrderRecords"
:key=
"record.operationContent"
:class=
"['order-cell',
{'first': index == 0}]">
<view
class=
"node-view"
>
<view
class=
"node-border-view"
>
<view
class=
"node-middle-view"
></view>
...
...
@@ -71,7 +71,7 @@
}
},
computed
:
{
sh
wo
OrderRecords
()
{
sh
ow
OrderRecords
()
{
if
(
this
.
readMoreRecord
&&
this
.
orderRecords
&&
this
.
orderRecords
.
length
>
0
)
{
return
this
.
orderRecords
.
slice
(
0
,
this
.
showLenght
)
}
else
{
...
...
src/pages/order/detail.vue
View file @
c3cb5637
...
...
@@ -40,7 +40,7 @@
<!-- 不是从我的页面,而是其他页面进来 -->
<view
v-else
>
<!-- 业务文件 -->
<view
class=
"order-file"
>
<view
class=
"order-file"
v-if=
"showFile"
>
<view
class=
"order-file-left"
>
<image
:src=
"wenjianImage"
class=
"file-image"
></image>
<text>
充电桩安装业务文件
</text>
...
...
@@ -62,7 +62,7 @@
</view>
<!-- 不是从我的页面进来才显示 -->
<template
v-if=
"!isFromMine"
>
<BottomButtons
v-if=
"show
Center
Btn"
:buttons=
"buttons"
@
submit=
"handleSubmit"
></BottomButtons>
<BottomButtons
v-if=
"show
Bottom
Btn"
:buttons=
"buttons"
@
submit=
"handleSubmit"
></BottomButtons>
<take-photo
type=
"test"
v-if=
"takeStatus"
@
close=
"closeTake"
:upload=
"false"
:num=
"1"
></take-photo>
<!--
<PopView
title=
"查看交互规范"
message=
"为完善交付质量,请查看对应的交付规范"
:visible
.
sync=
"visible"
@
click=
"handleClick"
/>
-->
<u-popup
border-radius=
"12"
v-model=
"visible"
safe-area-inset-bottom
mode=
"center"
width=
"690rpx"
...
...
@@ -135,10 +135,10 @@
allowFeedback
:
false
,
// 允许过程反馈
needPhotograph
:
true
,
// 需要现场拍摄
centerButton
:
''
,
// 是否显示按钮
center
ButtonText
:
''
,
bottom
ButtonText
:
''
,
orderRecords
:
[],
method
:
null
,
show
Center
Btn
:
false
,
show
Bottom
Btn
:
false
,
showTimeSelect
:
false
,
submitType
:
''
,
nextUrl
:
''
,
...
...
@@ -208,7 +208,7 @@
}
},
tipText
()
{
switch
(
this
.
center
ButtonText
)
{
switch
(
this
.
bottom
ButtonText
)
{
case
'接单'
:
return
this
.
timeout
?
'您的订单已超时,请及时接单'
:
'请您注意剩余时间,及时接单'
case
'预约'
:
...
...
@@ -246,7 +246,7 @@
id
:
3
},
{
label
:
this
.
center
ButtonText
,
label
:
this
.
bottom
ButtonText
,
type
:
'text'
,
image
:
''
,
show
:
true
,
...
...
@@ -479,8 +479,8 @@
var
orderBusinessType
=
this
.
order
.
orderBusinessTypeText
if
(
orderStatus
<
31
&&
orderBusinessType
===
'指派单'
)
{
// 接单
this
.
show
Center
Btn
=
true
this
.
center
ButtonText
=
"接单"
this
.
show
Bottom
Btn
=
true
this
.
bottom
ButtonText
=
"接单"
// 已派单的时显示拒单按钮
this
.
allowRejection
=
true
this
.
submitType
=
"orderAccept"
...
...
@@ -491,8 +491,8 @@
}
else
if
(
orderStatus
<
31
&&
orderBusinessType
===
'订单池'
)
{
// 抢单
this
.
centerButton
=
"appoint1"
this
.
center
ButtonText
=
"抢单"
this
.
show
Center
Btn
=
true
this
.
bottom
ButtonText
=
"抢单"
this
.
show
Bottom
Btn
=
true
this
.
submitType
=
"orderGan"
this
.
showTimeOut
=
false
this
.
readMore
=
false
...
...
@@ -502,9 +502,9 @@
}
else
if
(
orderStatus
===
31
&&
!
this
.
order
.
appointmentDatetime
)
{
// 预约
this
.
centerButton
=
"appoint2"
this
.
center
ButtonText
=
"预约"
this
.
bottom
ButtonText
=
"预约"
this
.
allowFeedback
=
true
this
.
show
Center
Btn
=
true
this
.
show
Bottom
Btn
=
true
this
.
showTimeSelect
=
true
this
.
isAllowDianhuaAndDaohang
=
true
this
.
readMore
=
true
...
...
@@ -515,9 +515,9 @@
}
else
if
(
orderStatus
===
31
&&
this
.
order
.
appointmentDatetime
)
{
// 签到
this
.
centerButton
=
"appoint3"
this
.
center
ButtonText
=
"签到"
this
.
bottom
ButtonText
=
"签到"
this
.
allowFeedback
=
true
this
.
show
Center
Btn
=
true
this
.
show
Bottom
Btn
=
true
this
.
submitType
=
"maintainWorkerCheckin"
this
.
isAllowDianhuaAndDaohang
=
true
this
.
errorSignIn
=
true
...
...
@@ -528,10 +528,10 @@
}
else
if
(
orderStatus
>
31
&&
orderStatus
<
80
)
{
// 完工
this
.
centerButton
=
"filish"
this
.
center
ButtonText
=
"去完工"
this
.
bottom
ButtonText
=
"去完工"
this
.
submitType
=
"toFilish"
this
.
allowFeedback
=
true
this
.
show
Center
Btn
=
true
this
.
show
Bottom
Btn
=
true
this
.
scenePhoto
=
true
this
.
readMore
=
true
this
.
isAllowDianhuaAndDaohang
=
true
...
...
@@ -651,7 +651,7 @@
||
(
res
.
code
!==
undefined
&&
res
.
code
===
200
)
)
{
this
.
trackOrder
()
this
.
$refs
.
uToast
.
show
({
title
:
this
.
center
ButtonText
+
'操作成功'
,
title
:
this
.
bottom
ButtonText
+
'操作成功'
,
type
:
'success'
,
duration
:
1000
,
callback
:
function
(){
...
...
@@ -699,14 +699,14 @@
})
},
isGan
(){
this
.
center
ButtonText
=
"已被抢"
this
.
bottom
ButtonText
=
"已被抢"
this
.
submitType
=
""
this
.
centerBtnDisabled
=
true
},
clickFeedback
(){
// 过程反馈
uni
.
navigateTo
({
url
:
'pages/order/feedback?orderId='
+
this
.
order
.
orderId
+
'&categoryId='
+
this
.
order
.
categoryId
+
'&showGY='
+
(
this
.
center
ButtonText
!=
'预约'
?
'1'
:
'0'
)
url
:
'pages/order/feedback?orderId='
+
this
.
order
.
orderId
+
'&categoryId='
+
this
.
order
.
categoryId
+
'&showGY='
+
(
this
.
bottom
ButtonText
!=
'预约'
?
'1'
:
'0'
)
})
},
filish
(){
...
...
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