脾尖、脾底标注添加限制

uat_us
caiyiling 2024-03-28 15:37:06 +08:00
parent 1a9f6c37b8
commit 711373075c
5 changed files with 35 additions and 7 deletions

View File

@ -148,8 +148,8 @@ export default {
} else { } else {
this.tableData = Object.assign([], this.arr) this.tableData = Object.assign([], this.arr)
} }
console.log(JSON.stringify(this.$path)) // console.log(JSON.stringify(this.$path))
console.log(JSON.stringify(this.tableData)) // console.log(JSON.stringify(this.tableData))
} }
} }
} }

View File

@ -325,12 +325,17 @@ export default {
closeSignDialog(isSave) { closeSignDialog(isSave) {
this.signVisible = false this.signVisible = false
if (isSave) { if (isSave) {
this.currentIsConfirm = true
this.$confirm(this.$t('trials:self-attachment:message:nextDocument')).then(res => { this.$confirm(this.$t('trials:self-attachment:message:nextDocument')).then(res => {
getNextUnSignDocument({ getNextUnSignDocument({
TrialId: this.trialId TrialId: this.trialId
}).then(res => { }).then(res => {
if (!res.Result) { if (!res.Result) {
this.currentIsConfirm = true //
this.$confirm(this.$t('trials:self-attachment:message:closeDocument')).then(() => {
this.previewVisible = false
}).catch(()=>{})
} else { } else {
this.handleSign(res.Result) this.handleSign(res.Result)
} }

View File

@ -152,7 +152,7 @@
<!-- <span style="color:#409eff;cursor: pointer" @click="previewImages(answers.RowId)"> <!-- <span style="color:#409eff;cursor: pointer" @click="previewImages(answers.RowId)">
{{ $t('trials:lugano:button:suvscreenshot') }} {{ $t('trials:lugano:button:suvscreenshot') }}
</span> --> </span> -->
<el-button type="text" @click="previewImages(answers.RowId)">{{ $t('trials:lugano:button:suvscreenshot') }}</el-button> <el-button v-if="!isBaseLineTask" type="text" @click="previewImages(answers.RowId)">{{ $t('trials:lugano:button:suvscreenshot') }}</el-button>
</div> </div>
</template> </template>
<el-input <el-input

View File

@ -261,11 +261,14 @@ export default {
this.$alert(this.$t('trials:lugano:message:saveWarning'), this.$t('trials:lugano:fusionDialog:warning')) this.$alert(this.$t('trials:lugano:message:saveWarning'), this.$t('trials:lugano:fusionDialog:warning'))
return return
} }
var currentSpleenStatus = this.questionForm[this.spleenStatusId] var currentSpleenStatus = this.questionForm[this.spleenStatusId]
var currentSpleenLength = this.questionForm[this.spleenLengthId] var currentSpleenLength = this.questionForm[this.spleenLengthId]
currentSpleenStatus = isNaN(parseInt(currentSpleenStatus)) ? null : parseInt(currentSpleenStatus) currentSpleenStatus = isNaN(parseInt(currentSpleenStatus)) ? null : parseInt(currentSpleenStatus)
var stIdx = this.measurements.findIndex(i => i.QuestionType === 60) var stIdx = this.measurements.findIndex(i => i.QuestionType === 60)
var slIdx = this.measurements.findIndex(i => i.QuestionType === 61) var slIdx = this.measurements.findIndex(i => i.QuestionType === 61)
var chenckVaild = this.checkAnnotationValid(stIdx, slIdx)
if (currentSpleenLength && currentSpleenStatus === 5) { if (currentSpleenLength && currentSpleenStatus === 5) {
// '!' // '!'
this.$alert(this.$t('trials:lugano:message:validSpleen1'), this.$t('trials:lugano:fusionDialog:warning'), { this.$alert(this.$t('trials:lugano:message:validSpleen1'), this.$t('trials:lugano:fusionDialog:warning'), {
@ -280,6 +283,11 @@ export default {
this.$alert(this.$t('trials:lugano:message:validSpleen2'), this.$t('trials:lugano:fusionDialog:warning'), { this.$alert(this.$t('trials:lugano:message:validSpleen2'), this.$t('trials:lugano:fusionDialog:warning'), {
callback: _ => {} callback: _ => {}
}) })
} else if (!chenckVaild) {
//
this.$alert(this.$t('trials:lugano:message:validSpleen3'), this.$t('trials:lugano:fusionDialog:warning'), {
callback: _ => {}
})
} else { } else {
this.saveQuestionsList() this.saveQuestionsList()
} }
@ -357,6 +365,19 @@ export default {
} }
} }
}, },
checkAnnotationValid(stIdx, slIdx) {
var isValid = true
if (stIdx > -1 && slIdx > -1 && this.measurements[stIdx].MeasureData && this.measurements[slIdx].MeasureData) {
var stSeriesId = this.measurements[stIdx].SeriesId
var stInstanceId = this.measurements[stIdx].InstanceId
var slSeriesId = this.measurements[slIdx].SeriesId
var slInstanceId = this.measurements[slIdx].InstanceId
if (!(stSeriesId && stInstanceId && slSeriesId && slInstanceId && stSeriesId === slSeriesId && stInstanceId !== slInstanceId)) {
isValid = false
}
}
return isValid
},
setSpleenCommentDisplay() { setSpleenCommentDisplay() {
if (this.spleenCommentsId && this.spleenStatusId) { if (this.spleenCommentsId && this.spleenStatusId) {
for (let i = 0; i < this.questions[0].Childrens.length; i++) { for (let i = 0; i < this.questions[0].Childrens.length; i++) {

View File

@ -781,7 +781,7 @@ export default {
var bodyPartTypes = this.form.BodyPartTypeList.map(i => { var bodyPartTypes = this.form.BodyPartTypeList.map(i => {
return this.$fd('Bodypart', i) return this.$fd('Bodypart', i)
}) })
this.form.BodyPartTypes = bodyPartTypes.toString().replaceAll(',', ' | ') this.form.BodyPartTypes = bodyPartTypes.join(' | ')
this.bodyPartListVisible = false this.bodyPartListVisible = false
}, },
// //
@ -791,7 +791,9 @@ export default {
this.loading = true this.loading = true
// //
var params = Object.assign({}, this.form) var params = Object.assign({}, this.form)
console.log(this.form.BodyPartTypeList)
params.BodyPartTypes = this.form.BodyPartTypeList.toString().replaceAll(',', ' | ') params.BodyPartTypes = this.form.BodyPartTypeList.toString().replaceAll(',', ' | ')
configTrialBasicInfo(params).then(res => { configTrialBasicInfo(params).then(res => {
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
@ -981,7 +983,7 @@ export default {
this.form.ModalityListStr = this.form.ModalityList.toString().replaceAll(',', ' | ') this.form.ModalityListStr = this.form.ModalityList.toString().replaceAll(',', ' | ')
this.form.BodyPartTypeList = this.form.BodyPartTypes.split('|') this.form.BodyPartTypeList = this.form.BodyPartTypes.split('|')
var bodyPartTypes = this.form.BodyPartTypeList.map(i => { var bodyPartTypes = this.form.BodyPartTypeList.map(i => {
return this.$fd('Bodypart', i) return this.$fd('Bodypart', i.trim())
}) })
this.form.BodyPartTypes = bodyPartTypes.toString().replaceAll(',', ' | ') this.form.BodyPartTypes = bodyPartTypes.toString().replaceAll(',', ' | ')
// this.form.ClinicalDataSetNamesStr = this.form.ClinicalDataSetNames.join(', ') // this.form.ClinicalDataSetNamesStr = this.form.ClinicalDataSetNames.join(', ')