|
@@ -171,19 +171,22 @@ export default {
|
|
|
});
|
|
});
|
|
|
let child = children[0];
|
|
let child = children[0];
|
|
|
|
|
|
|
|
- this.isDaiJian = child.recipe_tabs[child.recipe_tabs_c].bottom_form.isDaiJian
|
|
|
|
|
- this.isPs = child.recipe_tabs[child.recipe_tabs_c].bottom_form.radio
|
|
|
|
|
|
|
+ const isDaiJian = child.recipe_tabs[child.recipe_tabs_c].bottom_form.isDaiJian
|
|
|
|
|
+ const isPs = child.recipe_tabs[child.recipe_tabs_c].bottom_form.radio
|
|
|
|
|
+ if (isPs != null) this.isPs = isPs;
|
|
|
|
|
+ if (isDaiJian != null) this.isDaiJian = isDaiJian;
|
|
|
}, 200)
|
|
}, 200)
|
|
|
} else {
|
|
} else {
|
|
|
this.showAddress = false;
|
|
this.showAddress = false;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 提交地址信息
|
|
// 提交地址信息
|
|
|
- submitAddress() {
|
|
|
|
|
|
|
+ submitAddress(cancel) {
|
|
|
|
|
+ this.showAddress = false;
|
|
|
|
|
+ if (cancel) return;
|
|
|
const model = this.$refs.medAdress.form;
|
|
const model = this.$refs.medAdress.form;
|
|
|
this.psChange(model.iskD)
|
|
this.psChange(model.iskD)
|
|
|
this.djChange(model.isDaiJian)
|
|
this.djChange(model.isDaiJian)
|
|
|
- this.showAddress = false;
|
|
|
|
|
},
|
|
},
|
|
|
// 获取合理安全用药提醒配置
|
|
// 获取合理安全用药提醒配置
|
|
|
async getRationalSafeUse() {
|
|
async getRationalSafeUse() {
|