5283851d by renchao@pashanhoo.com

style:增加判断是否放置身份证

1 parent 02bd9b35
......@@ -613,6 +613,7 @@
Agencvy,
PhotoB64
} = JSON.parse(res)
if (Name) {
this.ruleForm.qlrmc = Name;
this.ruleForm.zjzl = '1';
this.ruleForm.zjh = IdNo;
......@@ -625,6 +626,12 @@
type: 'success'
})
} else {
this.$message({
message: '请放置身份证',
type: 'warning'
})
}
} else {
if (res.data.code == 0) {
let data = res.data.IDCardInfo;
const {
......
......@@ -602,6 +602,7 @@
Agencvy,
PhotoB64
} = JSON.parse(res)
if (Name) {
this.ruleForm.ywrmc = Name;
this.ruleForm.zjzl = '1';
this.ruleForm.zjh = IdNo;
......@@ -614,6 +615,12 @@
type: 'success'
})
} else {
this.$message({
message: '请放置身份证',
type: 'warning'
})
}
} else {
if (res.data.code == 0) {
let data = res.data.IDCardInfo
this.ruleForm.ywrmc = data.name
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-12-15 09:10:28
* @LastEditTime: 2023-12-15 09:36:45
-->
<template>
<div>
......@@ -178,21 +178,14 @@
let that = this;
this.$nextTick(() => {
if (val.length == 0 || !val) {
that.tableDataList = _.cloneDeep([
// {
// qlrmc: "",
// dlrzjlx: "",
// dlrzjh: "",
// fr: "",
// },
]);
that.tableDataList = _.cloneDeep([])
} else {
that.tableDataList = _.cloneDeep(val);
that.tableDataList = _.cloneDeep(val)
}
});
})
},
immediate: true,
deep: true,
deep: true
},
gyfs: {
handler (newVal, oldValue) {
......@@ -211,8 +204,8 @@
}
},
immediate: true,
deep: true,
},
deep: true
}
},
methods: {
/**
......@@ -277,6 +270,7 @@
Agencvy,
PhotoB64
} = JSON.parse(res)
if (Name) {
row.qlrmc = Name;
row.zjzl = '1';
row.zjh = IdNo;
......@@ -284,14 +278,13 @@
row.dz = Address;
row.fzjg = Agencvy;
row.avatar = 'data:image/png;base64,' + PhotoB64
if (row.qlrmc) {
this.$message({
message: '读取成功!',
type: 'success'
})
} else {
this.$message({
message: '请重新放置身份证',
message: '请放置身份证',
type: 'warning'
})
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-12-15 09:10:42
* @LastEditTime: 2023-12-15 09:37:47
-->
<template>
<div>
......@@ -270,6 +270,7 @@
Agencvy,
PhotoB64
} = JSON.parse(res)
if (Name) {
row.ywrmc = Name;
row.zjzl = '1';
row.zjh = IdNo;
......@@ -277,14 +278,13 @@
row.txdz = Address;
row.fzjg = Agencvy;
row.avatar = 'data:image/png;base64,' + PhotoB64
if (row.ywrmc) {
this.$message({
message: '读取成功!',
type: 'success'
})
} else {
this.$message({
message: '请重新放置身份证',
message: '请放置身份证',
type: 'warning'
})
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-12-14 14:11:53
* @LastEditTime: 2023-12-15 09:36:06
-->
<template>
<dialogBox
......@@ -617,6 +617,7 @@
Agencvy,
PhotoB64
} = JSON.parse(res)
if (Name) {
this.ruleForm.sqrmc = Name;
this.ruleForm.zjzl = '1';
this.ruleForm.zjh = IdNo;
......@@ -624,14 +625,13 @@
this.ruleForm.txdz = Address;
this.ruleForm.fzjg = Agencvy;
this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64
if (this.ruleForm.sqrmc) {
this.$message({
message: '读取成功!',
type: 'success'
})
} else {
this.$message({
message: '请重新放置身份证',
message: '请放置身份证',
type: 'warning'
})
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-12-15 09:01:05
* @LastEditTime: 2023-12-15 09:35:06
-->
<template>
<div>
......@@ -15,7 +15,6 @@
import { mapGetters } from 'vuex'
import { getIdCardInfo } from '@/utils/operation.js'
import addQlr from './dialog/addQlr.vue'
import { log } from 'bpmn-js-token-simulation'
export default {
components: {
addQlr
......@@ -250,6 +249,7 @@
Agencvy,
PhotoB64
} = JSON.parse(res)
if (Name != '') {
row.sqrmc = Name;
row.zjzl = '1';
row.zjh = IdNo;
......@@ -257,14 +257,13 @@
row.txdz = Address;
row.fzjg = Agencvy;
row.avatar = 'data:image/png;base64,' + PhotoB64
if (row.sqrmc) {
this.$message({
message: '读取成功!',
type: 'success'
})
} else {
this.$message({
message: '请重新放置身份证',
message: '请放置身份证',
type: 'warning'
})
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-12-15 09:02:50
* @LastEditTime: 2023-12-15 09:35:51
-->
<template>
<div>
......@@ -221,6 +221,7 @@
Agencvy,
PhotoB64
} = JSON.parse(res)
if (Name) {
row.sqrmc = Name;
row.zjzl = '1';
row.zjh = IdNo;
......@@ -228,14 +229,13 @@
row.txdz = Address;
row.fzjg = Agencvy;
row.avatar = 'data:image/png;base64,' + PhotoB64
if (row.sqrmc) {
this.$message({
message: '读取成功!',
type: 'success'
})
} else {
this.$message({
message: '请重新放置身份证',
message: '请放置身份证',
type: 'warning'
})
}
......