保存肝分段标记逻辑更改
parent
17ee60de81
commit
221ad89fd4
|
@ -312,7 +312,10 @@ export default {
|
||||||
|
|
||||||
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整
|
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整
|
||||||
let isMeasurable = this.getQuestionVal(1105)
|
let isMeasurable = this.getQuestionVal(1105)
|
||||||
this.$set(this.questionForm, 'saveTypeEnum', isMeasurable === '' ? 1 : 2)
|
if (this.questionForm.saveTypeEnum !== 1) {
|
||||||
|
this.$set(this.questionForm, 'saveTypeEnum', isMeasurable === '' ? 1 : 2)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex)
|
this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex)
|
||||||
this.lesionMark = this.getLesionName(this.orderMark, 1101)
|
this.lesionMark = this.getLesionName(this.orderMark, 1101)
|
||||||
|
@ -601,10 +604,41 @@ export default {
|
||||||
// 保存后设置保存状态
|
// 保存后设置保存状态
|
||||||
let i = this.markList.findIndex(i=>i.tableQuestionId === qs.Id)
|
let i = this.markList.findIndex(i=>i.tableQuestionId === qs.Id)
|
||||||
this.markList[i].saveEnum = 1
|
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.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
// 刷新表格、刷新标记信息
|
// 刷新表格、刷新标记信息
|
||||||
this.$emit('getReadingQuestionAndAnswer')
|
this.$emit('getReadingQuestionAndAnswer')
|
||||||
|
DicomEvent.$emit('setMeasuredToolsPassive')
|
||||||
loading.close()
|
loading.close()
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
|
@ -464,6 +464,10 @@ export default {
|
||||||
|
|
||||||
lesionType = item.LesionType
|
lesionType = item.LesionType
|
||||||
var filterArr = [7]
|
var filterArr = [7]
|
||||||
|
// 0:靶病灶、 5:新靶病灶
|
||||||
|
// 1:非靶病灶、2:新病灶、6:新非靶病灶、7:其它既往新病灶、8:触发irecisit后的新病灶
|
||||||
|
// 0:长径,1:短径,2:是否淋巴结,3:自增ID,4:病灶名称,5:所在器官,6:所在位置,7:状态,8:所在部位,10:部位描述
|
||||||
|
// 1105:是否可测量,1106:肝脏分段
|
||||||
if ((item.LesionType === 1 || item.LesionType === 2 || item.LesionType === 6 || item.LesionType === 7 || item.LesionType === 8) && isNTFilterLength) {
|
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]
|
filterArr = [0, 1, 3, 4, 5, 6, 2, 8, 10, 7, 1105]
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue