阅片报告页修改
parent
dfd0b1a767
commit
52ed67850d
|
@ -411,32 +411,38 @@ export default {
|
||||||
getTableHeight() {
|
getTableHeight() {
|
||||||
this.height = window.innerHeight - 170
|
this.height = window.innerHeight - 170
|
||||||
},
|
},
|
||||||
getReportInfo(IsCalculate) {
|
async getReportInfo(IsCalculate) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var params = {
|
try {
|
||||||
visitTaskId: this.visitTaskId,
|
var params = {
|
||||||
trialId: this.$router.currentRoute.query.trialId,
|
visitTaskId: this.visitTaskId,
|
||||||
IsCalculate: IsCalculate !== false
|
trialId: this.$router.currentRoute.query.trialId,
|
||||||
}
|
IsCalculate: IsCalculate !== false
|
||||||
getReadingReportEvaluation(params).then(res => {
|
}
|
||||||
this.readingTaskState = res.Result.ReadingTaskState
|
const res = await getReadingReportEvaluation(params)
|
||||||
this.tumorEvaluate = res.Result.CalculateResult.TumorEvaluate ? parseInt(res.Result.CalculateResult.TumorEvaluate) : null
|
if (res.IsSuccess) {
|
||||||
this.isExistDisease = res.Result.CalculateResult.IsExistDisease ? parseInt(res.Result.CalculateResult.IsExistDisease) : null
|
this.readingTaskState = res.Result.ReadingTaskState
|
||||||
this.answerArr = []
|
this.tumorEvaluate = res.Result.CalculateResult.TumorEvaluate ? parseInt(res.Result.CalculateResult.TumorEvaluate) : null
|
||||||
this.questions = res.Result.TaskQuestions.concat()
|
this.isExistDisease = res.Result.CalculateResult.IsExistDisease ? parseInt(res.Result.CalculateResult.IsExistDisease) : null
|
||||||
this.visitTaskList = res.Result.VisitTaskList
|
this.answerArr = []
|
||||||
var taskQuestions = this.getQuestions(res.Result.TaskQuestions, !this.isShowDetail, null, null)
|
this.questions = res.Result.TaskQuestions.concat()
|
||||||
this.taskQuestions = []
|
this.visitTaskList = res.Result.VisitTaskList
|
||||||
taskQuestions.forEach(item => {
|
var taskQuestions = this.getQuestions(res.Result.TaskQuestions, !this.isShowDetail, null, null)
|
||||||
this.$set(this.taskQuestions, this.taskQuestions.length, item)
|
this.taskQuestions = []
|
||||||
})
|
taskQuestions.forEach(item => {
|
||||||
const tLesion = res.Result.LesionCountList.find(i => i.LesionType === 0)
|
this.$set(this.taskQuestions, this.taskQuestions.length, item)
|
||||||
this.tLesionCount = tLesion ? tLesion.Count : 0
|
})
|
||||||
const ntLesion = res.Result.LesionCountList.find(i => i.LesionType === 1)
|
const tLesion = res.Result.LesionCountList.find(i => i.LesionType === 0)
|
||||||
this.ntLesionCount = ntLesion ? ntLesion.Count : 0
|
this.tLesionCount = tLesion ? tLesion.Count : 0
|
||||||
this.setScrollTop()
|
const ntLesion = res.Result.LesionCountList.find(i => i.LesionType === 1)
|
||||||
|
this.ntLesionCount = ntLesion ? ntLesion.Count : 0
|
||||||
|
this.setScrollTop()
|
||||||
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => { this.loading = false })
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setScrollTop(a) {
|
setScrollTop(a) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -608,24 +614,31 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async handleConfirm() {
|
async handleConfirm() {
|
||||||
await this.handleSave(false)
|
this.loading = true
|
||||||
await this.verifyVisitTaskQuestions()
|
try {
|
||||||
var i = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId)
|
await this.handleSave(false)
|
||||||
var isBaseline = this.visitTaskList[i].IsBaseLine
|
await verifyVisitTaskQuestions({ visitTaskId: this.visitTaskId })
|
||||||
if (isBaseline) {
|
var i = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId)
|
||||||
this.assessmentQuestions = await this.getAdditionalAssessments()
|
var isBaseline = this.visitTaskList[i].IsBaseLine
|
||||||
if (this.assessmentQuestions.length > 0) {
|
if (isBaseline) {
|
||||||
|
const res = await getTaskAdditionalQuestion({ visitTaskId: this.visitTaskId })
|
||||||
|
this.assessmentQuestions = res.Result
|
||||||
|
if (this.assessmentQuestions.length > 0) {
|
||||||
// 打开附加评估框
|
// 打开附加评估框
|
||||||
this.additionalAssessmentsDig.visible = true
|
this.additionalAssessmentsDig.visible = true
|
||||||
|
} else {
|
||||||
|
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
||||||
|
this.signCode = ImageAssessmentReportConfirmation
|
||||||
|
this.signVisible = true
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
||||||
this.signCode = ImageAssessmentReportConfirmation
|
this.signCode = ImageAssessmentReportConfirmation
|
||||||
this.signVisible = true
|
this.signVisible = true
|
||||||
}
|
}
|
||||||
} else {
|
this.loading = false
|
||||||
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
} catch (e) {
|
||||||
this.signCode = ImageAssessmentReportConfirmation
|
this.loading = false
|
||||||
this.signVisible = true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sign() {
|
sign() {
|
||||||
|
@ -636,31 +649,6 @@ export default {
|
||||||
this.signVisible = true
|
this.signVisible = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 附加评估
|
|
||||||
getAdditionalAssessments() {
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
this.loading = true
|
|
||||||
getTaskAdditionalQuestion({ visitTaskId: this.visitTaskId }).then(res => {
|
|
||||||
this.loading = false
|
|
||||||
resolve(res.Result)
|
|
||||||
}).catch(() => {
|
|
||||||
this.loading = false
|
|
||||||
resolve()
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
verifyVisitTaskQuestions() {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.loading = true
|
|
||||||
verifyVisitTaskQuestions({ visitTaskId: this.visitTaskId }).then(res => {
|
|
||||||
this.loading = false
|
|
||||||
resolve()
|
|
||||||
}).catch(() => {
|
|
||||||
this.loading = false
|
|
||||||
reject()
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleResize() {
|
handleResize() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.reportList && this.$refs.reportList.doLayout()
|
this.$refs.reportList && this.$refs.reportList.doLayout()
|
||||||
|
@ -675,15 +663,16 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 签名并确认
|
// 签名并确认
|
||||||
signConfirm(signInfo) {
|
async signConfirm(signInfo) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var params = {
|
try {
|
||||||
data: {
|
var params = {
|
||||||
visitTaskId: this.visitTaskId
|
data: {
|
||||||
},
|
visitTaskId: this.visitTaskId
|
||||||
signInfo: signInfo
|
},
|
||||||
}
|
signInfo: signInfo
|
||||||
submitDicomVisitTask(params).then(async res => {
|
}
|
||||||
|
const res = await submitDicomVisitTask(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
if (this.$refs['signForm']) {
|
if (this.$refs['signForm']) {
|
||||||
|
@ -699,7 +688,8 @@ export default {
|
||||||
await store.dispatch('reading/setVisitTaskReadingTaskState', { visitTaskId: this.visitTaskId, readingTaskState: 2 })
|
await store.dispatch('reading/setVisitTaskReadingTaskState', { visitTaskId: this.visitTaskId, readingTaskState: 2 })
|
||||||
// DicomEvent.$emit('setReadingState', 2)
|
// DicomEvent.$emit('setReadingState', 2)
|
||||||
await store.dispatch('reading/setCurrentReadingTaskState', 2)
|
await store.dispatch('reading/setCurrentReadingTaskState', 2)
|
||||||
var isAutoTask = await this.getAutoTaskVal()
|
const res = await getAutoCutNextTask()
|
||||||
|
var isAutoTask = res.Result.AutoCutNextTask
|
||||||
if (isAutoTask) {
|
if (isAutoTask) {
|
||||||
// DicomEvent.$emit('reload')
|
// DicomEvent.$emit('reload')
|
||||||
// DicomEvent.$emit('getNextTask')
|
// DicomEvent.$emit('getNextTask')
|
||||||
|
@ -723,19 +713,12 @@ export default {
|
||||||
// DicomEvent.$emit('readingPageStateUpdate', { readingTaskState: 2 })
|
// DicomEvent.$emit('readingPageStateUpdate', { readingTaskState: 2 })
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (this.$refs['signForm'] && this.$refs['signForm'].btnLoading) {
|
if (this.$refs['signForm'] && this.$refs['signForm'].btnLoading) {
|
||||||
this.$refs['signForm'].btnLoading = false
|
this.$refs['signForm'].btnLoading = false
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
},
|
|
||||||
getAutoTaskVal() {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
getAutoCutNextTask().then(res => {
|
|
||||||
resolve(res.Result.AutoCutNextTask)
|
|
||||||
}).catch(() => { reject() })
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
previewDicoms(task) {
|
previewDicoms(task) {
|
||||||
if (this.openWindow) {
|
if (this.openWindow) {
|
||||||
|
@ -755,7 +738,7 @@ export default {
|
||||||
this.openWindow = window.open(routeData.href, '_blank')
|
this.openWindow = window.open(routeData.href, '_blank')
|
||||||
},
|
},
|
||||||
handleSave(isPrompt) {
|
handleSave(isPrompt) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async(resolve, reject) => {
|
||||||
var isBeill
|
var isBeill
|
||||||
var evaluateResult = ''
|
var evaluateResult = ''
|
||||||
var evaluateAjustReason = ''
|
var evaluateAjustReason = ''
|
||||||
|
@ -805,20 +788,21 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var params = {
|
try {
|
||||||
visitTaskId: this.visitTaskId,
|
var params = {
|
||||||
answers: this.answers
|
visitTaskId: this.visitTaskId,
|
||||||
}
|
answers: this.answers
|
||||||
changeDicomReadingQuestionAnswer(params).then(res => {
|
}
|
||||||
if (isPrompt) {
|
const res = await changeDicomReadingQuestionAnswer(params)
|
||||||
|
if (res.IsSuccess && isPrompt) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
resolve()
|
resolve()
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject()
|
reject()
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getWarningText() {
|
getWarningText() {
|
||||||
|
|
Loading…
Reference in New Issue