feat: 代客下单更新

This commit is contained in:
2025-03-04 18:05:21 +08:00
parent cff5363260
commit 833676f545
24 changed files with 307 additions and 116 deletions

View File

@@ -137,12 +137,14 @@ const {
//计算订单原金额
function returnOriginAmount(order: OrderInfoVo) {
console.log(order);
let amount = 0;
// order.goods.forEach((item) => {
// amount += item.productPrice * item.number;
// });
return amount;
if (order.originAmount) {
return order.originAmount;
}
order.goods?.forEach((item) => {
amount += item.payAmount * 1;
});
return amount.toFixed(2);
}
// 新增