|
@@ -3,10 +3,10 @@
|
|
<green-code ref="greenCode" @callBack="callBack"></green-code>
|
|
<green-code ref="greenCode" @callBack="callBack"></green-code>
|
|
|
|
|
|
|
|
|
|
- <header class="mui-bar mui-bar-nav" v-if="step==1">
|
|
|
|
- <h1 class="mui-title">访客信息登记</h1>
|
|
|
|
- </header>
|
|
|
|
- <div class="mui-content margin60" v-if="step==1">
|
|
|
|
|
|
+
|
|
|
|
+ <top-header :pageTitle="pageTitle" ></top-header>
|
|
|
|
+
|
|
|
|
+ <div class="mui-content margin60" v-if="step==1">
|
|
<div class="mui-content-padded vongi-editme vongi-qingjiadt">
|
|
<div class="mui-content-padded vongi-editme vongi-qingjiadt">
|
|
<form class="mui-input-group">
|
|
<form class="mui-input-group">
|
|
<div class="mui-input-row">
|
|
<div class="mui-input-row">
|
|
@@ -15,7 +15,7 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="mui-input-row">
|
|
<div class="mui-input-row">
|
|
- <label>手机号码<i class="colorfe616c">*</i></label>
|
|
|
|
|
|
+ <label>访客手机号码<i class="colorfe616c">*</i></label>
|
|
<input type="text" class="mui-input-clear" v-model="detail.mobilePhone" placeholder="请填写访客手机号码">
|
|
<input type="text" class="mui-input-clear" v-model="detail.mobilePhone" placeholder="请填写访客手机号码">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -53,82 +53,98 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="fyy-footer" v-if="step==1">
|
|
<div class="fyy-footer" v-if="step==1">
|
|
- <div class="bindfyy-btn"><button type="submit" class="mui-btn mui-btn-primary " @click="stepNext()">下一步</button></div>
|
|
|
|
|
|
+ <div class="bindfyy-btn"><button type="submit" class="mui-btn mui-btn-primary " @click="insert()">提交审核</button></div>
|
|
</div>
|
|
</div>
|
|
- <header class="mui-bar mui-bar-nav" v-if="step==2">
|
|
|
|
- <h1 class="mui-title">扫码通行</h1>
|
|
|
|
- <a class=" mui-icon mui-icon-left-nav mui-pull-left" @click="step='1'"></a>
|
|
|
|
- </header>
|
|
|
|
- <div class="mui-content" v-if="step==2">
|
|
|
|
- <div class="fyy-scon">
|
|
|
|
- <div class="fyy-scon-top">
|
|
|
|
- <div class="fyy-scon-head mui-col-xs-5">
|
|
|
|
- <img src="~$project/assets/img/default_photo.png" alt="">
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-det mui-col-xs-7">
|
|
|
|
- <div class="fyy-scon-det-top">
|
|
|
|
- <div class="fyy-scon-det-top-left">
|
|
|
|
- 姓名
|
|
|
|
- <div class="mui-h3" v-text="detail.name"></div>
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-det-top-right">
|
|
|
|
- 健康码
|
|
|
|
- <a @click="showGreenCode" class="mui-h3">绿码<span class="mui-icon iconfont icon-icon-"></span><span class="mui-icon mui-icon-arrowright"></span></a>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-det-down">
|
|
|
|
- 单位
|
|
|
|
- <div class="mui-h3" v-text="detail.unit">湖北荆盛商贸有限公司</div>
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-det-down">
|
|
|
|
- 手机号码
|
|
|
|
- <div class="mui-h3" v-text="showphone(detail.mobilePhone)">155****8888</div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-center mui-card">
|
|
|
|
- <p>当前健康状态</p>
|
|
|
|
- <form class="mui-input-group">
|
|
|
|
- <div class="mui-input-row mui-radio mui-left">
|
|
|
|
- <label>健康</label>
|
|
|
|
- <input name="radio1" type="radio" checked>
|
|
|
|
- </div>
|
|
|
|
- <div class="mui-input-row mui-radio mui-left">
|
|
|
|
- <label>≥37.3°C</label>
|
|
|
|
- <input name="radio1" type="radio">
|
|
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="mui-card fyy-scon-bot">
|
|
|
|
- <div class="fyy-scon-group">
|
|
|
|
- <label>受访人</label>
|
|
|
|
- <span>{{detail.intervieweeName}} {{detail.intervieweePhone}}<a class="mui-icon mui-icon-phone" v-if="detail.intervieweePhone" :href="'tel:'+detail.intervieweePhone"></a></span>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-group">
|
|
|
|
- <label>核验地点</label>
|
|
|
|
- <span>{{info.name}}</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-group">
|
|
|
|
- <label>扫码时间</label>
|
|
|
|
- <span>{{today()}}</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-group" v-if="detail.comeInTime">
|
|
|
|
- <label>进入时间</label>
|
|
|
|
- <span>{{detail.comeInTime}}</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-group" v-if="detail.outTime">
|
|
|
|
- <label>离开时间</label>
|
|
|
|
- <span>{{detail.outTime}}</span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="fyy-scon-botton">
|
|
|
|
- <div class="examine-btn examine-btn1" :class="detail.comeInTime&&!detail.outTime?'examine-btn1':'examine-btn3'" @click="update(detail.comeInTime&&!detail.outTime)">离开</div>
|
|
|
|
- <div class="examine-btn examine-btn2" :class="!detail.comeInTime?'examine-btn2':'examine-btn3'" @click="insert(!detail.comeInTime)" >进入</div>
|
|
|
|
- <!--<div class="examine-btn examine-btn3">灰色按钮</div>-->
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+
|
|
|
|
+ <div class="mui-content margin60 " v-if="step==2" >
|
|
|
|
+
|
|
|
|
+ <div class="mui-content-padded vongi-qingjiadt vongi-editme">
|
|
|
|
+ <form class="mui-input-group vongi-login-form">
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>审核状态</label>
|
|
|
|
+ <span :class="statusColor[detail.status]" v-text="status[detail.status]"></span>
|
|
|
|
+ <!--<span class="colorf8b155">待确认</span>
|
|
|
|
+ <span class="color999">已过期</span>-->
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>创建时间</label>
|
|
|
|
+ <span>{{detail.createTime}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mui-input-row" v-if="detail.confirmationTime">
|
|
|
|
+ <label>审核时间</label>
|
|
|
|
+ <span>{{detail.confirmationTime}} </span>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="mui-content-padded vongi-qingjiadt">
|
|
|
|
+ <form class="mui-input-group">
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>访客姓名</label>
|
|
|
|
+ <span>{{detail.name}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>访客手机号码</label>
|
|
|
|
+ <span>{{detail.mobilePhone}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>身份证号</label>
|
|
|
|
+ <span>{{detail.idCard}}</span>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>访客单位</label>
|
|
|
|
+ <span>{{detail.unit}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>访问事由</label>
|
|
|
|
+ <span>{{detail.visitReasons}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>拜访时间</label>
|
|
|
|
+ <span>{{detail.visitDate}}</span>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>车牌号</label>
|
|
|
|
+ <span>{{detail.numberPlate}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mui-content-padded vongi-qingjiadt vongi-editme">
|
|
|
|
+ <form class="mui-input-group vongi-login-form">
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>受访人</label>
|
|
|
|
+ <span>{{detail.intervieweeName}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>受访手机号码</label>
|
|
|
|
+ <span>{{detail.intervieweePhone}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="mui-content-padded vongi-qingjiadt vongi-editme" v-if="detail.status==1">
|
|
|
|
+ <form class="mui-input-group vongi-login-form">
|
|
|
|
+
|
|
|
|
+ <div class="mui-input-row" v-if="detail.comeInTime">
|
|
|
|
+ <label>进入时间</label>
|
|
|
|
+ <span>{{detail.comeInTime}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mui-input-row" v-if="detail.outTime">
|
|
|
|
+ <label>离开时间</label>
|
|
|
|
+ <span>{{detail.outTime}} </span>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
|
|
<loading :visible="isLoading"></loading>
|
|
<loading :visible="isLoading"></loading>
|
|
|
|
|
|
@@ -161,21 +177,23 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- pageTitle: '扫码通行',
|
|
|
|
|
|
+ pageTitle: '访客信息登记',
|
|
detail: {
|
|
detail: {
|
|
|
|
|
|
},
|
|
},
|
|
- info:{},
|
|
|
|
|
|
|
|
|
|
+ currentId:this.$route.query.currentId,
|
|
id:this.$route.query.id,
|
|
id:this.$route.query.id,
|
|
step:'1',
|
|
step:'1',
|
|
isLoading: false,
|
|
isLoading: false,
|
|
lineColor: '#e5aa37',
|
|
lineColor: '#e5aa37',
|
|
- statusColor: '#e5aa37',
|
|
|
|
- statusTitleColor: '#d39d33',
|
|
|
|
|
|
+ statusTitleColor: '#d39d33',
|
|
statusName: '异常',
|
|
statusName: '异常',
|
|
|
|
+ status: ['待确认', '已通过', '待审核','已过期','未通过'],
|
|
|
|
+ statusColor: ['colorf8b155', 'color55f868','colorf8b155','color999', 'colorfe616c'],
|
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
|
|
@@ -184,17 +202,15 @@
|
|
showGreenCode(){
|
|
showGreenCode(){
|
|
this.$refs.greenCode.showGreenCode();
|
|
this.$refs.greenCode.showGreenCode();
|
|
},
|
|
},
|
|
- insert(bl){
|
|
|
|
- if(bl){
|
|
|
|
- this.detail.openId=this.openId;
|
|
|
|
- this.detail.comeInTime=parseUnixTime(currentTimeStamp());
|
|
|
|
- this.detail.visitDate=parseUnixTime(currentTimeStamp());
|
|
|
|
- this.detail.createTime=parseUnixTime(currentTimeStamp());
|
|
|
|
|
|
+ insert(){
|
|
|
|
+ this.detail.openId=this.openId;
|
|
|
|
+ //this.detail.comeInTime=parseUnixTime(currentTimeStamp());
|
|
|
|
+ this.detail.visitDate=parseUnixTime(currentTimeStamp());
|
|
|
|
+ this.detail.createTime=parseUnixTime(currentTimeStamp());
|
|
|
|
|
|
- this.detail.status=0;
|
|
|
|
- this.detail.temperature=36;
|
|
|
|
- this.save();
|
|
|
|
- }
|
|
|
|
|
|
+ this.detail.status=2;
|
|
|
|
+ // this.detail.temperature=36;
|
|
|
|
+ this.save();
|
|
},
|
|
},
|
|
update(bl){
|
|
update(bl){
|
|
if(bl){
|
|
if(bl){
|
|
@@ -211,8 +227,8 @@
|
|
API_Current.add(this.detail).then(response => {
|
|
API_Current.add(this.detail).then(response => {
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
this.detail=response;
|
|
this.detail=response;
|
|
- mui.toast("操作成功,请将此页面展示给工作人员");
|
|
|
|
-
|
|
|
|
|
|
+ mui.toast("提交成功,请等待受访者审批");
|
|
|
|
+ this.$router.go(-1);
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
mui.toast(error);
|
|
mui.toast(error);
|
|
@@ -269,11 +285,10 @@
|
|
getDetail() {
|
|
getDetail() {
|
|
this.isLoading = true;
|
|
this.isLoading = true;
|
|
|
|
|
|
- API_Current.info({qrcode:this.id,openId:this.openId }).then(response => {
|
|
|
|
|
|
+ API_Current.info({qrcode:this.id,openId:this.openId,id:this.currentId }).then(response => {
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
|
|
|
|
- this.detail = response.data;
|
|
|
|
- this.info = response.info;
|
|
|
|
|
|
+ this.detail = response;
|
|
|
|
|
|
if(this.detail.id){
|
|
if(this.detail.id){
|
|
this.step='2';
|
|
this.step='2';
|
|
@@ -286,15 +301,7 @@
|
|
},asynCallBack(){},
|
|
},asynCallBack(){},
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
-
|
|
|
|
- if(!this.openId){
|
|
|
|
- mui.toast("请先关注【小鹏管家】")
|
|
|
|
- }else if(!this.id){
|
|
|
|
- mui.toast("请通过扫描二维码访问本页面")
|
|
|
|
-
|
|
|
|
- }else if(this.id&&this.openId){
|
|
|
|
- this.getDetail();
|
|
|
|
- }
|
|
|
|
|
|
+ this.getDetail();
|
|
},
|
|
},
|
|
destroyed() {
|
|
destroyed() {
|
|
|
|
|
|
@@ -303,8 +310,6 @@
|
|
...mapGetters({
|
|
...mapGetters({
|
|
openId: 'wx_openid',
|
|
openId: 'wx_openid',
|
|
token: 'token',
|
|
token: 'token',
|
|
- person_data: 'person_data',
|
|
|
|
- person_popedom: 'person_popedom',
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|