|
@@ -425,12 +425,15 @@ export default {
|
|
}
|
|
}
|
|
this.orderInfo.orderProducts.splice(index, 1, {
|
|
this.orderInfo.orderProducts.splice(index, 1, {
|
|
...row,
|
|
...row,
|
|
- estimatePrice: estimatePrice,
|
|
|
|
- serviceAmount: serviceAmount
|
|
|
|
|
|
+ estimatePrice: Number(estimatePrice.toFixed(2)),
|
|
|
|
+ serviceAmount: Number(serviceAmount.toFixed(2))
|
|
})
|
|
})
|
|
- this.orderInfo.serviceAmount = this.orderInfo.orderProducts
|
|
|
|
- .map(item => item.serviceAmount || 0)
|
|
|
|
- .reduce((a, b) => a + b, 0)
|
|
|
|
|
|
+ this.orderInfo.serviceAmount = Number(
|
|
|
|
+ this.orderInfo.orderProducts
|
|
|
|
+ .map(item => item.serviceAmount || 0)
|
|
|
|
+ .reduce((a, b) => a + b, 0)
|
|
|
|
+ .toFixed(2)
|
|
|
|
+ )
|
|
},
|
|
},
|
|
getVfyKey_hs(index, bool = true) {
|
|
getVfyKey_hs(index, bool = true) {
|
|
return [
|
|
return [
|