|
|
@@ -379,14 +379,20 @@ export default {
|
|
|
const self = this
|
|
|
this.forms.forEach((item) => {
|
|
|
if (item.value) {
|
|
|
- if (item.fixValue) {
|
|
|
- item.result = (+item.fixValue + +item.value).toFixed(this.config)
|
|
|
- } else if(!self.baoliuxiaoshu && self.formData.leiXing === '纯水机') { //绍兴环境,纯水机不需要保留小数
|
|
|
- item.result = item.value
|
|
|
- }
|
|
|
- else {
|
|
|
- item.result = (+item.value).toFixed(this.config)
|
|
|
+ if(!self.baoliuxiaoshu && self.formData.leiXing === '纯水机') { //绍兴环境,纯水机不需要保留小数
|
|
|
+ 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 = ''
|