From 14c2ea96c041e1aee6f650cfd35fee5da9d22a9b Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Mon, 31 Oct 2022 10:53:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/services/order/order-manage.service.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app/services/order/order-manage.service.ts b/src/app/services/order/order-manage.service.ts index f79710d..39287b6 100644 --- a/src/app/services/order/order-manage.service.ts +++ b/src/app/services/order/order-manage.service.ts @@ -33,7 +33,19 @@ export class OrderManageService { * @param callBack 回调 */ public refundOrder(orderNo: string, remarks: string, callBack) { - this.http.post(environment.orderUrl + 'refundOrder', { orderNo: orderNo, remarks: remarks}).subscribe(data => { + this.http.post(environment.orderUrl + 'refund', { orderNo: orderNo, remarks: remarks}).subscribe(data => { + callBack(data); + }); + } + + /** + * 子订单商品退款 + * + * @param paramsObject 参数 + * @param callBack 回调 + */ + public refundChild(childOrderNo: string, refundGoodsNum: number, remarks: string, callBack) { + this.http.post(environment.orderUrl + 'refundChild', { orderNo: childOrderNo, refundGoodsNum: refundGoodsNum, remarks: remarks}).subscribe(data => { callBack(data); }); }