非dicom阅片添加跳过及国际化

uat_us
caiyiling 2024-07-19 10:11:33 +08:00
parent b37e351491
commit 1a69bd9003
13 changed files with 197 additions and 1849 deletions

View File

@ -317,7 +317,7 @@ import const_ from '@/const/sign-code'
import { getToken } from '@/utils/auth'
import SignForm from '@/views/trials/components/newSignForm'
import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent'
import store from '@/store'
// import store from '@/store'
import { changeURLStatic } from '@/utils/history.js'
import Viewer from 'v-viewer'
export default {
@ -566,8 +566,8 @@ export default {
const res = await getAutoCutNextTask()
var isAutoTask = res.Result.AutoCutNextTask
if (isAutoTask) {
store.dispatch('reading/resetVisitTasks')
DicomEvent.$emit('getNextTask')
// store.dispatch('reading/resetVisitTasks')
window.location.reload()
} else {
// ''
const confirm = await this.$confirm(
@ -578,8 +578,9 @@ export default {
}
)
if (confirm === 'confirm') {
store.dispatch('reading/resetVisitTasks')
DicomEvent.$emit('getNextTask')
// store.dispatch('reading/resetVisitTasks')
// DicomEvent.$emit('getNextTask')
window.location.reload()
} else {
changeURLStatic('visitTaskId', this.visitTaskId)
}

View File

@ -475,14 +475,17 @@ export default {
})
})
},
handleConfirmCD() {
async handleConfirmCD() {
this.loading = true
var visitTaskId = this.visitTaskId
readClinicalData({ visitTaskId }).then(res => {
try {
await readClinicalData({ visitTaskId })
this.loading = false
this.dialogVisible = false
this.isReadClinicalData = true
}).catch(() => { this.loading = false })
} catch (e) {
this.loading = false
}
},
previewCD() {
this.closeCDVisible = true

View File

@ -408,7 +408,8 @@ export default {
const res = await getAutoCutNextTask()
var isAutoTask = res.Result.AutoCutNextTask
if (isAutoTask) {
DicomEvent.$emit('getNextTask')
// DicomEvent.$emit('getNextTask')
window.location.reload()
} else {
//
const confirm = await this.$confirm(
@ -419,8 +420,9 @@ export default {
}
)
if (confirm === 'confirm') {
store.dispatch('reading/resetVisitTasks')
DicomEvent.$emit('getNextTask')
// store.dispatch('reading/resetVisitTasks')
// DicomEvent.$emit('getNextTask')
window.location.reload()
} else {
changeURLStatic('visitTaskId', this.visitTaskId)
}

View File

@ -1,237 +0,0 @@
<template>
<div v-loading="loading" style="min-height:400px;">
<el-card v-if="isRender" shadow="never" :body-style="{ padding: '10px' }">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">历史评判结果</span>
</div>
<div v-for="task in visitTaskInfoList" :key="task.visitTaskId">
<el-form
ref="questions"
size="small"
:model="task.questionForm"
>
<FormItem
v-for="qs in task.questions"
:key="qs.ReadingQuestionTrialId"
:question="qs"
:question-form="task.questionForm"
:reading-task-state="2"
@resetFormItemData="resetFormItemData"
/>
</el-form>
</div>
</el-card>
<el-card v-if="isRender" shadow="never" :body-style="{ padding: '10px' }" class="box-mr">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">裁判结果</span>
</div>
<el-form ref="adForm" :model="adForm">
<el-form-item
label=""
prop="judgeResultTaskId"
:rules="[
{ required: true, message: '请选择'},
]"
>
<el-radio-group v-model="adForm.judgeResultTaskId" :disabled="readingTaskState >= 2">
<el-radio v-for="t in visitTaskInfoList" :key="t.visitTaskId" :label="t.visitTaskId">{{ t.armEnum }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label="备注"
prop="judgeResultRemark"
:rules="[
{ required: true, message: '请注明'},
]"
>
<el-input
v-model="adForm.judgeResultRemark"
type="textarea"
:autosize="{ minRows: 2, maxRows: 4}"
:disabled="readingTaskState >= 2"
/>
</el-form-item>
<el-form-item v-if="readingTaskState < 2">
<div style="text-align:center;">
<el-button type="primary" @click="handleSave"></el-button>
<el-button type="primary" @click="handleSubmit"></el-button>
</div>
</el-form-item>
</el-form>
</el-card>
<!-- 签名框 -->
<el-dialog
v-if="signVisible"
:visible.sync="signVisible"
:close-on-click-modal="false"
width="600px"
custom-class="base-dialog-wrapper"
>
<div slot="title">
<span style="font-size:18px;">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${ currentUser })` }}</span>
</div>
<SignForm ref="signForm" :sign-code-enum="signCode" @closeDialog="closeSignDialog" />
</el-dialog>
</div>
</template>
<script>
import { getJudgeReadingInfo, saveJudgeVisitTaskResult, submitJudgeVisitTaskResult } from '@/api/trials'
import const_ from '@/const/sign-code'
import FormItem from './FormItem'
import SignForm from '@/views/trials/components/newSignForm'
export default {
name: 'ECRF',
components: {
FormItem,
SignForm
},
props: {
trialId: {
type: String,
required: true
},
visitTaskId: {
type: String,
required: true
}
},
data() {
return {
loading: false,
isRender: false,
signVisible: false,
signCode: null,
currentUser: zzSessionStorage.getItem('userName'),
readingTaskState: 0,
visitTasks: [],
adForm: {
visitTaskId: '',
judgeResultTaskId: '',
judgeResultRemark: ''
},
visitTaskInfoList: []
}
},
mounted() {
this.getQuestions()
},
methods: {
getQuestions() {
this.loading = true
var param = {
visitTaskId: this.visitTaskId
}
getJudgeReadingInfo(param).then(res => {
this.adForm.judgeResultTaskId = res.Result.JudgeResultTaskId
this.adForm.judgeResultRemark = res.Result.JudgeResultRemark
this.readingTaskState = res.Result.ReadingTaskState
res.Result.VisitTaskInfoList.forEach(task => {
var obj = {
visitTaskId: task.VisitTaskId,
armEnum: this.$fd('ArmEnum', task.ArmEnum),
questions: [],
questionForm: {}
}
task.TaskReadingQuestionList.map((v) => {
if (v.Type === 'group' && v.Childrens.length === 0) return
obj.questions.push(v)
if (v.Type !== 'group' && v.Type !== 'summary') {
this.$set(obj.questionForm, v.ReadingQuestionTrialId, v.Answer)
}
if (v.Childrens.length > 0) {
this.setChild(obj.questionForm, v.Childrens)
}
})
this.visitTaskInfoList.push(obj)
})
this.isRender = true
this.loading = false
}).catch(() => { this.loading = false })
},
setChild(obj, question) {
question.forEach(i => {
// this.$set(obj, i.ReadingQuestionTrialId, i.Answer)
if (i.Type !== 'group' && i.Type !== 'summary') {
this.$set(obj, i.ReadingQuestionTrialId, i.Answer)
}
if (i.Childrens && i.Childrens.length > 0) {
this.setChild(obj, i.Childrens)
}
})
},
handleSave() {
this.$refs['adForm'].validate((valid) => {
if (!valid) return
this.loading = true
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
})
})
},
handleSubmit() {
this.$refs['questions'].validate((valid) => {
if (!valid) return
const { ImageAssessmentReportConfirmation } = const_.processSignature
this.signCode = ImageAssessmentReportConfirmation
this.signVisible = true
})
},
//
closeSignDialog(isSign, signInfo) {
if (isSign) {
this.signConfirm(signInfo)
} else {
this.signVisible = false
}
},
//
signConfirm(signInfo) {
this.loading = true
var answers = []
for (const k in this.questionForm) {
answers.push({ readingQuestionTrialId: k, answer: this.questionForm[k] })
}
var params = {
data: {
visitTaskId: this.visitTaskId,
judgeResultTaskId: this.adForm.judgeResultTaskId,
judgeResultRemark: this.adForm.judgeResultRemark
},
signInfo: signInfo
}
submitJudgeVisitTaskResult(params).then(res => {
this.loading = false
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.isEdit = false
this.$refs['signForm'].btnLoading = false
this.signVisible = false
window.location.reload()
window.opener.postMessage('refreshTaskList', window.location)
}
}).catch(_ => {
this.loading = false
this.$refs['signForm'].btnLoading = false
})
},
resetFormItemData() {}
}
}
</script>
<style lang="scss" scoped>
.box-mr{
margin:10px 0;
}
</style>

View File

@ -1,543 +0,0 @@
<template>
<div class="adReview_wrapper">
<el-card shadow="never" :body-style="{ padding: '10px' }" style="margin-bottom:10px">
<h4 v-if="isReadingShowSubjectInfo">
受试者
<span style="font-weight:normal">{{ subjectCode }} </span>
<span style="font-weight:normal">({{ taskBlindName }})</span>
</h4>
</el-card>
<el-card :body-style="{ padding: '10px' }" shadow="never">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">评估结果</span>
</div>
<!-- <el-table
:data="adInfo.VisitTaskInfoList"
style="width: 100%"
>
<el-table-column
prop="ArmEnum"
label="角色"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
{{ $fd('ArmEnum', scope.row.ArmEnum) }}
</template>
</el-table-column>
<el-table-column
v-for="(qs,index) in judgeQuestion"
:key="qs"
prop=""
:label="qs"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
{{ scope.row.JudgeQuestionAnswerInfoList[index].Answer }}
</template>
</el-table-column>
<el-table-column
:label="$t('common:action:action')"
width="200"
>
<template slot-scope="scope">
<el-button
circle
title="查看详情"
icon="el-icon-view"
@click="handleView(scope.row,1)"
/>
</template>
</el-table-column>
</el-table> -->
<el-table
:data="adInfo.VisitInfoList"
style="width: 100%"
>
<el-table-column
prop="VisitName"
label="访视名称"
show-overflow-tooltip
width="150"
/>
<!-- 评估结果 -->
<el-table-column
v-for="j in judgeQuestion"
:key="j.armEnum"
:label="$fd('ArmEnum', j.armEnum)"
align="center"
prop=""
>
<template>
<el-table-column
v-for="(qs,i) in j.judgeQuestionList"
:key="i"
prop=""
:label="qs"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
<div v-if="scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].QuestionType===2">
<div v-if="scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].Answer">
<span>{{ $fd('YesOrNo', scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].Answer ) }}</span>
<el-button
type="text"
style="margin-left:5px;"
@click="handleViewDetail(scope.row.VisitTaskInfoList[j.index].GlobalVisitTaskId)"
>
查看详情
</el-button>
</div>
<div v-else>
{{ $fd('YesOrNo', scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].Answer ) }}
</div>
</div>
<div v-else>{{ scope.row.VisitTaskInfoList[j.index].JudgeQuestionList[i].Answer }}</div>
</template>
</el-table-column>
</template>
</el-table-column>
<el-table-column
label="查看详情"
width="200"
>
<template slot-scope="scope">
<el-button
type="text"
title="查看R1详情"
@click="handleView(scope.row,1)"
>
R1
</el-button>
<el-button
type="text"
title="查看R2详情"
@click="handleView(scope.row,2)"
>
R2
</el-button>
</template>
</el-table-column>
</el-table>
</el-card>
<el-card :body-style="{ padding: '10px' }" class="box-mr">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">裁判结果</span>
</div>
<el-form
ref="adForm"
v-loading="loading"
:model="adForm"
style="width:600px"
label-width="100px"
>
<el-form-item
label="选择阅片人"
prop="judgeResultTaskId"
:rules="[
{ required: true, message: '请选择'},
]"
>
<el-radio-group
v-model="adForm.judgeResultTaskId"
:disabled="adInfo.ReadingTaskState >= 2"
>
<el-radio
v-for="t in visitTaskArmList"
:key="t.VisitTaskId"
:label="t.VisitTaskId"
>
{{ $fd('ArmEnum', t.ArmEnum) }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label="裁判原因"
prop="judgeResultRemark"
:rules="[
{ required: true, message: '请注明'},
]"
>
<el-input
v-model="adForm.judgeResultRemark"
type="textarea"
:autosize="{ minRows: 2, maxRows: 4}"
:disabled="adInfo.ReadingTaskState >= 2"
/>
</el-form-item>
<el-form-item
label="截图说明"
>
<el-upload
:action="accept"
:limit="1"
:on-preview="handlePictureCardPreview"
:before-upload="handleBeforeUpload"
:http-request="uploadScreenshot"
list-type="picture-card"
:on-remove="handleRemove"
:file-list="fileList"
:class="{disabled:uploadDisabled}"
:disabled="adInfo.ReadingTaskState >= 2"
>
<i slot="default" class="el-icon-plus" />
<div slot="file" slot-scope="{file}">
<img
class="el-upload-list__item-thumbnail"
:src="OSSclientConfig.basePath + file.url"
alt=""
>
<span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in" />
</span>
<span
v-if="adInfo.ReadingTaskState < 2"
class="el-upload-list__item-delete"
@click="handleRemove(file)"
>
<i class="el-icon-delete" />
</span>
</span>
</div>
</el-upload>
<el-dialog
append-to-body
:visible.sync="imgVisible"
width="600px"
>
<!-- <img width="100%" :src="imageUrl" alt="图片未找到"> -->
<el-image :src="OSSclientConfig.basePath + imageUrl" width="100%">
<div slot="placeholder" class="image-slot">
加载中<span class="dot">...</span>
</div>
</el-image>
</el-dialog>
</el-form-item>
<el-form-item v-if="adInfo.ReadingTaskState < 2">
<div style="text-align:center;">
<el-button type="primary" @click="handleSave"></el-button>
<el-button type="primary" @click="handleSubmit"></el-button>
</div>
</el-form-item>
</el-form>
</el-card>
<el-card v-if="isReadingShowPreviousResults" :body-style="{ padding: '10px' }">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">既往裁判评估</span>
</div>
<el-table
v-loading="priorLoading"
:data="priorADList"
style="width: 100%"
>
<el-table-column
prop="TaskBlindName"
label="裁判阅片"
show-overflow-tooltip
width="200"
/>
<el-table-column
:label="$t('common:action:action')"
width="200"
>
<template slot-scope="scope">
<el-button
circle
title="查看详情"
icon="el-icon-view"
@click="handleViewDetail(scope.row.VisitTaskId)"
/>
</template>
</el-table-column>
</el-table>
</el-card>
<!-- 签名框 -->
<el-dialog
v-if="signVisible"
:visible.sync="signVisible"
:close-on-click-modal="false"
width="600px"
custom-class="base-dialog-wrapper"
>
<div slot="title">
<span style="font-size:18px;">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${ currentUser })` }}</span>
</div>
<SignForm ref="signForm" :sign-code-enum="signCode" @closeDialog="closeSignDialog" />
</el-dialog>
</div>
</template>
<script>
import { getJudgeReadingInfo, uploadJudgeTaskImage, saveJudgeVisitTaskResult, submitJudgeVisitTaskResult, getReadingPastResultList } from '@/api/trials'
import const_ from '@/const/sign-code'
import { getToken } from '@/utils/auth'
import SignForm from '@/views/trials/components/newSignForm'
export default {
name: 'AdReview',
components: { SignForm },
props: {
trialId: {
type: String,
required: true
},
subjectId: {
type: String,
required: true
},
visitTaskId: {
type: String,
required: true
},
readingCategory: {
type: Number,
required: true
},
subjectCode: {
type: String,
required: true
},
taskBlindName: {
type: String,
required: true
},
isReadingShowSubjectInfo: {
type: Boolean,
required: true
},
isReadingShowPreviousResults: {
type: Boolean,
required: true
}
},
data() {
return {
adInfo: {},
judgeQuestion: [],
adForm: {
visitTaskId: '',
judgeResultTaskId: '',
judgeResultRemark: '',
judgeResultImagePath: ''
},
currentUser: zzSessionStorage.getItem('userName'),
signVisible: false,
signCode: null,
accept: '.png,.jpg,.jpeg',
imgVisible: false,
imageUrl: '',
uploadDisabled: false,
fileList: [],
loading: false,
visitTaskArmList: [],
priorADList: [],
priorLoading: false
}
},
mounted() {
this.getAdInfo()
if (this.isReadingShowPreviousResults) {
this.getPriorAdList()
}
},
methods: {
getAdInfo() {
this.loading = true
getJudgeReadingInfo({ visitTaskId: this.visitTaskId }).then(res => {
var judgeQS = []
if (res.Result.VisitInfoList.length > 0) {
res.Result.VisitInfoList[0].VisitTaskInfoList.map((v, index) => {
var qsObj = { armEnum: v.ArmEnum, judgeQuestionList: [], index: index }
v.JudgeQuestionList.map(q => {
if (q.QuestionType === 1) {
qsObj.judgeQuestionList.push(q.QuestionName)
} else {
qsObj.judgeQuestionList.push(this.$fd('JudgeReadingQuestionType', q.QuestionType))
}
})
judgeQS.push(qsObj)
})
}
this.judgeQuestion = judgeQS
this.adInfo = res.Result
this.adForm.judgeResultTaskId = res.Result.JudgeResultTaskId
this.adForm.judgeResultRemark = res.Result.JudgeResultRemark
if (res.Result.JudgeResultImagePath) {
this.adForm.judgeResultImagePath = res.Result.JudgeResultImagePath
this.fileList = [{ name: '', url: `/api/${res.Result.JudgeResultImagePath}` }]
this.imageUrl = `/api/${res.Result.JudgeResultImagePath}`
this.uploadDisabled = true
}
this.visitTaskArmList = res.Result.VisitTaskArmList
this.loading = false
}).catch(() => { this.loading = false })
},
getPriorAdList() {
this.priorLoading = true
getReadingPastResultList({ visitTaskId: this.visitTaskId }).then(res => {
this.priorADList = res.Result
this.priorLoading = false
}).catch(() => { this.priorLoading = false })
},
handleSave() {
this.$refs['adForm'].validate((valid) => {
if (!valid) return
this.loading = true
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
})
})
},
handleSubmit() {
this.$refs['adForm'].validate((valid) => {
if (!valid) return
const { ImageAssessmentReportConfirmation } = const_.processSignature
this.signCode = ImageAssessmentReportConfirmation
this.signVisible = true
})
},
//
closeSignDialog(isSign, signInfo) {
if (isSign) {
this.signConfirm(signInfo)
} else {
this.signVisible = false
}
},
//
signConfirm(signInfo) {
this.loading = true
var params = {
data: {
visitTaskId: this.visitTaskId,
judgeResultTaskId: this.adForm.judgeResultTaskId,
judgeResultRemark: this.adForm.judgeResultRemark,
judgeResultImagePath: this.adForm.judgeResultImagePath
},
signInfo: signInfo
}
submitJudgeVisitTaskResult(params).then(res => {
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.isEdit = false
this.$refs['signForm'].btnLoading = false
this.signVisible = false
window.location.reload()
window.opener.postMessage('refreshTaskList', window.location)
}
this.loading = false
}).catch(_ => {
this.loading = false
this.$refs['signForm'].btnLoading = false
})
},
handleViewDetail(visitTaskId) {
var token = getToken()
const routeData = this.$router.resolve({
path: `/readingPage?trialId=${this.trialId}&visitTaskId=${visitTaskId}&TokenKey=${token}&isReadingShowPreviousResults=false`
})
window.open(routeData.href, '_blank')
},
handleView(row, armEnum) {
var token = getToken()
var task = row.VisitTaskInfoList.find(item => item.ArmEnum === armEnum)
const routeData = this.$router.resolve({
path: `/readingPage?trialId=${this.trialId}&visitTaskId=${task.VisitTaskId}&TokenKey=${token}&isReadingShowPreviousResults=false`
})
window.open(routeData.href, '_blank')
},
uploadScreenshot(param) {
this.loading = true
this.uploadDisabled = false
const formData = new FormData()
formData.append('file', param.file)
uploadJudgeTaskImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
this.loading = false
if (res.IsSuccess) {
this.fileList.push({ name: res.Result.FileName, url: `${res.Result.Path}` })
this.imageUrl = `${res.Result.Path}`
this.adForm.judgeResultImagePath = res.Result.Path
}
this.uploadDisabled = true
}).catch(() => {
this.loading = false
})
},
handleBeforeUpload(file) {
//
if (this.checkFileSuffix(file.name)) {
this.fileList = []
return true
} else {
this.$alert(`必须是 ${this.accept} 格式`)
return false
}
},
checkFileSuffix(fileName) {
var index = fileName.lastIndexOf('.')
var suffix = fileName.substring(index + 1, fileName.length)
if (this.accept.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === -1) {
return false
} else {
return true
}
},
//
removeImage() {
this.imageUrl = ''
this.fileList = []
this.adForm.judgeResultImagePath = ''
},
//
handlePictureCardPreview() {
this.imgVisible = true
this.uploadDisabled = true
},
//
handleRemove(file, fileList) {
this.uploadDisabled = false
this.imageUrl = ''
this.fileList = []
this.adForm.judgeResultImagePath = ''
}
}
}
</script>
<style lang="scss" scoped>
.adReview_wrapper{
flex: 1;
padding: 10px;
width: 100%;
height: 100%;
overflow-y: auto;
.box-mr{
margin:10px 0;
}
.disabled{
/deep/ .el-upload--picture-card {
display: none;
}
}
}
</style>

View File

@ -77,8 +77,15 @@
<el-form-item v-if="readingTaskState < 2">
<div style="text-align:center;">
<el-button type="primary" @click="handleSave">{{ $t('common:button:save') }}</el-button>
<el-button type="primary" @click="handleSubmit">{{ $t('common:button:submit') }}</el-button>
<el-button type="primary" @click="skipTask">
{{ $t('trials:readingReport:button:skip') }}
</el-button>
<el-button type="primary" @click="handleSave">
{{ $t('common:button:save') }}
</el-button>
<el-button type="primary" @click="handleSubmit">
{{ $t('common:button:submit') }}
</el-button>
</div>
</el-form-item>
</el-form>
@ -104,11 +111,12 @@
<script>
import { getTrialReadingQuestion, saveVisitTaskQuestions, submitVisitTaskQuestionsInDto } from '@/api/trials'
import { setSkipReadingCache } from '@/api/reading'
import const_ from '@/const/sign-code'
import FormItem from './FormItem'
import SignForm from '@/views/trials/components/newSignForm'
// import { getToken } from '@/utils/auth'
import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent'
// import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent'
export default {
name: 'ECRF',
components: {
@ -152,13 +160,15 @@ export default {
this.getQuestions()
},
methods: {
getQuestions() {
async getQuestions() {
this.loading = true
var param = {
try {
const param = {
readingQuestionCriterionTrialId: this.criterionId,
visitTaskId: this.visitTaskId
}
getTrialReadingQuestion(param).then(res => {
const res = await getTrialReadingQuestion(param)
if (res.IsSuccess) {
this.readingTaskState = res.OtherInfo.readingTaskState
this.formType = res.OtherInfo.FormType
if (res.OtherInfo.FormType === 2) {
@ -200,8 +210,11 @@ export default {
this.questions = res.Result.SinglePage
}
this.isRender = true
}
this.loading = false
}).catch(() => { this.loading = false })
} catch (e) {
this.loading = false
}
},
setChild(obj) {
obj.forEach(i => {
@ -213,36 +226,36 @@ export default {
}
})
},
handleSave() {
this.$refs['questions'].validate((valid) => {
async handleSave() {
const valid = await this.$refs['questions'].validate()
if (!valid) return
this.loading = true
var answers = []
const answers = []
for (const k in this.questionForm) {
answers.push({ readingQuestionTrialId: k, answer: this.questionForm[k] })
}
var params = {
const params = {
trialId: this.trialId,
visitTaskId: this.visitTaskId,
readingQuestionCriterionTrialId: this.criterionId,
answerList: answers
}
saveVisitTaskQuestions(params).then(res => {
try {
const res = await saveVisitTaskQuestions(params)
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
}
this.loading = false
}).catch(() => {
} catch (e) {
this.loading = false
})
})
}
},
handleSubmit() {
this.$refs['questions'].validate((valid) => {
async handleSubmit() {
const valid = await this.$refs['questions'].validate()
if (!valid) return
const { ImageAssessmentReportConfirmation } = const_.processSignature
this.signCode = ImageAssessmentReportConfirmation
this.signVisible = true
})
},
//
closeSignDialog(isSign, signInfo) {
@ -253,7 +266,7 @@ export default {
}
},
//
signConfirm(signInfo) {
async signConfirm(signInfo) {
this.loading = true
var answers = []
for (const k in this.questionForm) {
@ -268,7 +281,9 @@ export default {
},
signInfo: signInfo
}
submitVisitTaskQuestionsInDto(params).then(res => {
try {
const res = await submitVisitTaskQuestionsInDto(params)
this.loading = false
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.isEdit = false
@ -276,35 +291,42 @@ export default {
this.signVisible = false
this.readingTaskState = 2
window.opener.postMessage('refreshTaskList', window.location)
this.$confirm(this.$t('trials:globalReview:message:msg2'), {
const confirm = await this.$confirm(
this.$t('trials:noneDicoms:message:msg1'),
{
type: 'warning',
distinguishCancelAndClose: true
})
.then(() => {
DicomEvent.$emit('getNextTask')
})
.catch(action => {
})
// window.location.reload()
// window.opener.postMessage('refreshTaskList', window.location)
// var token = getToken()
// var subjectCode = this.$router.currentRoute.query.subjectCode
// 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
// const routeData = `/noneDicomReading?TrialReadingCriterionId=${trialReadingCriterionId}&trialId=${this.trialId}&subjectCode=${subjectCode}&subjectId=${this.subjectId}&isReadingTaskViewInOrder=${isReadingTaskViewInOrder}&criterionType=${criterionType}&readingTool=${readingTool}&TokenKey=${token}&key=${new Date().getTime()}`
// this.$router.push({ path: routeData })
// this.$router.push({
// path: `/readingPage?subjectCode=${subjectCode}&subjectId=${this.subjectId}&trialId=${this.trialId}&TokenKey=${token}`
// })
}
this.loading = false
}).catch(_ => {
)
if (confirm !== 'confirm') return
window.location.reload()
}
} catch (e) {
this.loading = false
this.$refs['signForm'].btnLoading = false
})
}
},
async skipTask() {
try {
//
const confirm = await this.$confirm(
this.$t('trials:readingReport:message:skipConfirm'),
{
type: 'warning',
distinguishCancelAndClose: true
}
)
if (confirm !== 'confirm') return
this.loading = true
const res = await setSkipReadingCache({ visitTaskId: this.visitTaskId })
this.loading = false
if (res.IsSuccess) {
window.location.reload()
}
} catch (e) {
this.loading = false
console.log(e)
}
},
resetFormItemData(v) {
this.questionForm[v] = null

View File

@ -1,155 +0,0 @@
<template>
<el-form
v-if="questions.length>0"
ref="globalReviewForm"
v-loading="loading"
:model="form"
size="small"
>
<div class="base-dialog-body">
<el-form-item
v-for="qs in questions"
:key="`${qs.QuestionId}${qs.QuestionName}`"
:label="qs.QuestionName"
>
<!-- 下拉框 -->
<el-select
v-if="qs.Type==='select'"
v-model="form[!qs.QuestionId?'Reason':qs.QuestionId]"
>
<el-option
v-for="val in qs.TypeValue.split('|')"
:key="val"
:label="val"
:value="val"
:disabled="getBeforeAnswer(qs.QuestionName) === val"
/>
</el-select>
<!-- 单选 -->
<el-radio-group
v-if="qs.Type==='radio'"
v-model="form[!qs.QuestionId?'Reason':qs.QuestionId]"
>
<el-radio
v-for="val in qs.TypeValue.split('|')"
:key="val"
:label="val"
:disabled="getBeforeAnswer(qs.QuestionName) === val"
>
{{ val }}
</el-radio>
</el-radio-group>
<el-input
v-if="qs.Type==='input'"
v-model="form[!qs.QuestionId?'Reason':qs.QuestionId]"
type="textarea"
:autosize="{ minRows: 2, maxRows: 4}"
/>
</el-form-item>
</div>
<div class="base-dialog-footer" style="text-align:right;margin-top:10px;">
<el-form-item style="text-align:right;">
<el-button size="small" type="primary" @click="handleClose">
{{ $t('common:button:cancel') }}
</el-button>
<el-button size="small" type="primary" @click="handleSave">
{{ $t('common:button:save') }}
</el-button>
</el-form-item>
</div>
</el-form>
</template>
<script>
import { saveGlobalReadingInfo } from '@/api/trials'
export default {
name: 'EditGlobalForm',
props: {
globalTaskId: {
type: String,
required: true
},
visitTaskId: {
type: String,
required: true
},
questionList: {
type: Array,
default() {
return []
}
},
subjectId: {
type: String,
required: true
},
trialId: {
type: String,
required: true
},
beforeQuestionList: {
type: Array,
default() {
return []
}
}
},
data() {
return {
questions: [],
form: {},
loading: false
}
},
mounted() {
this.questionList.map(v => {
if (!v.QuestionId) {
this.$set(this.form, 'Reason', v.Answer)
} else {
this.$set(this.form, v.QuestionId, v.Answer)
}
})
this.questions = this.questionList
},
methods: {
handleSave() {
this.loading = true
var questionList = []
for (const i in this.form) {
questionList.push(
{
questionId: i === 'Reason' ? null : i,
visitTaskId: this.visitTaskId,
answer: this.form[i]
}
)
}
var param = {
globalTaskId: this.globalTaskId,
subjectId: this.subjectId,
trialId: this.trialId,
questionList: questionList
}
saveGlobalReadingInfo(param).then(res => {
this.loading = false
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$emit('getList')
this.$emit('close')
}).catch(() => {
this.loading = false
})
},
handleClose() {
this.$emit('close')
},
getBeforeAnswer(qs) {
var i = this.beforeQuestionList.findIndex(item => item.QuestionName === qs)
if (i > -1) {
return this.beforeQuestionList[i].Answer
} else {
return ''
}
}
}
}
</script>

View File

@ -39,27 +39,27 @@
:disabled="readingTaskState >= 2"
/>
<!-- 下拉框 -->
<!-- <el-select-->
<!-- v-if="question.Type==='select'"-->
<!-- v-model="questionForm[question.Id]"-->
<!-- :disabled="readingTaskState >= 2"-->
<!-- clearable-->
<!-- @change="((val)=>{formItemChange(val, question)})"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="val in question.TypeValue.split('|')"-->
<!-- :key="val"-->
<!-- :label="val"-->
<!-- :value="val"-->
<!-- />-->
<!-- </el-select>-->
<!-- <el-select-->
<!-- v-if="question.Type==='select'"-->
<!-- v-model="questionForm[question.Id]"-->
<!-- :disabled="readingTaskState >= 2"-->
<!-- clearable-->
<!-- @change="((val)=>{formItemChange(val, question)})"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="val in question.TypeValue.split('|')"-->
<!-- :key="val"-->
<!-- :label="val"-->
<!-- :value="val"-->
<!-- />-->
<!-- </el-select>-->
<el-select
v-if="question.Type==='select'"
v-model="questionForm[question.Id]"
filterable
:placeholder="$t('common:placeholder:select')"
:disabled="readingTaskState >= 2"
@change="((val)=>{formItemChange(val, qs)})"
@change="((val)=>{formItemChange(val, question)})"
>
<template v-if="question.DictionaryCode">
<el-option
@ -91,7 +91,7 @@
:key="item.id"
:label="item.value.toString()"
>
{{item.label}}
{{ item.label }}
</el-radio>
</template>
<template v-else-if="question.TypeValue">
@ -191,7 +191,7 @@
</div>
</template>
<script>
import { uploadReadingAnswerImage } from '@/api/trials'
// import { uploadReadingAnswerImage } from '@/api/trials'
export default {
name: 'FormItem',
props: {

View File

@ -1,324 +0,0 @@
<template>
<div class="glReview_wrapper">
<el-card shadow="never" :body-style="{ padding: '10px' }" style="margin-bottom:10px">
<h4 v-if="isReadingShowSubjectInfo">
{{ $t('trials:auditRecord:table:subject') }}
<span style="font-weight:normal">{{ subjectCode }} </span>
<span style="font-weight:normal">({{ taskBlindName }})</span>
</h4>
</el-card>
<el-card :body-style="{ padding: '10px' }" shadow="never">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">{{ $t('trials:globalReview:table:evaluationRes') }}</span>
</div>
<div v-if="taskList.length > 0 && readingTaskState < 2" style="text-align:right;margin:5px 0;">
<el-button size="small" type="primary" @click="handleConfirm">
{{ $t('common:button:confirm') }}
</el-button>
</div>
<el-table
v-loading="loading"
:data="taskList"
>
<el-table-column
prop="VisitName"
label="访视名称"
show-overflow-tooltip
width="150"
/>
<!-- 评估结果 -->
<el-table-column
label="评估结果"
align="center"
prop=""
>
<template>
<el-table-column
v-for="(qs,index) in evaluationQsList"
:key="index"
prop=""
:label="qs"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
{{ scope.row.BeforeQuestionList.length>index?scope.row.BeforeQuestionList[index].Answer:'' }}
</template>
</el-table-column>
</template>
</el-table-column>
<!-- 评估结果 -->
<el-table-column
label="调整后结果"
align="center"
prop=""
>
<template>
<el-table-column
v-for="(qs,index) in adjustedQsList"
:key="index"
prop=""
:label="qs"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
{{ scope.row.AfterQuestionList.length>index?scope.row.AfterQuestionList[index].Answer:'' }}
</template>
</el-table-column>
</template>
</el-table-column>
<el-table-column
:label="$t('common:action:action')"
width="200"
>
<template slot-scope="scope">
<el-button
circle
title="查看详情"
icon="el-icon-view"
@click="handleView(scope.row)"
/>
<el-button
v-if="readingTaskState < 2"
circle
title="调整"
icon="el-icon-edit"
@click="handleEdit(scope.row)"
/>
</template>
</el-table-column>
</el-table>
</el-card>
<el-card v-if="isReadingShowPreviousResults" :body-style="{ padding: '10px' }" shadow="never">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">既往全局阅片结果</span>
</div>
<el-table
v-loading="historyLoading"
:data="historyTaskList"
>
<el-table-column
prop="TaskBlindName"
label="全局"
show-overflow-tooltip
width="200"
/>
<el-table-column
:label="$t('common:action:action')"
width="200"
>
<template slot-scope="scope">
<el-button
circle
title="查看详情"
icon="el-icon-view"
@click="handleView(scope.row)"
/>
</template>
</el-table-column>
</el-table>
</el-card>
<!-- 签名框 -->
<el-dialog
v-if="signVisible"
:visible.sync="signVisible"
:close-on-click-modal="false"
width="600px"
custom-class="base-dialog-wrapper"
>
<div slot="title">
<span style="font-size:18px;">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${ currentUser })` }}</span>
</div>
<SignForm ref="signForm" :sign-code-enum="signCode" @closeDialog="closeSignDialog" />
</el-dialog>
<!-- 签名框 -->
<el-dialog
v-if="editVisible"
:visible.sync="editVisible"
:close-on-click-modal="false"
width="600px"
custom-class="base-dialog-wrapper"
title="调整"
>
<EditGlobalForm
:global-task-id="visitTaskId"
:visit-task-id="rowData.VisitTaskId"
:question-list="rowData.AfterQuestionList"
:subject-id="subjectId"
:trial-id="trialId"
:before-question-list="rowData.BeforeQuestionList"
@getList="getGlInfo"
@close="editVisible = false"
/>
</el-dialog>
</div>
</template>
<script>
import { getGlobalReadingInfo, getReadingPastResultList, submitGlobalReadingInfo } from '@/api/trials'
import { getToken } from '@/utils/auth'
import const_ from '@/const/sign-code'
import EditGlobalForm from './EditGlobalForm'
import SignForm from '@/views/trials/components/newSignForm'
export default {
name: 'GlobalReview',
components: { EditGlobalForm, SignForm },
props: {
trialId: {
type: String,
required: true
},
subjectId: {
type: String,
required: true
},
visitTaskId: {
type: String,
required: true
},
readingCategory: {
type: Number,
required: true
},
subjectCode: {
type: String,
required: true
},
taskBlindName: {
type: String,
required: true
},
isReadingShowSubjectInfo: {
type: Boolean,
required: true
},
isReadingShowPreviousResults: {
type: Boolean,
required: true
}
},
data() {
return {
loading: false,
maxLength: 2,
evaluationQsList: [],
adjustedQsList: [],
taskList: [],
historyLoading: false,
historyTaskList: [],
currentUser: zzSessionStorage.getItem('userName'),
signVisible: false,
signCode: null,
editVisible: false,
rowData: {},
readingTaskState: 0
}
},
mounted() {
this.getGlInfo()
if (this.isReadingShowPreviousResults) {
this.getHistoryGlobalInfo()
}
},
methods: {
getGlInfo() {
this.loading = true
getGlobalReadingInfo({ visitTaskId: this.visitTaskId }).then(res => {
var evaluationQsList = []
var adjustedQsList = []
if (res.Result.TaskList.length > 0) {
var task = res.Result.TaskList[0]
task.BeforeQuestionList.map(qs => {
evaluationQsList.push(qs.QuestionName)
})
task.AfterQuestionList.map(qs => {
adjustedQsList.push(qs.QuestionName)
})
}
this.evaluationQsList = evaluationQsList
this.adjustedQsList = adjustedQsList
this.taskList = res.Result.TaskList
this.readingTaskState = res.Result.ReadingTaskState
this.loading = false
}).catch(() => { this.loading = false })
},
getHistoryGlobalInfo() {
this.historyLoading = true
getReadingPastResultList({ visitTaskId: this.visitTaskId }).then(res => {
this.historyTaskList = res.Result
this.historyLoading = false
}).catch(() => { this.historyLoading = false })
},
handleEdit(row) {
this.rowData = { ...row }
this.editVisible = true
},
handleConfirm() {
const { ImageAssessmentReportConfirmation } = const_.processSignature
this.signCode = ImageAssessmentReportConfirmation
this.signVisible = true
},
//
closeSignDialog(isSign, signInfo) {
if (isSign) {
this.signConfirm(signInfo)
} else {
this.signVisible = false
}
},
//
signConfirm(signInfo) {
this.loading = true
var params = {
data: {
globalTaskId: this.visitTaskId
},
signInfo: signInfo
}
submitGlobalReadingInfo(params).then(res => {
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$refs['signForm'].btnLoading = false
this.signVisible = false
window.location.reload()
window.opener.postMessage('refreshTaskList', window.location)
}
this.loading = false
}).catch(_ => {
this.loading = false
this.$refs['signForm'].btnLoading = false
})
},
handleView(row) {
var token = getToken()
var visitTaskId = row.VisitTaskId
const routeData = this.$router.resolve({
path: `/readingPage?subjectId=${this.subjectId}&trialId=${this.trialId}&visitTaskId=${visitTaskId}&TokenKey=${token}&isReadingShowPreviousResults=false`
})
window.open(routeData.href, '_blank')
}
}
}
</script>
<style lang="scss" scoped>
.glReview_wrapper{
flex: 1;
padding: 10px;
width: 100%;
height: 100%;
overflow-y: auto;
.box-mr{
margin:10px 0;
}
}
</style>

View File

@ -1,427 +0,0 @@
<template>
<div v-loading="loading" class="oncologyReview_wrapper">
<el-card shadow="never" :body-style="{ padding: '10px' }" style="margin-bottom:10px">
<h4 v-if="isReadingShowSubjectInfo">
受试者
<span style="font-weight:normal">{{ subjectCode }} </span>
<span style="font-weight:normal">({{ taskBlindName }})</span>
</h4>
</el-card>
<el-card :body-style="{ padding: '10px' }">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">肿瘤学阅片</span>
</div>
<div style="text-align:right;margin:5px 0;">
<el-button
type="primary"
size="small"
@click="previewCD"
>
临床数据
</el-button>
<el-button
v-if="oncologyInfo.ReadingTaskState < 2"
size="small"
type="primary"
@click="handleSave(true)"
>
保存
</el-button>
<el-button
v-if="oncologyInfo.ReadingTaskState < 2"
size="small"
type="primary"
@click="handleConfirm"
>
确认
</el-button>
</div>
<el-table
:data="oncologyInfo.OncologyVisits"
style="width: 100%"
>
<el-table-column
prop="VisitName"
label="访视名称"
show-overflow-tooltip
width="150"
/>
<el-table-column
label="影像学阅片结果"
align="center"
prop=""
>
<template>
<el-table-column
v-for="(qs,index) in questionCols"
:key="qs"
prop=""
:label="qs"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
{{ scope.row.QuestionList.length>index?scope.row.QuestionList[index].Answer:'' }}
</template>
</el-table-column>
<el-table-column
v-if="oncologyInfo.IsShowDetail"
prop="IsHaveChange"
label="全局是否有更新"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
<span>{{ $fd('YesOrNo', scope.row.IsHaveChange ) }}</span>
<el-button
v-if="scope.row.IsHaveChange && !!oncologyInfo.GlobalTaskId"
type="text"
style="margin-left:5px;"
@click="handleViewDetail(oncologyInfo.GlobalTaskId)"
>
查看详情
</el-button>
</template>
</el-table-column>
<el-table-column
v-if="oncologyInfo.IsShowDetail"
prop="VisitRemark"
label="访视点注释"
show-overflow-tooltip
width="150"
/>
</template>
</el-table-column>
<el-table-column
label="肿瘤学阅片结果"
align="center"
prop=""
>
<template>
<el-table-column
prop="EvaluationResult"
label="结论"
show-overflow-tooltip
width="150"
>
<template slot-scope="scope">
<el-select
v-if="oncologyInfo.ReadingTaskState < 2"
v-model="scope.row.EvaluationResult"
placeholder="请选择"
>
<el-option
v-for="item in trialEvaluations"
:key="item"
:label="item"
:value="item"
/>
</el-select>
<span v-else>{{ scope.row.EvaluationResult }}</span>
</template>
</el-table-column>
<el-table-column
prop="EvaluationReason"
show-overflow-tooltip
width="250"
>
<template slot="header">
<el-tooltip placement="top">
<div slot="content">
{{ oncologyInfo.TrialEvaluationReason }}
</div>
<div>
<span>原因</span>
<span style="color:red">*</span>
</div>
</el-tooltip>
</template>
<template slot-scope="scope">
<el-input
v-if="oncologyInfo.ReadingTaskState < 2"
v-model="scope.row.EvaluationReason"
/>
<span v-else>{{ scope.row.EvaluationReason }}</span>
</template>
</el-table-column>
</template>
</el-table-column>
<el-table-column
v-if="oncologyInfo.IsShowDetail"
:label="$t('common:action:action')"
width="100"
>
<template slot-scope="scope">
<el-button
circle
title="查看详情"
icon="el-icon-view"
@click="handleViewDetail(scope.row.VisitTaskId)"
/>
</template>
</el-table-column>
</el-table>
</el-card>
<el-card v-if="isReadingShowPreviousResults" :body-style="{ padding: '10px' }" class="box-mr">
<div slot="header" class="clearfix">
<span style="font-weight: bold;">既往肿瘤学阅片结果</span>
</div>
<el-table
v-loading="priorLoading"
:data="priorList"
style="width: 100%"
>
<el-table-column
prop="TaskBlindName"
label="肿瘤学阅片"
show-overflow-tooltip
width="200"
/>
<el-table-column
:label="$t('common:action:action')"
width="200"
>
<template slot-scope="scope">
<el-button
circle
title="查看详情"
icon="el-icon-view"
@click="handleViewDetail(scope.row.VisitTaskId)"
/>
</template>
</el-table-column>
</el-table>
</el-card>
<!-- 签名框 -->
<el-dialog
v-if="signVisible"
:visible.sync="signVisible"
:close-on-click-modal="false"
width="600px"
custom-class="base-dialog-wrapper"
>
<div slot="title">
<span style="font-size:18px;">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${ currentUser })` }}</span>
</div>
<SignForm ref="signForm" :sign-code-enum="signCode" @closeDialog="closeSignDialog" />
</el-dialog>
</div>
</template>
<script>
import { getOncologyReadingInfo, getReadingPastResultList, setOncologyReadingInfo, submitOncologyReadingInfo } from '@/api/trials'
import const_ from '@/const/sign-code'
import { getToken } from '@/utils/auth'
import SignForm from '@/views/trials/components/newSignForm'
export default {
name: 'OncologyReview',
components: { SignForm },
props: {
trialId: {
type: String,
required: true
},
subjectId: {
type: String,
required: true
},
visitTaskId: {
type: String,
required: true
},
readingCategory: {
type: Number,
required: true
},
subjectCode: {
type: String,
required: true
},
taskBlindName: {
type: String,
required: true
},
isReadingShowSubjectInfo: {
type: Boolean,
required: true
},
isReadingShowPreviousResults: {
type: Boolean,
required: true
}
},
data() {
return {
currentUser: zzSessionStorage.getItem('userName'),
signVisible: false,
signCode: null,
loading: false,
priorLoading: false,
priorList: [],
questionCols: [],
oncologyInfo: {},
trialEvaluations: []
}
},
mounted() {
this.getList()
if (this.isReadingShowPreviousResults) {
this.getPriorList()
}
},
methods: {
getList() {
this.loading = true
getOncologyReadingInfo({ visitTaskId: this.visitTaskId }).then(res => {
var questions = []
if (res.Result.OncologyVisits.length > 0) {
var task = res.Result.OncologyVisits[0]
task.QuestionList.map(qs => {
questions.push(qs.QuestionName)
})
}
this.questionCols = questions
this.trialEvaluations = res.Result.TrialEvaluationResult ? res.Result.TrialEvaluationResult.split('|') : []
this.oncologyInfo = res.Result
this.loading = false
}).catch(() => { this.loading = false })
},
handleSave(isPrompt) {
this.loading = true
var index = this.oncologyInfo.OncologyVisits.findIndex(item => !item.EvaluationResult)
if (index > -1) {
this.loading = false
this.$confirm('肿瘤学阅片结论不能为空!', {
type: 'warning',
distinguishCancelAndClose: true
})
.then(() => {
return Promise.reject(false)
})
.catch(action => {
return Promise.reject(false)
})
} else {
this.loading = true
var oncologyQuestionList = []
this.oncologyInfo.OncologyVisits.map(item => {
if (item.EvaluationResult) {
oncologyQuestionList.push(
{
visitTaskId: item.VisitTaskId,
evaluationResult: item.EvaluationResult,
evaluationReason: item.EvaluationReason
}
)
}
})
var params = {
oncologyTaskId: this.visitTaskId,
oncologyQuestionList: oncologyQuestionList
}
return new Promise((resolve, reject) => {
setOncologyReadingInfo(params).then(res => {
this.loading = false
this.getList()
if (isPrompt) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
}
resolve(true)
}).catch(_ => {
this.loading = false
reject(false)
})
})
}
},
handleSubmit() {
this.$refs['adForm'].validate((valid) => {
if (!valid) return
const { ImageAssessmentReportConfirmation } = const_.processSignature
this.signCode = ImageAssessmentReportConfirmation
this.signVisible = true
})
},
//
closeSignDialog(isSign, signInfo) {
if (isSign) {
this.signConfirm(signInfo)
} else {
this.signVisible = false
}
},
handleConfirm() {
this.handleSave(false).then(res => {
if (res) {
const { ImageAssessmentReportConfirmation } = const_.processSignature
this.signCode = ImageAssessmentReportConfirmation
this.signVisible = true
}
})
},
//
signConfirm(signInfo) {
this.loading = true
var params = {
data: {
oncologyTaskId: this.visitTaskId
},
signInfo: signInfo
}
submitOncologyReadingInfo(params).then(res => {
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.isEdit = false
this.$refs['signForm'].btnLoading = false
this.signVisible = false
window.location.reload()
window.opener.postMessage('refreshTaskList', window.location)
}
this.loading = false
}).catch(_ => {
this.loading = false
this.$refs['signForm'].btnLoading = false
})
},
getPriorList() {
this.priorLoading = true
getReadingPastResultList({ visitTaskId: this.visitTaskId }).then(res => {
this.priorList = res.Result
this.priorLoading = false
}).catch(() => { this.priorLoading = false })
},
handleViewDetail(visitTaskId) {
var token = getToken()
const routeData = this.$router.resolve({
path: `/readingPage?trialId=${this.trialId}&visitTaskId=${visitTaskId}&TokenKey=${token}&isReadingShowPreviousResults=false`
})
window.open(routeData.href, '_blank')
},
previewCD() {
var token = getToken()
const routeData = this.$router.resolve({
path: `/clinicalData?subjectId=${this.oncologyInfo.SubjectId}&trialId=${this.trialId}&visitTaskId=${this.oncologyInfo.OncologyTaskId}&TokenKey=${token}`
})
window.open(routeData.href, '_blank')
}
}
}
</script>
<style lang="scss" scoped>
.oncologyReview_wrapper{
flex: 1;
padding: 10px;
width: 100%;
height: 100%;
overflow-y: auto;
.box-mr{
margin:10px 0;
}
}
</style>

View File

@ -2,7 +2,7 @@
<div v-loading="loading" class="img-container">
<el-card class="box-card left">
<div v-if="otherInfo && otherInfo.IsReadingShowSubjectInfo" class="title">
<span>{{$t('trials:auditRecord:table:subject')}}{{ otherInfo.SubjectCode }} </span>
<span>{{ $t('trials:auditRecord:table:subject') }}{{ otherInfo.SubjectCode }} </span>
<span>({{ otherInfo.TaskBlindName }})</span>
</div>
<el-tabs v-model="activeName" @tab-click="handleClick">
@ -41,7 +41,7 @@
<div style="height:100%;">
<!-- 文件层级 -->
<div v-if="associatedList.length === 0" class="empty-text">
<slot name="empty">{{$t('trials:audit:message:noData')}}</slot>
<slot name="empty">{{ $t('trials:audit:message:noData') }}</slot>
</div>
<div v-else>
<div
@ -78,14 +78,15 @@
</el-card>
<el-card class="box-card" style="width:400px;height:100%;padding: 10px;margin-left:10px;overflow-y: auto;">
<div style="text-align:right;">
<el-button
v-if="otherInfo && otherInfo.IsExistsClinicalData"
type="primary"
size="mini"
type="text"
@click="previewCD"
>
{{ $t('trials:crcUpload:label:clinicalData') }}
</el-button>
</div>
<Criterions
v-if="otherInfo && visitTaskId!== '' && subjectId!== '' && readingCategory!==null && readingCategory!==4"
:trial-id="trialId"
@ -155,7 +156,7 @@ export default {
currentTaskId: '',
otherInfo: null,
isReadingShowPreviousResults: false,
bp:[]
bp: []
}
},
computed: {
@ -281,7 +282,7 @@ export default {
}
var arr = bodyPart.split(separator)
var newArr = arr.map(i => {
return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name')
return this.$fd('Bodypart', i.trim(), 'Code', { Bodypart: this.bp }, 'Name')
})
return newArr.join(' | ')
}

View File

@ -70,7 +70,7 @@
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleConfirmCD">{{$t("common:button:confirm")}}</el-button>
<el-button type="primary" @click="handleConfirmCD">{{ $t("common:button:confirm") }}</el-button>
</span>
</el-dialog>
@ -87,7 +87,7 @@ import VisitReview from './components/VisitReview'
import GlobalReview from '@/views/trials/trials-panel/reading/global-review'
import AdReview from '@/views/trials/trials-panel/reading/ad-review'
import ClinicalData from '@/views/trials/trials-panel/reading/clinical-data'
import { getToken } from '@/utils/auth'
// import { getToken } from '@/utils/auth'
import OncologyReview from '@/views/trials/trials-panel/reading/oncology-review'
export default {
name: 'NoneDicomReading',
@ -136,7 +136,7 @@ export default {
this.readingTool = this.$router.currentRoute.query.readingTool
this.isNewSubject = this.$router.currentRoute.query.isNewSubject
if (this.isNewSubject && this.isReadingTaskViewInOrder) {
let message = this.$t('trials:reading:noneDicom:message:startRead').replace("xxx",this.subjectCode);
const message = this.$t('trials:reading:noneDicom:message:startRead').replace('xxx', this.subjectCode)
this.$message.success(message)
changeURLStatic('isNewSubject', '')
}
@ -164,11 +164,11 @@ export default {
this.isShow = false
getNextTask(param).then(res => {
this.readingCategory = res.Result.ReadingCategory
if (this.subjectId !== res.Result.SubjectId && this.isReadingTaskViewInOrder) {
store.dispatch('reading/resetVisitTasks')
var token = getToken()
window.location.href = `/noneDicomReading?trialId=${this.trialId}&subjectCode=${res.Result.SubjectCode}&subjectId=${res.Result.SubjectId}&isReadingShowPreviousResults=${this.isReadingShowPreviousResults}&isReadingShowSubjectInfo=${this.isReadingShowSubjectInfo}&criterionType=${this.criterionType}&readingTool=${this.readingTool}&isNewSubject=1&isReadingTaskViewInOrder=${res.Result.IsReadingTaskViewInOrder}&TokenKey=${token}`
}
// if (this.subjectId !== res.Result.SubjectId && this.isReadingTaskViewInOrder) {
// store.dispatch('reading/resetVisitTasks')
// var token = getToken()
// window.location.href = `/noneDicomReading?trialId=${this.trialId}&subjectCode=${res.Result.SubjectCode}&subjectId=${res.Result.SubjectId}&isReadingShowPreviousResults=${this.isReadingShowPreviousResults}&isReadingShowSubjectInfo=${this.isReadingShowSubjectInfo}&criterionType=${this.criterionType}&readingTool=${this.readingTool}&isNewSubject=1&isReadingTaskViewInOrder=${res.Result.IsReadingTaskViewInOrder}&TokenKey=${token}`
// }
this.subjectId = res.Result.SubjectId
this.visitTaskId = res.Result.VisitTaskId
this.subjectCode = res.Result.SubjectCode
@ -190,14 +190,17 @@ export default {
this.loading = false
}).catch(() => { this.loading = false })
},
handleConfirmCD() {
async handleConfirmCD() {
this.loading = true
var visitTaskId = this.visitTaskId
readClinicalData({ visitTaskId }).then(res => {
try {
await readClinicalData({ visitTaskId })
this.loading = false
this.dialogVisible = false
this.isReadClinicalData = true
}).catch(() => { this.loading = false })
} catch (e) {
this.loading = false
}
}
}
}

View File

@ -265,7 +265,7 @@ import { setSkipReadingCache } from '@/api/reading'
import { getAutoCutNextTask } from '@/api/user'
import const_ from '@/const/sign-code'
import { getToken } from '@/utils/auth'
import store from '@/store'
// import store from '@/store'
import { changeURLStatic } from '@/utils/history.js'
import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent'
import SignForm from '@/views/trials/components/newSignForm'
@ -498,8 +498,9 @@ export default {
const res = await getAutoCutNextTask()
var isAutoTask = res.Result.AutoCutNextTask
if (isAutoTask) {
store.dispatch('reading/resetVisitTasks')
DicomEvent.$emit('getNextTask')
// store.dispatch('reading/resetVisitTasks')
// DicomEvent.$emit('getNextTask')
window.location.reload()
} else {
// ''
const confirm = await this.$confirm(
@ -510,8 +511,9 @@ export default {
}
)
if (confirm === 'confirm') {
store.dispatch('reading/resetVisitTasks')
DicomEvent.$emit('getNextTask')
// store.dispatch('reading/resetVisitTasks')
// DicomEvent.$emit('getNextTask')
window.location.reload()
} else {
changeURLStatic('visitTaskId', this.visitTaskId)
}