5283851d by renchao@pashanhoo.com

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

1 parent 02bd9b35
...@@ -613,17 +613,24 @@ ...@@ -613,17 +613,24 @@
613 Agencvy, 613 Agencvy,
614 PhotoB64 614 PhotoB64
615 } = JSON.parse(res) 615 } = JSON.parse(res)
616 this.ruleForm.qlrmc = Name; 616 if (Name) {
617 this.ruleForm.zjzl = '1'; 617 this.ruleForm.qlrmc = Name;
618 this.ruleForm.zjh = IdNo; 618 this.ruleForm.zjzl = '1';
619 this.ruleForm.xb = getObjectByValue(this.dictData['A43'], Sex); 619 this.ruleForm.zjh = IdNo;
620 this.ruleForm.dz = Address; 620 this.ruleForm.xb = getObjectByValue(this.dictData['A43'], Sex);
621 this.ruleForm.fzjg = Agencvy; 621 this.ruleForm.dz = Address;
622 this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64 622 this.ruleForm.fzjg = Agencvy;
623 this.$message({ 623 this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64
624 message: '读取成功!', 624 this.$message({
625 type: 'success' 625 message: '读取成功!',
626 }) 626 type: 'success'
627 })
628 } else {
629 this.$message({
630 message: '请放置身份证',
631 type: 'warning'
632 })
633 }
627 } else { 634 } else {
628 if (res.data.code == 0) { 635 if (res.data.code == 0) {
629 let data = res.data.IDCardInfo; 636 let data = res.data.IDCardInfo;
......
...@@ -602,17 +602,24 @@ ...@@ -602,17 +602,24 @@
602 Agencvy, 602 Agencvy,
603 PhotoB64 603 PhotoB64
604 } = JSON.parse(res) 604 } = JSON.parse(res)
605 this.ruleForm.ywrmc = Name; 605 if (Name) {
606 this.ruleForm.zjzl = '1'; 606 this.ruleForm.ywrmc = Name;
607 this.ruleForm.zjh = IdNo; 607 this.ruleForm.zjzl = '1';
608 this.ruleForm.xb = getObjectByValue(this.dictData['A43'], Sex); 608 this.ruleForm.zjh = IdNo;
609 this.ruleForm.txdz = Address; 609 this.ruleForm.xb = getObjectByValue(this.dictData['A43'], Sex);
610 this.ruleForm.fzjg = Agencvy; 610 this.ruleForm.txdz = Address;
611 this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64 611 this.ruleForm.fzjg = Agencvy;
612 this.$message({ 612 this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64
613 message: '读取成功!', 613 this.$message({
614 type: 'success' 614 message: '读取成功!',
615 }) 615 type: 'success'
616 })
617 } else {
618 this.$message({
619 message: '请放置身份证',
620 type: 'warning'
621 })
622 }
616 } else { 623 } else {
617 if (res.data.code == 0) { 624 if (res.data.code == 0) {
618 let data = res.data.IDCardInfo 625 let data = res.data.IDCardInfo
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-12-15 09:10:28 4 * @LastEditTime: 2023-12-15 09:36:45
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -178,21 +178,14 @@ ...@@ -178,21 +178,14 @@
178 let that = this; 178 let that = this;
179 this.$nextTick(() => { 179 this.$nextTick(() => {
180 if (val.length == 0 || !val) { 180 if (val.length == 0 || !val) {
181 that.tableDataList = _.cloneDeep([ 181 that.tableDataList = _.cloneDeep([])
182 // {
183 // qlrmc: "",
184 // dlrzjlx: "",
185 // dlrzjh: "",
186 // fr: "",
187 // },
188 ]);
189 } else { 182 } else {
190 that.tableDataList = _.cloneDeep(val); 183 that.tableDataList = _.cloneDeep(val)
191 } 184 }
192 }); 185 })
193 }, 186 },
194 immediate: true, 187 immediate: true,
195 deep: true, 188 deep: true
196 }, 189 },
197 gyfs: { 190 gyfs: {
198 handler (newVal, oldValue) { 191 handler (newVal, oldValue) {
...@@ -211,8 +204,8 @@ ...@@ -211,8 +204,8 @@
211 } 204 }
212 }, 205 },
213 immediate: true, 206 immediate: true,
214 deep: true, 207 deep: true
215 }, 208 }
216 }, 209 },
217 methods: { 210 methods: {
218 /** 211 /**
...@@ -277,21 +270,21 @@ ...@@ -277,21 +270,21 @@
277 Agencvy, 270 Agencvy,
278 PhotoB64 271 PhotoB64
279 } = JSON.parse(res) 272 } = JSON.parse(res)
280 row.qlrmc = Name; 273 if (Name) {
281 row.zjzl = '1'; 274 row.qlrmc = Name;
282 row.zjh = IdNo; 275 row.zjzl = '1';
283 row.xb = getObjectByValue(this.dictData['A43'], Sex); 276 row.zjh = IdNo;
284 row.dz = Address; 277 row.xb = getObjectByValue(this.dictData['A43'], Sex);
285 row.fzjg = Agencvy; 278 row.dz = Address;
286 row.avatar = 'data:image/png;base64,' + PhotoB64 279 row.fzjg = Agencvy;
287 if (row.qlrmc) { 280 row.avatar = 'data:image/png;base64,' + PhotoB64
288 this.$message({ 281 this.$message({
289 message: '读取成功!', 282 message: '读取成功!',
290 type: 'success' 283 type: 'success'
291 }) 284 })
292 } else { 285 } else {
293 this.$message({ 286 this.$message({
294 message: '请重新放置身份证', 287 message: '请放置身份证',
295 type: 'warning' 288 type: 'warning'
296 }) 289 })
297 } 290 }
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-12-15 09:10:42 4 * @LastEditTime: 2023-12-15 09:37:47
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -270,21 +270,21 @@ ...@@ -270,21 +270,21 @@
270 Agencvy, 270 Agencvy,
271 PhotoB64 271 PhotoB64
272 } = JSON.parse(res) 272 } = JSON.parse(res)
273 row.ywrmc = Name; 273 if (Name) {
274 row.zjzl = '1'; 274 row.ywrmc = Name;
275 row.zjh = IdNo; 275 row.zjzl = '1';
276 row.xb = getObjectByValue(this.dictData['A43'], Sex); 276 row.zjh = IdNo;
277 row.txdz = Address; 277 row.xb = getObjectByValue(this.dictData['A43'], Sex);
278 row.fzjg = Agencvy; 278 row.txdz = Address;
279 row.avatar = 'data:image/png;base64,' + PhotoB64 279 row.fzjg = Agencvy;
280 if (row.ywrmc) { 280 row.avatar = 'data:image/png;base64,' + PhotoB64
281 this.$message({ 281 this.$message({
282 message: '读取成功!', 282 message: '读取成功!',
283 type: 'success' 283 type: 'success'
284 }) 284 })
285 } else { 285 } else {
286 this.$message({ 286 this.$message({
287 message: '请重新放置身份证', 287 message: '请放置身份证',
288 type: 'warning' 288 type: 'warning'
289 }) 289 })
290 } 290 }
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-12-14 14:11:53 4 * @LastEditTime: 2023-12-15 09:36:06
5 --> 5 -->
6 <template> 6 <template>
7 <dialogBox 7 <dialogBox
...@@ -617,21 +617,21 @@ ...@@ -617,21 +617,21 @@
617 Agencvy, 617 Agencvy,
618 PhotoB64 618 PhotoB64
619 } = JSON.parse(res) 619 } = JSON.parse(res)
620 this.ruleForm.sqrmc = Name; 620 if (Name) {
621 this.ruleForm.zjzl = '1'; 621 this.ruleForm.sqrmc = Name;
622 this.ruleForm.zjh = IdNo; 622 this.ruleForm.zjzl = '1';
623 this.ruleForm.xb = getObjectByValue(this.dictData['A43'], Sex); 623 this.ruleForm.zjh = IdNo;
624 this.ruleForm.txdz = Address; 624 this.ruleForm.xb = getObjectByValue(this.dictData['A43'], Sex);
625 this.ruleForm.fzjg = Agencvy; 625 this.ruleForm.txdz = Address;
626 this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64 626 this.ruleForm.fzjg = Agencvy;
627 if (this.ruleForm.sqrmc) { 627 this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64
628 this.$message({ 628 this.$message({
629 message: '读取成功!', 629 message: '读取成功!',
630 type: 'success' 630 type: 'success'
631 }) 631 })
632 } else { 632 } else {
633 this.$message({ 633 this.$message({
634 message: '请重新放置身份证', 634 message: '请放置身份证',
635 type: 'warning' 635 type: 'warning'
636 }) 636 })
637 } 637 }
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-12-15 09:01:05 4 * @LastEditTime: 2023-12-15 09:35:06
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
15 import { mapGetters } from 'vuex' 15 import { mapGetters } from 'vuex'
16 import { getIdCardInfo } from '@/utils/operation.js' 16 import { getIdCardInfo } from '@/utils/operation.js'
17 import addQlr from './dialog/addQlr.vue' 17 import addQlr from './dialog/addQlr.vue'
18 import { log } from 'bpmn-js-token-simulation'
19 export default { 18 export default {
20 components: { 19 components: {
21 addQlr 20 addQlr
...@@ -250,21 +249,21 @@ ...@@ -250,21 +249,21 @@
250 Agencvy, 249 Agencvy,
251 PhotoB64 250 PhotoB64
252 } = JSON.parse(res) 251 } = JSON.parse(res)
253 row.sqrmc = Name; 252 if (Name != '') {
254 row.zjzl = '1'; 253 row.sqrmc = Name;
255 row.zjh = IdNo; 254 row.zjzl = '1';
256 row.xb = getObjectByValue(this.dictData['A43'], Sex); 255 row.zjh = IdNo;
257 row.txdz = Address; 256 row.xb = getObjectByValue(this.dictData['A43'], Sex);
258 row.fzjg = Agencvy; 257 row.txdz = Address;
259 row.avatar = 'data:image/png;base64,' + PhotoB64 258 row.fzjg = Agencvy;
260 if (row.sqrmc) { 259 row.avatar = 'data:image/png;base64,' + PhotoB64
261 this.$message({ 260 this.$message({
262 message: '读取成功!', 261 message: '读取成功!',
263 type: 'success' 262 type: 'success'
264 }) 263 })
265 } else { 264 } else {
266 this.$message({ 265 this.$message({
267 message: '请重新放置身份证', 266 message: '请放置身份证',
268 type: 'warning' 267 type: 'warning'
269 }) 268 })
270 } 269 }
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-12-15 09:02:50 4 * @LastEditTime: 2023-12-15 09:35:51
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -221,21 +221,21 @@ ...@@ -221,21 +221,21 @@
221 Agencvy, 221 Agencvy,
222 PhotoB64 222 PhotoB64
223 } = JSON.parse(res) 223 } = JSON.parse(res)
224 row.sqrmc = Name; 224 if (Name) {
225 row.zjzl = '1'; 225 row.sqrmc = Name;
226 row.zjh = IdNo; 226 row.zjzl = '1';
227 row.xb = getObjectByValue(this.dictData['A43'], Sex); 227 row.zjh = IdNo;
228 row.txdz = Address; 228 row.xb = getObjectByValue(this.dictData['A43'], Sex);
229 row.fzjg = Agencvy; 229 row.txdz = Address;
230 row.avatar = 'data:image/png;base64,' + PhotoB64 230 row.fzjg = Agencvy;
231 if (row.sqrmc) { 231 row.avatar = 'data:image/png;base64,' + PhotoB64
232 this.$message({ 232 this.$message({
233 message: '读取成功!', 233 message: '读取成功!',
234 type: 'success' 234 type: 'success'
235 }) 235 })
236 } else { 236 } else {
237 this.$message({ 237 this.$message({
238 message: '请重新放置身份证', 238 message: '请放置身份证',
239 type: 'warning' 239 type: 'warning'
240 }) 240 })
241 } 241 }
......