@@ -161,6 +161,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();
}
},