feat(医疗模块): 更新关联用户功能,优化表单处理

- 将关联用户输入框的大小调整为大号,提升用户体验
- 在表单数据中添加用户ID字段,支持关联用户的选择
- 优化手机号和邮箱的自动补全逻辑,确保用户信息的准确性
- 增加调试信息以便于后续开发和问题排查
This commit is contained in:
2026-03-23 17:42:39 +08:00
parent 30237639c7
commit 2e3fcadc14

View File

@@ -78,7 +78,7 @@
<el-row type="flex" justify="center">
<el-form-item label="关联用户" prop="tel">
<el-autocomplete
size="small"
size="large"
style="width: 500px;"
v-model="addForm.tel"
:debounce="500"
@@ -170,6 +170,7 @@
content: '',
cityId: '',
provId: '',
userId: '', //关联用户id
tel: '',
sort: 0
},
@@ -270,6 +271,7 @@
})
},
loadAll(queryString, cb) {
console.log('queryString', queryString);
if (queryString == "") {
return false;
}
@@ -293,7 +295,7 @@
handleSelect(data) {
console.log("data at line 161:", data);
this.addForm.userId = data.id;
this.addForm.tel = data.tel;
this.addForm.tel = data.tel ? data.tel : data.email;
},
provinceChange() {
this.addForm.cityId = ''
@@ -338,6 +340,7 @@
this.addForm.typeId = row.type.toString()
this.addForm.sort = row.sort
this.addForm.tel = row.tel
this.addForm.userId = row.userId ? row.userId : ''
this.fileList = row.imgList
for (var i = 0; i < this.provinceEntity.length; i++) {
for (var j = 0; j < this.provinceEntity[i].cityList.length; j++) {
@@ -368,6 +371,8 @@
content: '',
cityId: '',
provId: '',
userId: '',
tel: '',
sort: 0
}
this.fileList = []