...
|
...
|
@@ -105,6 +105,12 @@ const ORDER_OP_ALL = [ |
|
|
hrefFun: it => helpers.urlFormat('/home/orders/detail', {orderCode: it})
|
|
|
},
|
|
|
{
|
|
|
type: 'refund',
|
|
|
name: '申请退款',
|
|
|
refund: true,
|
|
|
hrefFun: () => 'javascript:void(0)'
|
|
|
},
|
|
|
{
|
|
|
type: 'deposit',
|
|
|
name: '定金预售商品只能在APP端操作',
|
|
|
deposit: true,
|
...
|
...
|
@@ -764,6 +770,14 @@ const closeReason = () => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
const refundReason = () => {
|
|
|
return orderApi.refundReason().then((result) => {
|
|
|
return _.get(result, 'data', []);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
const refund = orderApi.refund;
|
|
|
|
|
|
const detail = co(function * (uid, orderId) {
|
|
|
let apiData = yield Promise.props({
|
|
|
detailData: _getOrderDetail(uid, orderId),
|
...
|
...
|
@@ -794,5 +808,7 @@ module.exports = { |
|
|
detail,
|
|
|
getOrders,
|
|
|
closeReason,
|
|
|
express
|
|
|
express,
|
|
|
refund,
|
|
|
refundReason
|
|
|
}; |
...
|
...
|
|