CRC回复影像质疑,增加自动进入下一任务
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-06-28 10:31:49 +08:00
parent 79cc39918e
commit c37332e8e2
3 changed files with 52 additions and 6 deletions

View File

@ -3683,3 +3683,11 @@ export function getNextIRMedicalFeedback(param) {
data: param data: param
}) })
} }
export function getNextCRCChallenge(param) {
return request({
url: `/QCList/getNextCRCChallenge`,
method: 'post',
data: param
})
}

View File

@ -92,6 +92,14 @@
> >
{{ $t('trials:crcQuestion:button:close') }} {{ $t('trials:crcQuestion:button:close') }}
</el-button> </el-button>
<!-- 下一任务 -->
<el-button
v-hasPermi="['trials:trials-panel:visit:crc-upload:nextTask']"
type="primary"
@click="getNextTask"
>
{{ $t('trials:crcQuestion:button:nextTask') }}
</el-button>
</div> </div>
</div> </div>
@ -255,9 +263,11 @@ export default {
UserTypeEnum: this.data.UserTypeEnum UserTypeEnum: this.data.UserTypeEnum
} }
) )
this.data.DialogList.forEach(element => { if (this.data.DialogList && this.data.DialogList.length > 0) {
recordContent.push(element) this.data.DialogList.forEach(element => {
}) recordContent.push(element)
})
}
this.recordContent = recordContent this.recordContent = recordContent
this.setScrollHeight() this.setScrollHeight()
}, },
@ -350,6 +360,11 @@ export default {
this.uploadBtnLoading = false this.uploadBtnLoading = false
}) })
}, },
//
getNextTask() {
this.loading = true
this.$emit('getNextTask', this.data.Id)
},
close() { close() {
this.$emit('close') this.$emit('close')
}, },

View File

@ -128,7 +128,7 @@
prop="QCProcessEnum" prop="QCProcessEnum"
:label="$t('trials:crcQuestion:table:qCProcessEnum')" :label="$t('trials:crcQuestion:table:qCProcessEnum')"
show-overflow-tooltip show-overflow-tooltip
min-width="80" min-width="130"
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -258,12 +258,12 @@
width="800px" width="800px"
:title="$t('trials:crcQuestion:dialogTitle:message1') + `(${currentQCRow.SubjectCode} ${currentQCRow.VisitName})`" :title="$t('trials:crcQuestion:dialogTitle:message1') + `(${currentQCRow.SubjectCode} ${currentQCRow.VisitName})`"
> >
<chat-form ref="chatForm" :data="currentQCRow" user-type="crc" :body-parts="otherInfo.BodyPartTypes" :modalities="otherInfo.Modalitys" :subject-visit-id="currentQCRow.Id" :clinical-enum="otherInfo.ClinicalInformationTransmissionEnum" @close="close" @getDialogList="getDialogList" /> <chat-form ref="chatForm" :data="currentQCRow" user-type="crc" :body-parts="otherInfo.BodyPartTypes" :modalities="otherInfo.Modalitys" :subject-visit-id="currentQCRow.Id" :clinical-enum="otherInfo.ClinicalInformationTransmissionEnum" @close="close" @getDialogList="getDialogList" @getNextTask="getNextTask"/>
</el-dialog> </el-dialog>
</BaseContainer> </BaseContainer>
</template> </template>
<script> <script>
import { getCRCChallengeList, getTrialSiteSelect, getTrialVisitStageSelect, getQCChallengeDialogList } from '@/api/trials' import { getCRCChallengeList, getTrialSiteSelect, getTrialVisitStageSelect, getQCChallengeDialogList, getNextCRCChallenge } from '@/api/trials'
import { getQCChallengeList_Export } from '@/api/export' import { getQCChallengeList_Export } from '@/api/export'
import ChatForm from './components/chatForm' import ChatForm from './components/chatForm'
import BaseContainer from '@/components/BaseContainer' import BaseContainer from '@/components/BaseContainer'
@ -332,6 +332,29 @@ export default {
close() { close() {
this.chatVisible = false this.chatVisible = false
}, },
async getNextTask(qcChallengeId) {
try {
const params = {
trialId: this.trialId,
qcChallengeId: qcChallengeId
}
const res = await getNextCRCChallenge(params)
if (res.IsSuccess) {
const res2 = await getQCChallengeDialogList(res.Result.Id)
if (res2.IsSuccess) {
Object.assign(res.Result, res2.Result[0])
this.chatVisible = false
this.currentQCRow = res.Result
this.$nextTick(() => {
this.chatVisible = true
})
}
}
} catch (e) {
this.chatVisible = false
console.log(e)
}
},
getDialogList() { getDialogList() {
this.loading = true this.loading = true
getQCChallengeDialogList(this.currentQCRow.Id).then(res => { getQCChallengeDialogList(this.currentQCRow.Id).then(res => {