| | |
| | | return 0; |
| | | } |
| | | }); |
| | | |
| | | // 排序后自动跳转到第一个标签 |
| | | this.currentTab = 0; |
| | | if (this.tabs.length > 0) { |
| | | this.id = this.tabs[0].id; |
| | | this.refreshResult(); |
| | | } |
| | | } else { |
| | | // 没有项目时至少添加当前项目到标签 |
| | | this.tabs = [{id: this.id, projName: this.formData.projName || '当前项目'}]; |
| | |
| | | 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("检验值或范围值格式不正确,请检查输入"); |