全局裁判肿瘤学阅片更改
parent
c74806a367
commit
b37e351491
|
@ -424,48 +424,58 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getAdInfo() {
|
async getAdInfo() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getJudgeReadingInfo({ visitTaskId: this.visitTaskId }).then(res => {
|
try {
|
||||||
var judgeQS = []
|
const res = await getJudgeReadingInfo({ visitTaskId: this.visitTaskId })
|
||||||
if (res.Result.VisitInfoList.length > 0) {
|
if (res.IsSuccess) {
|
||||||
res.Result.VisitInfoList[0].VisitTaskInfoList.map((v, index) => {
|
var judgeQS = []
|
||||||
var qsObj = { armEnum: v.ArmEnum, judgeQuestionList: [], index: index }
|
if (res.Result.VisitInfoList.length > 0) {
|
||||||
v.JudgeQuestionList.map(q => {
|
res.Result.VisitInfoList[0].VisitTaskInfoList.map((v, index) => {
|
||||||
if (q.QuestionType === 1) {
|
var qsObj = { armEnum: v.ArmEnum, judgeQuestionList: [], index: index }
|
||||||
qsObj.judgeQuestionList.push(q.QuestionName)
|
v.JudgeQuestionList.map(q => {
|
||||||
} else if (q.QuestionType === 3 && this.criterionType === 10) {
|
if (q.QuestionType === 1) {
|
||||||
qsObj.judgeQuestionList.push(this.$t('trials:globalReview:table:visitRemark'))
|
qsObj.judgeQuestionList.push(q.QuestionName)
|
||||||
} else {
|
} else if (q.QuestionType === 3 && this.criterionType === 10) {
|
||||||
qsObj.judgeQuestionList.push(this.$fd('JudgeReadingQuestionType', q.QuestionType))
|
qsObj.judgeQuestionList.push(this.$t('trials:globalReview:table:visitRemark'))
|
||||||
}
|
} else {
|
||||||
|
qsObj.judgeQuestionList.push(this.$fd('JudgeReadingQuestionType', q.QuestionType))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
judgeQS.push(qsObj)
|
||||||
})
|
})
|
||||||
judgeQS.push(qsObj)
|
}
|
||||||
})
|
this.judgeQuestion = judgeQS
|
||||||
}
|
this.isFixed = this.judgeQuestion.length > 0 && this.judgeQuestion[0].judgeQuestionList.length > 4
|
||||||
this.judgeQuestion = judgeQS
|
this.adInfo = res.Result
|
||||||
this.isFixed = this.judgeQuestion.length > 0 && this.judgeQuestion[0].judgeQuestionList.length > 4
|
this.adForm.judgeResultTaskId = res.Result.JudgeResultTaskId
|
||||||
this.adInfo = res.Result
|
|
||||||
this.adForm.judgeResultTaskId = res.Result.JudgeResultTaskId
|
|
||||||
|
|
||||||
this.adForm.judgeResultRemark = res.Result.JudgeResultRemark
|
this.adForm.judgeResultRemark = res.Result.JudgeResultRemark
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
if (res.Result.JudgeResultImagePathList) {
|
if (res.Result.JudgeResultImagePathList) {
|
||||||
res.Result.JudgeResultImagePathList.map(url => {
|
res.Result.JudgeResultImagePathList.map(url => {
|
||||||
if (url) { this.fileList.push({ name: '', url: url }) }
|
if (url) { this.fileList.push({ name: '', url: url }) }
|
||||||
})
|
})
|
||||||
this.adForm.judgeResultImagePathList = res.Result.JudgeResultImagePathList
|
this.adForm.judgeResultImagePathList = res.Result.JudgeResultImagePathList
|
||||||
|
}
|
||||||
|
this.visitTaskArmList = res.Result.VisitTaskArmList
|
||||||
}
|
}
|
||||||
this.visitTaskArmList = res.Result.VisitTaskArmList
|
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => { this.loading = false })
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getPriorAdList() {
|
async getPriorAdList() {
|
||||||
this.priorLoading = true
|
this.priorLoading = true
|
||||||
getReadingPastResultList({ visitTaskId: this.visitTaskId }).then(res => {
|
try {
|
||||||
this.priorADList = res.Result
|
const res = await getReadingPastResultList({ visitTaskId: this.visitTaskId })
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.priorADList = res.Result
|
||||||
|
}
|
||||||
this.priorLoading = false
|
this.priorLoading = false
|
||||||
}).catch(() => { this.priorLoading = false })
|
} catch (e) {
|
||||||
|
this.priorLoading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleVisitTaskArmChange(v) {
|
handleVisitTaskArmChange(v) {
|
||||||
var i = this.visitTaskArmList.findIndex(i => i.VisitTaskId === v)
|
var i = this.visitTaskArmList.findIndex(i => i.VisitTaskId === v)
|
||||||
|
@ -491,33 +501,32 @@ export default {
|
||||||
})
|
})
|
||||||
window.open(routeData.href, '_blank')
|
window.open(routeData.href, '_blank')
|
||||||
},
|
},
|
||||||
handleSave() {
|
async handleSave() {
|
||||||
this.$refs['adForm'].validate((valid) => {
|
const valid = await this.$refs['adForm'].validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var paths = []
|
var paths = []
|
||||||
this.fileList.map(file => {
|
this.fileList.map(file => {
|
||||||
if (file.url) {
|
if (file.url) {
|
||||||
paths.push(file.url)
|
paths.push(file.url)
|
||||||
}
|
}
|
||||||
})
|
|
||||||
this.adForm.judgeResultImagePathList = paths
|
|
||||||
this.adForm.visitTaskId = this.visitTaskId
|
|
||||||
saveJudgeVisitTaskResult(this.adForm).then(res => {
|
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
|
||||||
this.loading = false
|
|
||||||
}).catch(() => {
|
|
||||||
this.loading = false
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
this.adForm.judgeResultImagePathList = paths
|
||||||
|
this.adForm.visitTaskId = this.visitTaskId
|
||||||
|
try {
|
||||||
|
await saveJudgeVisitTaskResult(this.adForm)
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
this.loading = false
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
async handleSubmit() {
|
||||||
this.$refs['adForm'].validate((valid) => {
|
const valid = await this.$refs['adForm'].validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
||||||
this.signCode = ImageAssessmentReportConfirmation
|
this.signCode = ImageAssessmentReportConfirmation
|
||||||
this.signVisible = true
|
this.signVisible = true
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 关闭签名框
|
// 关闭签名框
|
||||||
closeSignDialog(isSign, signInfo) {
|
closeSignDialog(isSign, signInfo) {
|
||||||
|
@ -528,7 +537,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 签名并确认
|
// 签名并确认
|
||||||
signConfirm(signInfo) {
|
async signConfirm(signInfo) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var paths = []
|
var paths = []
|
||||||
this.fileList.map(file => {
|
this.fileList.map(file => {
|
||||||
|
@ -543,7 +552,8 @@ export default {
|
||||||
},
|
},
|
||||||
signInfo: signInfo
|
signInfo: signInfo
|
||||||
}
|
}
|
||||||
submitJudgeVisitTaskResult(params).then(async res => {
|
try {
|
||||||
|
const res = await submitJudgeVisitTaskResult(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
|
@ -553,38 +563,34 @@ export default {
|
||||||
// window.opener.postMessage('refreshTaskList', window.location)
|
// window.opener.postMessage('refreshTaskList', window.location)
|
||||||
// 设置当前任务阅片状态为已读
|
// 设置当前任务阅片状态为已读
|
||||||
this.adInfo.ReadingTaskState = 2
|
this.adInfo.ReadingTaskState = 2
|
||||||
var isAutoTask = await this.getAutoTaskVal()
|
const res = await getAutoCutNextTask()
|
||||||
|
var isAutoTask = res.Result.AutoCutNextTask
|
||||||
if (isAutoTask) {
|
if (isAutoTask) {
|
||||||
store.dispatch('reading/resetVisitTasks')
|
store.dispatch('reading/resetVisitTasks')
|
||||||
DicomEvent.$emit('getNextTask')
|
DicomEvent.$emit('getNextTask')
|
||||||
} else {
|
} else {
|
||||||
// '当前阅片任务已完成,是否进入下一个阅片任务?'
|
// '当前阅片任务已完成,是否进入下一个阅片任务?'
|
||||||
this.$confirm(this.$t('trials:adReview:title:msg2'), {
|
const confirm = await this.$confirm(
|
||||||
type: 'warning',
|
this.$t('trials:adReview:title:msg2'),
|
||||||
distinguishCancelAndClose: true
|
{
|
||||||
})
|
type: 'warning',
|
||||||
.then(() => {
|
distinguishCancelAndClose: true
|
||||||
store.dispatch('reading/resetVisitTasks')
|
}
|
||||||
DicomEvent.$emit('getNextTask')
|
)
|
||||||
})
|
if (confirm === 'confirm') {
|
||||||
.catch(action => {
|
store.dispatch('reading/resetVisitTasks')
|
||||||
changeURLStatic('visitTaskId', this.visitTaskId)
|
DicomEvent.$emit('getNextTask')
|
||||||
})
|
} else {
|
||||||
|
changeURLStatic('visitTaskId', this.visitTaskId)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
window.opener.postMessage('refreshTaskList', window.location)
|
window.opener.postMessage('refreshTaskList', window.location)
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(_ => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
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() })
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleViewDetail(visitTaskId) {
|
handleViewDetail(visitTaskId) {
|
||||||
if (this.openWindow) {
|
if (this.openWindow) {
|
||||||
|
|
|
@ -372,9 +372,10 @@ export default {
|
||||||
return lesion ? lesion.Count : 0
|
return lesion ? lesion.Count : 0
|
||||||
},
|
},
|
||||||
handleSave(isPrompt = true) {
|
handleSave(isPrompt = true) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
this.$refs['globalRuleForm'].validate(valid => {
|
let valid = await this.$refs['globalRuleForm'].validate()
|
||||||
if (valid) {
|
|
||||||
|
if (valid) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var visitTaskAnswerList = []
|
var visitTaskAnswerList = []
|
||||||
this.globalForm.taskList.forEach((item, index) => {
|
this.globalForm.taskList.forEach((item, index) => {
|
||||||
|
@ -403,7 +404,8 @@ export default {
|
||||||
trialId: this.globalInfo.trialId,
|
trialId: this.globalInfo.trialId,
|
||||||
visitTaskAnswerList
|
visitTaskAnswerList
|
||||||
}
|
}
|
||||||
batchSubmitGlobalReadingInfo(params).then(res => {
|
try {
|
||||||
|
await batchSubmitGlobalReadingInfo(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (isPrompt) {
|
if (isPrompt) {
|
||||||
console.log(isPrompt)
|
console.log(isPrompt)
|
||||||
|
@ -411,14 +413,13 @@ export default {
|
||||||
}
|
}
|
||||||
this.$emit('getGlInfo')
|
this.$emit('getGlInfo')
|
||||||
resolve()
|
resolve()
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject()
|
reject()
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getBeforeAnswer(qsId, row) {
|
getBeforeAnswer(qsId, row) {
|
||||||
|
|
|
@ -376,9 +376,9 @@ export default {
|
||||||
return lesion ? lesion.Count : 0
|
return lesion ? lesion.Count : 0
|
||||||
},
|
},
|
||||||
handleSave(isPrompt = true) {
|
handleSave(isPrompt = true) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
this.$refs['globalRuleForm'].validate(valid => {
|
let valid = await this.$refs['globalRuleForm'].validate()
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var visitTaskAnswerList = []
|
var visitTaskAnswerList = []
|
||||||
this.globalForm.taskList.forEach((item, index) => {
|
this.globalForm.taskList.forEach((item, index) => {
|
||||||
|
@ -407,7 +407,8 @@ export default {
|
||||||
trialId: this.globalInfo.trialId,
|
trialId: this.globalInfo.trialId,
|
||||||
visitTaskAnswerList
|
visitTaskAnswerList
|
||||||
}
|
}
|
||||||
batchSubmitGlobalReadingInfo(params).then(res => {
|
try {
|
||||||
|
await batchSubmitGlobalReadingInfo(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (isPrompt) {
|
if (isPrompt) {
|
||||||
console.log(isPrompt)
|
console.log(isPrompt)
|
||||||
|
@ -415,14 +416,14 @@ export default {
|
||||||
}
|
}
|
||||||
this.$emit('getGlInfo')
|
this.$emit('getGlInfo')
|
||||||
resolve()
|
resolve()
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject()
|
reject()
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getBeforeAnswer(qsId, row) {
|
getBeforeAnswer(qsId, row) {
|
||||||
|
|
|
@ -219,9 +219,9 @@ export default {
|
||||||
this.$emit('handleView', row)
|
this.$emit('handleView', row)
|
||||||
},
|
},
|
||||||
handleSave(isPrompt = true) {
|
handleSave(isPrompt = true) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
this.$refs['globalRuleForm'].validate(valid => {
|
let valid = await this.$refs['globalRuleForm'].validate()
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var visitTaskAnswerList = []
|
var visitTaskAnswerList = []
|
||||||
this.globalForm.taskList.forEach((item, index) => {
|
this.globalForm.taskList.forEach((item, index) => {
|
||||||
|
@ -247,21 +247,21 @@ export default {
|
||||||
trialId: this.globalInfo.trialId,
|
trialId: this.globalInfo.trialId,
|
||||||
visitTaskAnswerList
|
visitTaskAnswerList
|
||||||
}
|
}
|
||||||
batchSubmitGlobalReadingInfo(params).then(res => {
|
try {
|
||||||
|
await batchSubmitGlobalReadingInfo(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (isPrompt) {
|
if (isPrompt) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
}
|
}
|
||||||
this.$emit('getGlInfo')
|
this.$emit('getGlInfo')
|
||||||
resolve()
|
resolve()
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject()
|
reject()
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -369,9 +369,9 @@ export default {
|
||||||
return lesion ? lesion.Count : 0
|
return lesion ? lesion.Count : 0
|
||||||
},
|
},
|
||||||
handleSave(isPrompt = true) {
|
handleSave(isPrompt = true) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async(resolve, reject) => {
|
||||||
this.$refs['globalRuleForm'].validate(valid => {
|
let valid = await this.$refs['globalRuleForm'].validate()
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var visitTaskAnswerList = []
|
var visitTaskAnswerList = []
|
||||||
this.globalForm.taskList.forEach((item, index) => {
|
this.globalForm.taskList.forEach((item, index) => {
|
||||||
|
@ -400,7 +400,8 @@ export default {
|
||||||
trialId: this.globalInfo.trialId,
|
trialId: this.globalInfo.trialId,
|
||||||
visitTaskAnswerList
|
visitTaskAnswerList
|
||||||
}
|
}
|
||||||
batchSubmitGlobalReadingInfo(params).then(res => {
|
try {
|
||||||
|
await batchSubmitGlobalReadingInfo(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (isPrompt) {
|
if (isPrompt) {
|
||||||
console.log(isPrompt)
|
console.log(isPrompt)
|
||||||
|
@ -408,14 +409,13 @@ export default {
|
||||||
}
|
}
|
||||||
this.$emit('getGlInfo')
|
this.$emit('getGlInfo')
|
||||||
resolve()
|
resolve()
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject()
|
reject()
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getBeforeAnswer(qsId, row) {
|
getBeforeAnswer(qsId, row) {
|
||||||
|
|
|
@ -363,9 +363,9 @@ export default {
|
||||||
return lesion ? lesion.Count : 0
|
return lesion ? lesion.Count : 0
|
||||||
},
|
},
|
||||||
handleSave(isPrompt = true) {
|
handleSave(isPrompt = true) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
this.$refs['globalRuleForm'].validate(valid => {
|
let valid = await this.$refs['globalRuleForm'].validate()
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var visitTaskAnswerList = []
|
var visitTaskAnswerList = []
|
||||||
this.globalForm.taskList.forEach((item, index) => {
|
this.globalForm.taskList.forEach((item, index) => {
|
||||||
|
@ -394,7 +394,8 @@ export default {
|
||||||
trialId: this.globalInfo.trialId,
|
trialId: this.globalInfo.trialId,
|
||||||
visitTaskAnswerList
|
visitTaskAnswerList
|
||||||
}
|
}
|
||||||
batchSubmitGlobalReadingInfo(params).then(res => {
|
try {
|
||||||
|
await batchSubmitGlobalReadingInfo(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (isPrompt) {
|
if (isPrompt) {
|
||||||
console.log(isPrompt)
|
console.log(isPrompt)
|
||||||
|
@ -402,14 +403,14 @@ export default {
|
||||||
}
|
}
|
||||||
this.$emit('getGlInfo')
|
this.$emit('getGlInfo')
|
||||||
resolve()
|
resolve()
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject()
|
reject()
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getBeforeAnswer(qsId, row) {
|
getBeforeAnswer(qsId, row) {
|
||||||
|
|
|
@ -256,10 +256,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getGlInfo() {
|
async getGlInfo() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getGlobalReadingInfo({ visitTaskId: this.visitTaskId }).then(res => {
|
try {
|
||||||
console.log('getGlobalReadingInfo')
|
let res = await getGlobalReadingInfo({ visitTaskId: this.visitTaskId })
|
||||||
var evaluationQsList = []
|
var evaluationQsList = []
|
||||||
var adjustedQsList = []
|
var adjustedQsList = []
|
||||||
var agreeOrNotList = []
|
var agreeOrNotList = []
|
||||||
|
@ -322,66 +322,20 @@ export default {
|
||||||
trialId: this.trialId, subjectId: this.subjectId, subjectCode: this.subjectCode, visitTaskId: res.Result.GlobalTaskId, globalForm, globalUpdateType, evaluationQsList, adjustedQsList, agreeOrNotList, readingTaskState: this.readingTaskState, assessTypeList: res.Result.AssessTypeList
|
trialId: this.trialId, subjectId: this.subjectId, subjectCode: this.subjectCode, visitTaskId: res.Result.GlobalTaskId, globalForm, globalUpdateType, evaluationQsList, adjustedQsList, agreeOrNotList, readingTaskState: this.readingTaskState, assessTypeList: res.Result.AssessTypeList
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => { this.loading = false })
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getHistoryGlobalInfo() {
|
async getHistoryGlobalInfo() {
|
||||||
this.historyLoading = true
|
this.historyLoading = true
|
||||||
getReadingPastResultList({ visitTaskId: this.visitTaskId }).then(res => {
|
try {
|
||||||
|
let res = await getReadingPastResultList({ visitTaskId: this.visitTaskId })
|
||||||
this.historyTaskList = res.Result
|
this.historyTaskList = res.Result
|
||||||
this.historyLoading = false
|
this.historyLoading = false
|
||||||
}).catch(() => { this.historyLoading = false })
|
} catch (e) {
|
||||||
},
|
this.historyLoading = false
|
||||||
changeAgreeOrNotList(callback, row, visitTaskId) {
|
|
||||||
var message = ''
|
|
||||||
if (parseInt(callback) === 1) {
|
|
||||||
message = '是否确认更改?'
|
|
||||||
row.Answer = '0'
|
|
||||||
} else {
|
|
||||||
message = '是否确认更改?'
|
|
||||||
row.Answer = '1'
|
|
||||||
}
|
}
|
||||||
this.$confirm(message, {
|
|
||||||
distinguishCancelAndClose: true,
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
this.loading = true
|
|
||||||
var params = {
|
|
||||||
globalTaskId: this.visitTaskId,
|
|
||||||
subjectId: this.subjectId,
|
|
||||||
trialId: this.trialId,
|
|
||||||
questionList: [
|
|
||||||
{
|
|
||||||
questionId: row.QuestionId ? row.QuestionId : '',
|
|
||||||
visitTaskId: visitTaskId,
|
|
||||||
globalAnswerType: row.GlobalAnswerType,
|
|
||||||
answer: row.Answer === '1' ? '0' : '1'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
saveGlobalReadingInfo(params).then(res => {
|
|
||||||
this.loading = false
|
|
||||||
if (res.IsSuccess) {
|
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
|
||||||
this.getGlInfo()
|
|
||||||
}
|
|
||||||
}).catch(() => { this.loading = false })
|
|
||||||
}).catch(() => {})
|
|
||||||
},
|
},
|
||||||
// handleEdit(row) {
|
|
||||||
// this.rowData = { ...row }
|
|
||||||
// if (this.CriterionType === 1) {
|
|
||||||
// this.rowData.AfterQuestionList.forEach(item => {
|
|
||||||
// if (item.GlobalAnswerType === 1) {
|
|
||||||
// // 全局阅片备注
|
|
||||||
// item.QuestionName = this.$t('trials:globalReview:table:globalRemark')
|
|
||||||
// } else if (item.GlobalAnswerType === 3) {
|
|
||||||
// // 评估更新类型
|
|
||||||
// item.QuestionName = this.$t('trials:globalReview:table:updateType')
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// // this.editVisible = true
|
|
||||||
// },
|
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.$refs['globalTbl'].handleSave(true)
|
this.$refs['globalTbl'].handleSave(true)
|
||||||
},
|
},
|
||||||
|
@ -435,53 +389,49 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 签名并确认
|
// 签名并确认
|
||||||
signConfirm(signInfo) {
|
async signConfirm(signInfo) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
||||||
var params = {
|
var params = {
|
||||||
data: {
|
data: {
|
||||||
globalTaskId: this.visitTaskId
|
globalTaskId: this.visitTaskId
|
||||||
},
|
},
|
||||||
signInfo: signInfo
|
signInfo: signInfo
|
||||||
}
|
}
|
||||||
submitGlobalReadingInfo(params).then(async res => {
|
try{
|
||||||
|
let res = await submitGlobalReadingInfo(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.$refs['signForm'].btnLoading = false
|
this.$refs['signForm'].btnLoading = false
|
||||||
this.signVisible = false
|
this.signVisible = false
|
||||||
// 设置当前任务阅片状态为已读
|
// 设置当前任务阅片状态为已读
|
||||||
this.readingTaskState = 2
|
this.readingTaskState = 2
|
||||||
var isAutoTask = await this.getAutoTaskVal()
|
const res = await getAutoCutNextTask()
|
||||||
|
var isAutoTask = res.Result.AutoCutNextTask
|
||||||
if (isAutoTask) {
|
if (isAutoTask) {
|
||||||
DicomEvent.$emit('getNextTask')
|
DicomEvent.$emit('getNextTask')
|
||||||
} else {
|
} else {
|
||||||
// 当前阅片任务已完成,是否进入下一个阅片任务
|
// 当前阅片任务已完成,是否进入下一个阅片任务
|
||||||
this.$confirm(this.$t('trials:globalReview:message:msg2'), {
|
const confirm = await this.$confirm(
|
||||||
type: 'warning',
|
this.$t('trials:globalReview:message:msg2'),
|
||||||
distinguishCancelAndClose: true
|
{
|
||||||
})
|
type: 'warning',
|
||||||
.then(() => {
|
distinguishCancelAndClose: true
|
||||||
store.dispatch('reading/resetVisitTasks')
|
}
|
||||||
DicomEvent.$emit('getNextTask')
|
)
|
||||||
})
|
if (confirm === 'confirm') {
|
||||||
.catch(action => {
|
store.dispatch('reading/resetVisitTasks')
|
||||||
changeURLStatic('visitTaskId', this.visitTaskId)
|
DicomEvent.$emit('getNextTask')
|
||||||
})
|
} else {
|
||||||
|
changeURLStatic('visitTaskId', this.visitTaskId)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
window.opener.postMessage('refreshTaskList', window.location)
|
window.opener.postMessage('refreshTaskList', window.location)
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(_ => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
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() })
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleView(row) {
|
handleView(row) {
|
||||||
if (this.openWindow) {
|
if (this.openWindow) {
|
||||||
|
|
|
@ -262,8 +262,11 @@
|
||||||
<script>
|
<script>
|
||||||
import { getOncologyReadingInfo, getReadingPastResultList, setOncologyReadingInfo, submitOncologyReadingInfo } from '@/api/trials'
|
import { getOncologyReadingInfo, getReadingPastResultList, setOncologyReadingInfo, submitOncologyReadingInfo } from '@/api/trials'
|
||||||
import { setSkipReadingCache } from '@/api/reading'
|
import { setSkipReadingCache } from '@/api/reading'
|
||||||
|
import { getAutoCutNextTask } from '@/api/user'
|
||||||
import const_ from '@/const/sign-code'
|
import const_ from '@/const/sign-code'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
|
import store from '@/store'
|
||||||
|
import { changeURLStatic } from '@/utils/history.js'
|
||||||
import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent'
|
import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent'
|
||||||
import SignForm from '@/views/trials/components/newSignForm'
|
import SignForm from '@/views/trials/components/newSignForm'
|
||||||
export default {
|
export default {
|
||||||
|
@ -352,9 +355,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
async getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getOncologyReadingInfo({ visitTaskId: this.visitTaskId }).then(res => {
|
try {
|
||||||
|
const res = getOncologyReadingInfo({ visitTaskId: this.visitTaskId })
|
||||||
var questions = []
|
var questions = []
|
||||||
if (res.Result.OncologyVisits.length > 0) {
|
if (res.Result.OncologyVisits.length > 0) {
|
||||||
var task = res.Result.OncologyVisits[0]
|
var task = res.Result.OncologyVisits[0]
|
||||||
|
@ -366,7 +370,9 @@ export default {
|
||||||
this.assessTypeList = res.Result.AssessTypeList
|
this.assessTypeList = res.Result.AssessTypeList
|
||||||
this.oncologyInfo = res.Result
|
this.oncologyInfo = res.Result
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => { this.loading = false })
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getAssessType(val) {
|
getAssessType(val) {
|
||||||
var idx = this.assessTypeList.findIndex(i => i.Code === val)
|
var idx = this.assessTypeList.findIndex(i => i.Code === val)
|
||||||
|
@ -377,28 +383,20 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSave(isPrompt) {
|
handleSave(isPrompt) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async(resolve, reject) => {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
// var index = this.oncologyInfo.OncologyVisits.findIndex(item => !item.EvaluationResult && !item.IsBaseLine)
|
// var index = this.oncologyInfo.OncologyVisits.findIndex(item => !item.EvaluationResult && !item.IsBaseLine)
|
||||||
var isDiffer = this.checkDifferResult()
|
var isDiffer = this.checkDifferResult()
|
||||||
if (isDiffer) {
|
if (isDiffer) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
// '肿瘤学阅片结论不能为空!' this.$t('trials:oncologyReview:message:msg1'
|
const confirm = await this.$confirm(
|
||||||
// '肿瘤学阅片结果与影像学整体肿瘤评估不一致,请填写原因!'
|
this.$t('trials:oncologyReview:message:msg2'),
|
||||||
// this.$confirm(this.$t('trials:oncologyReview:message:msg2'), {
|
{
|
||||||
// type: 'warning',
|
type: 'warning',
|
||||||
// distinguishCancelAndClose: true,
|
distinguishCancelAndClose: true
|
||||||
// showCancelButton: false
|
}
|
||||||
// }).then(_ => {})
|
)
|
||||||
// .catch(_ => {
|
if (confirm === 'confirm') reject(false)
|
||||||
// })
|
|
||||||
this.$confirm(this.$t('trials:oncologyReview:message:msg2'), {
|
|
||||||
type: 'warning',
|
|
||||||
showCancelButton: false
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
reject(false)
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var oncologyQuestionList = []
|
var oncologyQuestionList = []
|
||||||
|
@ -419,18 +417,18 @@ export default {
|
||||||
globalTaskId: this.oncologyInfo.GlobalTaskId,
|
globalTaskId: this.oncologyInfo.GlobalTaskId,
|
||||||
relatedTaskId: this.oncologyInfo.RelatedTaskId
|
relatedTaskId: this.oncologyInfo.RelatedTaskId
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
setOncologyReadingInfo(params).then(res => {
|
await setOncologyReadingInfo(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.getList()
|
this.getList()
|
||||||
if (isPrompt) {
|
if (isPrompt) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
}
|
}
|
||||||
resolve(true)
|
resolve(true)
|
||||||
}).catch(_ => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject(false)
|
reject(false)
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -453,13 +451,12 @@ export default {
|
||||||
}
|
}
|
||||||
return isDiffer
|
return isDiffer
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
async handleSubmit() {
|
||||||
this.$refs['adForm'].validate((valid) => {
|
const valid = await this.$refs['adForm'].validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
||||||
this.signCode = ImageAssessmentReportConfirmation
|
this.signCode = ImageAssessmentReportConfirmation
|
||||||
this.signVisible = true
|
this.signVisible = true
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 关闭签名框
|
// 关闭签名框
|
||||||
closeSignDialog(isSign, signInfo) {
|
closeSignDialog(isSign, signInfo) {
|
||||||
|
@ -469,17 +466,16 @@ export default {
|
||||||
this.signVisible = false
|
this.signVisible = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleConfirm() {
|
async handleConfirm() {
|
||||||
this.handleSave(false).then(res => {
|
const res = await this.handleSave(false)
|
||||||
if (res) {
|
if (res) {
|
||||||
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
const { ImageAssessmentReportConfirmation } = const_.processSignature
|
||||||
this.signCode = ImageAssessmentReportConfirmation
|
this.signCode = ImageAssessmentReportConfirmation
|
||||||
this.signVisible = true
|
this.signVisible = true
|
||||||
}
|
}
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 签名并确认
|
// 签名并确认
|
||||||
signConfirm(signInfo) {
|
async signConfirm(signInfo) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var params = {
|
var params = {
|
||||||
data: {
|
data: {
|
||||||
|
@ -487,7 +483,8 @@ export default {
|
||||||
},
|
},
|
||||||
signInfo: signInfo
|
signInfo: signInfo
|
||||||
}
|
}
|
||||||
submitOncologyReadingInfo(params).then(res => {
|
try {
|
||||||
|
const res = await submitOncologyReadingInfo(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
|
@ -497,43 +494,45 @@ export default {
|
||||||
// window.opener.postMessage('refreshTaskList', window.location)
|
// window.opener.postMessage('refreshTaskList', window.location)
|
||||||
// 设置当前任务阅片状态为已读
|
// 设置当前任务阅片状态为已读
|
||||||
this.oncologyInfo.ReadingTaskState = 2
|
this.oncologyInfo.ReadingTaskState = 2
|
||||||
window.opener.postMessage('refreshTaskList', window.location)
|
|
||||||
// '当前阅片任务已完成,是否进入下一个阅片任务?'
|
|
||||||
this.$confirm(this.$t('trials:oncologyReview:title:msg2'), {
|
|
||||||
type: 'warning',
|
|
||||||
distinguishCancelAndClose: true
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
// var token = getToken()
|
|
||||||
// var criterionType = this.$router.currentRoute.query.criterionType
|
|
||||||
// var readingTool = this.$router.currentRoute.query.readingTool
|
|
||||||
// var isReadingTaskViewInOrder = this.$router.currentRoute.query.isReadingTaskViewInOrder
|
|
||||||
// var trialReadingCriterionId = this.$router.currentRoute.query.TrialReadingCriterionId
|
|
||||||
// var path = ''
|
|
||||||
// if (readingTool && parseInt(readingTool) === 0) {
|
|
||||||
// path = `/readingDicoms?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${this.trialId}&subjectCode=${this.subjectCode}&subjectId=${this.subjectId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`
|
|
||||||
// } else {
|
|
||||||
// path = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${this.trialId}&subjectCode=${this.subjectCode}&subjectId=${this.subjectId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`
|
|
||||||
// }
|
|
||||||
// this.$router.push({ path })
|
|
||||||
DicomEvent.$emit('getNextTask')
|
|
||||||
})
|
|
||||||
.catch(action => {
|
|
||||||
|
|
||||||
})
|
const res = await getAutoCutNextTask()
|
||||||
|
var isAutoTask = res.Result.AutoCutNextTask
|
||||||
|
if (isAutoTask) {
|
||||||
|
store.dispatch('reading/resetVisitTasks')
|
||||||
|
DicomEvent.$emit('getNextTask')
|
||||||
|
} else {
|
||||||
|
// '当前阅片任务已完成,是否进入下一个阅片任务?'
|
||||||
|
const confirm = await this.$confirm(
|
||||||
|
this.$t('trials:oncologyReview:title:msg2'),
|
||||||
|
{
|
||||||
|
type: 'warning',
|
||||||
|
distinguishCancelAndClose: true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (confirm === 'confirm') {
|
||||||
|
store.dispatch('reading/resetVisitTasks')
|
||||||
|
DicomEvent.$emit('getNextTask')
|
||||||
|
} else {
|
||||||
|
changeURLStatic('visitTaskId', this.visitTaskId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
window.opener.postMessage('refreshTaskList', window.location)
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(_ => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.$refs['signForm'].btnLoading = false
|
this.$refs['signForm'].btnLoading = false
|
||||||
})
|
}
|
||||||
},
|
},
|
||||||
getPriorList() {
|
async getPriorList() {
|
||||||
this.priorLoading = true
|
this.priorLoading = true
|
||||||
getReadingPastResultList({ visitTaskId: this.visitTaskId }).then(res => {
|
try {
|
||||||
|
const res = await getReadingPastResultList({ visitTaskId: this.visitTaskId })
|
||||||
this.priorList = res.Result
|
this.priorList = res.Result
|
||||||
this.priorLoading = false
|
this.priorLoading = false
|
||||||
}).catch(() => { this.priorLoading = false })
|
} catch (e) {
|
||||||
|
this.priorLoading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleViewDetail(visitTaskId) {
|
handleViewDetail(visitTaskId) {
|
||||||
if (this.openWindow) {
|
if (this.openWindow) {
|
||||||
|
|
Loading…
Reference in New Issue