|
@@ -25,10 +25,12 @@
|
|
|
>{{
|
|
|
goodsId != '000'
|
|
|
? 0
|
|
|
- : serviceProductList
|
|
|
- .filter(item => !!~formgengduode.serviceProductList.indexOf(item.dictCode))
|
|
|
- .map(item => item.price)
|
|
|
- .reduce((accumulator, currentValue) => accumulator + currentValue, 0) * formgengduode.year
|
|
|
+ : (
|
|
|
+ serviceProductList
|
|
|
+ .filter(item => !!~formgengduode.serviceProductList.indexOf(item.dictCode))
|
|
|
+ .map(item => item.price)
|
|
|
+ .reduce((accumulator, currentValue) => accumulator + currentValue, 0) * formgengduode.year
|
|
|
+ ).toFixed(2)
|
|
|
}}
|
|
|
</template>
|
|
|
</div>
|
|
@@ -101,10 +103,12 @@
|
|
|
<template v-else>
|
|
|
实付:<span style="font-size: 20px; color: #ff6804">¥</span
|
|
|
><span style="font-size: 36px; color: #ff6804; font-weight: bold">{{
|
|
|
- serviceProductList
|
|
|
- .filter(item => !!~formgengduode.serviceProductList.indexOf(item.dictCode))
|
|
|
- .map(item => item.price)
|
|
|
- .reduce((accumulator, currentValue) => accumulator + currentValue, 0) * formgengduode.year
|
|
|
+ (
|
|
|
+ serviceProductList
|
|
|
+ .filter(item => !!~formgengduode.serviceProductList.indexOf(item.dictCode))
|
|
|
+ .map(item => item.price)
|
|
|
+ .reduce((accumulator, currentValue) => accumulator + currentValue, 0) * formgengduode.year
|
|
|
+ ).toFixed(2)
|
|
|
}}</span>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -143,10 +147,12 @@
|
|
|
<template v-else>
|
|
|
支付金额: <span style="font-size: 20px; color: #ff6804">¥</span
|
|
|
><span style="font-size: 36px; color: #ff6804; font-weight: bold">{{
|
|
|
- serviceProductList
|
|
|
- .filter(item => !!~formgengduode.serviceProductList.indexOf(item.dictCode))
|
|
|
- .map(item => item.price)
|
|
|
- .reduce((accumulator, currentValue) => accumulator + currentValue, 0) * formgengduode.year
|
|
|
+ (
|
|
|
+ serviceProductList
|
|
|
+ .filter(item => !!~formgengduode.serviceProductList.indexOf(item.dictCode))
|
|
|
+ .map(item => item.price)
|
|
|
+ .reduce((accumulator, currentValue) => accumulator + currentValue, 0) * formgengduode.year
|
|
|
+ ).toFixed(2)
|
|
|
}}</span>
|
|
|
</template>
|
|
|
</div>
|