脾脏状态自动计算调整

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

@ -255,7 +255,7 @@ export default {
this.petctWindow = window.open(routeData.href, '_blank') this.petctWindow = window.open(routeData.href, '_blank')
this.$emit('close') this.$emit('close')
}, },
handleCancel(){ handleCancel() {
this.$emit('close') this.$emit('close')
}, },
handleTaskIdChange(v) { handleTaskIdChange(v) {

View File

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