From 7be972dd949202a0e71baa7d2d880d33c47bcda5 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 9 Apr 2024 14:28:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/visitSelect/index.vue | 71 + .../components/add-trials-list.vue | 2 +- .../components/confirm-visit-list.vue | 59 +- .../components/research-trials-list.vue | 6 +- .../components/trials-select.vue | 2 +- .../components/view-study-list.vue | 32 +- src/views/trials/trials-inspection/index.vue | 29 +- .../reading/reading-tracking/index.vue | 1403 +++-------------- .../study/components/edit-visit.vue | 49 +- .../trials-panel/study/components/list.vue | 32 +- .../study/components/not-bind-study.vue | 2 +- .../subject-list/components/add-subject.vue | 87 +- .../subject-list/components/patient-list.vue | 32 +- .../trial-summary/trial-information/index.vue | 4 +- 14 files changed, 510 insertions(+), 1300 deletions(-) create mode 100644 src/components/visitSelect/index.vue diff --git a/src/components/visitSelect/index.vue b/src/components/visitSelect/index.vue new file mode 100644 index 0000000..91540f5 --- /dev/null +++ b/src/components/visitSelect/index.vue @@ -0,0 +1,71 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/views/trials/trials-inspection/components/add-trials-list.vue b/src/views/trials/trials-inspection/components/add-trials-list.vue index a2c8132..478c5d0 100644 --- a/src/views/trials/trials-inspection/components/add-trials-list.vue +++ b/src/views/trials/trials-inspection/components/add-trials-list.vue @@ -208,7 +208,7 @@ export default { this.status = "visit"; this.$emit("getList"); this.$nextTick(() => { - this.$refs.confirmVisit.getList(); + this.$refs.confirmVisit.getList(true); this.$refs.confirmVisit.getSubjectVisitSelectList(); }); } diff --git a/src/views/trials/trials-inspection/components/confirm-visit-list.vue b/src/views/trials/trials-inspection/components/confirm-visit-list.vue index f33c7ce..9588d3c 100644 --- a/src/views/trials/trials-inspection/components/confirm-visit-list.vue +++ b/src/views/trials/trials-inspection/components/confirm-visit-list.vue @@ -78,6 +78,7 @@ :label="$t('trials:uploadDicomList:table:pId')" show-overflow-tooltip min-width="140" + sortable="custom" > + + - - - - - - + - diff --git a/src/views/trials/trials-panel/study/components/edit-visit.vue b/src/views/trials/trials-panel/study/components/edit-visit.vue index 5a54276..d26aa79 100644 --- a/src/views/trials/trials-panel/study/components/edit-visit.vue +++ b/src/views/trials/trials-panel/study/components/edit-visit.vue @@ -29,7 +29,15 @@ :label="$t('trials:auditRecord:table:visit')" prop="SubjectVisitId" > - + + + { item.SubjectVisitId = item.Id; + item.id = item.Id; + item.label = item.VisitName; + item.value = item.Id; return item; }); this.form.SubjectVisitId = this.data.SubjectVisitId; diff --git a/src/views/trials/trials-panel/study/components/list.vue b/src/views/trials/trials-panel/study/components/list.vue index 1505098..edfe091 100644 --- a/src/views/trials/trials-panel/study/components/list.vue +++ b/src/views/trials/trials-panel/study/components/list.vue @@ -113,23 +113,11 @@ /> - - - {{ - index === scope.row.PatientList.length - 1 - ? item.PatientIdStr - : `${item.PatientIdStr}, ` - }} - - --> + + + + + + - + + + {{ this.$t("trials:subject:messge:patient") }} + + {{ $t("common:button:add") }} @@ -81,6 +86,7 @@ @@ -136,9 +142,8 @@ export default { appendToBody: true, }, btnLoading: false, - submitMessage: {}, + submitMessage: { SubjectId: null }, selectPatient: [], - tableSelectData: [], subjectIdList: [], rules: { SubjectId: [ @@ -151,6 +156,17 @@ export default { }, }; }, + computed: { + bindPatientTip() { + if (!this.submitMessage.SubjectId) return false; + let PatientList = this.subjectIdList.map((item) => { + if (item.SubjectId === this.submitMessage.SubjectId) { + return item.PatientList; + } + })[0]; + if (PatientList.length <= 0) return false; + }, + }, created() { this.researchProgramNo = this.$route.query.researchProgramNo; this.getTrialSubejctSelectList(this.$route.query.trialId); @@ -200,14 +216,11 @@ export default { this.$refs.confirmVisit.getList(); this.$refs.confirmVisit.getSubjectVisitSelectList(); }); - // this.$emit("update:visible", false); } } catch (err) { this.btnLoading = false; console.log(err); } - // this.$emit("update:visible", false); - // this.$emit("handleOpenDialog", {}, "confirm"); }, // 获取受试者列表 async getTrialSubejctSelectList(id) { @@ -223,58 +236,14 @@ export default { console.log(err); } }, - // 获取列表 - async getList() { - let data = {}; - Object.keys(this.searchData).forEach((key) => { - data[key] = this.searchData[key]; - }); - if (this.dateValue[0] && this.dateValue[1]) { - data.EarliestStudyTime = this.dateValue[0].toISOString(); - data.LatestStudyTime = this.dateValue[1].toISOString(); - } else { - data.EarliestStudyTime = null; - data.LatestStudyTime = null; + // 打开患者弹框 + openPatientList() { + if (!this.submitMessage.SubjectId) { + return this.$message.warning( + this.$t("trials:inscept:rules:selectOrInputSubject") + ); } - try { - this.loading = true; - let res = await getPatientInitList(data); - this.loading = false; - if (res.IsSuccess) { - this.list = res.Result.CurrentPageData; - this.total = res.Result.TotalCount; - } - } catch (err) { - this.loading = false; - console.log(err); - } - }, - // 查询 - handleSearch() { - this.getList(); - }, - // 重置 - handleReset() { - this.reset(); - this.getList(); - }, - // 初始化 - reset() { - this.searchData = defaultSearchData(); - this.dateValue = []; - this.$refs.addSubjectList.clearSort(); - }, - // 表格选择 - handleSelectChange(selection) { - this.tableSelectData = selection; - }, - // 排序 - handleSortByColumn() { - this.searchData.SortField = sort.prop; - if (sort.order === "ascending") this.searchData.Asc = true; - if (sort.order === "descending") this.searchData.Asc = false; - if (!sort.order) this.searchData.SortField = null; - this.getList(); + this.patient_model.visible = true; }, }, }; diff --git a/src/views/trials/trials-panel/subject/subject-list/components/patient-list.vue b/src/views/trials/trials-panel/subject/subject-list/components/patient-list.vue index 6912040..c0968bc 100644 --- a/src/views/trials/trials-panel/subject/subject-list/components/patient-list.vue +++ b/src/views/trials/trials-panel/subject/subject-list/components/patient-list.vue @@ -107,12 +107,13 @@ show-overflow-tooltip min-width="140" > - + + + + + {{ + index === scope.row.CallingAEList.length - 1 + ? item + : `${item}, ` + }} + + { + return {}; + }, + }, }, data() { return { @@ -203,6 +230,7 @@ export default { data[key] = this.searchData[key]; }); data.TrialId = this.$route.query.trialId; + data.SubjectId = this.submitMessage.SubjectId; try { this.loading = true; let res = await getPatientInitList(data); diff --git a/src/views/trials/trials-panel/trial-summary/trial-information/index.vue b/src/views/trials/trials-panel/trial-summary/trial-information/index.vue index 4f12593..007d6ec 100644 --- a/src/views/trials/trials-panel/trial-summary/trial-information/index.vue +++ b/src/views/trials/trials-panel/trial-summary/trial-information/index.vue @@ -91,7 +91,7 @@
+ +
- -
+ {{ this.$t("trials:subject:messge:patient") }} + +