|
|
@@ -276,6 +276,7 @@
|
|
|
|
|
|
this.allPrice += item.totalPrice;
|
|
|
});
|
|
|
+ this.allPrice = Number(this.allPrice.toFixed(2));
|
|
|
this.$emit('setCountAmount', this.allPrice);
|
|
|
this.$emit('setTotalPlanNum', totalCount);
|
|
|
},
|
|
|
@@ -284,6 +285,7 @@
|
|
|
async putTableValue(productList) {
|
|
|
if (productList) {
|
|
|
this.form.datasource = productList;
|
|
|
+ this.allPrice = productList?.reduce((acc, item) => acc + item.totalPrice, 0).toFixed(2) || 0;
|
|
|
this.$refs.table.reload();
|
|
|
}
|
|
|
},
|