脾脏状态自动计算调整

uat_us
caiyiling 2024-04-07 13:20:02 +08:00
parent edfa41291b
commit b461716195
2 changed files with 7 additions and 22 deletions

View File

@ -647,14 +647,10 @@ export default {
if (this.isBaseLineTask) {
// 130mm
if (length <= 130) {
// this.$set(this.questionForm, this.spleenStatusId, '1')
// this.calculateSpleenStatus = '1'
status = '1'
}
// >130mm
if (length > 130) {
// this.$set(this.questionForm, this.spleenStatusId, '6')
// this.calculateSpleenStatus = '6'
status = '6'
}
} else {
@ -664,21 +660,21 @@ export default {
if (this.spleenInfo.BaseLineSpleenLength) {
percentFormBaseline = diffFromBaseline * 100 / (this.spleenInfo.BaseLineSpleenLength - 130)
}
if (this.spleenInfo.BaseLineSpleenLength > 130 && diffFromBaseline >= 10 && percentFormBaseline > 50) {
if (length <= 130) {
// 访130mm
//
status = '1'
} else if (this.spleenInfo.BaseLineSpleenLength > 130 && diffFromBaseline >= 10 && percentFormBaseline > 50) {
// 1线 >130 mm
// 2线10 mm
// 3线>50
//
// this.$set(this.questionForm, this.spleenStatusId, '4')
// this.calculateSpleenStatus = '4'
status = '4'
} else if (this.spleenInfo.BaseLineSpleenLength <= 130 && diffFromBaseline >= 20 && length > 130) {
// 1线130mm
// 2线20 mm
// 3>130 mm
//
// this.$set(this.questionForm, this.spleenStatusId, '4')
// this.calculateSpleenStatus = '4'
status = '4'
} else if (this.spleenInfo.BaseLineSpleenLength > 130 && this.spleenInfo.LowSpleenLength <= 130 && length - this.spleenInfo.LowSpleenLength >= 20 && length > 130) {
// 1线 >130 mm
@ -686,25 +682,14 @@ export default {
// 320 mm
// 4>130 mm
//
// this.$set(this.questionForm, this.spleenStatusId, '4')
// this.calculateSpleenStatus = '4'
status = '4'
} else if (length < 130) {
// 访130mm
//
// this.$set(this.questionForm, this.spleenStatusId, '1')
// this.calculateSpleenStatus = '1'
status = '1'
} else if (this.spleenInfo.BaseLineState === '6' && percentFormBaseline < -50) {
// 1线
// 2线-50
//
// this.$set(this.questionForm, this.spleenStatusId, '2')
// this.calculateSpleenStatus = '2'
status = '2'
} else {
// this.$set(this.questionForm, this.spleenStatusId, '3')
// this.calculateSpleenStatus = '3'
//
status = '3'
}
}