|
@@ -90,7 +90,6 @@ class AfterSaleService extends CrudService {
|
|
} else if (_.get(update, 'status') === '!1') {
|
|
} else if (_.get(update, 'status') === '!1') {
|
|
update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
}
|
|
}
|
|
-
|
|
|
|
// 4.修改订单状态
|
|
// 4.修改订单状态
|
|
await this.refundOrder(entity, this.tran);
|
|
await this.refundOrder(entity, this.tran);
|
|
} else if (type === '2') {
|
|
} else if (type === '2') {
|
|
@@ -105,6 +104,8 @@ class AfterSaleService extends CrudService {
|
|
await this.refundOrder(entity, this.tran);
|
|
await this.refundOrder(entity, this.tran);
|
|
// 结束时间
|
|
// 结束时间
|
|
update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
|
|
+ } else if (uStatus === '!2') {
|
|
|
|
+ update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
}
|
|
}
|
|
} else if (type === '3') {
|
|
} else if (type === '3') {
|
|
// 换货,不需要退款
|
|
// 换货,不需要退款
|
|
@@ -118,6 +119,8 @@ class AfterSaleService extends CrudService {
|
|
if (cr && sr) {
|
|
if (cr && sr) {
|
|
update.status = '-3';
|
|
update.status = '-3';
|
|
update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
|
|
+ } else if (uStatus === '!3') {
|
|
|
|
+ update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
}
|
|
}
|
|
} else if (type === '4') {
|
|
} else if (type === '4') {
|
|
// 取消订单: 退钱,退货(退库存)----不过不需要有快递信息,没发货,退优惠券
|
|
// 取消订单: 退钱,退货(退库存)----不过不需要有快递信息,没发货,退优惠券
|