|
|
@ -2,7 +2,7 @@ |
|
|
|
<!-- 维修工单 --> |
|
|
|
<view class="container"> |
|
|
|
<u-navbar back-icon-color='#fff' :background="{ background: '#409eff'}" back-text="" title-color='#fff' |
|
|
|
title="维修工单"> |
|
|
|
:title="title"> |
|
|
|
<template v-slot:right v-if="params.flag!='2'"> |
|
|
|
<u-icon name="plus" color="#fff" size="36" style="padding-right: 30rpx;" @click="addForm"></u-icon> |
|
|
|
</template> |
|
|
@ -20,7 +20,7 @@ |
|
|
|
<u-tag text="已接单" v-else-if="item.status=='PECEIVED'" bg-color='rgba(255,255,255,0)' color='#005eaa' border-color='#005eaa ' type="error" shape='circle'/> |
|
|
|
<u-tag text="已验证" v-else-if="item.status=='VERIFIED'" bg-color='rgba(255,255,255,0)' color='#2EC7C9' border-color='#2EC7C9' type="info" shape='circle'/> |
|
|
|
<u-tag text="已完成" v-else-if="item.status=='COMPLETED'" bg-color='rgba(255,255,255,0)' color='#2ba471' border-color='#2ba471' type="info" shape='circle'/> |
|
|
|
<u-tag text="申请人已确认" v-else-if="item.status=='APPLYPASS'" bg-color='rgba(255,255,255,0)' color='#2ba471' border-color='#2ba471' type="info" shape='circle'/> |
|
|
|
<u-tag text="报修人已确认" v-else-if="item.status=='APPLYPASS'" bg-color='rgba(255,255,255,0)' color='#2ba471' border-color='#2ba471' type="info" shape='circle'/> |
|
|
|
</view> |
|
|
|
<view class="dec"> |
|
|
|
工单单号:<span>{{item.number}}</span> |
|
|
@ -79,6 +79,7 @@ |
|
|
|
pageSize: 10, |
|
|
|
type: '', |
|
|
|
}) |
|
|
|
const title = ref(); |
|
|
|
const status = ref('loadmore') //是否显示没有更多了 |
|
|
|
const list = ref([]) |
|
|
|
function itemClick(item, index) { |
|
|
@ -108,6 +109,11 @@ |
|
|
|
onLoad((option) => { |
|
|
|
if (option.type) params.value.type = option.type; |
|
|
|
if (option.flag) params.value.flag = option.flag; |
|
|
|
if(params.value.flag&¶ms.value.flag==2){ |
|
|
|
title.value = "报修确认" |
|
|
|
}else{ |
|
|
|
title.value = "维修工单" |
|
|
|
} |
|
|
|
}) |
|
|
|
onShow(() => { |
|
|
|
params.value.pageNo = 1 |
|
|
|