PCWG3访视间隔天数填写后自动计算访视点肿瘤评估
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-09-18 10:46:59 +08:00
parent cf6e17b7c8
commit f28d84093c
2 changed files with 30 additions and 3 deletions

View File

@ -264,3 +264,11 @@ export function setTNMValue(param) {
data: param
})
}
// 设置tnm
export function frontGetSiteVisitForTumorEvaluation(param) {
return request({
url: `/PCWG3Calculate/frontGetSiteVisitForTumorEvaluation`,
method: 'post',
data: param
})
}

View File

@ -113,7 +113,8 @@
<!-- 输入框 -->
<el-input v-model="visitIntervalDay" size="mini"
@input="visitIntervalDay = visitIntervalDay.replace(/^0+(\d)|[^\d]+/g, '')" type="text"
@change="visitIntervalDayChange" :title="scope.row.Remark" />
@change="visitIntervalDayChange" :title="scope.row.Remark"
@blur="frontGetSiteVisitForTumorEvaluation" />
</template>
</template>
<template v-else-if="CriterionType === 10 && scope.row.QuestionType === 22">
@ -294,7 +295,7 @@
</template>
<script>
import { getReadingReportEvaluation, changeDicomReadingQuestionAnswer, changeReportAnswer, submitDicomVisitTask, verifyVisitTaskQuestions, getTaskAdditionalQuestion } from '@/api/trials'
import { setSkipReadingCache, setTNMValue, getTNMValue } from '@/api/reading'
import { setSkipReadingCache, setTNMValue, getTNMValue, frontGetSiteVisitForTumorEvaluation } from '@/api/reading'
import { getAutoCutNextTask } from '@/api/user'
import DicomEvent from './DicomEvent'
import const_ from '@/const/sign-code'
@ -400,6 +401,24 @@ export default {
}
},
methods: {
async frontGetSiteVisitForTumorEvaluation() {
try {
if (isNaN(parseFloat(this.visitIntervalDay))) return false
let data = {
VisitTaskId: this.visitTaskId,
NumberOfDaysBetween: this.visitIntervalDay
}
let res = await frontGetSiteVisitForTumorEvaluation(data)
if (res.IsSuccess) {
// this.tumorEvaluationObj[this.visitTaskId] = res.Result
let num = Number(res.Result)
this.$set(this.tumorEvaluationObj, this.visitTaskId, num)
this.handleTumorEvaluationChange(num, this.visitTaskId)
}
} catch (err) {
console.log(err)
}
},
async getTNMValue() {
try {
let data = {
@ -766,7 +785,7 @@ export default {
}
},
visitIntervalDayChange(val) {
var idx = this.answerArr.findIndex(i => i.questionType === 22)
var idx = this.answerArr.findIndex(i => i.questionType === 22 && i.visitTaskId === this.visitTaskId)
if (idx > -1) {
this.answerArr[idx].answer = val
}