与基线摄取值变化bug修复

uat_us
caiyiling 2024-04-19 11:09:16 +08:00
parent 8618b188ae
commit 3646acf378
1 changed files with 11 additions and 7 deletions

View File

@ -574,13 +574,17 @@ export default {
}, },
setUptakeFormBaseline() { setUptakeFormBaseline() {
// 线 // 线
if (!this.isBaseLineTask && this.questionForm[this.pet5PSId] > 0) { if (!this.isBaseLineTask) {
// 访PET 5ps线PET 5ps if (this.questionForm[this.pet5PSId] > 0) {
// 访PET 5ps线PET 5ps // 访PET 5ps线PET 5ps
if (this.questionForm[this.pet5PSId] > this.baseLinePET5PS) { // 访PET 5ps线PET 5ps
this.questionForm[this.uptakeFromBaselineId] = '1' if (this.questionForm[this.pet5PSId] > this.baseLinePET5PS) {
} else if (this.questionForm[this.pet5PSId] < this.baseLinePET5PS) { this.questionForm[this.uptakeFromBaselineId] = '1'
this.questionForm[this.uptakeFromBaselineId] = '2' } else if (this.questionForm[this.pet5PSId] < this.baseLinePET5PS) {
this.questionForm[this.uptakeFromBaselineId] = '2'
}
} else if (this.questionForm[this.pet5PSId] === '' || this.questionForm[this.pet5PSId] === null) {
this.questionForm[this.uptakeFromBaselineId] = ''
} }
} }
}, },