Commit 69044d8d authored by Facius's avatar Facius

配件申请页面添加

parent 4d1ead55
<template>
<!-- 申请列表 -->
<view>
</view>
</template>
<script>
</script>
<style>
</style>
...@@ -332,6 +332,15 @@ ...@@ -332,6 +332,15 @@
"disableScroll": true "disableScroll": true
} }
}, },
{
"path": "applyParts",
"style": {
"navigationBarTitleText": "配件申请",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
},
{ {
"path": "document-tag", "path": "document-tag",
"style": { "style": {
......
<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>
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
data() { data() {
return { return {
type: '', type: '',
readMore: true, readMore: true, // 是:显示的是'查看更多'按钮;否:显示的是'点击收起'按钮
dateList: [ dateList: [
{day: now, timeRange: []}, {day: now, timeRange: []},
{day: now + (1*86400000), timeRange: []}, {day: now + (1*86400000), timeRange: []},
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
} }
}, },
buttons() { buttons() {
//id: 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照 //id: 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照; 4 配件申请
return [{ return [{
label: '过程反馈', label: '过程反馈',
type: 'image', type: 'image',
...@@ -194,6 +194,14 @@ ...@@ -194,6 +194,14 @@
disabled: false, disabled: false,
id: 3 id: 3
}, },
{
label: '配件申请',
type: 'image',
image: 'xiancahngpaizhao.png',
show: this.allowFeedback,
disabled: false,
id: 4
},
{ {
label: this.bottomButtonText, label: this.bottomButtonText,
type: 'text', type: 'text',
...@@ -283,7 +291,7 @@ ...@@ -283,7 +291,7 @@
// 上个页面传入 || 订单信息有超过时间点 && ((待预约、 待签到、 待完工) || (待接单 && 业务类型非抢单)) // 上个页面传入 || 订单信息有超过时间点 && ((待预约、 待签到、 待完工) || (待接单 && 业务类型非抢单))
return this.showCountTime || this.order.currentOverTime && ([1, 2, 3].indexOf(this.types[this.type]) != -1 || (this.type == 'waitAccept' && !this.isCompetition)) 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 待完工 // 1 待预约, 2 待签到, 3 待完工
return [1, 2, 3].indexOf(this.types[this.type]) != -1 return [1, 2, 3].indexOf(this.types[this.type]) != -1
}, },
...@@ -610,8 +618,20 @@ ...@@ -610,8 +618,20 @@
case 3: case 3:
this.scenePhotoClick() this.scenePhotoClick()
break break
case 4:
this.handleApplyParts()
break
} }
}, },
handleApplyParts() { // 点击了配件申请按钮
// 已经有配件
// 。。。
// 没有配件
// 过程反馈
uni.navigateTo({
url: 'pages/order/applyParts?orderId='+this.order.orderId
})
},
handleBtn() { handleBtn() {
console.log('click button') console.log('click button')
if(!this.submitType){ if(!this.submitType){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment