修改
This commit is contained in:
parent
d7d84aef45
commit
4883b05517
@ -172,7 +172,6 @@ export default {
|
||||
data() {
|
||||
//验证身份证
|
||||
var isCardId = (rule, value, callback) => {
|
||||
console.log(value)
|
||||
if (value == null) {
|
||||
callback(new Error("请输入患者身份证号"));
|
||||
} else {
|
||||
@ -362,6 +361,12 @@ export default {
|
||||
if (this.form.departmentId && this.form_departmentlist?.length > 0) {
|
||||
this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName
|
||||
}
|
||||
if (this.form.abnormalCauseId && this.abnormalCauselist?.length > 0) {
|
||||
this.form.abnormalCauseValue = this.abnormalCauselist.find(e => e.id == this.form.abnormalCauseId)?.abnormalCauseValue
|
||||
}
|
||||
if (this.form.supplementIllustrateId && this.supplementIllustratelist?.length > 0) {
|
||||
this.form.supplementIllustrateValue = this.supplementIllustratelist.find(e => e.id == this.form.supplementIllustrateId)?.abnormalCauseValue
|
||||
}
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user