【类 型】:fix
【原 因】:之前订单总价 只计算商品总价 后添订单表添加了两个新字段 打包费 和 运费 实质总价为三者的总和 【过 程】:从接口获取 商品总价 打包费 运费 加起来 【影 响】: # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
132e86d3db
commit
d4c859847e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user