Commit 4d9ee245 by 李嘉林

核验车辆

parent 9d4ec49a
...@@ -231,7 +231,8 @@ export default { ...@@ -231,7 +231,8 @@ export default {
console.log(this.$store.state.mixid,'mixid------230') console.log(this.$store.state.mixid,'mixid------230')
//冬奥会测试赛(mixid=CL)定制一键登录直接返回不用手机号 //冬奥会测试赛(mixid=CL)定制一键登录直接返回不用手机号
let isCertified = false; let isCertified = false;
if(this.$store.state.mixid == 'CL') { // this.mpApp.globalData.shopInfo.outCode正式环境提审测试赛项目 这个值后台改为1 审核通过改为空
if(this.$store.state.mixid == 'CL' && this.mpApp.globalData.shopInfo.outCode == '') {
isCertified = res.data.data.isCertified == 'true' isCertified = res.data.data.isCertified == 'true'
if(isCertified && res.data.data.sessionId) { if(isCertified && res.data.data.sessionId) {
//有账号 //有账号
......
...@@ -18,36 +18,66 @@ ...@@ -18,36 +18,66 @@
<div class="checkBtn flex" @click="toCheck">核验</div> <div class="checkBtn flex" @click="toCheck">核验</div>
</div> </div>
</div> </div>
<div class="userInfo" v-if="showInfo"> <div v-show="showInfo">
<div class="userInfo" v-if="isUser">
<div class="img"> <div class="img">
<image <image mode="aspectFill" :src="userInfo.handImage" alt=""></image>
mode="aspectFill"
:src="userInfo.handImage"
alt=""
></image>
</div> </div>
<div class="cell flex"> <div class="cell flex">
<div class="label">姓名</div> <div class="label">姓名</div>
<div class="val">{{userInfo.customerName}}</div> <div class="val">{{ userInfo.customerName }}</div>
</div> </div>
<div class="cell flex"> <div class="cell flex">
<div class="label">单位</div> <div class="label">单位</div>
<div class="val">{{userInfo.company}}</div> <div class="val">{{ userInfo.company }}</div>
</div> </div>
<div class="cell flex"> <div class="cell flex">
<div class="label">身份</div> <div class="label">身份</div>
<div class="val">{{userInfo.identity}}</div> <div class="val">{{ userInfo.identity }}</div>
</div> </div>
<div class="cell flex"> <div class="cell flex">
<div class="label">工作地点</div> <div class="label">工作地点</div>
<div class="val">{{userInfo.workArea}}</div> <div class="val">{{ userInfo.workArea }}</div>
</div> </div>
<div class="cell flex"> <div class="cell flex">
<div class="label">就餐地点</div> <div class="label">就餐地点</div>
<div class="val">{{userInfo.diningPlace}}</div> <div class="val">{{ userInfo.diningPlace }}</div>
</div> </div>
</div> </div>
<div v-if="loaded && !showInfo" class="noInfo">暂无人员信息</div> <div class="userInfo" v-else>
<div class="cell flex">
<div class="label">工作单位</div>
<div class="val">{{ carInfo.companyName }}</div>
</div>
<div class="cell flex">
<div class="label">车牌号</div>
<div class="val">{{ carInfo.numberPlate }}</div>
</div>
<div class="cell flex">
<div class="label">车辆颜色</div>
<div class="val">{{ carInfo.vehicleColor }}</div>
</div>
<div class="cell flex">
<div class="label">车辆类型</div>
<div class="val">{{ carInfo.vehicleType }}</div>
</div>
<div class="cell flex">
<div class="label">驾驶员姓名</div>
<div class="val">{{ carInfo.driverName }}</div>
</div>
<div class="cell flex">
<div class="label">工作区域</div>
<div class="val">{{ carInfo.workArea }}</div>
</div>
<div class="cell flex">
<div class="label">车辆用途</div>
<div class="val">{{ carInfo.vehicleUse }}</div>
</div>
</div>
</div>
<div v-if="loaded && !showInfo" class="noInfo">
暂无{{ isUser ? "人员" : "车辆" }}信息
</div>
<template v-if="showInfo"> <template v-if="showInfo">
<div class="seat"></div> <div class="seat"></div>
<div class="btm flex"> <div class="btm flex">
...@@ -58,8 +88,8 @@ ...@@ -58,8 +88,8 @@
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import index from "@/api/index" import index from "@/api/index";
import { DFSImg } from '@/utils/common.js' import { DFSImg } from "@/utils/common.js";
export default { export default {
name: "verification", name: "verification",
data() { data() {
...@@ -67,7 +97,9 @@ export default { ...@@ -67,7 +97,9 @@ export default {
checkText: "", checkText: "",
showInfo: false, showInfo: false,
loaded: false, loaded: false,
isUser: true, //是人员 false:车辆
userInfo: {}, userInfo: {},
carInfo: {},
}; };
}, },
components: {}, components: {},
...@@ -118,15 +150,22 @@ export default { ...@@ -118,15 +150,22 @@ export default {
wx.showLoading({ wx.showLoading({
title: "加载中...", title: "加载中...",
}); });
this.isUser = true;
this.showInfo = false; this.showInfo = false;
this.loaded = false; this.loaded = false;
index.getInfoByUniqueCode(this.checkText).then((res) => { index.getInfoByUniqueCode(this.checkText).then((res) => {
wx.hideLoading(); wx.hideLoading();
this.loaded = true; this.loaded = true;
if (res.data.ok == "true" && res.data.data) { if (res.data.ok == "true" && res.data.data) {
this.showInfo = true;
// carOrUser 0人 1车
if(res.data.data.carOrUser-0 == 0) {
this.userInfo = res.data.data.uniqueScanUserInfoDTO; this.userInfo = res.data.data.uniqueScanUserInfoDTO;
this.userInfo.handImage = DFSImg(this.userInfo.handImage); this.userInfo.handImage = DFSImg(this.userInfo.handImage);
this.showInfo = true; } else {
this.carInfo = res.data.data.vehicleInfoResponseDTO;
this.isUser = false;
}
} }
}); });
}, },
...@@ -207,7 +246,7 @@ export default { ...@@ -207,7 +246,7 @@ export default {
} }
} }
} }
.noInfo{ .noInfo {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
color: #666; color: #666;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment