You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
4.3 KiB

3 years ago
<template>
<view class="containers">
<view class="db">
<view class="dblist">
<view>
<view class="dbitem">
3 years ago
<text class="dbtype">{{info.type_text}}</text>
3 years ago
<view class="dbstatus bm">
3 years ago
<view>{{info.audit_status_text}}</view>
3 years ago
<view>
3 years ago
<text style="margin-right:10px">访问时间{{info.date}}</text>
<text>{{info.visit_time.start_time}}{{info.visit_time.end_time}}</text>
</view>
<view v-if="info.type=='2'">{{info.work_start_time}}{{info.work_end_time}}</view>
3 years ago
</view>
3 years ago
<view class="dbinfo justify-left">
<view>
3 years ago
<view>被访人<text>{{info.accept_admin.name}}</text></view>
<view>部门<text>{{info.accept_admin.department.name}}</text></view>
<view>访问区域<text>{{info.visit_area.name}}</text></view>
3 years ago
</view>
<view>
<view>拜访人<text>{{info.name}}</text></view>
<view>电话{{info.mobile}}</view>
<view v-if="info.type=='1'"><text>{{info.reason}}</text></view>
<view v-else-if="info.type=='3'">车牌<text>{{info.plate}}</text></view>
</view>
</view>
<view class="dblong">
<view>长期访客申请<text>{{info.long_time==0?'否':'是'}}</text></view>
<view v-if="info.long_time==1">访{{info.start_date}} {{info.end_date}}</view>
</view>
3 years ago
</view>
</view>
3 years ago
<template v-if="info.type!='3'">
<view class="dbtext">随访人员</view>
<view class="dbitem sfyritem">
<template v-if="info.follw_people">
<view class="dbinfo justify-left" v-for="people in info.follw_people">
3 years ago
<view>
3 years ago
<view>
随访人<text>{{people.name}}</text>
</view>
<view>证件类型<text>{{people.credent_name}}</text></view>
<view>证件号<text>{{people.idcard}}</text></view>
</view>
<view>
电话<text>{{people.mobile}}</text>
3 years ago
</view>
3 years ago
</view>
3 years ago
</template>
<template v-else>
<view class="dbinfo justify-left">
3 years ago
</view>
3 years ago
</template>
3 years ago
</view>
3 years ago
</template>
<template v-if="info.type!='3'">
<view class="dbtext">到访车辆</view>
<view class="dbitem sfyritem">
<view class="dbinfo">
<view class="onechild">
车牌<text>{{info.cars}}</text>
</view>
3 years ago
</view>
3 years ago
</view>
</template>
<template v-if="info.type=='3'">
<view class="dbtext">收货人</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<view>
部门<text>{{info.accept_goods_admin.department.name}}</text>
</view>
<view>
人员<text>{{info.accept_goods_admin.name}}</text>
</view>
3 years ago
</view>
</view>
3 years ago
</template>
3 years ago
<view class="dbtext">被访人员</view>
<view class="dbitem sfyritem">
3 years ago
<view class="dbinfo justify-left">
<view>
3 years ago
部门<text>{{info.accept_admin.department.name}}</text>
3 years ago
</view>
<view>
3 years ago
人员<text>{{info.accept_admin.name}}</text>
3 years ago
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
3 years ago
import '@/static/css/bd.css'
export default{
data(){
return{
id:"",
info:{}
}
},
onReady() {
},
onLoad(options) {
this.id = options.id
this.loadDetail()
},
methods:{
loadDetail(){
let that = this
this.util.request({
3 years ago
api: '/api/mobile/user/my-visit-detail',
3 years ago
method: "get",
data: {
id:that.id
},
utilSuccess: function(res) {
that.info = res
},
utilFail: function(res) {
uni.showToast({
title: res.errmsg,
duration: 2000,
icon: 'none'
})
}
})
},
isnull(p){
if(p == '' || p == undefined || p == null || p == 'undefined' || p == 'null'){
return ""
}else{
return p
}
}
}
}
3 years ago
</script>
<style scoped>
.containers{
background-color: #eceefe;
min-height: 100vh;
padding-top:20rpx;
}
.dbtext{
padding-top:10rpx;
margin-bottom:30rpx;
color:#303639;
font-size:40rpx;
padding-left:30rpx
}
.sfyritem{
padding-bottom:10rpx
}
.dbinfo>view text {
color: #8f9596;
}
</style>