| | |
| | | <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> |
| | |
| | | </button> |
| | | <button class="btn upload-btn" @click="saveRemarks"> |
| | | <uni-icons color="#fff" size="16" type="compose"></uni-icons> |
| | | 不合格描述 |
| | | 备注 |
| | | </button> |
| | | </view> |
| | | </view> |
| | |
| | | </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;"> |
| | |
| | | </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> |
| | | <label class="form-label">备注:</label> |
| | | <input v-model="remarks" class="form-input" type="text"/> |
| | | </view> |
| | | <view class="popup-buttons"> |
| | |
| | | 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 = "×"; |
| | |
| | | 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 |