fcx
4 天以前 6ca81c89d606b5be26c8b8526b191ae8e773167b
pages/QC/SJ/detail.vue
@@ -245,6 +245,13 @@
              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 || '当前项目'}];
@@ -280,19 +287,6 @@
        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("检验值或范围值格式不正确,请检查输入");
@@ -398,19 +392,6 @@
        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("检验值或范围值格式不正确,请检查输入");