...
|
...
|
@@ -557,11 +557,19 @@ const getChangeGoodsList = (orderCode, uid) => { |
|
|
data.hidePrice = true;
|
|
|
data.orderCode = orderCode;
|
|
|
|
|
|
// 设置特殊原因
|
|
|
_.forEach(data.specialExchangeReason, r => {
|
|
|
_.find(data.exchangeReason, {id: r.id}).isSpecial = true;
|
|
|
});
|
|
|
|
|
|
if (data.goodsList) {
|
|
|
data.goodsList.forEach(good => {
|
|
|
let cnAlphabet = good.cnAlphabet ? good.cnAlphabet : '';
|
|
|
|
|
|
good.showCheckbox = true;
|
|
|
good.hidePrice = true;
|
|
|
good.buyNumber = 1;
|
|
|
good.goodUrl = helpers.urlFormat(`/product/pro_${good.productId}_${good.goodsId}/${cnAlphabet}.html`); //eslint-disable-line
|
|
|
});
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -582,7 +590,6 @@ const getChangeGoodsList = (orderCode, uid) => { |
|
|
const _setExchangeDetailData = (data) => {
|
|
|
data = camelCase(data);
|
|
|
|
|
|
// console.log(data)
|
|
|
let list = {};
|
|
|
|
|
|
switch (data.status) {
|
...
|
...
|
@@ -623,7 +630,7 @@ const _setExchangeDetailData = (data) => { |
|
|
}
|
|
|
|
|
|
break;
|
|
|
case 20:
|
|
|
case 20:
|
|
|
|
|
|
if (data.deliveryTpyeName === '寄回换货') {
|
|
|
Object.assign(list, {
|
...
|
...
|
|