RecistBM标准更改
parent
75efdcf0f7
commit
da0dabecca
|
@ -833,8 +833,8 @@ export default {
|
||||||
const isLymphLesion = this.getQuestionVal(2)
|
const isLymphLesion = this.getQuestionVal(2)
|
||||||
const lesionLength = this.getQuestionVal(0)
|
const lesionLength = this.getQuestionVal(0)
|
||||||
const lesionShort = this.getQuestionVal(1)
|
const lesionShort = this.getQuestionVal(1)
|
||||||
const bLesionL = !isNaN(parseFloat(this.answers.LastTaskMajorAxis)) ? parseFloat(this.answers.BaseLineMajorAxis) : 0
|
const bLesionL = !isNaN(parseFloat(this.answers.BaseLineMajorAxis)) ? parseFloat(this.answers.BaseLineMajorAxis) : 0
|
||||||
const bLesionS = !isNaN(parseFloat(this.answers.LastTaskShortAxis)) ? parseFloat(this.answers.BaseLineShortAxis) : 0
|
const bLesionS = !isNaN(parseFloat(this.answers.BaseLineShortAxis)) ? parseFloat(this.answers.BaseLineShortAxis) : 0
|
||||||
if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort < bLesionS) {
|
if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort < bLesionS) {
|
||||||
const v = this.isConvertedTask ? 4 : 1
|
const v = this.isConvertedTask ? 4 : 1
|
||||||
arr = arr.filter(i => i.value !== v)
|
arr = arr.filter(i => i.value !== v)
|
||||||
|
@ -1989,10 +1989,8 @@ export default {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.currentMarkTool = measureData ? measureData.type : ''
|
this.currentMarkTool = measureData ? measureData.type : ''
|
||||||
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整
|
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整
|
||||||
|
|
||||||
this.$set(this.questionForm, 'saveTypeEnum', 2)
|
this.$set(this.questionForm, 'saveTypeEnum', 2)
|
||||||
this.originalQuestionForm = { ...this.questionForm }
|
this.originalQuestionForm = { ...this.questionForm }
|
||||||
loading.close()
|
|
||||||
var isLymphLesion = this.getQuestionVal(2)
|
var isLymphLesion = this.getQuestionVal(2)
|
||||||
var lesionOrgan = this.getQuestionVal(6)
|
var lesionOrgan = this.getQuestionVal(6)
|
||||||
this.$set(this.questionForm, 'RowId', res.Result.RowId)
|
this.$set(this.questionForm, 'RowId', res.Result.RowId)
|
||||||
|
@ -2006,6 +2004,7 @@ export default {
|
||||||
DicomEvent.$emit('getReportInfo', true)
|
DicomEvent.$emit('getReportInfo', true)
|
||||||
DicomEvent.$emit('setMeasuredToolsPassive')
|
DicomEvent.$emit('setMeasuredToolsPassive')
|
||||||
}
|
}
|
||||||
|
loading.close()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
loading.close()
|
loading.close()
|
||||||
|
|
|
@ -765,8 +765,8 @@ export default {
|
||||||
const isLymphLesion = this.getQuestionVal(2)
|
const isLymphLesion = this.getQuestionVal(2)
|
||||||
const lesionLength = this.getQuestionVal(0)
|
const lesionLength = this.getQuestionVal(0)
|
||||||
const lesionShort = this.getQuestionVal(1)
|
const lesionShort = this.getQuestionVal(1)
|
||||||
const bLesionL = !isNaN(parseFloat(this.answers.LastTaskMajorAxis)) ? parseFloat(this.answers.BaseLineMajorAxis) : 0
|
const bLesionL = !isNaN(parseFloat(this.answers.BaseLineMajorAxis)) ? parseFloat(this.answers.BaseLineMajorAxis) : 0
|
||||||
const bLesionS = !isNaN(parseFloat(this.answers.LastTaskShortAxis)) ? parseFloat(this.answers.BaseLineShortAxis) : 0
|
const bLesionS = !isNaN(parseFloat(this.answers.BaseLineShortAxis)) ? parseFloat(this.answers.BaseLineShortAxis) : 0
|
||||||
if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort < bLesionS) {
|
if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort < bLesionS) {
|
||||||
arr = arr.filter(i => i.value !== 1)
|
arr = arr.filter(i => i.value !== 1)
|
||||||
} else if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort >= 10 && lesionShort > bLesionS) {
|
} else if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort >= 10 && lesionShort > bLesionS) {
|
||||||
|
@ -1348,8 +1348,8 @@ export default {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
DicomEvent.$emit('getReportInfo', true)
|
DicomEvent.$emit('getReportInfo', true)
|
||||||
DicomEvent.$emit('setMeasuredToolsPassive')
|
DicomEvent.$emit('setMeasuredToolsPassive')
|
||||||
loading.close()
|
|
||||||
}
|
}
|
||||||
|
loading.close()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
loading.close()
|
loading.close()
|
||||||
|
|
|
@ -344,16 +344,15 @@ export default {
|
||||||
await this.getOrganInfoList()
|
await this.getOrganInfoList()
|
||||||
|
|
||||||
// 首次分裂的病灶默认状态为空时,设置默认值为存在
|
// 首次分裂的病灶默认状态为空时,设置默认值为存在
|
||||||
if (this.answers.IsFristAdd === 'True' && this.answers.SplitOrMergeType === '0' && isNaN(parseInt(this.getQuestionVal(7)))) {
|
if (this.answers.IsFristAdd === 'True' && this.answers.SplitOrMergeType === '0' && lesionState === '') {
|
||||||
const stateId = this.getQuestionId(7)
|
const stateId = this.getQuestionId(7)
|
||||||
this.$set(this.questionForm, stateId, 0)
|
this.$set(this.questionForm, stateId, 0)
|
||||||
var isLymphLesion = this.getQuestionVal(2)
|
var isLymphLesion = this.getQuestionVal(2)
|
||||||
isLymphLesion = !isNaN(parseInt(isLymphLesion)) ? parseInt(isLymphLesion) : null
|
|
||||||
const lesionPart = this.getQuestionVal(8)
|
const lesionPart = this.getQuestionVal(8)
|
||||||
const lesionOrgan = this.getQuestionVal(6)
|
const lesionOrgan = this.getQuestionVal(6)
|
||||||
const lesionLength = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : ''
|
const lesionLength = this.getQuestionVal(0)
|
||||||
const lesionShort = !isNaN(parseInt(this.getQuestionVal(1))) ? this.getQuestionVal(1) : ''
|
const lesionShort = this.getQuestionVal(1)
|
||||||
const lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : ''
|
const lesionState = this.getQuestionVal(7)
|
||||||
this.$emit('resetQuestions', { isLymphLesion, lesionPart, lesionOrgan, lesionShort, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
this.$emit('resetQuestions', { isLymphLesion, lesionPart, lesionOrgan, lesionShort, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||||
}
|
}
|
||||||
this.isRender = true
|
this.isRender = true
|
||||||
|
@ -519,8 +518,8 @@ export default {
|
||||||
}
|
}
|
||||||
const lesionPart = this.getQuestionVal(8)
|
const lesionPart = this.getQuestionVal(8)
|
||||||
const lesionOrgan = this.getQuestionVal(6)
|
const lesionOrgan = this.getQuestionVal(6)
|
||||||
const lesionLength = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : ''
|
const lesionLength = this.getQuestionVal(0)
|
||||||
const lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : ''
|
const lesionState = this.getQuestionVal(7)
|
||||||
this.$emit('resetQuestions', { isLymphLesion: 0, lesionPart, lesionOrgan, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
this.$emit('resetQuestions', { isLymphLesion: 0, lesionPart, lesionOrgan, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||||
|
|
||||||
if (question.QuestionMark === 7) {
|
if (question.QuestionMark === 7) {
|
||||||
|
@ -579,9 +578,8 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
var isLymphLesion = this.getQuestionVal(2)
|
var isLymphLesion = this.getQuestionVal(2)
|
||||||
isLymphLesion = !isNaN(parseInt(isLymphLesion)) ? parseInt(isLymphLesion) : null
|
var lesionLength = this.getQuestionVal(0)
|
||||||
var lesionLength = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : ''
|
var lesionShort = this.getQuestionVal(1)
|
||||||
var lesionShort = !isNaN(parseInt(this.getQuestionVal(1))) ? this.getQuestionVal(1) : ''
|
|
||||||
|
|
||||||
// 当前添加的新病灶不做处理
|
// 当前添加的新病灶不做处理
|
||||||
if (!(this.isCurrentTaskAdd === 'True')) {
|
if (!(this.isCurrentTaskAdd === 'True')) {
|
||||||
|
@ -601,7 +599,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : ''
|
const lesionState = this.getQuestionVal(7)
|
||||||
var status = ''
|
var status = ''
|
||||||
if (lesionState) {
|
if (lesionState) {
|
||||||
if (this.lesionType === 0 && lesionState === 1) {
|
if (this.lesionType === 0 && lesionState === 1) {
|
||||||
|
@ -650,8 +648,8 @@ export default {
|
||||||
|
|
||||||
const lesionPart = this.getQuestionVal(8)
|
const lesionPart = this.getQuestionVal(8)
|
||||||
const lesionOrgan = this.getQuestionVal(6)
|
const lesionOrgan = this.getQuestionVal(6)
|
||||||
const lesionL = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : ''
|
const lesionL = this.getQuestionVal(0)
|
||||||
var lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : ''
|
var lesionState = this.getQuestionVal(7)
|
||||||
this.$emit('resetQuestions', { isLymphLesion: 0, lesionPart, lesionOrgan, lesionLength: lesionL, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
this.$emit('resetQuestions', { isLymphLesion: 0, lesionPart, lesionOrgan, lesionLength: lesionL, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||||
this.toolType = measureData.type
|
this.toolType = measureData.type
|
||||||
DicomEvent.$emit('refreshStudyListMeasureData')
|
DicomEvent.$emit('refreshStudyListMeasureData')
|
||||||
|
@ -684,17 +682,16 @@ export default {
|
||||||
},
|
},
|
||||||
filterState(arr) {
|
filterState(arr) {
|
||||||
if (!this.isBaseLineTask) {
|
if (!this.isBaseLineTask) {
|
||||||
var isLymphLesion = this.getQuestionVal(2)
|
const isLymphLesion = this.getQuestionVal(2)
|
||||||
isLymphLesion = !isNaN(parseInt(isLymphLesion)) ? parseInt(isLymphLesion) : null
|
const lesionLength = this.getQuestionVal(0)
|
||||||
const lesionLength = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : 0
|
const lesionShort = this.getQuestionVal(1)
|
||||||
const lesionShort = !isNaN(parseInt(this.getQuestionVal(1))) ? this.getQuestionVal(1) : 0
|
const bLesionL = !isNaN(parseInt(this.answers.LastTaskMajorAxis)) ? parseInt(this.answers.LastTaskMajorAxis) : 0
|
||||||
const lastLesionL = !isNaN(parseInt(this.answers.LastTaskMajorAxis)) ? parseInt(this.answers.LastTaskMajorAxis) : 0
|
const bLesionS = !isNaN(parseInt(this.answers.LastTaskShortAxis)) ? parseInt(this.answers.LastTaskShortAxis) : 0
|
||||||
const lastLesionS = !isNaN(parseInt(this.answers.LastTaskShortAxis)) ? parseInt(this.answers.LastTaskShortAxis) : 0
|
if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort < bLesionS) {
|
||||||
if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && (this.questionForm.MeasureData.type === 'Length' || this.questionForm.MeasureData.type === 'Bidirectional') && lesionShort < lastLesionS) {
|
|
||||||
arr = arr.filter(i => i.value !== 1)
|
arr = arr.filter(i => i.value !== 1)
|
||||||
} else if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && (this.questionForm.MeasureData.type === 'Length' || this.questionForm.MeasureData.type === 'Bidirectional') && lesionShort >= 10 && lesionShort > lastLesionS) {
|
} else if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort >= 10 && lesionShort > bLesionS) {
|
||||||
arr = arr.filter(i => i.value === 0 || i.value === 1)
|
arr = arr.filter(i => i.value === 0 || i.value === 1)
|
||||||
} else if (this.lesionType === 1 && isLymphLesion === 0 && this.questionForm.MeasureData && (this.questionForm.MeasureData.type === 'Length' || this.questionForm.MeasureData.type === 'Bidirectional') && lesionLength < lastLesionL) {
|
} else if (this.lesionType === 1 && isLymphLesion === 0 && this.questionForm.MeasureData && (this.questionForm.MeasureData.type === 'Length' || this.questionForm.MeasureData.type === 'Bidirectional') && lesionLength < bLesionL) {
|
||||||
arr = arr.filter(i => i.value !== 1)
|
arr = arr.filter(i => i.value !== 1)
|
||||||
}
|
}
|
||||||
return arr
|
return arr
|
||||||
|
@ -758,13 +755,13 @@ export default {
|
||||||
// 生成Blob对象(文件对象)
|
// 生成Blob对象(文件对象)
|
||||||
return new Blob([bytesCode], { type: imgtype })
|
return new Blob([bytesCode], { type: imgtype })
|
||||||
},
|
},
|
||||||
handleSave() {
|
async handleSave() {
|
||||||
this.$refs.measurementForm.validate(async valid => {
|
const valid = await this.$refs.measurementForm.validate()
|
||||||
if (!valid) return
|
if (!valid) 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 = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : ''
|
var lesionLength = this.getQuestionVal(0)
|
||||||
|
|
||||||
if (this.isBaseLineTask) {
|
if (this.isBaseLineTask) {
|
||||||
// 基线
|
// 基线
|
||||||
|
@ -975,6 +972,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
DicomEvent.$emit('getScreenshots', { questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, visitTaskId: this.visitTaskId, lesionName: this.lesionMark, lesionType: this.lesionType, isMarked: !!measureData }, async val => {
|
DicomEvent.$emit('getScreenshots', { questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, visitTaskId: this.visitTaskId, lesionName: this.lesionMark, lesionType: this.lesionType, isMarked: !!measureData }, async val => {
|
||||||
|
try {
|
||||||
var picturePath = ''
|
var picturePath = ''
|
||||||
if (val && measureData && this.questionForm.IsDicomReading) {
|
if (val && measureData && this.questionForm.IsDicomReading) {
|
||||||
var pictureObj = await this.uploadScreenshots(`${new Date().getTime()}`, val)
|
var pictureObj = await this.uploadScreenshots(`${new Date().getTime()}`, val)
|
||||||
|
@ -1014,7 +1012,8 @@ export default {
|
||||||
await this.deleteOldLesion(this.deleteInfo.questionId, this.deleteInfo.rowId)
|
await this.deleteOldLesion(this.deleteInfo.questionId, this.deleteInfo.rowId)
|
||||||
this.deleteInfo = null
|
this.deleteInfo = null
|
||||||
}
|
}
|
||||||
submitTableQuestion(params).then(async res => {
|
const res = await submitTableQuestion(params)
|
||||||
|
if (res.IsSuccess) {
|
||||||
// 保存成功!
|
// 保存成功!
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.currentMarkTool = measureData ? measureData.type : ''
|
this.currentMarkTool = measureData ? measureData.type : ''
|
||||||
|
@ -1022,27 +1021,33 @@ export default {
|
||||||
|
|
||||||
this.$set(this.questionForm, 'saveTypeEnum', 2)
|
this.$set(this.questionForm, 'saveTypeEnum', 2)
|
||||||
this.originalQuestionForm = { ...this.questionForm }
|
this.originalQuestionForm = { ...this.questionForm }
|
||||||
loading.close()
|
|
||||||
|
|
||||||
var lesionOrgan = this.getQuestionVal(6)
|
var lesionOrgan = this.getQuestionVal(6)
|
||||||
this.$set(this.questionForm, 'RowId', res.Result.RowId)
|
this.$set(this.questionForm, 'RowId', res.Result.RowId)
|
||||||
const lesionPart = this.getQuestionVal(8)
|
const lesionPart = this.getQuestionVal(8)
|
||||||
const lesionState = Number(this.getQuestionVal(7))
|
const lesionState = this.getQuestionVal(7)
|
||||||
this.$emit('resetQuestions', { isLymphLesion: 0, lesionPart, lesionOrgan, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, lesionState, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
this.$emit('resetQuestions', { isLymphLesion: 0, lesionPart, lesionOrgan, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, lesionState, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
DicomEvent.$emit('getReportInfo', true)
|
DicomEvent.$emit('getReportInfo', true)
|
||||||
DicomEvent.$emit('setMeasuredToolsPassive')
|
DicomEvent.$emit('setMeasuredToolsPassive')
|
||||||
}).catch(() => { loading.close() })
|
}
|
||||||
})
|
loading.close()
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDeleteMeasureData() {
|
async handleDeleteMeasureData() {
|
||||||
// 是否确认清除标记?
|
// 是否确认清除标记?
|
||||||
this.$confirm(this.$t('trials:reading:warnning:msg47'), {
|
const confirm = await this.$confirm(
|
||||||
|
this.$t('trials:reading:warnning:msg47'),
|
||||||
|
{
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true
|
distinguishCancelAndClose: true
|
||||||
})
|
}
|
||||||
.then(async() => {
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
// 重置长短径 和 状态
|
// 重置长短径 和 状态
|
||||||
var lengId = this.getQuestionId(0)
|
var lengId = this.getQuestionId(0)
|
||||||
this.$set(this.questionForm, lengId, '')
|
this.$set(this.questionForm, lengId, '')
|
||||||
|
@ -1060,7 +1065,7 @@ export default {
|
||||||
const lesionPart = this.getQuestionVal(8)
|
const lesionPart = this.getQuestionVal(8)
|
||||||
const lesionOrgan = this.getQuestionVal(6)
|
const lesionOrgan = this.getQuestionVal(6)
|
||||||
const lesionLength = ''
|
const lesionLength = ''
|
||||||
const lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : ''
|
const lesionState = this.getQuestionVal(7)
|
||||||
|
|
||||||
if (!this.questionForm.IsDicomReading) {
|
if (!this.questionForm.IsDicomReading) {
|
||||||
DicomEvent.$emit('removeNoneDicomMeasureData', this.questionForm.MeasureData)
|
DicomEvent.$emit('removeNoneDicomMeasureData', this.questionForm.MeasureData)
|
||||||
|
@ -1076,26 +1081,26 @@ export default {
|
||||||
}
|
}
|
||||||
this.$emit('resetQuestions', { isLymphLesion: 0, lesionPart, lesionOrgan, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: anwsers })
|
this.$emit('resetQuestions', { isLymphLesion: 0, lesionPart, lesionOrgan, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: anwsers })
|
||||||
DicomEvent.$emit('refreshStudyListMeasureData')
|
DicomEvent.$emit('refreshStudyListMeasureData')
|
||||||
})
|
|
||||||
.catch(() => {})
|
|
||||||
},
|
},
|
||||||
handleDelete() {
|
async handleDelete() {
|
||||||
// 是否确认删除?
|
// 是否确认删除?
|
||||||
this.$confirm(this.$t('trials:reading:warnning:msg48'), {
|
const loading = this.$loading({ fullscreen: true })
|
||||||
|
try {
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
this.$t('trials:reading:warnning:msg48'),
|
||||||
|
{
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true
|
distinguishCancelAndClose: true
|
||||||
})
|
}
|
||||||
.then(async() => {
|
)
|
||||||
|
if (confirm !== 'confirm') return
|
||||||
if (this.questionForm.RowId) {
|
if (this.questionForm.RowId) {
|
||||||
const loading = this.$loading({ fullscreen: true })
|
|
||||||
var param = {
|
var param = {
|
||||||
visitTaskId: this.visitTaskId,
|
visitTaskId: this.visitTaskId,
|
||||||
questionId: this.parentQsId,
|
questionId: this.parentQsId,
|
||||||
rowId: this.questionForm.RowId
|
rowId: this.questionForm.RowId
|
||||||
}
|
}
|
||||||
deleteReadingRowAnswer(param)
|
const res = deleteReadingRowAnswer(param)
|
||||||
.then(async res => {
|
|
||||||
loading.close()
|
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
if (this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
|
if (this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
|
||||||
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
|
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
|
||||||
|
@ -1106,9 +1111,7 @@ export default {
|
||||||
this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
|
this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
|
||||||
DicomEvent.$emit('getReportInfo', true)
|
DicomEvent.$emit('getReportInfo', true)
|
||||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
loading.close()
|
|
||||||
}
|
}
|
||||||
}).catch(() => { loading.close() })
|
|
||||||
} else {
|
} else {
|
||||||
if (this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
|
if (this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
|
||||||
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
|
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
|
||||||
|
@ -1119,24 +1122,28 @@ export default {
|
||||||
this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
|
this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
|
||||||
}
|
}
|
||||||
DicomEvent.$emit('refreshStudyListMeasureData')
|
DicomEvent.$emit('refreshStudyListMeasureData')
|
||||||
})
|
loading.close()
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleClose() {
|
async handleClose() {
|
||||||
if (!this.questionForm.RowId) {
|
if (!this.questionForm.RowId) {
|
||||||
// '当前病灶为新建病灶,未保存。如果关闭窗口,将会删除病灶信息,是否继续?'
|
// '当前病灶为新建病灶,未保存。如果关闭窗口,将会删除病灶信息,是否继续?'
|
||||||
this.$confirm(this.$t('trials:reading:warnning:msg49'), {
|
const confirm = await this.$confirm(
|
||||||
|
this.$t('trials:reading:warnning:msg49'),
|
||||||
|
{
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true
|
distinguishCancelAndClose: true
|
||||||
})
|
}
|
||||||
.then(async() => {
|
)
|
||||||
// 移除新建病灶并关闭窗口
|
if (confirm !== 'confirm') return
|
||||||
if (this.questionForm.MeasureData) {
|
if (this.questionForm.MeasureData) {
|
||||||
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
|
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
|
||||||
}
|
}
|
||||||
DicomEvent.$emit('getMeasureData')
|
DicomEvent.$emit('getMeasureData')
|
||||||
this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
|
this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
|
||||||
})
|
|
||||||
.catch(() => {})
|
|
||||||
} else {
|
} else {
|
||||||
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断)
|
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断)
|
||||||
|
|
||||||
|
@ -1154,13 +1161,12 @@ export default {
|
||||||
if (isNaN(parseInt(lesionState)) && this.answers.IsFristAdd === 'False') {
|
if (isNaN(parseInt(lesionState)) && this.answers.IsFristAdd === 'False') {
|
||||||
const stateId = this.getQuestionId(7)
|
const stateId = this.getQuestionId(7)
|
||||||
this.$set(this.questionForm, stateId, 2)
|
this.$set(this.questionForm, stateId, 2)
|
||||||
var isLymphLesion = this.getQuestionVal(2)
|
const isLymphLesion = this.getQuestionVal(2)
|
||||||
isLymphLesion = !isNaN(parseInt(isLymphLesion)) ? parseInt(isLymphLesion) : null
|
|
||||||
const lesionPart = this.getQuestionVal(8)
|
const lesionPart = this.getQuestionVal(8)
|
||||||
const lesionOrgan = this.getQuestionVal(6)
|
const lesionOrgan = this.getQuestionVal(6)
|
||||||
const lesionLength = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : ''
|
const lesionLength = this.getQuestionVal(0)
|
||||||
const lesionShort = !isNaN(parseInt(this.getQuestionVal(1))) ? this.getQuestionVal(1) : ''
|
const lesionShort = this.getQuestionVal(1)
|
||||||
const lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : ''
|
const lesionState = this.getQuestionVal(7)
|
||||||
this.$emit('resetQuestions', { isLymphLesion, lesionPart, lesionOrgan, lesionShort, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
this.$emit('resetQuestions', { isLymphLesion, lesionPart, lesionOrgan, lesionShort, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue