diff --git a/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.html b/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.html index 66ea9bf..190e209 100644 --- a/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.html +++ b/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.html @@ -274,7 +274,7 @@ @@ -424,31 +424,44 @@ - + - 产品单号 - 退款单号 - 产品类型 - 产品名称 - 产品规格 - 退款数量 - 退款总额 - 退款金额 - 退款积分 - 退款备注 - 退款状态 - 创建时间 - 退款时间 + 交易单号 + 产品单号 + 客户电话 + 产品类型 + 产品名称 + 退款单号 + 退款数量 + 退款总额 + 退回金额 + 退回积分 + 退款状态 + 创建时间 + 退款时间 + 退款备注 - - {{ data.goodsType | orderChildGoodsType}} - {{ data.goodsSpecName }} - {{ data.saleCount }} - {{ data.goodsActualPrice }} 元 - {{ data.totalActualPrice }} 元 + + {{data.orderNo}} + {{data.orderChildNo}} + {{data.memPhone}} + {{data.goodsType | orderChildGoodsType}} + {{data.goodsName}} + {{data.refundOrderNo}} + {{data.refundGoodsNum}} + ¥{{data.returnTotalPrice}} + ¥{{data.refundPrice}} + {{data.refundIntegral}} + {{data.refundStatus | orderRefundStatus}} + {{data.createTime | date : 'yyyy-MM-dd HH:mm:ss'}} + {{data.refundTime | date : 'yyyy-MM-dd HH:mm:ss'}} + {{data.refundRemark}} diff --git a/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.ts b/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.ts index df5d0da..c61f2d3 100644 --- a/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.ts +++ b/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.ts @@ -38,6 +38,7 @@ export class OrderOilListComponent implements OnInit { refundModal = false; refundForm: FormGroup; + refundRefundRecordArray = []; refundRecordModal = false; @@ -56,6 +57,9 @@ export class OrderOilListComponent implements OnInit { tyAgentArray = []; tySalesmanArray = []; + // 退款按钮权限 + REFUND_OIL_BTN = false; + constructor(private modal: NzModalService, private message: NzMessageService, private commonsService: CommonsService, @@ -73,6 +77,7 @@ export class OrderOilListComponent implements OnInit { } ngOnInit(): void { + this.REFUND_OIL_BTN = this.commonsService.isBtnCompetence("BTN_REFUND_OIL_BTN"); this.refundForm = this.form.group({ orderNo: [{ value: null, disabled: true}, [Validators.required]], remarks: [null], @@ -382,22 +387,27 @@ export class OrderOilListComponent implements OnInit { this.refundModal = false; } - /** * 打开退款记录模态框 * @param orderNo */ showRefundRecord(orderNo: string) { - this.refundModal = true; + this.orderManageService.getRefundList({orderNo: orderNo, pageNum:1, pageSize: 99}, data => { + if (data['return_code'] === '000000') { + this.refundRefundRecordArray = data['return_data']['list']; + } else { + this.modal.error(data['return_msg']); + } + }); + this.refundRecordModal = true; } - /** * 关闭退款记录模态框 * @param orderNo */ closeRefundRecord() { - this.refundModal = false; + this.refundRecordModal = false; } }