阅片标准更改
parent
38fb56e09e
commit
4ae2504278
|
@ -208,6 +208,8 @@
|
||||||
:question-form="questionForm"
|
:question-form="questionForm"
|
||||||
:reading-task-state="readingTaskState"
|
:reading-task-state="readingTaskState"
|
||||||
:visitTaskId="visitTaskId"
|
:visitTaskId="visitTaskId"
|
||||||
|
@resetFormItemData="resetFormItemData"
|
||||||
|
@setFormItemData="setFormItemData"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -266,6 +268,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formItemChange(v, question) {
|
formItemChange(v, question) {
|
||||||
|
console.log('formItemChange')
|
||||||
if (question.Childrens.length > 0) {
|
if (question.Childrens.length > 0) {
|
||||||
this.resetChild(question.Childrens)
|
this.resetChild(question.Childrens)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
:question-form="outerForm"
|
:question-form="outerForm"
|
||||||
:reading-task-state="readingTaskState"
|
:reading-task-state="readingTaskState"
|
||||||
:visit-task-id="visitTaskId"
|
:visit-task-id="visitTaskId"
|
||||||
|
@resetFormItemData="resetOuterFormItemData"
|
||||||
|
@setFormItemData="setOuterFormItemData"
|
||||||
/>
|
/>
|
||||||
<el-form-item v-if="readingTaskState < 2">
|
<el-form-item v-if="readingTaskState < 2">
|
||||||
<div class="outer_form-footer">
|
<div class="outer_form-footer">
|
||||||
|
@ -337,6 +339,12 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return formData
|
return formData
|
||||||
|
},
|
||||||
|
resetOuterFormItemData(v) {
|
||||||
|
this.$set(this.outerForm, v, null)
|
||||||
|
},
|
||||||
|
setOuterFormItemData(obj) {
|
||||||
|
|
||||||
},
|
},
|
||||||
// 获取表格问题
|
// 获取表格问题
|
||||||
async getTableQuestions() {
|
async getTableQuestions() {
|
||||||
|
@ -350,6 +358,7 @@ export default {
|
||||||
const res = await getReadingQuestionAndAnswer(params)
|
const res = await getReadingQuestionAndAnswer(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.tableQuestions = res.Result.SinglePage
|
this.tableQuestions = res.Result.SinglePage
|
||||||
|
this.innerFormData = {}
|
||||||
res.Result.SinglePage.forEach(group => {
|
res.Result.SinglePage.forEach(group => {
|
||||||
group.Childrens.forEach(table => {
|
group.Childrens.forEach(table => {
|
||||||
const tableKey = table.Id
|
const tableKey = table.Id
|
||||||
|
@ -523,7 +532,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
||||||
if (!this.isBaseLineTask && ((obj.toolName === 'Length' && length < 10) || (obj.toolName === 'Bidirectional' && short < 10))) {
|
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) {
|
if (innerForm.IsLymphNodes) {
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
||||||
|
@ -609,7 +618,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
||||||
if (!this.isBaseLineTask && ((toolName === 'Length' && length < 10) || (toolName === 'Bidirectional' && short < 10))) {
|
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) {
|
if (isLymphNodes) {
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
||||||
|
@ -788,7 +797,7 @@ export default {
|
||||||
this.$emit('removeAnnotation', obj)
|
this.$emit('removeAnnotation', obj)
|
||||||
}
|
}
|
||||||
// 刷新表格问题
|
// 刷新表格问题
|
||||||
this.getTableQuestions()
|
await this.getTableQuestions()
|
||||||
this.$emit('getAnnotations', this.visitTaskId)
|
this.$emit('getAnnotations', this.visitTaskId)
|
||||||
// '删除成功!'
|
// '删除成功!'
|
||||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
|
|
|
@ -208,6 +208,8 @@
|
||||||
:question-form="questionForm"
|
:question-form="questionForm"
|
||||||
:reading-task-state="readingTaskState"
|
:reading-task-state="readingTaskState"
|
||||||
:visitTaskId="visitTaskId"
|
:visitTaskId="visitTaskId"
|
||||||
|
@resetFormItemData="resetFormItemData"
|
||||||
|
@setFormItemData="setFormItemData"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
:question-form="outerForm"
|
:question-form="outerForm"
|
||||||
:reading-task-state="readingTaskState"
|
:reading-task-state="readingTaskState"
|
||||||
:visit-task-id="visitTaskId"
|
:visit-task-id="visitTaskId"
|
||||||
|
@resetFormItemData="resetOuterFormItemData"
|
||||||
|
@setFormItemData="setOuterFormItemData"
|
||||||
/>
|
/>
|
||||||
<el-form-item v-if="readingTaskState < 2">
|
<el-form-item v-if="readingTaskState < 2">
|
||||||
<div class="outer_form-footer">
|
<div class="outer_form-footer">
|
||||||
|
@ -337,6 +339,12 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return formData
|
return formData
|
||||||
|
},
|
||||||
|
resetOuterFormItemData(v) {
|
||||||
|
this.$set(this.outerForm, v, null)
|
||||||
|
},
|
||||||
|
setOuterFormItemData(obj) {
|
||||||
|
|
||||||
},
|
},
|
||||||
// 获取表格问题
|
// 获取表格问题
|
||||||
async getTableQuestions() {
|
async getTableQuestions() {
|
||||||
|
@ -350,6 +358,7 @@ export default {
|
||||||
const res = await getReadingQuestionAndAnswer(params)
|
const res = await getReadingQuestionAndAnswer(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.tableQuestions = res.Result.SinglePage
|
this.tableQuestions = res.Result.SinglePage
|
||||||
|
this.innerFormData = {}
|
||||||
res.Result.SinglePage.forEach(group => {
|
res.Result.SinglePage.forEach(group => {
|
||||||
group.Childrens.forEach(table => {
|
group.Childrens.forEach(table => {
|
||||||
const tableKey = table.Id
|
const tableKey = table.Id
|
||||||
|
@ -417,6 +426,7 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
console.log(this.innerFormData)
|
||||||
loading.close()
|
loading.close()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
@ -534,7 +544,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
||||||
if (!this.isBaseLineTask && ((obj.toolName === 'Length' && length < 10) || (obj.toolName === 'Bidirectional' && short < 10))) {
|
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) {
|
if (innerForm.IsLymphNodes) {
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
||||||
|
@ -568,7 +578,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
modifyAnnotation(obj) {
|
modifyAnnotation(obj) {
|
||||||
console.log('modifyAnnotation')
|
|
||||||
const { annotation, toolName } = obj
|
const { annotation, toolName } = obj
|
||||||
const formData = Object.values(this.innerFormData).find(
|
const formData = Object.values(this.innerFormData).find(
|
||||||
i => i.LesionName === annotation.data.label
|
i => i.LesionName === annotation.data.label
|
||||||
|
@ -625,7 +634,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
||||||
if (!this.isBaseLineTask && ((toolName === 'Length' && length < 10) || (toolName === 'Bidirectional' && short < 10))) {
|
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) {
|
if (isLymphNodes) {
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
||||||
|
@ -805,7 +814,7 @@ export default {
|
||||||
this.$emit('removeAnnotation', obj)
|
this.$emit('removeAnnotation', obj)
|
||||||
}
|
}
|
||||||
// 刷新表格问题
|
// 刷新表格问题
|
||||||
this.getTableQuestions()
|
await this.getTableQuestions()
|
||||||
this.$emit('getAnnotations', this.visitTaskId)
|
this.$emit('getAnnotations', this.visitTaskId)
|
||||||
// '删除成功!'
|
// '删除成功!'
|
||||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
|
@ -835,9 +844,9 @@ export default {
|
||||||
let loading = null
|
let loading = null
|
||||||
try {
|
try {
|
||||||
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
|
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(
|
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) {
|
if (arr.length === 0 && !innerForm.RowId) {
|
||||||
const confirm = await this.$confirm(
|
const confirm = await this.$confirm(
|
||||||
|
|
Loading…
Reference in New Issue