diff --git a/src/views/trials/trials-inspection/components/pullImage/byPatient.vue b/src/views/trials/trials-inspection/components/pullImage/byPatient.vue index 4a92db7..3ce06b2 100644 --- a/src/views/trials/trials-inspection/components/pullImage/byPatient.vue +++ b/src/views/trials/trials-inspection/components/pullImage/byPatient.vue @@ -686,14 +686,20 @@ export default { this.group_model.title = this.$t('trials:inspection:dialogTitle:collect') } else { this.group_model.title = this.$t('trials:inspection:dialogTitle:pull') + if (this.hospitalGroupList.length === 1) { + this.form.HospitalGroupIdList = [this.hospitalGroupList[0].Id] + return this.pullImage() + } } this.group_model.visible = true }, // 拉取pacs数据 async pullImage() { try { - let validate = await this.$refs.groupFrom.validate() - if (!validate) return false + if (this.$refs.groupFrom) { + let validate = await this.$refs.groupFrom.validate() + if (!validate) return false + } if (this.groupStatus === 1) return this.handleSaveGroup() let row = this.currentData let data = {