lrf 2 anni fa
parent
commit
7de789aa4c
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/service/trade/afterSale.js

+ 2 - 0
app/service/trade/afterSale.js

@@ -131,6 +131,8 @@ class AfterSaleService extends CrudService {
         if (uStatus === '-5') {
           refundInfo = await this.returnOrder(entity, this.tran);
           update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
+        } else if (uStatus === '!5') {
+          update.end_time = moment().format('YYYY-MM-DD HH:mm:ss');
         }
       } else throw new BusinessError(ErrorCode.DATA_INVALID, '未知的售后类型,无法处理');
       // 售后处理人的添加