【类 型】:fix

【原  因】:之前订单总价 只计算商品总价  后添订单表添加了两个新字段 打包费 和 运费  实质总价为三者的总和
【过  程】:从接口获取 商品总价 打包费  运费 加起来
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
air 2025-01-15 19:06:43 +08:00
parent 132e86d3db
commit d4c859847e

View File

@ -192,12 +192,12 @@ export default {
*/ */
setRefundItem (item, index, refundType) { setRefundItem (item, index, refundType) {
this.tempRefundIndex = index this.tempRefundIndex = index
this.refundTotal_price = item.total_price this.refundTotal_price = Number(item.total_price) + Number(item.transport_price) + Number(item.pack_price)
this.refundApply_price = item.apply_price this.refundApply_price = item.apply_price
if (refundType === 'buyer') { // 退 if (refundType === 'buyer') { // 退
this.refundPrice = item.apply_price this.refundPrice = item.apply_price
} else { // 退 退 退 } else { // 退 退 退 ++
this.refundPrice = item.total_price this.refundPrice = Number(item.total_price) + Number(item.transport_price) + Number(item.pack_price)
} }
this.refundOrder_sn = item.order_sn this.refundOrder_sn = item.order_sn
this.refundShop_id = item.shop_id this.refundShop_id = item.shop_id