阅片页面ecrf表单保存接口更改

uat_us
caiyiling 2024-04-08 13:54:42 +08:00
parent c2aad16566
commit 91ee952707
4 changed files with 25 additions and 7 deletions

View File

@ -2810,6 +2810,15 @@ export function saveImageQuality(param) {
data: param
})
}
export function saveTaskQuestion(saveQuestionType, param) {
return request({
url: `/SaveTaskQuestion/${saveQuestionType}`,
method: 'post',
data: param
})
}
export function deleteReadingRowAnswer(param) {
return request({
url: `/ReadingImageTask/deleteReadingRowAnswer`,

View File

@ -32,7 +32,7 @@
<script>
import { saveImageQuality, getDicomReadingQuestionAnswer, getReadingCalculationData } from '@/api/trials'
import { saveTaskQuestion, getDicomReadingQuestionAnswer, getReadingCalculationData } from '@/api/trials'
import { getToken } from '@/utils/auth'
import QuestionItem from './QuestionItem'
import { mapGetters } from 'vuex'
@ -299,7 +299,7 @@ export default {
answers: answers
// questionMarkInfoList
}
saveImageQuality(params).then(async res => {
saveTaskQuestion(1, params).then(async res => {
window.opener.postMessage({ type: 'petctLesionUpdate' }, window.location)
this.loading = false
this.questionFormChangeState = false
@ -407,7 +407,8 @@ export default {
answers,
questionMarkInfoList
}
saveImageQuality(params).then(async res => {
const qsType = question.QuestionType === 51 ? 2 : question.QuestionType === 52 ? 3 : null
saveTaskQuestion(qsType, params).then(async res => {
this.$set(question, 'SaveEnum', 0)
window.opener.postMessage({ type: 'petctLesionUpdate' }, window.location)
loading.close()

View File

@ -146,6 +146,7 @@
:group-classify="2"
:is-qulity-issues="false"
style="margin-top:20px"
:question-type="6"
@setNonTargetMeasurementStatus="setNonTargetMeasurementStatus"
/>
<!-- 脾脏评估 -->
@ -155,6 +156,7 @@
:question-form-change-num="0"
:group-classify="3"
:is-qulity-issues="false"
:question-type="7"
@setNonTargetMeasurementStatus="setNonTargetMeasurementStatus"
/>
</div>

View File

@ -30,7 +30,7 @@
<script>
// import { uploadPrintscreen } from '@/api/reading'
import { saveImageQuality, getSplenicState, getSplenicVerify } from '@/api/trials'
import { saveTaskQuestion, getSplenicState, getSplenicVerify } from '@/api/trials'
import QuestionItem from './QuestionItem'
import DicomEvent from './DicomEvent'
import { mapGetters } from 'vuex'
@ -60,6 +60,10 @@ export default {
isQulityIssues: {
type: Boolean,
default: true
},
questionType: {
type: Number,
default: 0
}
},
data() {
@ -204,7 +208,8 @@ export default {
}
// this.questions = questions
}
if (this.spleenLengthId && this.spleenInfo) {
if (this.spleenLengthId && this.spleenInfo && this.readingTaskState < 2) {
this.calculateSpleenStatus = this.setSpleenStatus(this.questionForm[this.spleenLengthId])
this.setSpleenCommentDisplay()
}
@ -324,7 +329,7 @@ export default {
// params.questionMarkInfoList = questionMarkInfoList
// }
saveImageQuality(params).then(async res => {
saveTaskQuestion(this.questionType, params).then(async res => {
this.$message.success(this.$t('common:message:savedSuccessfully'))
var trialId = this.$route.query.trialId
await store.dispatch('reading/refreshDicomReadingQuestionAnswer', { trialId: trialId, visitTaskId: this.visitTaskId })
@ -505,7 +510,8 @@ export default {
answers,
questionMarkInfoList
}
saveImageQuality(params).then(async res => {
const qsType = question.QuestionType === 60 ? 4 : question.QuestionType === 61 ? 5 : null
saveTaskQuestion(qsType, params).then(async res => {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.loading = false
this.$set(question, 'SaveEnum', 0)