【mRecist】基线添加靶病灶未选择典型肝内病灶时进行提示
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
cc20dfa25b
commit
081a9908dd
|
@ -802,35 +802,55 @@ export default {
|
||||||
async handleSave() {
|
async handleSave() {
|
||||||
const valid = await this.$refs.measurementForm.validate()
|
const valid = await this.$refs.measurementForm.validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
|
var IntrahepaticLesion = this.getQuestionVal(21)
|
||||||
|
if (this.lesionType === 0 && this.isBaseLineTask && !IntrahepaticLesion) {
|
||||||
|
let questions = this.tableQuestions.find(item => item.QuestionEnName === 'Target Lesion' && item.QuestionName === '靶病灶')
|
||||||
|
let num = 0
|
||||||
|
if (questions.TableQuestions && Array.isArray(questions.TableQuestions.Answers)) {
|
||||||
|
questions.TableQuestions.Answers.forEach(item => {
|
||||||
|
if (item.LesionType === 0 && item.LesionName !== this.questionForm.LesionName) num++
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (num <= 0 && !this.questionForm.RowId) {
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
this.$t('trials:mRecist:warnning:msg7'),
|
||||||
|
{
|
||||||
|
type: 'warning',
|
||||||
|
distinguishCancelAndClose: true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
|
}
|
||||||
|
}
|
||||||
const loading = this.$loading({ fullscreen: true })
|
const loading = this.$loading({ fullscreen: true })
|
||||||
var measureData = this.questionForm.MeasureData
|
var measureData = this.questionForm.MeasureData
|
||||||
var lesionState = this.getQuestionVal(7)
|
var lesionState = this.getQuestionVal(7)
|
||||||
var lesionLength = this.getQuestionVal(0)
|
var lesionLength = this.getQuestionVal(0)
|
||||||
var lesionShort = this.getQuestionVal(1)
|
var lesionShort = this.getQuestionVal(1)
|
||||||
var lymphNodes = this.getQuestionVal(2)
|
var lymphNodes = this.getQuestionVal(2)
|
||||||
var IntrahepaticLesion = this.getQuestionVal(21)
|
// var IntrahepaticLesion = this.getQuestionVal(21)
|
||||||
const lesionPart = this.getQuestionVal(8)
|
const lesionPart = this.getQuestionVal(8)
|
||||||
|
|
||||||
if (this.isBaseLineTask) {
|
if (this.isBaseLineTask) {
|
||||||
// 添加为典型肝内病灶的非靶病灶时,判断靶病灶中典型肝内病灶数量,<2 时提示
|
// 添加为典型肝内病灶的非靶病灶时,判断靶病灶中典型肝内病灶数量,<2 时提示
|
||||||
if (this.lesionType !== 0 && IntrahepaticLesion === 1) {
|
// if (this.lesionType !== 0 && IntrahepaticLesion === 1) {
|
||||||
let questions = this.tableQuestions.find(item => item.QuestionEnName === 'Target Lesion' && item.QuestionName === '靶病灶')
|
// let questions = this.tableQuestions.find(item => item.QuestionEnName === 'Target Lesion' && item.QuestionName === '靶病灶')
|
||||||
let num = 0
|
// let num = 0
|
||||||
if (questions.TableQuestions && Array.isArray(questions.TableQuestions.Answers)) {
|
// if (questions.TableQuestions && Array.isArray(questions.TableQuestions.Answers)) {
|
||||||
questions.TableQuestions.Answers.forEach(item => {
|
// questions.TableQuestions.Answers.forEach(item => {
|
||||||
if (item.IntrahepaticLesion && item.IntrahepaticLesion > 0) num++
|
// if (item.IntrahepaticLesion && item.IntrahepaticLesion > 0) num++
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
if (num < 2) {
|
// if (num < 2) {
|
||||||
this.$confirm(this.$t('trials:reading:warnning:msg199'), {
|
// this.$confirm(this.$t('trials:reading:warnning:msg199'), {
|
||||||
type: 'warning',
|
// type: 'warning',
|
||||||
showCancelButton: false,
|
// showCancelButton: false,
|
||||||
callback: action => { }
|
// callback: action => { }
|
||||||
})
|
// })
|
||||||
loading.close()
|
// loading.close()
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
// 基线
|
// 基线
|
||||||
// 靶病灶且状态为存在(0)
|
// 靶病灶且状态为存在(0)
|
||||||
if (this.lesionType === 0 && lesionState === 0) {
|
if (this.lesionType === 0 && lesionState === 0) {
|
||||||
|
|
Loading…
Reference in New Issue