阅片标准更改

uat
caiyiling 2025-05-21 09:48:54 +08:00
parent 38fb56e09e
commit 4ae2504278
4 changed files with 32 additions and 9 deletions

View File

@ -208,6 +208,8 @@
:question-form="questionForm"
:reading-task-state="readingTaskState"
:visitTaskId="visitTaskId"
@resetFormItemData="resetFormItemData"
@setFormItemData="setFormItemData"
/>
</div>
</template>
@ -266,6 +268,7 @@ export default {
},
methods: {
formItemChange(v, question) {
console.log('formItemChange')
if (question.Childrens.length > 0) {
this.resetChild(question.Childrens)
} else {

View File

@ -31,6 +31,8 @@
:question-form="outerForm"
:reading-task-state="readingTaskState"
:visit-task-id="visitTaskId"
@resetFormItemData="resetOuterFormItemData"
@setFormItemData="setOuterFormItemData"
/>
<el-form-item v-if="readingTaskState < 2">
<div class="outer_form-footer">
@ -337,6 +339,12 @@ export default {
}
})
return formData
},
resetOuterFormItemData(v) {
this.$set(this.outerForm, v, null)
},
setOuterFormItemData(obj) {
},
//
async getTableQuestions() {
@ -350,6 +358,7 @@ export default {
const res = await getReadingQuestionAndAnswer(params)
if (res.IsSuccess) {
this.tableQuestions = res.Result.SinglePage
this.innerFormData = {}
res.Result.SinglePage.forEach(group => {
group.Childrens.forEach(table => {
const tableKey = table.Id
@ -523,7 +532,7 @@ export default {
}
// 线<10mm<10mm
if (!this.isBaseLineTask && ((obj.toolName === 'Length' && length < 10) || (obj.toolName === 'Bidirectional' && short < 10))) {
const stateId = this.getQuestionId(7)
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
if (innerForm.IsLymphNodes) {
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
@ -609,7 +618,7 @@ export default {
}
// 线<10mm<10mm
if (!this.isBaseLineTask && ((toolName === 'Length' && length < 10) || (toolName === 'Bidirectional' && short < 10))) {
const stateId = this.getQuestionId(7)
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
if (isLymphNodes) {
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
@ -788,7 +797,7 @@ export default {
this.$emit('removeAnnotation', obj)
}
//
this.getTableQuestions()
await this.getTableQuestions()
this.$emit('getAnnotations', this.visitTaskId)
// ''
this.$message.success(this.$t('common:message:deletedSuccessfully'))

View File

@ -208,6 +208,8 @@
:question-form="questionForm"
:reading-task-state="readingTaskState"
:visitTaskId="visitTaskId"
@resetFormItemData="resetFormItemData"
@setFormItemData="setFormItemData"
/>
</div>
</template>

View File

@ -31,6 +31,8 @@
:question-form="outerForm"
:reading-task-state="readingTaskState"
:visit-task-id="visitTaskId"
@resetFormItemData="resetOuterFormItemData"
@setFormItemData="setOuterFormItemData"
/>
<el-form-item v-if="readingTaskState < 2">
<div class="outer_form-footer">
@ -337,6 +339,12 @@ export default {
}
})
return formData
},
resetOuterFormItemData(v) {
this.$set(this.outerForm, v, null)
},
setOuterFormItemData(obj) {
},
//
async getTableQuestions() {
@ -350,6 +358,7 @@ export default {
const res = await getReadingQuestionAndAnswer(params)
if (res.IsSuccess) {
this.tableQuestions = res.Result.SinglePage
this.innerFormData = {}
res.Result.SinglePage.forEach(group => {
group.Childrens.forEach(table => {
const tableKey = table.Id
@ -417,6 +426,7 @@ export default {
})
})
}
console.log(this.innerFormData)
loading.close()
} catch (e) {
console.log(e)
@ -534,7 +544,7 @@ export default {
}
// 线<10mm<10mm
if (!this.isBaseLineTask && ((obj.toolName === 'Length' && length < 10) || (obj.toolName === 'Bidirectional' && short < 10))) {
const stateId = this.getQuestionId(7)
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
if (innerForm.IsLymphNodes) {
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
@ -568,7 +578,6 @@ export default {
}
},
modifyAnnotation(obj) {
console.log('modifyAnnotation')
const { annotation, toolName } = obj
const formData = Object.values(this.innerFormData).find(
i => i.LesionName === annotation.data.label
@ -625,7 +634,7 @@ export default {
}
// 线<10mm<10mm
if (!this.isBaseLineTask && ((toolName === 'Length' && length < 10) || (toolName === 'Bidirectional' && short < 10))) {
const stateId = this.getQuestionId(7)
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
if (isLymphNodes) {
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
@ -805,7 +814,7 @@ export default {
this.$emit('removeAnnotation', obj)
}
//
this.getTableQuestions()
await this.getTableQuestions()
this.$emit('getAnnotations', this.visitTaskId)
// ''
this.$message.success(this.$t('common:message:deletedSuccessfully'))
@ -835,9 +844,9 @@ export default {
let loading = null
try {
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
if (table.LesionType === 0 && this.isBaseLineTask && !innerForm.IsLymphNodes && !innerForm.IntrahepaticLesion) {
if (table.LesionType === 0 && this.isBaseLineTask && !innerForm.IntrahepaticLesion) {
const arr = Object.values(this.innerFormData).filter(
obj => !obj.IsLymphNodes && obj.LesionType === 0 && obj.LesionName !== innerForm.LesionName
obj => obj.LesionType === 0 && obj.LesionName !== innerForm.LesionName
)
if (arr.length === 0 && !innerForm.RowId) {
const confirm = await this.$confirm(