...
|
...
|
@@ -36,7 +36,7 @@ const ORDER_OP_ALL = [ |
|
|
type: 'closeOrder',
|
|
|
name: '取消订单',
|
|
|
cancelOrder: true,
|
|
|
hrefFun: () => 'javascript:void(0)'
|
|
|
hrefFun: () => 'javascript:void(0)' // eslint-disable-line
|
|
|
},
|
|
|
{
|
|
|
type: 'buyNow',
|
...
|
...
|
@@ -48,13 +48,13 @@ const ORDER_OP_ALL = [ |
|
|
type: 'getExpress',
|
|
|
name: '查看物流',
|
|
|
express: true,
|
|
|
hrefFun: () => 'javascript:void(0)'
|
|
|
hrefFun: () => 'javascript:void(0)' // eslint-disable-line
|
|
|
},
|
|
|
{
|
|
|
type: 'confirm',
|
|
|
name: '确认订单',
|
|
|
confirmReceived: true,
|
|
|
hrefFun: () => 'javascript:void(0)'
|
|
|
hrefFun: () => 'javascript:void(0)' // eslint-disable-line
|
|
|
},
|
|
|
{
|
|
|
type: 'delOrder',
|
...
|
...
|
@@ -108,7 +108,7 @@ const ORDER_OP_ALL = [ |
|
|
type: 'refundApply',
|
|
|
name: '申请退款',
|
|
|
refund: true,
|
|
|
hrefFun: () => 'javascript:void(0)'
|
|
|
hrefFun: () => 'javascript:void(0)' // eslint-disable-line
|
|
|
},
|
|
|
{
|
|
|
type: 'deposit',
|
...
|
...
|
@@ -600,10 +600,13 @@ const _getPackageInfo = (cartInfo) => { |
|
|
return [];
|
|
|
}
|
|
|
|
|
|
return _.get(cartInfo, 'package_list', []).map((pack, i) => {
|
|
|
let newPack = {};
|
|
|
|
|
|
newPack.title = (pack.supplier_id === 0) ? `包裹${i}:总仓发货` : `包裹${i}:异地调拨`;
|
|
|
return _.get(cartInfo, 'package_list', []).map((pack) => {
|
|
|
let newPack = {
|
|
|
supplierId: pack.supplier_id,
|
|
|
fee: pack.shopping_cost === '0.00' ? '' : pack.shopping_cost,
|
|
|
orign: pack.shopping_orig_cost,
|
|
|
count: pack.shopping_cut_cost
|
|
|
};
|
|
|
|
|
|
newPack.goodlist = _.get(pack, 'goods_list', []).map((good) => {
|
|
|
let tagInfo = ChannelConfig.orderTagArr[good.goods_type] || '';
|
...
|
...
|
@@ -616,10 +619,6 @@ const _getPackageInfo = (cartInfo) => { |
|
|
};
|
|
|
});
|
|
|
|
|
|
newPack.fee = pack.shopping_cost === '0.00' ? '' : pack.shopping_cost;
|
|
|
newPack.orign = pack.shopping_orig_cost;
|
|
|
newPack.count = pack.shopping_cut_cost;
|
|
|
|
|
|
return newPack;
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -757,7 +756,7 @@ const _getOrderDetail = co(function * (uid, orderId) { |
|
|
orderDetail.is_cancel, orderDetail.payment_status, orderDetail.payment_type,
|
|
|
orderDetail.order_type, orderDetail.attribute, orderDetail.refund_status);
|
|
|
|
|
|
detail.package = _getPackageInfo(orderDetail);
|
|
|
detail.packages = _getPackageInfo(orderDetail);
|
|
|
|
|
|
// 判断是否可以修改地址
|
|
|
if (orderDetail.can_update_delivery_address === 'Y') {
|
...
|
...
|
|