| | |
| | | let checkValue = Number(this.formData.fcheckResu); |
| | | let minValue = Number(this.formData.minValue); |
| | | let maxValue = Number(this.formData.maxValue); |
| | | let standardValue = Number(this.formData.standardValue); |
| | | |
| | | // 添加新的验证:检查上限值和下限值与标准值的关系 |
| | | if (this.formData.standardValue != null) { |
| | | if (maxValue < standardValue) { |
| | | this.$showMessage("上限值过小,应大于等于标准值"); |
| | | return; |
| | | } |
| | | if (minValue > standardValue) { |
| | | this.$showMessage("下限值过大,应小于等于标准值"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (isNaN(checkValue) || isNaN(minValue) || isNaN(maxValue)) { |
| | | this.$showMessage("检验值或范围值格式不正确,请检查输入"); |
| | |
| | | let checkValue = Number(this.editData.fcheckResu); |
| | | let minValue = Number(this.formData.minValue); |
| | | let maxValue = Number(this.formData.maxValue); |
| | | let standardValue = Number(this.formData.standardValue); |
| | | |
| | | // 添加新的验证:检查上限值和下限值与标准值的关系 |
| | | if (this.formData.standardValue != null) { |
| | | if (maxValue < standardValue) { |
| | | this.$showMessage("上限值过小,应大于等于标准值"); |
| | | return; |
| | | } |
| | | if (minValue > standardValue) { |
| | | this.$showMessage("下限值过大,应小于等于标准值"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (isNaN(checkValue) || isNaN(minValue) || isNaN(maxValue)) { |
| | | this.$showMessage("检验值或范围值格式不正确,请检查输入"); |