肝分段状态维护
parent
3c664e9ba6
commit
b2ca803f94
|
@ -75,7 +75,7 @@ function getQuestions(questions) {
|
||||||
let isMeasurable = getQuestionAnswer(item.TableQuestions.Questions, 1105, answerObj)
|
let isMeasurable = getQuestionAnswer(item.TableQuestions.Questions, 1105, answerObj)
|
||||||
answerObj.isMeasurable = isMeasurable
|
answerObj.isMeasurable = isMeasurable
|
||||||
answerObj.mean = getQuestionAnswer(item.TableQuestions.Questions, 1104, answerObj)
|
answerObj.mean = getQuestionAnswer(item.TableQuestions.Questions, 1104, answerObj)
|
||||||
answerObj.saveTypeEnum = isNaN(parseFloat(isMeasurable)) ? 1 : 2
|
answerObj.saveTypeEnum = parseInt(isMeasurable) === 1 && isNaN(parseFloat(answerObj.mean)) ? 1 : 2
|
||||||
} else {
|
} else {
|
||||||
answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj)
|
answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj)
|
||||||
answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj)
|
answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj)
|
||||||
|
|
|
@ -273,7 +273,8 @@ export default {
|
||||||
digitPlaces: 2,
|
digitPlaces: 2,
|
||||||
isMeasurableId: '',
|
isMeasurableId: '',
|
||||||
isExitsMarks: false,
|
isExitsMarks: false,
|
||||||
isDisabledMeasurableRadio: false
|
isDisabledMeasurableRadio: false,
|
||||||
|
liverSeg: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -312,17 +313,18 @@ export default {
|
||||||
|
|
||||||
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整
|
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整
|
||||||
let isMeasurable = this.getQuestionVal(1105)
|
let isMeasurable = this.getQuestionVal(1105)
|
||||||
|
const mean = this.getQuestionVal(1104)
|
||||||
if (this.questionForm.saveTypeEnum !== 1) {
|
if (this.questionForm.saveTypeEnum !== 1) {
|
||||||
this.$set(this.questionForm, 'saveTypeEnum', isMeasurable === '' ? 1 : 2)
|
this.$set(this.questionForm, 'saveTypeEnum', parseInt(isMeasurable) === 1 && isNaN(parseFloat(mean)) ? 1 : 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex)
|
this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex)
|
||||||
this.lesionMark = this.getLesionName(this.orderMark, 1101)
|
this.lesionMark = this.getLesionName(this.orderMark, 1101)
|
||||||
this.originalQuestionForm = { ...this.questionForm }
|
this.originalQuestionForm = { ...this.questionForm }
|
||||||
this.markList = []
|
this.markList = []
|
||||||
this.isExitsMarks = false
|
this.isExitsMarks = false
|
||||||
this.isDisabledMeasurableRadio = false
|
this.isDisabledMeasurableRadio = false
|
||||||
|
let seg = this.getQuestionVal(1106)
|
||||||
|
this.liverSeg = this.$fd('LiverSegmentation', seg)
|
||||||
if (this.answers.TableQuestionMarkList) {
|
if (this.answers.TableQuestionMarkList) {
|
||||||
let arr = JSON.parse(this.answers.TableQuestionMarkList)
|
let arr = JSON.parse(this.answers.TableQuestionMarkList)
|
||||||
arr.map(i=>{
|
arr.map(i=>{
|
||||||
|
@ -336,7 +338,7 @@ export default {
|
||||||
this.markList.push({tableQuestionId: i.TableQuestionId, measureData: i, saveEnum: 1})
|
this.markList.push({tableQuestionId: i.TableQuestionId, measureData: i, saveEnum: 1})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const mean = this.getQuestionVal(1104)
|
|
||||||
let newMean = this.getMean()
|
let newMean = this.getMean()
|
||||||
if (newMean !== mean) {
|
if (newMean !== mean) {
|
||||||
let meanId = this.getQuestionId(1104)
|
let meanId = this.getQuestionId(1104)
|
||||||
|
|
|
@ -513,7 +513,7 @@ export default {
|
||||||
item.TableQuestions.Answers.map(t => {
|
item.TableQuestions.Answers.map(t => {
|
||||||
const refName = `${item.Id}_${t.RowIndex}`
|
const refName = `${item.Id}_${t.RowIndex}`
|
||||||
if (this.$refs[refName] && this.$refs[refName][0] && this.$refs[refName][0].questionForm.saveTypeEnum !== 2) {
|
if (this.$refs[refName] && this.$refs[refName][0] && this.$refs[refName][0].questionForm.saveTypeEnum !== 2) {
|
||||||
var lessionName = this.getLesionName(item.OrderMark, t.RowIndex)
|
var lessionName = this.$refs[refName][0].liverSeg
|
||||||
arr.push({ lessionName: lessionName, rowIndex: t.RowIndex, questionId: item.Id })
|
arr.push({ lessionName: lessionName, rowIndex: t.RowIndex, questionId: item.Id })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue