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
69044d8d
Commit
69044d8d
authored
Jun 17, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配件申请页面添加
parent
4d1ead55
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
101 additions
and
3 deletions
+101
-3
applyList.vue
src/components/parts/applyList.vue
+12
-0
pages.json
src/pages.json
+9
-0
applyParts.vue
src/pages/order/applyParts.vue
+57
-0
detail.vue
src/pages/order/detail.vue
+23
-3
No files found.
src/components/parts/applyList.vue
0 → 100644
View file @
69044d8d
<
template
>
<!-- 申请列表 -->
<view>
</view>
</
template
>
<
script
>
</
script
>
<
style
>
</
style
>
src/pages.json
View file @
69044d8d
...
...
@@ -332,6 +332,15 @@
"disableScroll"
:
true
}
},
{
"path"
:
"applyParts"
,
"style"
:
{
"navigationBarTitleText"
:
"配件申请"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
},
{
"path"
:
"document-tag"
,
"style"
:
{
...
...
src/pages/order/applyParts.vue
0 → 100644
View file @
69044d8d
<
template
>
<view
class=
"parts-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#FFFFFF"
title=
"配件申请"
titleColor=
"#333333"
:border-bottom=
"false"
title-bold
></u-navbar>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
type
:
'parts'
};
},
computed
:
{
title
()
{
return
this
.
titles
[
this
.
types
[
this
.
type
]]
},
titles
()
{
return
[
'配件申请'
,
'备件申请'
]
},
types
()
{
return
{
'parts'
:
0
,
'spare'
:
1
}
}
},
onLoad
(
e
)
{
if
(
e
&&
e
.
type
)
{
// parts 配件;spare 备件
this
.
type
=
e
.
type
}
},
onShow
()
{
// 从标签列表页面返回,获取选中的标签
let
pages
=
getCurrentPages
();
let
page
=
pages
[
pages
.
length
-
1
];
let
items
=
page
.
items
;
if
(
items
)
{
}
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.parts-view
{
background-color
:
#F4F5F7
;
height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
}
</
style
>
src/pages/order/detail.vue
View file @
69044d8d
...
...
@@ -102,7 +102,7 @@
data
()
{
return
{
type
:
''
,
readMore
:
true
,
readMore
:
true
,
// 是:显示的是'查看更多'按钮;否:显示的是'点击收起'按钮
dateList
:
[
{
day
:
now
,
timeRange
:
[]},
{
day
:
now
+
(
1
*
86400000
),
timeRange
:
[]},
...
...
@@ -169,7 +169,7 @@
}
},
buttons
()
{
//id: 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照
//id: 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照
; 4 配件申请
return
[{
label
:
'过程反馈'
,
type
:
'image'
,
...
...
@@ -194,6 +194,14 @@
disabled
:
false
,
id
:
3
},
{
label
:
'配件申请'
,
type
:
'image'
,
image
:
'xiancahngpaizhao.png'
,
show
:
this
.
allowFeedback
,
disabled
:
false
,
id
:
4
},
{
label
:
this
.
bottomButtonText
,
type
:
'text'
,
...
...
@@ -283,7 +291,7 @@
// 上个页面传入 || 订单信息有超过时间点 && ((待预约、 待签到、 待完工) || (待接单 && 业务类型非抢单))
return
this
.
showCountTime
||
this
.
order
.
currentOverTime
&&
([
1
,
2
,
3
].
indexOf
(
this
.
types
[
this
.
type
])
!=
-
1
||
(
this
.
type
==
'waitAccept'
&&
!
this
.
isCompetition
))
},
allowFeedback
()
{
// 允许过程反馈
allowFeedback
()
{
// 允许过程反馈
// 显示配件申请按钮
// 1 待预约, 2 待签到, 3 待完工
return
[
1
,
2
,
3
].
indexOf
(
this
.
types
[
this
.
type
])
!=
-
1
},
...
...
@@ -610,8 +618,20 @@
case
3
:
this
.
scenePhotoClick
()
break
case
4
:
this
.
handleApplyParts
()
break
}
},
handleApplyParts
()
{
// 点击了配件申请按钮
// 已经有配件
// 。。。
// 没有配件
// 过程反馈
uni
.
navigateTo
({
url
:
'pages/order/applyParts?orderId='
+
this
.
order
.
orderId
})
},
handleBtn
()
{
console
.
log
(
'click button'
)
if
(
!
this
.
submitType
){
...
...
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