当上传了pet序列图像时,校验提醒上传PET临床数据
parent
16f943dd50
commit
3fbc2710a3
|
@ -506,7 +506,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
dicomUploadInProgress, batchVerifyStudyAllowUpload, getSubjectVisitUploadedStudyList, deleteStudyList, updateModality, preArchiveDicomStudy, addOrUpdateArchiveStudy
|
dicomUploadInProgress, batchVerifyStudyAllowUpload, getSubjectVisitUploadedStudyList, deleteStudyList, updateModality, preArchiveDicomStudy, addOrUpdateArchiveStudy,getCRCClinicalData
|
||||||
} from '@/api/trials'
|
} from '@/api/trials'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import * as dicomParser from 'dicom-parser'
|
import * as dicomParser from 'dicom-parser'
|
||||||
|
@ -538,6 +538,10 @@ export default {
|
||||||
subjectId: {
|
subjectId: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
|
},
|
||||||
|
activeName:{
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -631,8 +635,37 @@ export default {
|
||||||
format(v) {
|
format(v) {
|
||||||
return 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影像
|
// 获取已上传的dicom影像
|
||||||
getStudyInfo() {
|
getStudyInfo(submitFlag=false) {
|
||||||
this.studyLoading = true
|
this.studyLoading = true
|
||||||
getSubjectVisitUploadedStudyList(this.subjectVisitId).then(res => {
|
getSubjectVisitUploadedStudyList(this.subjectVisitId).then(res => {
|
||||||
this.studyList = res.Result
|
this.studyList = res.Result
|
||||||
|
@ -641,7 +674,12 @@ export default {
|
||||||
this.relationInfo.BodyPartTypes ? this.relationInfo.BodyPartTypes.split('|') : []
|
this.relationInfo.BodyPartTypes ? this.relationInfo.BodyPartTypes.split('|') : []
|
||||||
this.trialModalitys =
|
this.trialModalitys =
|
||||||
this.relationInfo.Modalitys ? this.relationInfo.Modalitys.split('|') : []
|
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 })
|
}).catch(() => { this.studyLoading = false })
|
||||||
},
|
},
|
||||||
// 预览单个检查影像
|
// 预览单个检查影像
|
||||||
|
@ -1323,7 +1361,7 @@ export default {
|
||||||
scope.studyErrorList.push(dicomInfo.accNumber)
|
scope.studyErrorList.push(dicomInfo.accNumber)
|
||||||
}
|
}
|
||||||
scope.uploadQueues[index].uploadState.record = Record
|
scope.uploadQueues[index].uploadState.record = Record
|
||||||
scope.getStudyInfo()
|
scope.getStudyInfo(true)
|
||||||
if (scope.$route.path !== '/trials/trials-panel/visit/crc-question') {
|
if (scope.$route.path !== '/trials/trials-panel/visit/crc-question') {
|
||||||
scope.$emit('getList')
|
scope.$emit('getList')
|
||||||
}
|
}
|
||||||
|
|
|
@ -479,7 +479,7 @@
|
||||||
<el-tabs v-model="activeName" type="border-card" style="flex:1;">
|
<el-tabs v-model="activeName" type="border-card" style="flex:1;">
|
||||||
<!-- DICOM影像上传 -->
|
<!-- DICOM影像上传 -->
|
||||||
<el-tab-pane :label="$t('trials:uploadedDicoms:tab:uploadDicoms')" name="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"/>
|
<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>
|
</el-tab-pane>
|
||||||
<!-- 非DICOM影像上传 -->
|
<!-- 非DICOM影像上传 -->
|
||||||
|
|
Loading…
Reference in New Issue