肿瘤学阅片bug修复
parent
196dd3de92
commit
9c4fc174d0
|
@ -5,56 +5,9 @@
|
||||||
ref="conclusionsForm"
|
ref="conclusionsForm"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:model="form"
|
:model="form"
|
||||||
label-width="100px"
|
label-position="left"
|
||||||
style="width:500px"
|
label-width="800px"
|
||||||
>
|
>
|
||||||
|
|
||||||
<el-form-item style="text-align:right;width: 500px;">
|
|
||||||
<!-- <el-button
|
|
||||||
v-if="userTypeEnumInt===14 && auditState !== 2"
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
:disabled="isSendMessage"
|
|
||||||
@click="handleSave(true)"
|
|
||||||
>
|
|
||||||
{{ form.IsHaveQuestion?$t('trials:medicalFeedback:button:saveAndSend'):$t('common:button:save') }}
|
|
||||||
</el-button> -->
|
|
||||||
<!-- <el-button
|
|
||||||
v-if="form.IsHaveQuestion === true && isSendMessage && userTypeEnumInt===14"
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="handleReply"
|
|
||||||
>
|
|
||||||
{{ isClosedDialog?$t('trials:medicalFeedback:button:viewQuestions'):$t('trials:medicalFeedback:button:reply') }}
|
|
||||||
</el-button>
|
|
||||||
|
|
||||||
<el-button
|
|
||||||
v-if="form.IsHaveQuestion === true && isSendMessage && userTypeEnumInt===13"
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="handleReply"
|
|
||||||
>
|
|
||||||
{{ isClosedDialog?$t('trials:medicalFeedback:button:viewQuestions'):$t('trials:medicalFeedback:button:reply') }}
|
|
||||||
</el-button> -->
|
|
||||||
<!-- 查看质询 -->
|
|
||||||
<!-- <el-button
|
|
||||||
v-if="form.IsHaveQuestion === true && isSendMessage && userTypeEnumInt!==13 && userTypeEnumInt!==14"
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="handleReply"
|
|
||||||
>
|
|
||||||
{{ $t('trials:medicalFeedback:button:viewQuestions') }}
|
|
||||||
</el-button> -->
|
|
||||||
<!-- 关闭 -->
|
|
||||||
<!-- <el-button
|
|
||||||
v-if="userTypeEnumInt===14 && form.IsHaveQuestion === true && !isClosedDialog && isSendMessage "
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="handleCloseReply"
|
|
||||||
>
|
|
||||||
{{ $t('trials:medicalFeedback:button:close') }}
|
|
||||||
</el-button> -->
|
|
||||||
</el-form-item>
|
|
||||||
<!-- 是否有问题 -->
|
<!-- 是否有问题 -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('trials:medicalFeedback:button:isQuestions')"
|
:label="$t('trials:medicalFeedback:button:isQuestions')"
|
||||||
|
@ -66,6 +19,7 @@
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="form.IsHaveQuestion"
|
v-model="form.IsHaveQuestion"
|
||||||
:disabled="isSendMessage || auditState===2 || ![14, 30].includes(userTypeEnumInt)"
|
:disabled="isSendMessage || auditState===2 || ![14, 30].includes(userTypeEnumInt)"
|
||||||
|
style="max-width:200px"
|
||||||
>
|
>
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="item of $d.YesOrNo"
|
v-for="item of $d.YesOrNo"
|
||||||
|
@ -92,6 +46,7 @@
|
||||||
v-model="form.Questioning"
|
v-model="form.Questioning"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:disabled="isSendMessage || auditState===2 || ![14, 30].includes(userTypeEnumInt)"
|
:disabled="isSendMessage || auditState===2 || ![14, 30].includes(userTypeEnumInt)"
|
||||||
|
style="max-width:200px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 审核建议 -->
|
<!-- 审核建议 -->
|
||||||
|
@ -106,6 +61,7 @@
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="form.AuditAdviceEnum"
|
v-model="form.AuditAdviceEnum"
|
||||||
:disabled="isSendMessage || auditState===2 || ![14, 30].includes(userTypeEnumInt)"
|
:disabled="isSendMessage || auditState===2 || ![14, 30].includes(userTypeEnumInt)"
|
||||||
|
style="max-width:200px"
|
||||||
>
|
>
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="item of $d.AuditAdvice"
|
v-for="item of $d.AuditAdvice"
|
||||||
|
|
|
@ -5,17 +5,9 @@
|
||||||
ref="questions"
|
ref="questions"
|
||||||
size="small"
|
size="small"
|
||||||
:model="questionForm"
|
:model="questionForm"
|
||||||
|
label-position="left"
|
||||||
|
label-width="800px"
|
||||||
>
|
>
|
||||||
<el-form-item v-if="auditState!==2 && userTypeEnumInt===14" style="text-align:right;width: 500px;">
|
|
||||||
<!-- 保存 -->
|
|
||||||
<!-- <el-button
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="handleSave(true)"
|
|
||||||
>
|
|
||||||
{{ $t('common:button:save') }}
|
|
||||||
</el-button> -->
|
|
||||||
</el-form-item>
|
|
||||||
<FormItem
|
<FormItem
|
||||||
v-for="question of questions"
|
v-for="question of questions"
|
||||||
:key="question.Id"
|
:key="question.Id"
|
||||||
|
|
|
@ -362,44 +362,49 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSave(isPrompt) {
|
handleSave(isPrompt) {
|
||||||
this.loading = true
|
return new Promise((resolve, reject) => {
|
||||||
// var index = this.oncologyInfo.OncologyVisits.findIndex(item => !item.EvaluationResult && !item.IsBaseLine)
|
|
||||||
var isDiffer = this.checkDifferResult()
|
|
||||||
if (isDiffer) {
|
|
||||||
this.loading = false
|
|
||||||
// '肿瘤学阅片结论不能为空!' this.$t('trials:oncologyReview:message:msg1'
|
|
||||||
// '肿瘤学阅片结果与影像学整体肿瘤评估不一致,请填写原因!'
|
|
||||||
this.$confirm(this.$t('trials:oncologyReview:message:msg2'), {
|
|
||||||
type: 'warning',
|
|
||||||
distinguishCancelAndClose: true
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
return Promise.reject(false)
|
|
||||||
})
|
|
||||||
.catch(action => {
|
|
||||||
return Promise.reject(false)
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var oncologyQuestionList = []
|
// var index = this.oncologyInfo.OncologyVisits.findIndex(item => !item.EvaluationResult && !item.IsBaseLine)
|
||||||
this.oncologyInfo.OncologyVisits.map(item => {
|
var isDiffer = this.checkDifferResult()
|
||||||
if (item.EvaluationResult && !item.IsBaseLine) {
|
if (isDiffer) {
|
||||||
oncologyQuestionList.push(
|
this.loading = false
|
||||||
{
|
// '肿瘤学阅片结论不能为空!' this.$t('trials:oncologyReview:message:msg1'
|
||||||
visitTaskId: item.VisitTaskId,
|
// '肿瘤学阅片结果与影像学整体肿瘤评估不一致,请填写原因!'
|
||||||
evaluationResult: item.EvaluationResult,
|
// this.$confirm(this.$t('trials:oncologyReview:message:msg2'), {
|
||||||
evaluationReason: item.EvaluationReason
|
// type: 'warning',
|
||||||
}
|
// distinguishCancelAndClose: true,
|
||||||
)
|
// showCancelButton: false
|
||||||
|
// }).then(_ => {})
|
||||||
|
// .catch(_ => {
|
||||||
|
// })
|
||||||
|
this.$confirm(this.$t('trials:oncologyReview:message:msg2'), {
|
||||||
|
type: 'warning',
|
||||||
|
showCancelButton: false
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
reject(false)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.loading = true
|
||||||
|
var oncologyQuestionList = []
|
||||||
|
this.oncologyInfo.OncologyVisits.map(item => {
|
||||||
|
if (item.EvaluationResult && !item.IsBaseLine) {
|
||||||
|
oncologyQuestionList.push(
|
||||||
|
{
|
||||||
|
visitTaskId: item.VisitTaskId,
|
||||||
|
evaluationResult: item.EvaluationResult,
|
||||||
|
evaluationReason: item.EvaluationReason
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
var params = {
|
||||||
|
oncologyTaskId: this.visitTaskId,
|
||||||
|
oncologyQuestionList: oncologyQuestionList,
|
||||||
|
globalTaskId: this.oncologyInfo.GlobalTaskId,
|
||||||
|
relatedTaskId: this.oncologyInfo.RelatedTaskId
|
||||||
}
|
}
|
||||||
})
|
|
||||||
var params = {
|
|
||||||
oncologyTaskId: this.visitTaskId,
|
|
||||||
oncologyQuestionList: oncologyQuestionList,
|
|
||||||
globalTaskId: this.oncologyInfo.GlobalTaskId,
|
|
||||||
relatedTaskId: this.oncologyInfo.RelatedTaskId
|
|
||||||
}
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
setOncologyReadingInfo(params).then(res => {
|
setOncologyReadingInfo(params).then(res => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.getList()
|
this.getList()
|
||||||
|
@ -411,8 +416,8 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject(false)
|
reject(false)
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
}
|
})
|
||||||
},
|
},
|
||||||
checkDifferResult() {
|
checkDifferResult() {
|
||||||
var isDiffer = false
|
var isDiffer = false
|
||||||
|
@ -424,7 +429,11 @@ export default {
|
||||||
var idx = this.oncologyInfo.OncologyVisits[i].QuestionList.findIndex(v => v.DictionaryCode === 'ImagingOverallAssessment_Lugano')
|
var idx = this.oncologyInfo.OncologyVisits[i].QuestionList.findIndex(v => v.DictionaryCode === 'ImagingOverallAssessment_Lugano')
|
||||||
if (idx > -1) {
|
if (idx > -1) {
|
||||||
tumorAssessment = this.oncologyInfo.OncologyVisits[i].QuestionList[idx].Answer
|
tumorAssessment = this.oncologyInfo.OncologyVisits[i].QuestionList[idx].Answer
|
||||||
if (tumorAssessment !== this.oncologyInfo.OncologyVisits[i].EvaluationResult) {
|
console.log(tumorAssessment === this.oncologyInfo.OncologyVisits[i].EvaluationResult)
|
||||||
|
if (tumorAssessment === this.oncologyInfo.OncologyVisits[i].EvaluationResult || (tumorAssessment !== this.oncologyInfo.OncologyVisits[i].EvaluationResult && this.oncologyInfo.OncologyVisits[i].EvaluationReason)) {
|
||||||
|
isDiffer = false
|
||||||
|
break
|
||||||
|
} else {
|
||||||
isDiffer = true
|
isDiffer = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue