This commit is contained in:
2024-04-23 10:43:51 +08:00
parent d7d84aef45
commit 4883b05517

View File

@ -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) {