|
@@ -206,10 +206,23 @@ export default {
|
|
|
// this.form.hospitalCode = data.code;
|
|
|
this.form.address = data.address;
|
|
|
this.hospitalId = data.id;
|
|
|
+ this.getByhospitalInfoId(data.id)
|
|
|
}
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ getByhospitalInfoId(id) {
|
|
|
+ api.getByhospitalInfoId({id:id}).then(res => {
|
|
|
+ if (res.data.code === '0') {
|
|
|
+ const data = res.data.data
|
|
|
+ data.hospitalRelationDTOList.forEach((item, index) => {
|
|
|
+ item.errorOther = false;
|
|
|
+ item.errorCurrent = false;
|
|
|
+ });
|
|
|
+ this.form.hospitalRelationVOList = data.hospitalRelationDTOList;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
onSubmit() {
|
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|
|
@@ -223,8 +236,8 @@ export default {
|
|
|
// code: this.form.hospitalCode
|
|
|
};
|
|
|
this.form.hospitalRelationVOList.forEach((item, index) => {
|
|
|
- item.errorOther = false
|
|
|
- item.errorCurrent = false
|
|
|
+ item.errorOther = false;
|
|
|
+ item.errorCurrent = false;
|
|
|
});
|
|
|
if (this.isEdit) {
|
|
|
params = Object.assign({}, params, {
|