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

我的居民列表样式优化11

上级 45154812
...@@ -369,9 +369,15 @@ ...@@ -369,9 +369,15 @@
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;
if(provinceId) {
await this.getCity(provinceId); await this.getCity(provinceId);
}
if(cityId) {
await this.getCounty(provinceId, cityId); await this.getCounty(provinceId, cityId);
}
if(countyId) {
await this.getTown(provinceId, cityId, countyId); await this.getTown(provinceId, cityId, countyId);
}
this.addressList = [Number(provinceId), Number(cityId), Number(countyId), Number(townId)]; this.addressList = [Number(provinceId), Number(cityId), Number(countyId), Number(townId)];
this.$forceUpdate(); this.$forceUpdate();
}else { }else {
...@@ -537,7 +543,13 @@ ...@@ -537,7 +543,13 @@
this.patientInfoForm.townName = item.townName; this.patientInfoForm.townName = item.townName;
} }
}) })
if(this.patientInfoForm.provinceName && this.patientInfoForm.cityName && this.patientInfoForm.countyName && this.patientInfoForm.townName) {
this.patientInfoForm.patientAddress = `${this.patientInfoForm.provinceName}${this.patientInfoForm.cityName}${this.patientInfoForm.countyName}${this.patientInfoForm.townName}` this.patientInfoForm.patientAddress = `${this.patientInfoForm.provinceName}${this.patientInfoForm.cityName}${this.patientInfoForm.countyName}${this.patientInfoForm.townName}`
}else {
this.patientInfoForm.patientAddress = '';
// this.$message.warning('请选择正确的地区')
// return ;
}
} }
if(!this.patientInfoForm.idNo) { if(!this.patientInfoForm.idNo) {
this.patientInfoForm.idNo = null; this.patientInfoForm.idNo = null;
......
...@@ -100,8 +100,8 @@ ...@@ -100,8 +100,8 @@
<div class="list-visit"> <div class="list-visit">
<span class="left-label">随访量表:</span> <span class="left-label">随访量表:</span>
<div class="right-item"> <div class="right-item">
<p v-for="(item2, index2) in item.scaleSimpleDtos" :key="index2">{{item2.name}} <p v-for="(item2, index2) in item.scaleSimpleDtos" :key="index2" v-if="item.scaleSimpleDtos">{{item2.name}}
<!--<span class="check-btn" @click="openScaleDetail(item2.url)">查看量表</span>--> <span class="check-btn" @click="openScaleDetail(item2.url)">查看量表</span>
</p> </p>
</div> </div>
</div> </div>
......
...@@ -71,12 +71,15 @@ ...@@ -71,12 +71,15 @@
this.checkForm = false; this.checkForm = false;
if(val.status) { if(val.status) {
// this.patientInfo = val.patientInfoForm // this.patientInfo = val.patientInfoForm
console.log('填写内容',val.patientInfoForm); // console.log('填写内容',val.patientInfoForm);
savePatientInfo(val.patientInfoForm).then(data => { savePatientInfo(val.patientInfoForm).then(data => {
if(data.code == '000000'){ if(data.code == '000000'){
this.$message.success('新增成功') this.$message.success('新增成功')
setTimeout(() => { setTimeout(() => {
this.$refs.newForm.$refs.patientInfoForm.resetFields() this.$refs.newForm.$refs.patientInfoForm.resetFields()
this.$refs.newForm.diseaseIdList = [];
this.$refs.newForm.labelIdList = [];
this.$refs.newForm.addressList = [];
// this.$router.go(0);//体验不好 // this.$router.go(0);//体验不好
},500) },500)
}else { }else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册