|
@@ -6,7 +6,7 @@
|
|
|
style="background-color: #1989fa"
|
|
|
>
|
|
|
<template #title>
|
|
|
- <van-col style="color: #ffffff">报修详情</van-col>
|
|
|
+ <van-col style="color: #ffffff">{{baoshi}}详情</van-col>
|
|
|
</template>
|
|
|
<template #left>
|
|
|
<i
|
|
@@ -38,22 +38,22 @@
|
|
|
<van-col span="19">{{ ownername }}</van-col>
|
|
|
</van-row>
|
|
|
<van-row>
|
|
|
- <van-col span="5" class="title1">报事位置</van-col>
|
|
|
+ <van-col span="5" class="title1">{{baoshi}}位置</van-col>
|
|
|
<van-col span="19">{{ data.vplace }}</van-col>
|
|
|
</van-row>
|
|
|
<van-row>
|
|
|
- <van-col span="5" class="title1">报事内容</van-col>
|
|
|
+ <van-col span="5" class="title1">{{baoshi}}内容</van-col>
|
|
|
<van-col span="19">{{ data.vcontent }}</van-col>
|
|
|
</van-row>
|
|
|
<van-row>
|
|
|
- <van-col span="5" class="title1">维修类型</van-col>
|
|
|
+ <van-col span="5" class="title1">{{baoxiu}}类型</van-col>
|
|
|
<van-col span="19">{{ data.billtypeName }}</van-col>
|
|
|
</van-row>
|
|
|
- <van-row>
|
|
|
- <van-col span="5" class="title1">报修时间</van-col>
|
|
|
+ <van-row >
|
|
|
+ <van-col span="5" class="title1">{{baoxiu}}时间</van-col>
|
|
|
<van-col span="19">{{ data.dapplydate }}</van-col>
|
|
|
</van-row>
|
|
|
- <van-row>
|
|
|
+ <van-row v-show="isBaoxiuDate">
|
|
|
<van-col span="5" class="title1">维修时间</van-col>
|
|
|
<van-col span="19">{{ data.drequiredate }}</van-col>
|
|
|
</van-row>
|
|
@@ -63,7 +63,14 @@
|
|
|
<van-col span="19" >{{data.vbillstatusName}}</van-col>
|
|
|
</van-row>
|
|
|
</van-col>
|
|
|
-
|
|
|
+ <van-row>
|
|
|
+ <van-col span="5" class="title1">图片</van-col>
|
|
|
+ <van-col span="19" >
|
|
|
+ <van-uploader v-model="fileList" multiple disabled :deletable='false'/>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </van-col>
|
|
|
+
|
|
|
</van-row>
|
|
|
</template>
|
|
|
</van-cell>
|
|
@@ -77,13 +84,14 @@ export default {
|
|
|
name: "login",
|
|
|
data() {
|
|
|
return {
|
|
|
- hname:'',
|
|
|
- ownername:'',
|
|
|
- data: {}, //报修详情信息
|
|
|
- radio: "", //单选框
|
|
|
+ hname:'',
|
|
|
+ ownername:'',
|
|
|
+ data: {}, //报修详情信息
|
|
|
+ fileList: [], //图片列表
|
|
|
+ baoshi:'',
|
|
|
+ baoxiu:'',
|
|
|
+ isBaoxiuDate:true,
|
|
|
|
|
|
- loading: false,
|
|
|
- finished: false,
|
|
|
};
|
|
|
},
|
|
|
created: function () {
|
|
@@ -112,11 +120,21 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.data=res.data;
|
|
|
-
|
|
|
+ if(this.data.billtype==3){
|
|
|
+ this.baoshi='投诉';
|
|
|
+ this.baoxiu='投诉';
|
|
|
+ this.isBaoxiuDate=false;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.baoshi='报事';
|
|
|
+ this.baoxiu='报修';
|
|
|
+ this.isBaoxiuDate=true;
|
|
|
+ }
|
|
|
if(this.data.billtype==2){
|
|
|
this.data.billtypeName='整改通知单';
|
|
|
}
|
|
|
else if(this.data.billtype==3){
|
|
|
+
|
|
|
this.data.billtypeName='投诉单';
|
|
|
}
|
|
|
else if(this.data.billtype==4){
|
|
@@ -139,18 +157,16 @@ export default {
|
|
|
else{
|
|
|
this.data.vbillstatusName='已报事未处理';
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+ this.data.dapplydate=this.$util.getDate(this.data.dapplydate);
|
|
|
+ res.data.fileList.forEach(function(item,index,array) {
|
|
|
+
|
|
|
+ that.$set(that.fileList,index, item);
|
|
|
+ });
|
|
|
+ console.info('filelist',that.fileList);
|
|
|
|
|
|
});
|
|
|
},
|
|
|
- // 单选按钮点击事件
|
|
|
- jiaofei: function (event, id) {
|
|
|
- //console.info("click1 event", event);
|
|
|
- //console.info("click1 value", id);
|
|
|
- //console.info("click1", e.target.innerText);
|
|
|
- this.$toast("缴费业务未开通");
|
|
|
- },
|
|
|
+
|
|
|
onClickLeft() {
|
|
|
// this.$toast('返回')
|
|
|
console.info("left");
|
|
@@ -168,6 +184,8 @@ export default {
|
|
|
<style scoped>
|
|
|
.title1 {
|
|
|
color: #999;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
}
|
|
|
.value1 {
|
|
|
color: #999;
|