熊飞 2024-03-06 14:19:08 +08:00
commit ccb6aed115
11 changed files with 198 additions and 78 deletions

View File

@ -263,7 +263,6 @@ export default {
mounted() { mounted() {
this.trialId = this.$route.query.trialId this.trialId = this.$route.query.trialId
this.initForm() this.initForm()
console.log(this.getQuestionVal(7))
}, },
beforeDestroy() { beforeDestroy() {

View File

@ -4,11 +4,18 @@ import cornerstoneDICOMImageLoader from '@cornerstonejs/dicom-image-loader'
* preloads imageIds metadata in memory * preloads imageIds metadata in memory
**/ **/
async function prefetchMetadataInformation(imageIdsToPrefetch) { async function prefetchMetadataInformation(imageIdsToPrefetch) {
return new Promise(async(resolve, reject) =>{
var taskPromises = []
for (let i = 0; i < imageIdsToPrefetch.length; i++) { for (let i = 0; i < imageIdsToPrefetch.length; i++) {
await cornerstoneDICOMImageLoader.wadouri.loadImage(imageIdsToPrefetch[i]) taskPromises.push(cornerstoneDICOMImageLoader.wadouri.loadImage(imageIdsToPrefetch[i]).promise)
.promise if (taskPromises.length >= 6 || i === imageIdsToPrefetch.length - 1) {
await Promise.all(taskPromises)
taskPromises = []
} }
} }
resolve()
})
}
function getFrameInformation(imageId) { function getFrameInformation(imageId) {
if (imageId.includes('wadors:')) { if (imageId.includes('wadors:')) {

View File

@ -15,7 +15,6 @@ function getModalityUnit(
} }
function _handlePTModality(imageId, options) { function _handlePTModality(imageId, options) {
console.log(imageId, options)
if (!options.isPreScaled) { if (!options.isPreScaled) {
return 'raw' return 'raw'
} }

View File

@ -66,8 +66,8 @@
<!-- white-space: nowrap;overflow: hidden;text-overflow: ellipsis; --> <!-- white-space: nowrap;overflow: hidden;text-overflow: ellipsis; -->
<div style="font-size: 11px;width:210px;height: 30px;display: flex;justify-content: flex-start;flex-wrap: nowrap;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"> <div style="font-size: 11px;width:210px;height: 30px;display: flex;justify-content: flex-start;flex-wrap: nowrap;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
<el-tooltip v-if="item.TableQuestions.Answers[i].SplitOrMergeType === '1'" class="item" effect="dark" :content="`融向${item.TableQuestions.Answers[i].SplitOrMergeLesionName}`" placement="bottom"> <el-tooltip v-if="item.TableQuestions.Answers[i].SplitOrMergeType === '1' || item.TableQuestions.Answers[i].SplitOrMergeType === '3'" class="item" effect="dark" :content="`融向${item.TableQuestions.Answers[i].SplitOrMergeLesionName}`" placement="bottom">
<div v-if="item.TableQuestions.Answers[i].SplitOrMergeType === '1'"> <div v-if="item.TableQuestions.Answers[i].SplitOrMergeType === '1' || item.TableQuestions.Answers[i].SplitOrMergeType === '3'">
<span class="login-cycle" /> <span class="login-cycle" />
</div> </div>
</el-tooltip> </el-tooltip>

View File

@ -18,7 +18,8 @@
> >
<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 || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
@change="isHaveQuestionChange"
> >
<el-radio <el-radio
v-for="item of $d.YesOrNo" v-for="item of $d.YesOrNo"
@ -44,7 +45,7 @@
<el-input <el-input
v-model="form.Questioning" v-model="form.Questioning"
type="textarea" type="textarea"
:disabled="isSendMessage || auditState===2 || ![14, 30].includes(userTypeEnumInt)" :disabled="isSendMessage || auditState===2 || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
/> />
</el-form-item> </el-form-item>
<!-- 审核建议 --> <!-- 审核建议 -->
@ -58,7 +59,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 || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
> >
<el-radio <el-radio
v-for="item of $d.AuditAdvice" v-for="item of $d.AuditAdvice"
@ -84,7 +85,7 @@
:on-remove="handleRemove" :on-remove="handleRemove"
:file-list="fileList" :file-list="fileList"
:disabled="isSendMessage || auditState===2 || ![14, 30].includes(userTypeEnumInt)" :disabled="isSendMessage || auditState===2 || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
style="width:300px" style="width:300px"
> >
<i slot="default" class="el-icon-plus" /> <i slot="default" class="el-icon-plus" />
@ -247,7 +248,6 @@ export default {
if (!valid) { if (!valid) {
reject() reject()
} else { } else {
this.loading = true
this.form.IsSendDialog = this.form.IsHaveQuestion this.form.IsSendDialog = this.form.IsHaveQuestion
var files = [] var files = []
this.fileList.map(file => { this.fileList.map(file => {
@ -260,10 +260,8 @@ export default {
this.$emit('getMedicalAuditList') this.$emit('getMedicalAuditList')
} }
this.isSendMessage = this.form.IsHaveQuestion this.isSendMessage = this.form.IsHaveQuestion
this.loading = false
resolve() resolve()
}).catch(() => { }).catch(() => {
this.loading = false
reject() reject()
}) })
} }
@ -296,16 +294,27 @@ export default {
}) })
}) })
}, },
validForm() {
return new Promise((resolve) => {
this.$refs['conclusionsForm'].validate((valid) => {
resolve(valid)
})
})
},
handleReply() { handleReply() {
this.chatVisible = true this.chatVisible = true
}, },
handleCloseReply() { handleCloseReply() {
this.closeQuestionVisible = true this.closeQuestionVisible = true
}, },
isHaveQuestionChange(val) {
this.$emit('setIsHaveQuestion', val)
},
refresh() { refresh() {
this.isClosedDialog = true this.isClosedDialog = true
this.$emit('getMedicalAuditList') this.$emit('getMedicalAuditList')
this.$refs['chatForm'].getMessageList() this.$refs['chatForm'].getMessageList()
this.$emit('handleSign')
}, },
convertBase64ToBlob(imageEditorBase64) { convertBase64ToBlob(imageEditorBase64) {
var base64Arr = imageEditorBase64.split(',') var base64Arr = imageEditorBase64.split(',')
@ -340,7 +349,6 @@ export default {
var file = await this.fileToBlob(param.file) var file = await this.fileToBlob(param.file)
var trialId = this.$route.query.trialId var trialId = this.$route.query.trialId
const res = await this.OSSclient.put(`/${trialId}/MedicalReview/${param.file.name}`, file) const res = await this.OSSclient.put(`/${trialId}/MedicalReview/${param.file.name}`, file)
console.log(res)
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) }) this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
this.loading = false this.loading = false
} catch (e) { } catch (e) {

View File

@ -21,7 +21,7 @@
<el-input <el-input
v-if="question.Type==='input'" v-if="question.Type==='input'"
v-model="questionForm[question.Id]" v-model="questionForm[question.Id]"
:disabled="auditState >= 2" :disabled="auditState >= 2 || isSendMessage || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
/> />
<!-- 多行文本输入框 --> <!-- 多行文本输入框 -->
<el-input <el-input
@ -29,13 +29,13 @@
v-model="questionForm[question.Id]" v-model="questionForm[question.Id]"
type="textarea" type="textarea"
:autosize="{ minRows: 2, maxRows: 4}" :autosize="{ minRows: 2, maxRows: 4}"
:disabled="auditState >= 2" :disabled="auditState >= 2 || isSendMessage || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
/> />
<!-- 下拉框 --> <!-- 下拉框 -->
<el-select <el-select
v-if="question.Type==='select'" v-if="question.Type==='select'"
v-model="questionForm[question.Id]" v-model="questionForm[question.Id]"
:disabled="auditState >= 2" :disabled="auditState >= 2 || isSendMessage || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
clearable clearable
@change="((val)=>{formItemChange(val, question)})" @change="((val)=>{formItemChange(val, question)})"
> >
@ -50,7 +50,7 @@
<el-radio-group <el-radio-group
v-if="question.Type==='radio'" v-if="question.Type==='radio'"
v-model="questionForm[question.Id]" v-model="questionForm[question.Id]"
:disabled="auditState >= 2" :disabled="auditState >= 2 || isSendMessage || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
@change="((val)=>{formItemChange(val, question)})" @change="((val)=>{formItemChange(val, question)})"
> >
<el-radio v-for="val in question.TypeValue.split('|')" :key="val" :label="val">{{ val }}</el-radio> <el-radio v-for="val in question.TypeValue.split('|')" :key="val" :label="val">{{ val }}</el-radio>
@ -59,7 +59,7 @@
<el-checkbox-group <el-checkbox-group
v-if="question.Type==='checkbox'" v-if="question.Type==='checkbox'"
v-model="questionForm[question.Id]" v-model="questionForm[question.Id]"
:disabled="auditState >= 2" :disabled="auditState >= 2 || isSendMessage || !hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit'])"
> >
<el-checkbox v-for="val in question.TypeValue.split('|')" :key="val" :label="val">{{ val }}</el-checkbox> <el-checkbox v-for="val in question.TypeValue.split('|')" :key="val" :label="val">{{ val }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
@ -71,6 +71,7 @@
:question="item" :question="item"
:audit-state="auditState" :audit-state="auditState"
:question-form="questionForm" :question-form="questionForm"
:is-send-message="isSendMessage"
@resetFormItemData="resetFormItemData" @resetFormItemData="resetFormItemData"
/> />
</div> </div>
@ -94,6 +95,10 @@ export default {
auditState: { auditState: {
type: Number, type: Number,
required: true required: true
},
isSendMessage: {
type: Boolean,
required: true
} }
}, },
data() { data() {

View File

@ -13,7 +13,8 @@
:key="question.Id" :key="question.Id"
:question="question" :question="question"
:question-form="questionForm" :question-form="questionForm"
:audit-state="state" :audit-state="auditState"
:is-send-message="isSendMessage"
@resetFormItemData="resetFormItemData" @resetFormItemData="resetFormItemData"
/> />
@ -43,6 +44,10 @@ export default {
auditState: { auditState: {
type: Number, type: Number,
required: true required: true
},
isSendMessage: {
type: Boolean,
required: true
} }
}, },
data() { data() {
@ -52,8 +57,7 @@ export default {
isRender: false, isRender: false,
trialId: '', trialId: '',
readingTaskState: 0, readingTaskState: 0,
userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1, userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1
state: [14, 30].includes(zzSessionStorage.getItem('userTypeEnumInt') * 1) ? this.auditState : 2
} }
}, },
mounted() { mounted() {
@ -67,7 +71,6 @@ export default {
if (!valid) { if (!valid) {
reject() reject()
} else { } else {
this.loading = true
var answers = [] var answers = []
for (const k in this.questionForm) { for (const k in this.questionForm) {
answers.push({ id: k, answer: this.questionForm[k] }) answers.push({ id: k, answer: this.questionForm[k] })
@ -82,10 +85,8 @@ export default {
if (isPrompt) { if (isPrompt) {
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success(this.$t('common:message:savedSuccessfully'))
} }
this.loading = false
resolve() resolve()
}).catch(() => { }).catch(() => {
this.loading = false
reject() reject()
}) })
} }
@ -120,6 +121,13 @@ export default {
}) })
}) })
}, },
validForm() {
return new Promise((resolve) => {
this.$refs['questions'].validate((valid) => {
resolve(valid)
})
})
},
getQuestions() { getQuestions() {
this.loading = true this.loading = true
var questions = [] var questions = []

View File

@ -20,6 +20,7 @@
:question-answer-list="auditInfo.QuestionAnswerList" :question-answer-list="auditInfo.QuestionAnswerList"
:task-medical-review-id="taskMedicalReviewId" :task-medical-review-id="taskMedicalReviewId"
:audit-state="auditInfo.AuditState" :audit-state="auditInfo.AuditState"
:is-send-message="isSendMessage"
/> />
</div> </div>
<div> <div>
@ -34,29 +35,36 @@
:subject-code="auditInfo.SubjectCode" :subject-code="auditInfo.SubjectCode"
:task-blind-name="auditInfo.TaskBlindName" :task-blind-name="auditInfo.TaskBlindName"
@getMedicalAuditList="getMedicalAuditList" @getMedicalAuditList="getMedicalAuditList"
@setIsHaveQuestion="setIsHaveQuestion"
@handleSign="handleSign"
/> />
</div> </div>
</div> </div>
<div class="medical-audit-bottom-btn"> <div class="medical-audit-bottom-btn">
<el-divider /> <el-divider />
<!-- 取消 --> <!-- 取消 -->
<el-button v-if="auditInfo.MedicalReviewInfo" @click="handleCancel"> <!-- <el-button v-if="auditInfo.MedicalReviewInfo" @click="handleCancel">
{{ $t('common:button:cancel') }} {{ $t('common:button:cancel') }}
</el-button> </el-button> -->
<!-- 保存 --> <!-- 保存 -->
<el-button v-if="auditInfo.MedicalReviewInfo && [14, 30].includes(userTypeEnumInt) && auditInfo.AuditState !== 2" type="primary" @click="handleSave"> <!-- <el-button v-if="auditInfo.MedicalReviewInfo && [14, 30].includes(userTypeEnumInt) && auditInfo.AuditState !== 2" type="primary" @click="handleSave">
{{ $t('common:button:save') }} {{ $t('common:button:save') }}
</el-button> -->
<!-- 发起质询 -->
<!-- hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit']) -->
<el-button v-if="hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit']) && !isSendMessage && isHaveQuestion" type="primary" @click="handleLaunch">
{{ $t('trials:medicalFeedback:title:launch') }}
</el-button> </el-button>
<!-- 质询 --> <!-- 质询记录 -->
<el-button v-if="auditInfo.MedicalReviewInfo && isSendMessage" type="primary" @click="handleQc"> <el-button v-if="isSendMessage" type="primary" @click="handleQc">
{{ $t('trials:medicalFeedback:title:qaRecord') }} {{ $t('trials:medicalFeedback:title:qaRecord') }}
</el-button> </el-button>
<!-- 审核完成 --> <!-- 审核完成 -->
<el-button v-if="auditInfo.MedicalReviewInfo && [14, 30].includes(userTypeEnumInt) && auditInfo.AuditState !== 2" type="primary" @click="handleAudit"> <el-button v-if="hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit']) && (isHaveQuestion === false || (auditInfo.IsClosedDialog && isSendMessage)) && auditInfo.AuditState !== 2" type="primary" @click="handleAudit">
{{ $t('trials:medicalFeedback:button:auditCompleted') }} {{ $t('trials:medicalFeedback:button:auditCompleted') }}
</el-button> </el-button>
<!-- 跳过 -->
<el-button v-if="auditInfo.MedicalReviewInfo && [14, 30].includes(userTypeEnumInt) && auditInfo.AuditState !== 2" type="primary" @click="getNextTask"> <el-button v-if="hasPermi(['trials:trials-panel:reading:mim-medical-audit:edit']) && auditInfo.AuditState !== 2" type="primary" @click="getNextTask">
{{ $t('trials:medicalFeedback:button:nextTask') }} {{ $t('trials:medicalFeedback:button:nextTask') }}
</el-button> </el-button>
</div> </div>
@ -130,7 +138,8 @@ export default {
currentUser: zzSessionStorage.getItem('userName'), currentUser: zzSessionStorage.getItem('userName'),
signVisible: false, signVisible: false,
userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1, userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1,
isSendMessage: false isSendMessage: false,
isHaveQuestion: false
} }
}, },
mounted() { mounted() {
@ -146,59 +155,69 @@ export default {
getMedicalReviewReadingTask(params).then(res => { getMedicalReviewReadingTask(params).then(res => {
this.auditInfo = { ...res.Result } this.auditInfo = { ...res.Result }
this.isSendMessage = res.Result.IsSendMessage this.isSendMessage = res.Result.IsSendMessage
this.isHaveQuestion = res.Result.MedicalReviewInfo.IsHaveQuestion
this.loading = false this.loading = false
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
}) })
}, },
handleAudit() { handleAudit() {
if (!this.$refs['auditConclusions'].isClosedDialog && this.$refs['auditConclusions'].form.IsHaveQuestion) { if (this.$refs['auditConclusions'].isClosedDialog && this.$refs['auditConclusions'].form.IsHaveQuestion) {
// this.isSendMessage = this.$refs['auditConclusions'].form.IsHaveQuestion
this.$alert(this.$t('trials:medicalFeedback:message:closeQC'), { this.handleSign()
callback: action => {} } else if (!this.$refs['auditConclusions'].form.IsHaveQuestion) {
}) const loading = this.$loading({ fullscreen: true })
return
}
this.loading = true
this.$refs['auditIssues'].handleSave(false).then(() => { this.$refs['auditIssues'].handleSave(false).then(() => {
this.$refs['auditConclusions'].handleSave(false).then(() => { this.$refs['auditConclusions'].handleSave(false).then(() => {
this.loading = false
this.isSendMessage = this.$refs['auditConclusions'].form.IsHaveQuestion this.isSendMessage = this.$refs['auditConclusions'].form.IsHaveQuestion
this.handleSign()
loading.close()
}).catch(() => {
loading.close()
})
}).catch(() => {
loading.close()
})
}
},
handleSign() {
const { MedicalAudit } = const_.processSignature const { MedicalAudit } = const_.processSignature
this.signCode = MedicalAudit this.signCode = MedicalAudit
this.signVisible = true this.signVisible = true
}).catch(() => {
this.loading = false
})
}).catch(() => {
this.loading = false
})
// Promise.all([this.$refs['auditIssues'].handleSave(false), this.$refs['auditConclusions'].handleSave(false)])
// .then(() => {
// this.loading = false
// const { MedicalAudit } = const_.processSignature
// this.signCode = MedicalAudit
// this.signVisible = true
// }).catch(() => {
// this.loading = false
// })
}, },
handleSave() { handleSave() {
this.loading = true const loading = this.$loading({ fullscreen: true })
this.$refs['auditIssues'].handleSave(false).then(() => { this.$refs['auditIssues'].handleSave(false).then(() => {
this.$refs['auditConclusions'].handleSave(false).then(() => { this.$refs['auditConclusions'].handleSave(false).then(() => {
this.loading = false
this.isSendMessage = this.$refs['auditConclusions'].form.IsHaveQuestion this.isSendMessage = this.$refs['auditConclusions'].form.IsHaveQuestion
this.$emit('getList')
loading.close()
}).catch(() => { }).catch(() => {
this.loading = false loading.close()
}) })
}).catch(() => { }).catch(() => {
this.loading = false loading.close()
}) })
}, },
async handleLaunch() {
var auditIssuesValid = await this.$refs['auditIssues'].validForm()
var auditConclusionsValid = await this.$refs['auditConclusions'].validForm()
if (auditIssuesValid && auditConclusionsValid) {
this.$confirm('当前审核结论为“有问题”,是否发起质询?', {
type: 'warning',
distinguishCancelAndClose: true
})
.then(() => {
this.handleSave()
}).catch(() => {})
}
},
handleQc() { handleQc() {
this.$refs['auditConclusions'].handleReply() this.$refs['auditConclusions'].handleReply()
}, },
setIsHaveQuestion(isHaveQuestion) {
this.isHaveQuestion = isHaveQuestion
},
// //
getNextTask() { getNextTask() {
this.loading = true this.loading = true

View File

@ -504,10 +504,37 @@
@refresh="refresh" @refresh="refresh"
/> />
</el-dialog> </el-dialog>
<!--签名框 -->
<el-dialog
v-if="signVisible"
:visible.sync="signVisible"
:close-on-click-modal="false"
width="600px"
custom-class="base-dialog-wrapper"
append-to-body
>
<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>
</BaseContainer> </BaseContainer>
</template> </template>
<script> <script>
import { getTrialSiteSelect, getMIMMedicalReviewTaskList, getNextMedicalReviewTask } from '@/api/trials' import { getTrialSiteSelect, getMIMMedicalReviewTaskList, getNextMedicalReviewTask, FinishMedicalReview } from '@/api/trials'
import { getTrialCriterionList } from '@/api/trials/reading' import { getTrialCriterionList } from '@/api/trials/reading'
import { getDoctorUserSelectList } from '@/api/trials/reading' import { getDoctorUserSelectList } from '@/api/trials/reading'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
@ -516,7 +543,8 @@ import Pagination from '@/components/Pagination'
import MedicalAudit from './components/MedicalAudit' import MedicalAudit from './components/MedicalAudit'
import ChatForm from './components/ChatForm' import ChatForm from './components/ChatForm'
import CloseQC from './components/CloseQC' import CloseQC from './components/CloseQC'
import SignForm from '@/views/trials/components/newSignForm'
import const_ from '@/const/sign-code'
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
PageIndex: 1, PageIndex: 1,
@ -537,7 +565,7 @@ const searchDataDefault = () => {
} }
export default { export default {
name: 'MIMMedicalAudit', name: 'MIMMedicalAudit',
components: { BaseContainer, Pagination, MedicalAudit, ChatForm, CloseQC }, components: { BaseContainer, Pagination, MedicalAudit, ChatForm, CloseQC, SignForm },
data() { data() {
return { return {
list: [], list: [],
@ -555,7 +583,11 @@ export default {
TrialReadingCriterionId: '0', TrialReadingCriterionId: '0',
trialCriterionList: [], trialCriterionList: [],
closeQuestionVisible: false, closeQuestionVisible: false,
readingWindow: null readingWindow: null,
signText: '',
signCode: null,
currentUser: zzSessionStorage.getItem('userName'),
signVisible: false
} }
}, },
watch: { watch: {
@ -583,6 +615,9 @@ export default {
refresh() { refresh() {
this.isClosedDialog = true this.isClosedDialog = true
this.$refs['chatForm'].getMessageList() this.$refs['chatForm'].getMessageList()
const { MedicalAudit } = const_.processSignature
this.signCode = MedicalAudit
this.signVisible = true
}, },
handleCloseReply() { handleCloseReply() {
this.closeQuestionVisible = true this.closeQuestionVisible = true
@ -604,6 +639,46 @@ export default {
this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
}).catch(() => {}) }).catch(() => {})
}, },
//
closeSignDialog(isSign, signInfo) {
if (isSign) {
this.signConfirm(signInfo)
} else {
this.signVisible = false
}
},
//
signConfirm(signInfo) {
this.loading = true
const params = {
data: {
taskMedicalReviewId: this.currentRow.Id
},
signInfo: signInfo
}
FinishMedicalReview(params).then(res => {
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$refs['signForm'].btnLoading = false
this.signVisible = false
this.chatForm.visible = false
}
this.loading = false
this.getList()
.then(() => {
this.loading = true
this.$emit('nextTask', this.taskMedicalReviewId)
})
.catch(action => {
})
}).catch(_ => {
this.loading = false
if (this.$refs['signForm']) {
this.$refs['signForm'].btnLoading = false
}
})
},
handleView(row) { handleView(row) {
this.currentRow = { ...row } this.currentRow = { ...row }
this.auditVisible = true this.auditVisible = true
@ -622,9 +697,9 @@ export default {
this.currentRow = { ...row } this.currentRow = { ...row }
this.auditVisible = true this.auditVisible = true
// 访 // 访
if (row.ReadingCategory === 1) { // if (row.ReadingCategory === 1) {
this.handleViewReadingPage(row) // this.handleViewReadingPage(row)
} // }
} else { } else {
// '' // ''
this.$alert(this.$t('trials:medicalFeedback:message:confirmTemplate'), { this.$alert(this.$t('trials:medicalFeedback:message:confirmTemplate'), {

View File

@ -346,7 +346,7 @@
<el-button <el-button
circle circle
:title="$t('trials:pmMedicalReview:action:view')" :title="$t('trials:pmMedicalReview:action:view')"
:disabled="scope.row.IsInvalid || scope.row.AuditState !== 2" :disabled="scope.row.IsInvalid "
icon="el-icon-view" icon="el-icon-view"
@click="handleReadMecialAudit(scope.row)" @click="handleReadMecialAudit(scope.row)"
/> />

View File

@ -176,7 +176,7 @@
<div> <div>
{{ $t('trials:readingPeriod:table:clinicalInfo2') }} {{ $t('trials:readingPeriod:table:clinicalInfo2') }}
</div> </div>
<el-link type="danger" v-if="(scope.row.Data[i-1].IsVisit && otherInfo.IsExistsSubjectClinicalData && scope.row.Data[i-1].IsBaseLine) ||(scope.row.Data[i-1].IsVisit && otherInfo.IsExistsVisitClinicalData) || (!scope.row.Data[i-1].IsVisit && otherInfo.IsExistsReadingClinicalData) || (!scope.row.Data[i-1].IsVisit && otherInfo.IsExistsOncologyReadClinicalData)" @click="handleView(scope.row,scope.row.Data[i-1])"> <el-link type="danger" v-if="(scope.row.Data[i-1].IsVisit && otherInfo.IsExistsSubjectClinicalData && scope.row.Data[i-1].IsBaseLine) ||(scope.row.Data[i-1].IsVisit && otherInfo.IsExistsVisitClinicalData) || (!scope.row.Data[i-1].IsVisit && otherInfo.IsExistsReadingClinicalData && scope.row.Data[i-1].ModuleType === 3) || (!scope.row.Data[i-1].IsVisit && otherInfo.IsExistsOncologyReadClinicalData && scope.row.Data[i-1].ModuleType === 5)" @click="handleView(scope.row,scope.row.Data[i-1])">
{{ $t('trials:readingPeriod:button:view') }} {{ $t('trials:readingPeriod:button:view') }}
</el-link> </el-link>
<span v-else>{{ $t('trials:readingPeriod:table:noCD') }}</span> <span v-else>{{ $t('trials:readingPeriod:table:noCD') }}</span>