修改
This commit is contained in:
parent
131d230b4d
commit
6b3bacb4d0
@ -31,7 +31,7 @@
|
||||
<u-input v-model="form.patientName" placeholder="请输入姓名" />
|
||||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item prop="sex" :border-bottom="false">
|
||||
<u-form-item prop="sexname" :border-bottom="false">
|
||||
<view class="name">
|
||||
性别
|
||||
<view class="sex">
|
||||
@ -190,6 +190,7 @@
|
||||
cardNo: '',
|
||||
patientName: '',
|
||||
sexname: '',
|
||||
sex: '',
|
||||
nation: '',
|
||||
address: '',
|
||||
phone: '',
|
||||
@ -510,7 +511,7 @@
|
||||
message: '请输入姓名',
|
||||
trigger: ['change', 'blur']
|
||||
}],
|
||||
sex: [{
|
||||
sexname: [{
|
||||
min: 1,
|
||||
required: true,
|
||||
message: '请选择性别',
|
||||
@ -608,6 +609,7 @@
|
||||
cardNo: this.form.cardNo,
|
||||
patientName: res.data.residentName,
|
||||
sexname: gender,
|
||||
sex: '',
|
||||
nation: res.data.nation,
|
||||
address: res.data.address,
|
||||
phone: res.data.phone,
|
||||
@ -619,10 +621,9 @@
|
||||
areaCode: '',
|
||||
}
|
||||
} else {
|
||||
let sex = getSex(this.query.cardNo)
|
||||
sex == '女' ? this.query.sex = 'FEMALE' : sex == '男' ? this.query.sex = 'MALE' : ''
|
||||
let sex = getSex(this.form.cardNo)
|
||||
this.form.sexname = sex
|
||||
this.query.birthDate = getBirthday(this.query.cardNo)
|
||||
this.form.birthDate = getBirthday(this.form.cardNo)
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -696,6 +697,7 @@
|
||||
} else if (that.form.sexname == '女') {
|
||||
that.form.sex = 'FEMALE';
|
||||
}
|
||||
console.log(that.form)
|
||||
if (that.form.sex == "") {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择性别',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user