Authored by zhangxiaoru

exchange

... ... @@ -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, {
... ...
.returns-wrap {
.table {
width: 100%;
max-width: 990px;
.header {
.info {
width: 496px;
text-align: left;
}
.st,
.op,
.change-reason,
.change-num {
width: 206px;
}
}
&.returns {
.good-info {
border: none;
.detail {
width: 380px !important;
}
}
}
.goods-container {
.for-return {
display: block;
}
}
.no-price {
.good-info {
border-right: none;
.detail {
width: 408px;
}
}
}
.sub-column {
width: 204px !important;
}
.checkbox-column {
display: table-cell;
width: 100px;
}
.common-column {
width: 208px;
.refund-status {
margin-bottom: 10px;
}
.refund-type {
position: static;
}
&.no-border {
width: 204px !important;
}
}
}
.blk-pagination {
text-align: center;
}
}
... ...