master
lion 1 month ago
parent 85297af827
commit f8a332da04

@ -8,8 +8,8 @@
<view class="dbstatus bm">
<view>{{info.audit_status_text}}</view>
<view>
<text style="margin-right:10px">访问时间{{info.date}}</text>
<text>{{info.visit_time.start_time}}{{info.visit_time.end_time}}</text>
<view>访问日期{{info.date}}{{ info.end_date?'至'+info.end_date:'' }}</view>
<view>访问时间{{info.visit_time.start_time}}{{info.visit_time.end_time}}</view>
</view>
<view v-if="info.type=='2'">{{info.work_start_time}}{{info.work_end_time}}</view>
</view>
@ -22,15 +22,15 @@
<view>
<view>拜访人<text>{{info.name}}</text></view>
<view>电话{{info.mobile}}</view>
<view v-if="info.type=='1'"><text>{{info.reason}}</text></view>
<view v-if="info.type=='1'"><text>{{info.reason?info.reason:''}}</text></view>
<view v-else-if="info.type=='3'">车辆<text>{{info.plate}}</text></view>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{info.company_name?info.company_name:''}}</text>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{info.company_name?info.company_name:''}}</text>
</view>
</view>
<!-- <view class="dblong">
<view>长期访客申请<text>{{info.long_time==0?'否':'是'}}</text></view>
@ -67,15 +67,15 @@
<template>
<view class="dbtext">到访车辆</view>
<view class="dbitem sfyritem">
<view class="dbinfo dbcars" v-if="info.cars && info.cars.length>0">
<view class="onechild" v-for="item in info.cars">
车牌<text>{{item?item:'无'}}</text>
</view>
</view>
<view class="dbinfo dbcars" v-else>
<view class="onechild">
</view>
<view class="dbinfo dbcars" v-if="info.cars && info.cars.length>0">
<view class="onechild" v-for="item in info.cars">
车牌<text>{{item?item:'无'}}</text>
</view>
</view>
<view class="dbinfo dbcars" v-else>
<view class="onechild">
</view>
</view>
</view>
</template>
@ -103,48 +103,48 @@
人员<text>{{info.accept_admin.name}}</text>
</view>
</view>
</view>
<block v-if="info.visit_area.name=='生产区'">
<view class="dbtext">陪同人员</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<view>
部门<text>{{info.accompany.department.name}}</text>
</view>
<view>
人员<text>{{info.accompany.name}}</text>
</view>
</view>
</view>
</block>
<template v-if="info.accept_admin_sign">
<view class="dbtext">签字</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<image style="width:100%" :src="info.accept_admin_sign_file.url" mode=""></image>
</view>
</view>
</template>
</view>
<block v-if="info.visit_area.name=='生产区'">
<view class="dbtext">陪同人员</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<view>
部门<text>{{info.accompany.department.name}}</text>
</view>
<view>
人员<text>{{info.accompany.name}}</text>
</view>
</view>
</view>
</block>
<!-- <template v-if="info.accept_admin_sign">
<view class="dbtext">签字</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<image style="width:100%" :src="info.accept_admin_sign_file.url" mode=""></image>
</view>
</view>
</template> -->
<!-- 审核 -->
<!-- 审核 -->
<view class="dbtext" v-if="info.audit_status==0"></view>
<view class="checkforms dbitem" style="padding-top:30rpx" v-if="info.audit_status==0&&isCheck">
<uni-forms ref="formdata" :model="checkForm" :rules="rules" labelWidth="100px" >
<uni-forms-item label="状态" required name="status">
<uni-data-checkbox v-model="checkForm.status" :localdata="statusList"/>
</uni-forms-item>
<uni-forms-item label="备注">
<uni-easyinput type="textarea" v-model="checkForm.reason" placeholder="请输入备注" />
</uni-forms-item>
</uni-forms>
<view class="checkforms dbitem" style="padding-top:30rpx" v-if="info.audit_status==0&&isCheck">
<uni-forms ref="formdata" :model="checkForm" :rules="rules" labelWidth="100px" >
<uni-forms-item label="状态" required name="status">
<uni-data-checkbox v-model="checkForm.status" :localdata="statusList"/>
</uni-forms-item>
<uni-forms-item label="备注">
<uni-easyinput type="textarea" v-model="checkForm.reason" placeholder="请输入备注" />
</uni-forms-item>
</uni-forms>
<button type="primary" style="background-color: #4f607e;" @click="checkSubmit"></button>
</view>
<view class="checkforms dbitem" style="padding-top:30rpx" v-if="info.audit_status==0&&!isCheck">
{{checkText}}
</view>
<view class="checkforms dbitem" style="padding-top:30rpx" v-if="info.audit_status==0&&!isCheck">
{{checkText}}
</view>
</view>
@ -160,23 +160,23 @@
data() {
return {
id: "",
info: {},
checkText:'',
checkLevel:[{
id:1,
value:'请等待一级审核完成'
},{
id:2,
value:'请等待二级审核完成'
},{
id:3,
value:'请等待三级审核完成'
info: {},
checkText:'',
checkLevel:[{
id:1,
value:'请等待一级审核完成'
},{
id:2,
value:'请等待二级审核完成'
},{
id:3,
value:'请等待三级审核完成'
}],
checkForm: {
level: "",
status: "",
audit_admin_id: "",
visit_id:"",
audit_admin_id: "",
visit_id:"",
reason:""
},
rules: {
@ -197,8 +197,8 @@
text: "驳回"
},
],
check_admin_name: "",
userId:'',
check_admin_name: "",
userId:'',
isCheck:false,
}
},
@ -206,43 +206,43 @@
},
onLoad(options) {
this.id = options.id
this.id = options.id
this.userId = uni.getStorageSync('userInfo_Bd').id
this.checkForm.visit_id = parseInt(options.id)
this.loadDetail()
},
methods: {
checkSubmit() {
checkSubmit() {
let that = this
console.log(that.checkForm)
this.$refs['formdata'].validate().then(res => {
this.util.request({
api: '/api/admin/visit_audit/save',
method: "POST",
requestType:'bd',
data: that.checkForm,
utilSuccess: function(res) {
uni.showToast({
title: res.msg,
duration: 2000,
icon: 'none'
})
// uni.removeStorageSync('formData')
uni.redirectTo({
url:'/pages/bd/record?type=mycheck'
})
},
utilFail: function(res) {
uni.showToast({
title: res,
duration: 2000,
icon: 'none'
})
}
})
}).catch(err => {
console.log('err', err);
})
console.log(that.checkForm)
this.$refs['formdata'].validate().then(res => {
this.util.request({
api: '/api/admin/visit_audit/save',
method: "POST",
requestType:'bd',
data: that.checkForm,
utilSuccess: function(res) {
uni.showToast({
title: res.msg,
duration: 2000,
icon: 'none'
})
// uni.removeStorageSync('formData')
uni.redirectTo({
url:'/pages/bd/record?type=mycheck'
})
},
utilFail: function(res) {
uni.showToast({
title: res,
duration: 2000,
icon: 'none'
})
}
})
}).catch(err => {
console.log('err', err);
})
},
loadDetail() {
@ -255,30 +255,30 @@
id: that.id
},
utilSuccess: function(res) {
that.info = res
for (let item of res.audit) {
if(item.status==0){
if(that.userId==item.audit_admin_id){
that.checkForm.level = item.level
that.checkForm.id = item.id
that.checkForm.audit_admin_id = item.audit_admin_id
that.isCheck = true
return
}else{
that.checkText = "请等待"+item.audit_admin.name+"审核"
// that.checkLevel.map(item1=>{
// if(item.level==item1.id){
// that.checkText = item1.value
// }
// })
that.isCheck = false
return
}
}else{
that.isCheck = false
}
that.info = res
for (let item of res.audit) {
if(item.status==0){
if(that.userId==item.audit_admin_id){
that.checkForm.level = item.level
that.checkForm.id = item.id
that.checkForm.audit_admin_id = item.audit_admin_id
that.isCheck = true
return
}else{
that.checkText = "请等待"+item.audit_admin.name+"审核"
// that.checkLevel.map(item1=>{
// if(item.level==item1.id){
// that.checkText = item1.value
// }
// })
that.isCheck = false
return
}
}else{
that.isCheck = false
}
}
},
utilFail: function(res) {
@ -317,9 +317,9 @@
font-size: 40rpx;
padding-left: 30rpx
}
.dbcars>view{
width:100%;
padding-left:0
.dbcars>view{
width:100%;
padding-left:0
}
.sfyritem {
padding-bottom: 10rpx
@ -327,12 +327,12 @@
.dbinfo>view text {
color: #8f9596;
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
</style>
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
</style>

@ -1,10 +1,10 @@
<template>
<page-meta :page-style="'overflow:'+(callshow?'hidden':'visible')"></page-meta>
<view class="containers">
<!-- #ifdef MP-WEIXIN -->
<privacy-popup ref="privacyComponent" @agree-privacy="onAgreePrivacy"
@reject-privacy="onRejectPrivacy"></privacy-popup>
<view class="containers">
<!-- #ifdef MP-WEIXIN -->
<privacy-popup ref="privacyComponent" @agree-privacy="onAgreePrivacy"
@reject-privacy="onRejectPrivacy"></privacy-popup>
<!-- #endif -->
<view class="top">
<view class="toplogo justify-between align-center">
@ -15,10 +15,10 @@
<view>
{{userEmail}}
</view>
</view>
<view @click='logout'>
<u--image :src="logo" width="164rpx" height="65rpx"></u--image>
<view class="logout" >退出</view>
</view>
<view @click='logout'>
<u--image :src="logo" width="280rpx" height="41rpx"></u--image>
<view class="logout" >退出</view>
</view>
</view>
@ -53,8 +53,8 @@
<view class="dbstatus bm">
<view>{{item.audit_status_text}}</view>
<view>
<text style="margin-right:10px">访问时间{{item.date}}</text>
<text>{{item.visit_time.start_time}}{{item.visit_time.end_time}}</text>
<view>访问日期{{item.date}}{{ item.end_date?'至'+item.end_date:'' }}</view>
<view>访问时间{{item.visit_time.start_time}}{{item.visit_time.end_time}}</view>
</view>
</view>
<view class="dbinfo justify-left">
@ -66,15 +66,15 @@
<view>
<view>拜访人<text>{{item.name}}</text></view>
<view>电话{{item.mobile}}</view>
<view v-if="item.type=='1'"><text>{{item.reason}}</text></view>
<view v-if="item.type=='1'"><text>{{item.reason?info.reason:''}}</text></view>
<view v-else-if="item.type=='3'">车牌<text>{{item.plate}}</text></view>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{item.company_name?item.company_name:''}}</text>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{item.company_name?item.company_name:''}}</text>
</view>
</view>
<!-- <view class="dblong">
<view>长期访客申请<text>{{item.long_time==0?'否':'是'}}</text></view>
@ -96,7 +96,7 @@
<view>请选择邀约访客类型</view>
<view class="justify-between">
<button @click="toForm(1)">访</button>
<button @click="toForm(2)">访</button>
<button @click="toForm(2)"></button>
<button @click="toForm(3)"></button>
</view>
</view>
@ -107,10 +107,10 @@
<script>
import '@/static/css/bd.css'
import PrivacyPopup from '@/components/privacy-popup/privacy-popup.vue';
export default{
components: {
PrivacyPopup
import PrivacyPopup from '@/components/privacy-popup/privacy-popup.vue';
export default{
components: {
PrivacyPopup
},
data() {
return {
@ -177,16 +177,16 @@
this.loadList()
}
},
methods: {
onAgreePrivacy() {
//
//
console.log('User agreed to the privacy policy');
},
onRejectPrivacy() {
//
//
console.log('User rejected the privacy policy');
methods: {
onAgreePrivacy() {
//
//
console.log('User agreed to the privacy policy');
},
onRejectPrivacy() {
//
//
console.log('User rejected the privacy policy');
},
toForm(type) {
uni.navigateTo({
@ -227,8 +227,8 @@
page: this.select.page,
page_size: this.select.page_size,
audit_status: this.select.audit_status,
keyword: this.select.keyword,
is_auth:0,
keyword: this.select.keyword,
is_auth:0,
my_audit:1
},
utilSuccess: function(res) {
@ -269,11 +269,11 @@
title: '提示',
content: '确认退出账号?',
success: function(res) {
if (res.confirm) {
uni.removeStorageSync('userInfo_BD_token')
uni.removeStorageSync('userInfo_Bd')
uni.redirectTo({
url: '/pages/index/index'
if (res.confirm) {
uni.removeStorageSync('userInfo_BD_token')
uni.removeStorageSync('userInfo_Bd')
uni.redirectTo({
url: '/pages/index/index'
})
} else if (res.cancel) {
@ -348,9 +348,9 @@
text-align: center;
margin-top: 15rpx
}
.logout{
text-align: right;
font-size: 30rpx;
.logout{
text-align: right;
font-size: 30rpx;
}
/deep/ .u-empty {
min-height: 30vh;
@ -372,12 +372,12 @@
padding: 0 20rpx;
background-color: #4f607e;
color: #fff
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
</style>

@ -14,13 +14,13 @@
<view class="dbitem" @click="toDetail(item.id)">
<text class="dbtype">{{item.type_text}}</text>
<view class="dbstatus bm">
<view class="justify-start">
{{item.audit_status_text}}
<button class="signBtn" @click.stop='signPic(item.id)' type="primary" v-if="nowadminID==item.accompany_id&&item.audit_status==3&&!item.accept_admin_sign"></button>
<view class="justify-start">
{{item.audit_status_text}}
<!-- <button class="signBtn" @click.stop='signPic(item.id)' type="primary" v-if="nowadminID==item.accompany_id&&item.audit_status==3&&!item.accept_admin_sign"></button> -->
</view>
<view>
<text style="margin-right:10px">访问时间{{item.date}}</text>
<text>{{item.visit_time.start_time}}{{item.visit_time.end_time}}</text>
<view>访问日期{{item.date}}{{ item.end_date?'至'+item.end_date:'' }}</view>
<view>访问时间{{item.visit_time.start_time}}{{item.visit_time.end_time}}</view>
</view>
</view>
<view class="dbinfo justify-left">
@ -32,15 +32,15 @@
<view>
<view>拜访人<text>{{item.name}}</text></view>
<view>电话{{item.mobile}}</view>
<view v-if="item.type=='1'"><text>{{item.reason}}</text></view>
<view v-if="item.type=='1'"><text>{{item.reason?info.reason:''}}</text></view>
<view v-else-if="item.type=='3'">车牌<text>{{item.plate}}</text></view>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{item.company_name?item.company_name:''}}</text>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{item.company_name?item.company_name:''}}</text>
</view>
</view>
<!-- <view class="dblong">
<view>长期访客申请<text>{{item.long_time==0?'否':'是'}}</text></view>
@ -67,7 +67,7 @@
export default {
data() {
return {
btnActive: "",
btnActive: "",
nowadminID:'',
btnList: [{
label: "全部",
@ -87,22 +87,22 @@
page: 1,
page_size: 5,
total: 0,
audit_status: '',
my_self:0,
my_audit:0,
my_accept_admin:0,
audit_status: '',
my_self:0,
my_audit:0,
my_accept_admin:0,
is_auth:0
},
isEmpty:false,
},
isEmpty:false,
recordType:""
}
},
onLoad(options) {
this.recordType = options.type
this.select.my_audit = this.recordType=='mycheck'?1:0
this.select.my_self = this.recordType=='call'?1:0
this.select.my_accept_admin = this.recordType=='myrecord'?1:0
this.nowadminID = uni.getStorageSync('userInfo_Bd').id
onLoad(options) {
this.recordType = options.type
this.select.my_audit = this.recordType=='mycheck'?1:0
this.select.my_self = this.recordType=='call'?1:0
this.select.my_accept_admin = this.recordType=='myrecord'?1:0
this.nowadminID = uni.getStorageSync('userInfo_Bd').id
console.log("this.nowadminID",this.nowadminID)
this.loadList()
},
@ -127,11 +127,11 @@
this.loadList()
}
},
methods: {
signPic(id){
uni.navigateTo({
url:'/pages/bd/signpic?id='+id
})
methods: {
signPic(id){
uni.navigateTo({
url:'/pages/bd/signpic?id='+id
})
},
toDetail(id) {
uni.navigateTo({
@ -140,9 +140,9 @@
},
btnActiveList(val) {
this.btnActive = val
this.select.audit_status = val
this.select.page = 1
this.list = []
this.select.audit_status = val
this.select.page = 1
this.list = []
this.isEmpty = false
this.loadList()
},
@ -152,15 +152,15 @@
api: '/api/admin/visit/index',
method: "get",
requestType: "bd",
data: {
data: {
...this.select,
page: this.select.page,
// page_size: this.select.page_size,
// audit_status: this.select.audit_status
},
utilSuccess: function(res) {
if(res.total==0){
that.isEmpty=true
utilSuccess: function(res) {
if(res.total==0){
that.isEmpty=true
}
if (that.select.page == 1) {
that.list = res.data
@ -188,22 +188,22 @@
background-color: #eceefe;
min-height: 100vh;
/* padding-top:20rpx; */
}
/deep/ .u-empty{
min-height: 60vh;
}
.signBtn{
background-color: #4f607e;
padding: 0 30rpx;
margin-left: 40rpx;
font-size: 32rpx;
line-height: 2.3;
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
</style>
/deep/ .u-empty{
min-height: 60vh;
}
.signBtn{
background-color: #4f607e;
padding: 0 30rpx;
margin-left: 40rpx;
font-size: 32rpx;
line-height: 2.3;
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
</style>

@ -9,8 +9,8 @@
<view class="dbstatus bm">
<view>{{info.audit_status_text}}</view>
<view>
<text style="margin-right:10px">访问时间{{info.date}}</text>
<text>{{info.visit_time.start_time}}{{info.visit_time.end_time}}</text>
<view>访问日期{{info.date}}{{ info.end_date?'至'+info.end_date:'' }}</view>
<view>访问时间{{info.visit_time.start_time}}{{info.visit_time.end_time}}</view>
</view>
<view v-if="info.type=='2'">{{info.work_start_time}}{{info.work_end_time}}</view>
</view>
@ -23,16 +23,16 @@
<view>
<view>拜访人<text>{{info.name}}</text></view>
<view>电话{{info.mobile}}</view>
<view v-if="info.type=='1'"><text>{{info.reason}}</text></view>
<view v-if="info.type=='1'"><text>{{item.reason?info.reason:''}}</text></view>
<view v-else-if="info.type=='3'">车辆类型<text>{{info.plate}}</text></view>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{info.company_name?info.company_name:''}}</text>
</view>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{info.company_name?info.company_name:''}}</text>
</view>
</view>
<!-- <view class="dblong">
<view>长期访客申请<text>{{info.long_time==0?'否':'是'}}</text></view>
@ -73,11 +73,11 @@
<view class="onechild" v-for="item in info.cars">
车牌<text>{{item?item:'无'}}</text>
</view>
</view>
<view class="dbinfo dbcars" v-else>
<view class="onechild">
</view>
</view>
<view class="dbinfo dbcars" v-else>
<view class="onechild">
</view>
</view>
</view>
</template>
@ -105,32 +105,32 @@
人员<text>{{info.accept_admin.name}}</text>
</view>
</view>
</view>
<block v-if="info.visit_area.name=='生产区'">
<view class="dbtext">陪同人员</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<view>
部门<text>{{info.accompany.department.name}}</text>
</view>
<view>
人员<text>{{info.accompany.name}}</text>
</view>
</view>
</view>
</block>
<template v-if="info.accept_admin_sign">
<view class="dbtext">签字</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<image style="width:100%" :src="info.accept_admin_sign_file.url" mode=""></image>
</view>
</view>
</template>
</view>
<block v-if="info.visit_area.name=='生产区'">
<view class="dbtext">陪同人员</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<view>
部门<text>{{info.accompany.department.name}}</text>
</view>
<view>
人员<text>{{info.accompany.name}}</text>
</view>
</view>
</view>
</block>
<!-- <template v-if="info.accept_admin_sign">
<view class="dbtext">签字</view>
<view class="dbitem sfyritem">
<view class="dbinfo justify-left">
<image style="width:100%" :src="info.accept_admin_sign_file.url" mode=""></image>
</view>
</view>
</template> -->
<view class="justify-between cancelcode">
<button :class="info.audit_status<1?'wd100 cancelbtn':'cancelbtn'" v-if="info.audit_status<2&&info.audit_status!=5" @click="showCancelM"
type="primary">取消拜访</button>
type="primary">取消拜访</button>
<button :class="info.audit_status==3?'wd100 codebtn':'codebtn'" v-if="info.audit_status==1||info.audit_status==3" @click="createdCode"
type="primary" style="">出示二维码</button>
@ -152,20 +152,20 @@
</view>
</view>
</u-popup>
<!-- 取消 -->
<u-popup class="cancelpop" :show="showCancel" mode="center" closeable="true" @close="cancelCancel">
<view class="userBox" style="padding:0 120rpx 0rpx 120rpx;">
<view class="userInfoContent" style="padding: 40rpx;font-size: 36rpx;">
<text class="">是否确认取消此次拜访?</text>
</view>
<view class="justify-between cancelbtns">
<button @click="cancelCancel" class="cancelbtn">取消</button>
<button @click="confirmCancel" class="codebtn">确认</button>
</view>
</view>
</u-popup>
<!-- 取消 -->
<u-popup class="cancelpop" :show="showCancel" mode="center" closeable="true" @close="cancelCancel">
<view class="userBox" style="padding:0 120rpx 0rpx 120rpx;">
<view class="userInfoContent" style="padding: 40rpx;font-size: 36rpx;">
<text class="">是否确认取消此次拜访?</text>
</view>
<view class="justify-between cancelbtns">
<button @click="cancelCancel" class="cancelbtn">取消</button>
<button @click="confirmCancel" class="codebtn">确认</button>
</view>
</view>
</u-popup>
</view>
</template>
@ -178,7 +178,7 @@
return {
id: "",
info: {},
showCodes: false,
showCodes: false,
showCancel:false
}
},
@ -211,40 +211,40 @@
}
})
},
showCancelM(){
this.showCancel = true
},
confirmCancel(){
this.info.audit_status = 5
this.info.audit_status_text = "已取消"
let that = this
this.showCancel = false
this.util.request({
api: '/api/mobile/visit/visit-save',
method: "POST",
data: that.info,
utilSuccess: function(res) {
uni.showToast({
title: res.msg,
duration: 2000,
icon: 'none'
})
uni.navigateTo({
url:'/pages/visit/visithistory'
})
},
utilFail: function(res) {
uni.showToast({
title: res,
duration: 2000,
icon: 'none'
})
}
})
},
cancelCancel(){
this.showCancel = false
},
showCancelM(){
this.showCancel = true
},
confirmCancel(){
this.info.audit_status = 5
this.info.audit_status_text = "已取消"
let that = this
this.showCancel = false
this.util.request({
api: '/api/mobile/visit/visit-save',
method: "POST",
data: that.info,
utilSuccess: function(res) {
uni.showToast({
title: res.msg,
duration: 2000,
icon: 'none'
})
uni.navigateTo({
url:'/pages/visit/visithistory'
})
},
utilFail: function(res) {
uni.showToast({
title: res,
duration: 2000,
icon: 'none'
})
}
})
},
cancelCancel(){
this.showCancel = false
},
loadDetail() {
let that = this
@ -293,9 +293,9 @@
font-size: 40rpx;
padding-left: 30rpx
}
.dbcars>view{
width:100%;
padding-left:0
.dbcars>view{
width:100%;
padding-left:0
}
.sfyritem {
padding-bottom: 10rpx
@ -320,25 +320,25 @@
.cancelcode button.cancelbtn,.cancelbtns button.cancelbtn {
background: #dddd;
border: none;
border: none;
color:#333
}
.cancelcode button.codebtn,.cancelbtns button.codebtn {
background: #4f607e;
border: none;
border: none;
color:#fff
}
.cancelcode button.wd100{
width:100%;
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
}
.cancelcode button.wd100{
width:100%;
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
</style>
</style>

@ -86,10 +86,10 @@
text:'普通访客'
},{
value:2,
text:'施工访客'
text:'施工人员'
},{
value:3,
text:'物流访客'
text:'物流车辆'
}]
}
},

@ -14,8 +14,8 @@
<view class="dbstatus bm">
<view>{{item.audit_status_text}}</view>
<view>
<text style="margin-right:10px">访问时间{{item.date}}</text>
<text>{{item.visit_time.start_time}}{{item.visit_time.end_time}}</text>
<view>访问日期{{item.date}}{{ item.end_date?'至'+item.end_date:'' }}</view>
<view>访问时间{{item.visit_time.start_time}}{{item.visit_time.end_time}}</view>
</view>
</view>
<view class="dbinfo justify-left">
@ -27,15 +27,15 @@
<view>
<view>拜访人<text>{{item.name}}</text></view>
<view>电话{{item.mobile}}</view>
<view v-if="item.type=='1'"><text>{{item.reason}}</text></view>
<view v-if="item.type=='1'"><text>{{item.reason?info.reason:''}}</text></view>
<view v-else-if="item.type=='3'">车牌<text>{{item.plate}}</text></view>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{item.company_name?item.company_name:''}}</text>
</view>
</view>
<view class="company">
<view>
拜访公司<text>{{item.company_name?item.company_name:''}}</text>
</view>
</view>
<!-- <view class="dblong">
<view>长期访客申请<text>{{item.long_time==0?'否':'是'}}</text></view>
@ -82,7 +82,7 @@
page_size: 5,
total: 0,
type: ""
},
},
isEmpty:false,
}
},
@ -131,9 +131,9 @@
page_size: this.select.page_size,
type: this.select.type
},
utilSuccess: function(res) {
if(res.total==0){
that.isEmpty=true
utilSuccess: function(res) {
if(res.total==0){
that.isEmpty=true
}
if (that.select.page == 1) {
that.list = res.data
@ -161,15 +161,15 @@
background-color: #eceefe;
min-height: 100vh;
/* padding-top:20rpx; */
}
/deep/ .u-empty{
min-height: 60vh;
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
</style>
/deep/ .u-empty{
min-height: 60vh;
}
.company{
padding-bottom:30rpx;
margin-top:-10rpx;
}
.company text{
color: #8f9596;
}
</style>

Loading…
Cancel
Save