保存肝分段标记逻辑更改

uat_us
caiyiling 2025-01-06 14:01:08 +08:00
parent 17ee60de81
commit 221ad89fd4
2 changed files with 39 additions and 1 deletions

View File

@ -312,7 +312,10 @@ export default {
// saveTypeEnum 01访/2
let isMeasurable = this.getQuestionVal(1105)
if (this.questionForm.saveTypeEnum !== 1) {
this.$set(this.questionForm, 'saveTypeEnum', isMeasurable === '' ? 1 : 2)
}
this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex)
this.lesionMark = this.getLesionName(this.orderMark, 1101)
@ -601,10 +604,41 @@ export default {
//
let i = this.markList.findIndex(i=>i.tableQuestionId === qs.Id)
this.markList[i].saveEnum = 1
//
let j = this.markList.findIndex(i=>!(i.saveEnum === 1 && i.measureData && i.measureData.MeasureData))
if (j === -1) {
let answers = []
let reg = new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
for (const k in this.questionForm) {
if (reg.test(k)) {
if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
answers.push({ tableQuestionId: k, answer: this.questionForm[k] })
}
}
}
let params = {
questionId: this.parentQsId,
rowId: this.questionForm.RowId,
rowIndex: this.answers.RowIndex,
visitTaskId: this.visitTaskId,
trialId: this.trialId,
answerList: answers,
isDicomReading: true
}
const res = await submitTaskRowInfo(params, 11)
if (res.IsSuccess) {
this.$set(this.questionForm, 'saveTypeEnum', 2)
this.originalQuestionForm = { ...this.questionForm }
this.$set(this.questionForm, 'RowId', res.Result.RowId)
this.setQuestions()
DicomEvent.$emit('getReportInfo', true)
}
}
//
this.$message.success(this.$t('common:message:savedSuccessfully'))
//
this.$emit('getReadingQuestionAndAnswer')
DicomEvent.$emit('setMeasuredToolsPassive')
loading.close()
}
} catch(e) {

View File

@ -464,6 +464,10 @@ export default {
lesionType = item.LesionType
var filterArr = [7]
// 0 5
// 12678irecisit
// 0123ID4567810
// 11051106
if ((item.LesionType === 1 || item.LesionType === 2 || item.LesionType === 6 || item.LesionType === 7 || item.LesionType === 8) && isNTFilterLength) {
filterArr = [0, 1, 3, 4, 5, 6, 2, 8, 10, 7, 1105]
} else {