diff --git a/src/api/trials.js b/src/api/trials.js
index db931590..eb090c83 100644
--- a/src/api/trials.js
+++ b/src/api/trials.js
@@ -3683,3 +3683,11 @@ export function getNextIRMedicalFeedback(param) {
data: param
})
}
+
+export function getNextCRCChallenge(param) {
+ return request({
+ url: `/QCList/getNextCRCChallenge`,
+ method: 'post',
+ data: param
+ })
+}
diff --git a/src/views/trials/trials-panel/visit/crc-question/components/chatForm.vue b/src/views/trials/trials-panel/visit/crc-question/components/chatForm.vue
index 3c9dbeef..1fa4fd8b 100644
--- a/src/views/trials/trials-panel/visit/crc-question/components/chatForm.vue
+++ b/src/views/trials/trials-panel/visit/crc-question/components/chatForm.vue
@@ -92,6 +92,14 @@
>
{{ $t('trials:crcQuestion:button:close') }}
+
+
+ {{ $t('trials:crcQuestion:button:nextTask') }}
+
@@ -255,9 +263,11 @@ export default {
UserTypeEnum: this.data.UserTypeEnum
}
)
- this.data.DialogList.forEach(element => {
- recordContent.push(element)
- })
+ if (this.data.DialogList && this.data.DialogList.length > 0) {
+ this.data.DialogList.forEach(element => {
+ recordContent.push(element)
+ })
+ }
this.recordContent = recordContent
this.setScrollHeight()
},
@@ -350,6 +360,11 @@ export default {
this.uploadBtnLoading = false
})
},
+ // 获取下一任务
+ getNextTask() {
+ this.loading = true
+ this.$emit('getNextTask', this.data.Id)
+ },
close() {
this.$emit('close')
},
diff --git a/src/views/trials/trials-panel/visit/crc-question/index.vue b/src/views/trials/trials-panel/visit/crc-question/index.vue
index f775eff5..200bd839 100644
--- a/src/views/trials/trials-panel/visit/crc-question/index.vue
+++ b/src/views/trials/trials-panel/visit/crc-question/index.vue
@@ -128,7 +128,7 @@
prop="QCProcessEnum"
:label="$t('trials:crcQuestion:table:qCProcessEnum')"
show-overflow-tooltip
- min-width="80"
+ min-width="130"
sortable="custom"
>
@@ -258,12 +258,12 @@
width="800px"
:title="$t('trials:crcQuestion:dialogTitle:message1') + `(${currentQCRow.SubjectCode} ${currentQCRow.VisitName})`"
>
-
+