style:增加判断是否放置身份证
Showing
7 changed files
with
35 additions
and
29 deletions
... | @@ -613,6 +613,7 @@ | ... | @@ -613,6 +613,7 @@ |
613 | Agencvy, | 613 | Agencvy, |
614 | PhotoB64 | 614 | PhotoB64 |
615 | } = JSON.parse(res) | 615 | } = JSON.parse(res) |
616 | if (Name) { | ||
616 | this.ruleForm.qlrmc = Name; | 617 | this.ruleForm.qlrmc = Name; |
617 | this.ruleForm.zjzl = '1'; | 618 | this.ruleForm.zjzl = '1'; |
618 | this.ruleForm.zjh = IdNo; | 619 | this.ruleForm.zjh = IdNo; |
... | @@ -625,6 +626,12 @@ | ... | @@ -625,6 +626,12 @@ |
625 | type: 'success' | 626 | type: 'success' |
626 | }) | 627 | }) |
627 | } else { | 628 | } else { |
629 | this.$message({ | ||
630 | message: '请放置身份证', | ||
631 | type: 'warning' | ||
632 | }) | ||
633 | } | ||
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; |
630 | const { | 637 | const { | ... | ... |
... | @@ -602,6 +602,7 @@ | ... | @@ -602,6 +602,7 @@ |
602 | Agencvy, | 602 | Agencvy, |
603 | PhotoB64 | 603 | PhotoB64 |
604 | } = JSON.parse(res) | 604 | } = JSON.parse(res) |
605 | if (Name) { | ||
605 | this.ruleForm.ywrmc = Name; | 606 | this.ruleForm.ywrmc = Name; |
606 | this.ruleForm.zjzl = '1'; | 607 | this.ruleForm.zjzl = '1'; |
607 | this.ruleForm.zjh = IdNo; | 608 | this.ruleForm.zjh = IdNo; |
... | @@ -614,6 +615,12 @@ | ... | @@ -614,6 +615,12 @@ |
614 | type: 'success' | 615 | type: 'success' |
615 | }) | 616 | }) |
616 | } else { | 617 | } else { |
618 | this.$message({ | ||
619 | message: '请放置身份证', | ||
620 | type: 'warning' | ||
621 | }) | ||
622 | } | ||
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 |
619 | this.ruleForm.ywrmc = data.name | 626 | this.ruleForm.ywrmc = data.name | ... | ... |
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,6 +270,7 @@ | ... | @@ -277,6 +270,7 @@ |
277 | Agencvy, | 270 | Agencvy, |
278 | PhotoB64 | 271 | PhotoB64 |
279 | } = JSON.parse(res) | 272 | } = JSON.parse(res) |
273 | if (Name) { | ||
280 | row.qlrmc = Name; | 274 | row.qlrmc = Name; |
281 | row.zjzl = '1'; | 275 | row.zjzl = '1'; |
282 | row.zjh = IdNo; | 276 | row.zjh = IdNo; |
... | @@ -284,14 +278,13 @@ | ... | @@ -284,14 +278,13 @@ |
284 | row.dz = Address; | 278 | row.dz = Address; |
285 | row.fzjg = Agencvy; | 279 | row.fzjg = Agencvy; |
286 | row.avatar = 'data:image/png;base64,' + PhotoB64 | 280 | row.avatar = 'data:image/png;base64,' + PhotoB64 |
287 | if (row.qlrmc) { | ||
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,6 +270,7 @@ | ... | @@ -270,6 +270,7 @@ |
270 | Agencvy, | 270 | Agencvy, |
271 | PhotoB64 | 271 | PhotoB64 |
272 | } = JSON.parse(res) | 272 | } = JSON.parse(res) |
273 | if (Name) { | ||
273 | row.ywrmc = Name; | 274 | row.ywrmc = Name; |
274 | row.zjzl = '1'; | 275 | row.zjzl = '1'; |
275 | row.zjh = IdNo; | 276 | row.zjh = IdNo; |
... | @@ -277,14 +278,13 @@ | ... | @@ -277,14 +278,13 @@ |
277 | row.txdz = Address; | 278 | row.txdz = Address; |
278 | row.fzjg = Agencvy; | 279 | row.fzjg = Agencvy; |
279 | row.avatar = 'data:image/png;base64,' + PhotoB64 | 280 | row.avatar = 'data:image/png;base64,' + PhotoB64 |
280 | if (row.ywrmc) { | ||
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,6 +617,7 @@ | ... | @@ -617,6 +617,7 @@ |
617 | Agencvy, | 617 | Agencvy, |
618 | PhotoB64 | 618 | PhotoB64 |
619 | } = JSON.parse(res) | 619 | } = JSON.parse(res) |
620 | if (Name) { | ||
620 | this.ruleForm.sqrmc = Name; | 621 | this.ruleForm.sqrmc = Name; |
621 | this.ruleForm.zjzl = '1'; | 622 | this.ruleForm.zjzl = '1'; |
622 | this.ruleForm.zjh = IdNo; | 623 | this.ruleForm.zjh = IdNo; |
... | @@ -624,14 +625,13 @@ | ... | @@ -624,14 +625,13 @@ |
624 | this.ruleForm.txdz = Address; | 625 | this.ruleForm.txdz = Address; |
625 | this.ruleForm.fzjg = Agencvy; | 626 | this.ruleForm.fzjg = Agencvy; |
626 | this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64 | 627 | this.ruleForm.avatar = 'data:image/png;base64,' + PhotoB64 |
627 | if (this.ruleForm.sqrmc) { | ||
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,6 +249,7 @@ | ... | @@ -250,6 +249,7 @@ |
250 | Agencvy, | 249 | Agencvy, |
251 | PhotoB64 | 250 | PhotoB64 |
252 | } = JSON.parse(res) | 251 | } = JSON.parse(res) |
252 | if (Name != '') { | ||
253 | row.sqrmc = Name; | 253 | row.sqrmc = Name; |
254 | row.zjzl = '1'; | 254 | row.zjzl = '1'; |
255 | row.zjh = IdNo; | 255 | row.zjh = IdNo; |
... | @@ -257,14 +257,13 @@ | ... | @@ -257,14 +257,13 @@ |
257 | row.txdz = Address; | 257 | row.txdz = Address; |
258 | row.fzjg = Agencvy; | 258 | row.fzjg = Agencvy; |
259 | row.avatar = 'data:image/png;base64,' + PhotoB64 | 259 | row.avatar = 'data:image/png;base64,' + PhotoB64 |
260 | if (row.sqrmc) { | ||
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,6 +221,7 @@ | ... | @@ -221,6 +221,7 @@ |
221 | Agencvy, | 221 | Agencvy, |
222 | PhotoB64 | 222 | PhotoB64 |
223 | } = JSON.parse(res) | 223 | } = JSON.parse(res) |
224 | if (Name) { | ||
224 | row.sqrmc = Name; | 225 | row.sqrmc = Name; |
225 | row.zjzl = '1'; | 226 | row.zjzl = '1'; |
226 | row.zjh = IdNo; | 227 | row.zjh = IdNo; |
... | @@ -228,14 +229,13 @@ | ... | @@ -228,14 +229,13 @@ |
228 | row.txdz = Address; | 229 | row.txdz = Address; |
229 | row.fzjg = Agencvy; | 230 | row.fzjg = Agencvy; |
230 | row.avatar = 'data:image/png;base64,' + PhotoB64 | 231 | row.avatar = 'data:image/png;base64,' + PhotoB64 |
231 | if (row.sqrmc) { | ||
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 | } | ... | ... |
-
Please register or sign in to post a comment