问题描述:
平台手动退款有赠品金额显示问题。
解决方法:
src/pages/order/orderList/components/tableList.vue,找到这个文件,对照修改getOnlyrefundData方法。
getOnlyrefundData(id, refund_type) {
let _info = this.rowActive._info;
let cart_info = Object.keys(_info).map((key) => {
return _info[key].cart_info;
}).filter((value) => {
return !value.is_gift;
});
cart_info.forEach((value) => {
value.refundPrice = this.$computes.Div(value.refund_price, value.cart_num);
value.refundNum = value.cart_num - value.refund_num;
value._disabled = !value.refundNum;
});
this.refundProduct = cart_info;
if (this.refundProductNum === 1) {
this.refundSelection = cart_info;
}
this.refundModal = true;
},
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}