提交 4f5afc8e 编写于 作者: yi.li's avatar yi.li

细节调整

上级 1cc69212
...@@ -298,11 +298,13 @@ ...@@ -298,11 +298,13 @@
item.disableNum = 1; item.disableNum = 1;
let diseaseNames = []; let diseaseNames = [];
let groupNames = [] let groupNames = []
if(!item.idNo) {
item.idNo = '-';
}
//转化分组 //转化分组
if(item.labelModels) { if(item.labelModels) {
item.labelModels.forEach(item => { item.labelModels.forEach(item => {
groupNames.push(item.label) groupNames.push(item.label)
}); });
item.showLabelName = groupNames.join('、'); item.showLabelName = groupNames.join('、');
} else { } else {
......
...@@ -332,9 +332,8 @@ ...@@ -332,9 +332,8 @@
patientId: String, patientId: String,
}, },
watch: { watch: {
// const obj = await searchObj(id).then(res => res);
async patientInfoObj(val) { async patientInfoObj(val) {
if(this.patientId){ if(this.patientId){ //编辑居民信息,对拿到的数据做处理
this.patientInfoForm = val; this.patientInfoForm = val;
this.baseInfoEdit = this.patientInfoForm.baseInfoEdit; this.baseInfoEdit = this.patientInfoForm.baseInfoEdit;
let customLabels = this.patientInfoForm.customLabels; let customLabels = this.patientInfoForm.customLabels;
...@@ -358,13 +357,12 @@ ...@@ -358,13 +357,12 @@
}else { }else {
this.hasIdNo = false; this.hasIdNo = false;
} }
//对地区数据做处理 //对地区数据做回显处理
if(this.patientInfoForm.patientAddress) { if(this.patientInfoForm.patientAddress) {
let provinceId = this.patientInfoForm.provinceId; let provinceId = this.patientInfoForm.provinceId;
let cityId = this.patientInfoForm.cityId; let cityId = this.patientInfoForm.cityId;
let countyId = this.patientInfoForm.countyId; let countyId = this.patientInfoForm.countyId;
let townId = this.patientInfoForm.townId; let townId = this.patientInfoForm.townId;
await this.getCity(provinceId); await this.getCity(provinceId);
await this.getCounty(provinceId, cityId); await this.getCounty(provinceId, cityId);
await this.getTown(provinceId, cityId, countyId); await this.getTown(provinceId, cityId, countyId);
...@@ -373,8 +371,7 @@ ...@@ -373,8 +371,7 @@
}else { }else {
this.addressList = []; this.addressList = [];
} }
}else { }else { // 新增
// 新增
this.patientInfoForm = { this.patientInfoForm = {
nickname: '', nickname: '',
mobilePhone: '', mobilePhone: '',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册