...
|
...
|
@@ -81,7 +81,7 @@ const getUserReturn = (uid, page) => { |
|
|
let paginationOpts = false;
|
|
|
|
|
|
if (result && result.data) {
|
|
|
data = camelCase(result.data);
|
|
|
data = result.data;// camelCase(result.data);
|
|
|
|
|
|
paginationOpts = data.total > pageSize ? {
|
|
|
paginationOpts: {
|
...
|
...
|
@@ -93,20 +93,20 @@ const getUserReturn = (uid, page) => { |
|
|
|
|
|
data.list.forEach(item => {
|
|
|
item.orderGoods = item.goods;
|
|
|
item.createTime = item.orderCreateTime;
|
|
|
item.createTime = item.order_create_time;
|
|
|
item.hidePrice = true;
|
|
|
item.showStatus = true;
|
|
|
item.refundStr = refundStr[item.refundType];
|
|
|
item.detailUrl = helpers.urlFormat(urlIndex[item.refundType], {
|
|
|
item.refundStr = refundStr[item.refund_type];
|
|
|
item.detailUrl = helpers.urlFormat(urlIndex[item.refund_type], {
|
|
|
orderCode: item.id
|
|
|
});
|
|
|
item.type = typeIndex[item.refundType];
|
|
|
item.type = typeIndex[item.refund_type];
|
|
|
|
|
|
item.orderGoods.forEach(good => {
|
|
|
let cnAlphabet = good.cnAlphabet ? good.cnAlphabet : '';
|
|
|
let cnAlphabet = good.cn_alphabet ? good.cn_alphabet : '';
|
|
|
|
|
|
good.hidePrice = true;
|
|
|
good.goodUrl = helpers.urlFormat(`/product/pro_${good.productId}_${good.goodsId}/${cnAlphabet}.html`); // eslint-disable-line
|
|
|
good.goodUrl = helpers.urlFormat(`/product/pro_${good.product_id}_${good.goods_id}/${cnAlphabet}.html`); // eslint-disable-line
|
|
|
});
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -615,12 +615,12 @@ const getChangeGoodsList = (orderCode, uid) => { |
|
|
* @return { Object } 模板渲染换货数据
|
|
|
*/
|
|
|
const _setExchangeDetailData = (data) => {
|
|
|
data = camelCase(data);
|
|
|
// data = camelCase(data);
|
|
|
let list = {};
|
|
|
|
|
|
switch (data.status) {
|
|
|
case 0:
|
|
|
if (data.deliveryTpyeName === '寄回换货') {
|
|
|
if (data.delivery_tpye_name === '寄回换货') {
|
|
|
Object.assign(list, {
|
|
|
audit: true,
|
|
|
reminder: true,
|
...
|
...
|
@@ -646,7 +646,7 @@ const _setExchangeDetailData = (data) => { |
|
|
location: true
|
|
|
});
|
|
|
|
|
|
if (data.deliveryTpyeName === '寄回换货') {
|
|
|
if (data.delivery_tpye_name === '寄回换货') {
|
|
|
Object.assign(list, {
|
|
|
logistics: true,
|
|
|
sendBack: true,
|
...
|
...
|
@@ -660,7 +660,7 @@ const _setExchangeDetailData = (data) => { |
|
|
|
|
|
break;
|
|
|
case 20:
|
|
|
if (data.deliveryTpyeName === '寄回换货') {
|
|
|
if (data.delivery_tpye_name === '寄回换货') {
|
|
|
Object.assign(list, {
|
|
|
logistics: true
|
|
|
});
|
...
|
...
|
@@ -669,15 +669,15 @@ const _setExchangeDetailData = (data) => { |
|
|
list.reminder = true;
|
|
|
list.inDoor = true;
|
|
|
list.auditSuccess = true;
|
|
|
list.view = `/me/order/detail/?orderCode=${data.orderCode}`;
|
|
|
list.view = `/me/order/detail/?orderCode=${data.order_code}`;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
case 30:
|
|
|
if (data.deliveryTpyeName === '寄回换货') {
|
|
|
if (data.delivery_tpye_name === '寄回换货') {
|
|
|
list.takeGoods = true;
|
|
|
list.auditSuccess = true;
|
|
|
list.view = `/me/order/detail/?orderCode=${data.orderCode}`;
|
|
|
list.view = `/me/order/detail/?orderCode=${data.order_code}`;
|
|
|
} else {
|
|
|
list.takeGoods = true;
|
|
|
}
|
...
|
...
|
@@ -687,14 +687,14 @@ const _setExchangeDetailData = (data) => { |
|
|
send: true,
|
|
|
doubt: true,
|
|
|
auditSuccess: true,
|
|
|
view: `/me/order/detail/?orderCode=${data.orderCode}`
|
|
|
view: `/me/order/detail/?orderCode=${data.order_code}`
|
|
|
});
|
|
|
break;
|
|
|
case 40:
|
|
|
Object.assign(list, {
|
|
|
finish: true,
|
|
|
auditSuccess: true,
|
|
|
view: `/me/order/detail/?orderCode=${data.orderCode}`
|
|
|
view: `/me/order/detail/?orderCode=${data.order_code}`
|
|
|
});
|
|
|
break;
|
|
|
case 91:
|
...
|
...
|
@@ -746,7 +746,7 @@ const getExchangeDetailData = (id, uid) => { |
|
|
exchangeData.exchangeDetail,
|
|
|
_setReturnStatus(data.statusList),
|
|
|
_setExchangeDetailData(data),
|
|
|
camelCase(data)
|
|
|
data// camelCase(data)
|
|
|
);
|
|
|
}
|
|
|
|
...
|
...
|
|