소스 검색

纯水机取消四舍五入

wy 4 달 전
부모
커밋
b69222b97f
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/views/component/facility/facilityData.vue

+ 9 - 0
src/views/component/facility/facilityData.vue

@@ -303,14 +303,23 @@ export default {
         culXiuZheng () {
             if (!this.isCul) return
             if (this.readonly) return
+            const self = this
             this.forms.forEach(item => {
                 if (item.value) {
+                  if(self.formData.leiXing === '纯水机'){ //task 5573
+                    if (item.fixValue) {
+                        item.result = (+item.fixValue + +item.value)
+                    } else {
+                        item.result = (+item.value)
+                    }
+                  }else{
                     if (item.fixValue) {
                         item.result = (+item.fixValue + +item.value).toFixed(this.config)
                     } else {
                         item.result = (+item.value).toFixed(this.config)
                     }
                     item.status = this.getStatus(item.range, item.result)
+                  }
                 } else {
                     item.result = ''
                     item.status = ''