Эх сурвалжийг харах

纯水机取消四舍五入

wy 4 сар өмнө
parent
commit
b69222b97f

+ 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 = ''