影像质控时,检查删除了,不需要对必填信息做校验;并且在查看所有影像时,对于影像数为0的情况,需要处理
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
187947177a
commit
9b4f4d4419
|
@ -771,7 +771,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="function-wrapper">
|
<div class="function-wrapper">
|
||||||
<!-- 保存 -->
|
<!-- 保存 -->
|
||||||
<el-button :disabled="isAudit" size="small" type="primary" round @click="handleSave">
|
<el-button :disabled="isAudit" size="small" type="primary" round @click="handleSave(false)">
|
||||||
{{ $t('trials:audit:button:save') }}
|
{{ $t('trials:audit:button:save') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 发质疑 -->
|
<!-- 发质疑 -->
|
||||||
|
@ -871,7 +871,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeName: this.data.DicomStudyCount > 0 ? 'dicom' : 'none-dicom',
|
activeName: this.data.DicomStudyCount > 0 ? 'dicom' : this.data.NoneDicomStudyCount > 0 ? 'none-dicom' : 'dicom',
|
||||||
questionForm: {},
|
questionForm: {},
|
||||||
qCQuestionAnswerList: [],
|
qCQuestionAnswerList: [],
|
||||||
studyList: [],
|
studyList: [],
|
||||||
|
@ -1185,10 +1185,14 @@ export default {
|
||||||
},
|
},
|
||||||
// 保存审核问题
|
// 保存审核问题
|
||||||
handleSave(isMessage) {
|
handleSave(isMessage) {
|
||||||
return new Promise((resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
this.$refs['questions']
|
try {
|
||||||
.submit()
|
let res = null
|
||||||
.then((res) => {
|
if (isMessage) {
|
||||||
|
res = await this.$refs['questions'].submit()
|
||||||
|
} else {
|
||||||
|
res = await this.$refs['questions'].save()
|
||||||
|
}
|
||||||
var answerList = []
|
var answerList = []
|
||||||
res.forEach((item) => {
|
res.forEach((item) => {
|
||||||
var index = this.qCQuestionAnswerList.findIndex(
|
var index = this.qCQuestionAnswerList.findIndex(
|
||||||
|
@ -1226,11 +1230,10 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
resolve(false)
|
resolve(false)
|
||||||
})
|
})
|
||||||
})
|
} catch (err) {
|
||||||
.catch(() => {
|
console.log(err)
|
||||||
this.loading = false
|
|
||||||
resolve(false)
|
resolve(false)
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 保存质疑
|
// 保存质疑
|
||||||
|
@ -1658,11 +1661,11 @@ export default {
|
||||||
hasStudyNameList = []
|
hasStudyNameList = []
|
||||||
var isgoList = []
|
var isgoList = []
|
||||||
this.studyList.forEach((v) => {
|
this.studyList.forEach((v) => {
|
||||||
if (!v.BodyPartForEdit) {
|
if (!v.BodyPartForEdit && !v.IsDeleted) {
|
||||||
isgo = false
|
isgo = false
|
||||||
isgoList.push(v.StudyCode)
|
isgoList.push(v.StudyCode)
|
||||||
}
|
}
|
||||||
if (this.relationInfo.IsShowStudyName && !v.StudyName) {
|
if (this.relationInfo.IsShowStudyName && !v.StudyName && !v.IsDeleted) {
|
||||||
hasStudyName = false
|
hasStudyName = false
|
||||||
hasStudyNameList.push(v.StudyCode)
|
hasStudyNameList.push(v.StudyCode)
|
||||||
}
|
}
|
||||||
|
@ -1699,7 +1702,7 @@ export default {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var isVerify = await this.handleSave(true)
|
var isVerify = await this.handleSave(true)
|
||||||
if (!isVerify) {
|
if (!isVerify) {
|
||||||
return
|
return this.loading = false
|
||||||
}
|
}
|
||||||
// 验证是否关闭所有质疑
|
// 验证是否关闭所有质疑
|
||||||
verifyCanQCPassedOrFailed(this.trialId, this.data.Id)
|
verifyCanQCPassedOrFailed(this.trialId, this.data.Id)
|
||||||
|
|
|
@ -1,20 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<el-form
|
<el-form v-if="isRender" ref="questionForm" size="small" :model="questionForm" style="width:100%;">
|
||||||
v-if="isRender"
|
<qSFormItem v-for="question of questions" :key="question.Id" :question="question" :question-form="questionForm"
|
||||||
ref="questionForm"
|
:is-audit="isAudit" @resetFormItemData="resetFormItemData" />
|
||||||
size="small"
|
|
||||||
:model="questionForm"
|
|
||||||
style="width:100%;"
|
|
||||||
>
|
|
||||||
<qSFormItem
|
|
||||||
v-for="question of questions"
|
|
||||||
:key="question.Id"
|
|
||||||
:question="question"
|
|
||||||
:question-form="questionForm"
|
|
||||||
:is-audit="isAudit"
|
|
||||||
@resetFormItemData="resetFormItemData"
|
|
||||||
/>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -121,8 +109,16 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
save() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
var answers = []
|
||||||
|
for (const k in this.questionForm) {
|
||||||
|
answers.push({ Id: k, answer: this.questionForm[k] })
|
||||||
|
}
|
||||||
|
resolve(answers)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue