CRC回复影像质疑,增加自动进入下一任务
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
79cc39918e
commit
c37332e8e2
|
@ -3683,3 +3683,11 @@ export function getNextIRMedicalFeedback(param) {
|
|||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getNextCRCChallenge(param) {
|
||||
return request({
|
||||
url: `/QCList/getNextCRCChallenge`,
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
|
|
@ -92,6 +92,14 @@
|
|||
>
|
||||
{{ $t('trials:crcQuestion:button:close') }}
|
||||
</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>
|
||||
|
||||
|
@ -255,9 +263,11 @@ export default {
|
|||
UserTypeEnum: this.data.UserTypeEnum
|
||||
}
|
||||
)
|
||||
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')
|
||||
},
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
prop="QCProcessEnum"
|
||||
:label="$t('trials:crcQuestion:table:qCProcessEnum')"
|
||||
show-overflow-tooltip
|
||||
min-width="80"
|
||||
min-width="130"
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
|
@ -258,12 +258,12 @@
|
|||
width="800px"
|
||||
: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>
|
||||
</BaseContainer>
|
||||
</template>
|
||||
<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 ChatForm from './components/chatForm'
|
||||
import BaseContainer from '@/components/BaseContainer'
|
||||
|
@ -332,6 +332,29 @@ export default {
|
|||
close() {
|
||||
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() {
|
||||
this.loading = true
|
||||
getQCChallengeDialogList(this.currentQCRow.Id).then(res => {
|
||||
|
|
Loading…
Reference in New Issue