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

细节调整

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