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