...
|
...
|
@@ -263,8 +263,8 @@ const getOrderRefund = (orderCode, uid) => { |
|
|
const saveRefund = (req, uid) => {
|
|
|
let process = function*() {
|
|
|
let orderCode = req.body.orderCode,
|
|
|
goods = req.body.goods,
|
|
|
payment = req.body.payment;
|
|
|
goods = JSON.parse(req.body.goods),
|
|
|
payment = JSON.parse(req.body.payment);
|
|
|
|
|
|
|
|
|
if (_.isEmpty(orderCode) || orderCode < 1 ||
|
...
|
...
|
@@ -294,8 +294,8 @@ const saveRefund = (req, uid) => { |
|
|
|
|
|
if (_.get(result, 'code') === 200) {
|
|
|
// 退货成功发送站内信
|
|
|
let da = yield returnAPI.sendMessage(uid, title, content);
|
|
|
console.log(da);
|
|
|
returnAPI.sendMessage(uid, title, content);
|
|
|
|
|
|
result.data.refer = helpers.urlFormat('/home/returns/refundSuccess', {orderCode: orderCode});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -323,7 +323,6 @@ const getRefundDetail = (applyId, uid) => { |
|
|
let data = result[0].data;
|
|
|
let detail = {
|
|
|
isChange: false,
|
|
|
returnId: applyId,
|
|
|
orderNum: data.source_order_code,
|
|
|
nowStatus: data.status_name,
|
|
|
applyTime: data.create_time,
|
...
|
...
|
@@ -335,6 +334,7 @@ const getRefundDetail = (applyId, uid) => { |
|
|
if (+data.status !== 0) {
|
|
|
detail.express = {
|
|
|
id: _.get(data, 'notice.express_id', ''),
|
|
|
returnId: applyId,
|
|
|
company: _.get(data, 'notice.express_company', ''),
|
|
|
number: _.get(data, 'notice.express_number', '')
|
|
|
};
|
...
|
...
|
@@ -384,7 +384,6 @@ const getChangeDetail = (applyId, uid) => { |
|
|
let data = result[0].data;
|
|
|
let detail = {
|
|
|
isChange: true,
|
|
|
returnId: applyId,
|
|
|
orderNum: data.source_order_code,
|
|
|
nowStatus: data.status_name,
|
|
|
applyTime: data.create_time,
|
...
|
...
|
@@ -394,6 +393,7 @@ const getChangeDetail = (applyId, uid) => { |
|
|
if (+data.status !== 0 && +data.delivery_tpye !== 20) {
|
|
|
detail.express = {
|
|
|
id: _.get(data, 'notice.express_id', ''),
|
|
|
returnId: applyId,
|
|
|
company: _.get(data, 'notice.express_company', ''),
|
|
|
number: _.get(data, 'notice.express_number', ''),
|
|
|
expressDeadLine: _.get(data, 'notice.date', '')
|
...
|
...
|
|