当上传了pet序列图像时,校验提醒上传PET临床数据
parent
16f943dd50
commit
3fbc2710a3
|
@ -506,7 +506,7 @@
|
|||
</template>
|
||||
<script>
|
||||
import {
|
||||
dicomUploadInProgress, batchVerifyStudyAllowUpload, getSubjectVisitUploadedStudyList, deleteStudyList, updateModality, preArchiveDicomStudy, addOrUpdateArchiveStudy
|
||||
dicomUploadInProgress, batchVerifyStudyAllowUpload, getSubjectVisitUploadedStudyList, deleteStudyList, updateModality, preArchiveDicomStudy, addOrUpdateArchiveStudy,getCRCClinicalData
|
||||
} from '@/api/trials'
|
||||
import store from '@/store'
|
||||
import * as dicomParser from 'dicom-parser'
|
||||
|
@ -538,6 +538,10 @@ export default {
|
|||
subjectId: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
activeName:{
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
@ -631,8 +635,37 @@ export default {
|
|||
format(v) {
|
||||
return v
|
||||
},
|
||||
// 获取临床数据
|
||||
getClinicalData() {
|
||||
// this.data.TrialId = this.$route.query.trialId
|
||||
var param = {
|
||||
subjectVisitId: this.subjectVisitId,
|
||||
trialId: this.trialId,
|
||||
subjectId: this.data.SubjectId,
|
||||
isBaseLine: this.data.IsBaseLine
|
||||
}
|
||||
getCRCClinicalData(param).then(res => {
|
||||
if(res.IsSuccess){
|
||||
let flag = res.Result.some(item=>item.ClinicalDataLevel===4&&item.PDFFileList.length===0)
|
||||
if(flag){
|
||||
this.$confirm(this.$t("trials:crc-upload:confirm:message"), this.$t('trials:uploadDicomList:label:prompt'), {
|
||||
confirmButtonText: this.$t('trials:reviewTrack:impactList:save'),
|
||||
cancelButtonText: this.$t("common:button:cancel"),
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$emit("update:activeName",'clinical-data');
|
||||
}).catch(() => {
|
||||
});
|
||||
}
|
||||
}
|
||||
// this.clinicalDatas = res.Result
|
||||
// this.loading = false
|
||||
}).catch(() => {
|
||||
// this.loading = false
|
||||
})
|
||||
},
|
||||
// 获取已上传的dicom影像
|
||||
getStudyInfo() {
|
||||
getStudyInfo(submitFlag=false) {
|
||||
this.studyLoading = true
|
||||
getSubjectVisitUploadedStudyList(this.subjectVisitId).then(res => {
|
||||
this.studyList = res.Result
|
||||
|
@ -641,7 +674,12 @@ export default {
|
|||
this.relationInfo.BodyPartTypes ? this.relationInfo.BodyPartTypes.split('|') : []
|
||||
this.trialModalitys =
|
||||
this.relationInfo.Modalitys ? this.relationInfo.Modalitys.split('|') : []
|
||||
this.studyLoading = false
|
||||
this.studyLoading = false;
|
||||
let flag = res.Result.some(item=>item.Modalities==='PET-CT'||item.ModalityForEdit==='PET-CT'||item.ModalityForEdit==='CT、PT'||item.Modalities==='CT、PT')
|
||||
console.log(submitFlag,'submitFlag')
|
||||
if(flag&&submitFlag){
|
||||
this.getClinicalData();
|
||||
}
|
||||
}).catch(() => { this.studyLoading = false })
|
||||
},
|
||||
// 预览单个检查影像
|
||||
|
@ -1323,7 +1361,7 @@ export default {
|
|||
scope.studyErrorList.push(dicomInfo.accNumber)
|
||||
}
|
||||
scope.uploadQueues[index].uploadState.record = Record
|
||||
scope.getStudyInfo()
|
||||
scope.getStudyInfo(true)
|
||||
if (scope.$route.path !== '/trials/trials-panel/visit/crc-question') {
|
||||
scope.$emit('getList')
|
||||
}
|
||||
|
|
|
@ -479,7 +479,7 @@
|
|||
<el-tabs v-model="activeName" type="border-card" style="flex:1;">
|
||||
<!-- DICOM影像上传 -->
|
||||
<el-tab-pane :label="$t('trials:uploadedDicoms:tab:uploadDicoms')" name="dicom">
|
||||
<upload-dicom-files2 v-if="uploadVisible2" :data="rowData" :subject-id="rowData.SubjectId" :subject-visit-id="rowData.Id" @getList="getList" @close="closeUpload" />
|
||||
<upload-dicom-files2 v-if="uploadVisible2" :data="rowData" :subject-id="rowData.SubjectId" :subject-visit-id="rowData.Id" @getList="getList" @close="closeUpload" :activeName.sync="activeName"/>
|
||||
<upload-dicom-files v-else :data="rowData" :subject-id="rowData.SubjectId" :subject-visit-id="rowData.Id" @getList="getList" @close="closeUpload" @setOpenWindow="setOpenWindow"/>
|
||||
</el-tab-pane>
|
||||
<!-- 非DICOM影像上传 -->
|
||||
|
|
Loading…
Reference in New Issue