PCWG3访视间隔天数填写后自动计算访视点肿瘤评估
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
cf6e17b7c8
commit
f28d84093c
|
@ -263,4 +263,12 @@ export function setTNMValue(param) {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
// 设置tnm
|
||||||
|
export function frontGetSiteVisitForTumorEvaluation(param) {
|
||||||
|
return request({
|
||||||
|
url: `/PCWG3Calculate/frontGetSiteVisitForTumorEvaluation`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
}
|
}
|
|
@ -113,7 +113,8 @@
|
||||||
<!-- 输入框 -->
|
<!-- 输入框 -->
|
||||||
<el-input v-model="visitIntervalDay" size="mini"
|
<el-input v-model="visitIntervalDay" size="mini"
|
||||||
@input="visitIntervalDay = visitIntervalDay.replace(/^0+(\d)|[^\d]+/g, '')" type="text"
|
@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>
|
</template>
|
||||||
<template v-else-if="CriterionType === 10 && scope.row.QuestionType === 22">
|
<template v-else-if="CriterionType === 10 && scope.row.QuestionType === 22">
|
||||||
|
@ -294,7 +295,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getReadingReportEvaluation, changeDicomReadingQuestionAnswer, changeReportAnswer, submitDicomVisitTask, verifyVisitTaskQuestions, getTaskAdditionalQuestion } from '@/api/trials'
|
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 { getAutoCutNextTask } from '@/api/user'
|
||||||
import DicomEvent from './DicomEvent'
|
import DicomEvent from './DicomEvent'
|
||||||
import const_ from '@/const/sign-code'
|
import const_ from '@/const/sign-code'
|
||||||
|
@ -400,6 +401,24 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
async getTNMValue() {
|
||||||
try {
|
try {
|
||||||
let data = {
|
let data = {
|
||||||
|
@ -766,7 +785,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
visitIntervalDayChange(val) {
|
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) {
|
if (idx > -1) {
|
||||||
this.answerArr[idx].answer = val
|
this.answerArr[idx].answer = val
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue