解决扫描身份证和刷银行卡功能bug与刷身份证后做选择题选项处理

20240205 银行项目V0.3
e 3 years ago
parent e340463ec8
commit 786cf6a008
  1. 12
      src/pages/manage/list/client/consumerClient.vue

@ -43,8 +43,8 @@
<el-form-item label="性别" prop="sex"> <el-form-item label="性别" prop="sex">
<el-select v-model="form.sex" placeholder="请选择" ref='sex'> <el-select v-model="form.sex" placeholder="请选择" ref='sex'>
<el-option <el-option
v-for="(item,key) in gender" v-for="item in gender"
:key="key" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id" :value="item.id"
> >
@ -218,7 +218,13 @@ export default {
this.form.idNumber = idNumber this.form.idNumber = idNumber
this.form.idType = 83 this.form.idType = 83
this.form.userName = userName this.form.userName = userName
this.form.sex = sex let sexs = null
if (sex == '男'){
sexs = 1
}else{
sexs = 2
}
this.form.sex = sexs
this.form.birthday = birthday this.form.birthday = birthday
this.form.nationality = nationality this.form.nationality = nationality
this.form.mailbox = mailbox this.form.mailbox = mailbox

Loading…
Cancel
Save