From 0c42bb61610e76c50069b420075867ad5127da1c Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Thu, 11 Apr 2024 14:38:11 +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
---
.gitignore | 4 +--
.../components/ClinicalQuestionConfig.vue | 4 ++-
.../template/components/CriterionsConfig.vue | 4 ++-
.../components/EfficacyAssessment.vue | 7 +++--
.../template/components/OrgansTbl.vue | 4 ++-
src/views/financials/revenues/index.vue | 8 +++--
.../components/EnrollmentsStatsByReviewer.vue | 4 ++-
.../components/TrialEnrollmentsStats.vue | 4 ++-
.../statistics/components/WorkloadStats.vue | 4 ++-
.../components/confirm-visit-list.vue | 1 +
.../enrolled-reviewers/list/index.vue | 15 ++++++----
.../trials/trials-panel/hirVisit/index.vue | 30 +++++++++++++++++--
.../reading/audit-records/index.vue | 8 +++--
.../reading/mim-medical-audit/index.vue | 4 ++-
.../reading/pending-review/index.vue | 22 ++------------
.../trials-panel/reading/reviewed/index.vue | 4 ++-
.../email-manage/components/EmailList.vue | 2 +-
.../reading-unit/components/DefaultOrgans.vue | 2 +-
.../reading-unit/components/OrgansTbl.vue | 2 +-
.../components/ClinicalQuestionConfig.vue | 2 +-
.../subject-list/components/MessageTable.vue | 2 +-
.../subject-list/components/SubjectsForm.vue | 4 +--
.../subject-list/components/add-subject.vue | 3 ++
.../subject/subject-list/index.vue | 2 +-
.../trials-panel/visit/crc-upload/index.vue | 2 +-
.../trials-panel/visit/qc-check/index.vue | 2 +-
26 files changed, 97 insertions(+), 53 deletions(-)
diff --git a/.gitignore b/.gitignore
index 3df607e..60883be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,5 +14,5 @@ tests/**/coverage/
*.ntvs*
*.njsproj
*.sln
-# .eslintignore
-# /.eslintignore
\ No newline at end of file
+.eslintignore
+/.eslintignore
\ No newline at end of file
diff --git a/src/views/dictionary/template/components/ClinicalQuestionConfig.vue b/src/views/dictionary/template/components/ClinicalQuestionConfig.vue
index 0049f63..5aa089b 100644
--- a/src/views/dictionary/template/components/ClinicalQuestionConfig.vue
+++ b/src/views/dictionary/template/components/ClinicalQuestionConfig.vue
@@ -242,7 +242,9 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.criterionQSList.doLayout()
+ if(this.$refs.criterionQSList){
+ this.$refs.criterionQSList.doLayout()
+ }
})
}
},
diff --git a/src/views/dictionary/template/components/CriterionsConfig.vue b/src/views/dictionary/template/components/CriterionsConfig.vue
index b2b50bd..e6dd01d 100644
--- a/src/views/dictionary/template/components/CriterionsConfig.vue
+++ b/src/views/dictionary/template/components/CriterionsConfig.vue
@@ -295,7 +295,9 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.criterionQSList.doLayout()
+ if(this.$refs.criterionQSList){
+ this.$refs.criterionQSList.doLayout()
+ }
})
}
},
diff --git a/src/views/dictionary/template/components/EfficacyAssessment.vue b/src/views/dictionary/template/components/EfficacyAssessment.vue
index b2e290f..e3c46d1 100644
--- a/src/views/dictionary/template/components/EfficacyAssessment.vue
+++ b/src/views/dictionary/template/components/EfficacyAssessment.vue
@@ -83,7 +83,8 @@
{
- this.$refs.organList.doLayout()
+ if(this.$refs.organList){
+ this.$refs.organList.doLayout()
+ }
})
}
},
diff --git a/src/views/dictionary/template/components/OrgansTbl.vue b/src/views/dictionary/template/components/OrgansTbl.vue
index 04eed43..a356717 100644
--- a/src/views/dictionary/template/components/OrgansTbl.vue
+++ b/src/views/dictionary/template/components/OrgansTbl.vue
@@ -357,7 +357,9 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.organList.doLayout()
+ if(this.$refs.organList){
+ this.$refs.organList.doLayout()
+ }
})
}
},
diff --git a/src/views/financials/revenues/index.vue b/src/views/financials/revenues/index.vue
index 760da37..73ac287 100644
--- a/src/views/financials/revenues/index.vue
+++ b/src/views/financials/revenues/index.vue
@@ -259,10 +259,14 @@ export default {
this.listQuery.PageIndex = 1
this.listQuery.Asc = true
this.listQuery.SortField = ''
- this.$refs.revenusList.doLayout()
+ if(this.$refs.revenusList){
+ this.$refs.revenusList.doLayout()
+ }
this.arrID = []
this.getList()
- this.$refs.revenusList.doLayout()
+ if(this.$refs.revenusList){
+ this.$refs.revenusList.doLayout()
+ }
},
handleVerify() {
this.dialogLoading = true
diff --git a/src/views/statistics/components/EnrollmentsStatsByReviewer.vue b/src/views/statistics/components/EnrollmentsStatsByReviewer.vue
index ba94365..e93e10f 100644
--- a/src/views/statistics/components/EnrollmentsStatsByReviewer.vue
+++ b/src/views/statistics/components/EnrollmentsStatsByReviewer.vue
@@ -252,7 +252,9 @@ export default {
// 合计行
getSummaries(param) {
this.$nextTick(() => {
- this.$refs.enrollmentStats.doLayout()
+ if(this.$refs.enrollmentStats){
+ this.$refs.enrollmentStats.doLayout()
+ }
})
const { columns, data } = param
const sums = []
diff --git a/src/views/statistics/components/TrialEnrollmentsStats.vue b/src/views/statistics/components/TrialEnrollmentsStats.vue
index 922759b..5725833 100644
--- a/src/views/statistics/components/TrialEnrollmentsStats.vue
+++ b/src/views/statistics/components/TrialEnrollmentsStats.vue
@@ -248,7 +248,9 @@ export default {
// 合计行
getSummaries(param) {
this.$nextTick(() => {
- this.$refs.trialStats.doLayout()
+ if(this.$refs.trialStats){
+ this.$refs.trialStats.doLayout()
+ }
})
const { columns, data } = param
const sums = []
diff --git a/src/views/statistics/components/WorkloadStats.vue b/src/views/statistics/components/WorkloadStats.vue
index e270215..ef73839 100644
--- a/src/views/statistics/components/WorkloadStats.vue
+++ b/src/views/statistics/components/WorkloadStats.vue
@@ -254,7 +254,9 @@ export default {
// 统计
getSummaries(param) {
this.$nextTick(() => {
- this.$refs.workloadStats.doLayout()
+ if(this.$refs.workloadStats){
+ this.$refs.workloadStats.doLayout()
+ }
})
const { columns, data } = param
const sums = []
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 ea8931d..4b70f36 100644
--- a/src/views/trials/trials-inspection/components/confirm-visit-list.vue
+++ b/src/views/trials/trials-inspection/components/confirm-visit-list.vue
@@ -319,6 +319,7 @@ export default {
}
}
} catch (err) {
+ this.loading = false;
console.log(err);
}
},
diff --git a/src/views/trials/trials-panel/enrolled-reviewers/list/index.vue b/src/views/trials/trials-panel/enrolled-reviewers/list/index.vue
index cd4f7bf..2624e90 100644
--- a/src/views/trials/trials-panel/enrolled-reviewers/list/index.vue
+++ b/src/views/trials/trials-panel/enrolled-reviewers/list/index.vue
@@ -90,7 +90,8 @@
-
+
{{ $fd('ReadingCategory', item) + ' & ' + $fd('ReadingCategory', 2) }}
{{ $fd('ReadingCategory', item) }}
@@ -244,10 +245,12 @@
default-first-option
style="width: 70%"
>
-
-
-
-
+
+
+
+
+
+
{{ $t("common:button:submit") }}
@@ -242,7 +243,7 @@
type="text"
v-hasPermi="['trials:trials-panel:hirVisit:remove']"
@click.stop="remove(scope.row)"
- disabled
+ :disabled="scope.row.SubmitState > 0"
>{{ $t("common:button:delete") }}
@@ -258,6 +259,7 @@
type="text"
v-hasPermi="['trials:trials-panel:hirVisit:download']"
@click.stop="downloadImage(scope.row)"
+ v-if="scope.row.SubmitState > 0"
>{{ $t("trials:reading:button:uploadImages") }}
@@ -301,6 +303,7 @@ import BaseContainer from "@/components/BaseContainer";
import Pagination from "@/components/Pagination";
import editStudyList from "./components/edit-study-list.vue";
import visitInfo from "./components/visit-info.vue";
+import { deleteSubjectVisit } from "@/api/trials";
import {
getPatientSubejctVisitList,
getSubjectImageZipInfo,
@@ -423,7 +426,30 @@ export default {
}
},
// 删除
- remove() {},
+ async remove(row) {
+ try {
+ let confirm = await this.$confirm(
+ this.$t("trials:crcUpload:message:deleteVisit"),
+ {
+ type: "warning",
+ distinguishCancelAndClose: true,
+ }
+ );
+ if (confirm !== "confirm") return;
+ let res = await deleteSubjectVisit(
+ this.$route.query.trialId,
+ row.SubjectVisitId
+ );
+ if (res.IsSuccess) {
+ this.getList();
+ this.$message.success(
+ this.$t("trials:crcUpload:message:deleteVisitSuccessfully")
+ );
+ }
+ } catch (err) {
+ console.log(err);
+ }
+ },
// 评估结果
result() {},
// 下载报告
diff --git a/src/views/trials/trials-panel/reading/audit-records/index.vue b/src/views/trials/trials-panel/reading/audit-records/index.vue
index 90710f5..7c2f9e0 100644
--- a/src/views/trials/trials-panel/reading/audit-records/index.vue
+++ b/src/views/trials/trials-panel/reading/audit-records/index.vue
@@ -455,7 +455,9 @@ export default {
},
beforeUpdate() {
this.$nextTick(() => {
- this.$refs.myTable.doLayout();
+ if(this.$refs.myTable){
+ this.$refs.myTable.doLayout();
+ }
});
},
mounted() {
@@ -478,7 +480,9 @@ export default {
this.list = res.Result.CurrentPageData;
}, 100);
this.total = res.Result.TotalCount;
- this.$refs.myTable.doLayout();
+ if(this.$refs.myTable){
+ this.$refs.myTable.doLayout();
+ }
});
})
.catch(() => {
diff --git a/src/views/trials/trials-panel/reading/mim-medical-audit/index.vue b/src/views/trials/trials-panel/reading/mim-medical-audit/index.vue
index d25adfe..8fe5539 100644
--- a/src/views/trials/trials-panel/reading/mim-medical-audit/index.vue
+++ b/src/views/trials/trials-panel/reading/mim-medical-audit/index.vue
@@ -537,7 +537,9 @@ export default {
},
list() {
this.$nextTick(() => {
- this.$refs.mimMedicalAudit[0].doLayout()
+ if(this.$refs.mimMedicalAudit){
+ this.$refs.mimMedicalAudit[0].doLayout()
+ }
})
}
},
diff --git a/src/views/trials/trials-panel/reading/pending-review/index.vue b/src/views/trials/trials-panel/reading/pending-review/index.vue
index 11967f3..3a8cd7b 100644
--- a/src/views/trials/trials-panel/reading/pending-review/index.vue
+++ b/src/views/trials/trials-panel/reading/pending-review/index.vue
@@ -46,24 +46,6 @@
/>
-
-
-
-
-
-
{
diff --git a/src/views/trials/trials-panel/reading/reviewed/index.vue b/src/views/trials/trials-panel/reading/reviewed/index.vue
index a0c210f..05dc0dc 100644
--- a/src/views/trials/trials-panel/reading/reviewed/index.vue
+++ b/src/views/trials/trials-panel/reading/reviewed/index.vue
@@ -321,7 +321,9 @@ export default {
this.list = res.Result.CurrentPageData
}, 100)
this.total = res.Result.TotalCount
- this.$refs.myTable.doLayout()
+ if(this.$refs.myTable){
+ this.$refs.myTable.doLayout()
+ }
})
}).catch(() => { this.loading = false })
},
diff --git a/src/views/trials/trials-panel/setting/email-manage/components/EmailList.vue b/src/views/trials/trials-panel/setting/email-manage/components/EmailList.vue
index e7338f1..3c3b1cf 100644
--- a/src/views/trials/trials-panel/setting/email-manage/components/EmailList.vue
+++ b/src/views/trials/trials-panel/setting/email-manage/components/EmailList.vue
@@ -325,7 +325,7 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.emailList.doLayout()
+ this.$refs.emailList&& this.$refs.emailList.doLayout()
})
}
},
diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/DefaultOrgans.vue b/src/views/trials/trials-panel/setting/reading-unit/components/DefaultOrgans.vue
index 9655a1f..27a5d6d 100644
--- a/src/views/trials/trials-panel/setting/reading-unit/components/DefaultOrgans.vue
+++ b/src/views/trials/trials-panel/setting/reading-unit/components/DefaultOrgans.vue
@@ -107,7 +107,7 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.organList.doLayout()
+ this.$refs.organList && this.$refs.organList.doLayout()
})
}
},
diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/OrgansTbl.vue b/src/views/trials/trials-panel/setting/reading-unit/components/OrgansTbl.vue
index 6b45108..64d7859 100644
--- a/src/views/trials/trials-panel/setting/reading-unit/components/OrgansTbl.vue
+++ b/src/views/trials/trials-panel/setting/reading-unit/components/OrgansTbl.vue
@@ -278,7 +278,7 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.organList.doLayout()
+ this.$refs.organList&&this.$refs.organList.doLayout()
})
}
},
diff --git a/src/views/trials/trials-panel/setting/trial-config/components/ClinicalQuestionConfig.vue b/src/views/trials/trials-panel/setting/trial-config/components/ClinicalQuestionConfig.vue
index 28d3773..010d7eb 100644
--- a/src/views/trials/trials-panel/setting/trial-config/components/ClinicalQuestionConfig.vue
+++ b/src/views/trials/trials-panel/setting/trial-config/components/ClinicalQuestionConfig.vue
@@ -247,7 +247,7 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.criterionQSList.doLayout()
+ this.$refs.criterionQSList&&this.$refs.criterionQSList.doLayout()
})
}
},
diff --git a/src/views/trials/trials-panel/subject/subject-list/components/MessageTable.vue b/src/views/trials/trials-panel/subject/subject-list/components/MessageTable.vue
index 0f23e76..74534bf 100644
--- a/src/views/trials/trials-panel/subject/subject-list/components/MessageTable.vue
+++ b/src/views/trials/trials-panel/subject/subject-list/components/MessageTable.vue
@@ -125,7 +125,7 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.emailList.doLayout()
+ this.$refs.emailList&&this.$refs.emailList.doLayout()
})
}
},
diff --git a/src/views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue b/src/views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue
index e08850c..e43daf0 100644
--- a/src/views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue
+++ b/src/views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue
@@ -31,7 +31,7 @@
v-for="item of $d.sex"
:key="item.id"
:label="item.label"
- :value="item.value"
+ :value="String(item.value)"
/>
@@ -153,7 +153,7 @@ export default {
Object.keys(this.form).forEach((key) => {
data[key] = this.form[key];
});
- data.BirthDate = data.BirthDate.toISOString();
+ data.BirthDate = data.BirthDate ? data.BirthDate.toISOString() : null;
delete data.PatientId;
delete data.PatientList;
addOrUpdateSubjectHir(data)
diff --git a/src/views/trials/trials-panel/subject/subject-list/components/add-subject.vue b/src/views/trials/trials-panel/subject/subject-list/components/add-subject.vue
index f184592..5416b9e 100644
--- a/src/views/trials/trials-panel/subject/subject-list/components/add-subject.vue
+++ b/src/views/trials/trials-panel/subject/subject-list/components/add-subject.vue
@@ -216,6 +216,9 @@ export default {
this.$message.success(this.$t("common:message:addedSuccessfully"));
this.$emit("getList");
this.status = "visit";
+ if(data.SubjectCode){
+ this.getTrialSubejctSelectList(this.$route.query.trialId);
+ }
this.$nextTick(() => {
this.$refs.confirmVisit.getList();
this.$refs.confirmVisit.getSubjectVisitSelectList();
diff --git a/src/views/trials/trials-panel/subject/subject-list/index.vue b/src/views/trials/trials-panel/subject/subject-list/index.vue
index 8fb8068..d2613da 100644
--- a/src/views/trials/trials-panel/subject/subject-list/index.vue
+++ b/src/views/trials/trials-panel/subject/subject-list/index.vue
@@ -333,7 +333,7 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.subjectList.doLayout();
+ this.$refs.subjectList&&this.$refs.subjectList.doLayout();
});
},
},
diff --git a/src/views/trials/trials-panel/visit/crc-upload/index.vue b/src/views/trials/trials-panel/visit/crc-upload/index.vue
index cc6154b..4ee2f40 100644
--- a/src/views/trials/trials-panel/visit/crc-upload/index.vue
+++ b/src/views/trials/trials-panel/visit/crc-upload/index.vue
@@ -1108,7 +1108,7 @@ export default {
watch: {
list() {
this.$nextTick(() => {
- this.$refs.visitList.doLayout()
+ this.$refs.visitList&&this.$refs.visitList.doLayout()
})
},
TrialReadingCriterionId(v, old) {
diff --git a/src/views/trials/trials-panel/visit/qc-check/index.vue b/src/views/trials/trials-panel/visit/qc-check/index.vue
index bfa89ac..1b8abda 100644
--- a/src/views/trials/trials-panel/visit/qc-check/index.vue
+++ b/src/views/trials/trials-panel/visit/qc-check/index.vue
@@ -697,7 +697,7 @@ export default {
doLayout() {
const scope = this
this.$nextTick(() => {
- scope.$refs.qcCheckList.doLayout()
+ scope.$refs.qcCheckList&&scope.$refs.qcCheckList.doLayout()
})
},
// 领取任务