啊鑫
2025-09-24 da245c6f1995c5668866184d8068794c27622f62
pages/QC/XJ/detail.vue
@@ -76,7 +76,7 @@
              <view class="info-value">{{ formData.result }}</view>
            </view>
            <view v-if="formData.remarks" class="info-item">
              <view class="info-label">不合格描述</view>
              <view class="info-label">备注</view>
              <view class="info-value danger">{{ formData.remarks }}</view>
            </view>
          </view>
@@ -104,7 +104,7 @@
              </button>
              <button class="btn upload-btn" @click="saveRemarks">
                <uni-icons color="#fff" size="16" type="compose"></uni-icons>
                不合格描述
                备注
              </button>
            </view>
          </view>
@@ -118,7 +118,7 @@
              </button>
              <button class="btn upload-btn" @click="saveRemarks">
                <uni-icons color="#fff" size="16" type="compose"></uni-icons>
                不合格描述
                备注
              </button>
            </view>
            <view class="input-wrapper" style="margin-top: 15px;">
@@ -181,14 +181,14 @@
        </view>
      </view>
      <!-- 弹出层 - 不合格描述 -->
      <!-- 弹出层 - 备注 -->
      <view v-if="remarksPopup" class="overlay">
        <view class="popup">
          <h3>修改不合格描述</h3>
          <h3>修改备注</h3>
          <form>
            <view class="form-group">
              <label class="form-label">不合格描述:</label>
              <input v-model="remarks" class="form-input" placeholder="请输入不合格描述" type="text"/>
              <label class="form-label">备注:</label>
              <input v-model="remarks" class="form-input" placeholder="请输入备注" type="text"/>
            </view>
            <view class="popup-buttons">
              <button class="btn primary-btn" type="warn" @click="editRemarks">修改</button>
@@ -299,8 +299,16 @@
          return;
        }
        if (this.formData.fcheckResu >= this.formData.minValue && this.formData.fcheckResu <= this.formData
            .maxValue) {
        let checkValue = Number(this.formData.fcheckResu);
        let minValue = Number(this.formData.minValue);
        let maxValue = Number(this.formData.maxValue);
        if (isNaN(checkValue) || isNaN(minValue) || isNaN(maxValue)) {
          this.$showMessage("检验值或范围值格式不正确,请检查输入");
          return;
        }
        if (checkValue >= minValue && checkValue <= maxValue) {
          fstand = "√"
        } else {
          fstand = "×";
@@ -385,8 +393,16 @@
          return;
        }
        if (this.editData.fcheckResu >= this.formData.minValue && this.editData.fcheckResu <= this.formData
            .maxValue) {
        let checkValue = Number(this.editData.fcheckResu);
        let minValue = Number(this.formData.minValue);
        let maxValue = Number(this.formData.maxValue);
        if (isNaN(checkValue) || isNaN(minValue) || isNaN(maxValue)) {
          this.$showMessage("检验值或范围值格式不正确,请检查输入");
          return;
        }
        if (checkValue >= minValue && checkValue <= maxValue) {
          this.editData.isPass = 1
        } else {
          this.editData.isPass = 0