提交退款审核流程

pull/1/head
袁野 3 years ago
parent 8bac92c3bf
commit 0b02da68cc
  1. 2
      src/app/admin/audit/audit-coupon/audit-coupon.component.html
  2. 2
      src/app/admin/audit/audit-routing.module.ts
  3. 3
      src/app/admin/audit/audit.module.ts
  4. 4
      src/app/admin/recharge-order/order-list/order-list.component.html
  5. 20
      src/app/admin/recharge-order/order-list/order-list.component.ts
  6. 7
      src/app/app-common.module.ts
  7. 2
      src/app/pipes/index.ts
  8. 2
      src/app/pipes/recharge-status.pipe.ts
  9. 24
      src/app/services/audit.service.ts
  10. 13
      src/app/services/recharge.service.ts
  11. 8
      src/environments/environment.ts

@ -1,4 +1,4 @@
<!-- start 面包屑 -->
<!-- start 面包屑 -->
<app-breadcrumb></app-breadcrumb>
<!-- end 面包屑 -->

@ -1,10 +1,12 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {AuditCouponComponent} from './audit-coupon/audit-coupon.component';
import {RefundAuditComponent} from './refund-audit/refund-audit.component';
const routes: Routes = [
{ path: 'coupon-audit', component: AuditCouponComponent },
{ path: 'refund-audit', component: RefundAuditComponent },
];
@NgModule({

@ -8,10 +8,11 @@ import {SeparateModule} from '../../common/separate/separate.module';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {BreadcrumbModule} from '../../common/breadcrumb/breadcrumb.module';
import {AppCommonModule} from '../../app-common.module';
import { RefundAuditComponent } from './refund-audit/refund-audit.component';
@NgModule({
declarations: [AuditCouponComponent],
declarations: [AuditCouponComponent, RefundAuditComponent],
imports: [
CommonModule,
AuditRoutingModule,

@ -17,6 +17,7 @@
<nz-option nzLabel="已完成" nzValue="3"></nz-option>
<nz-option nzLabel="已取消" nzValue="4"></nz-option>
<nz-option nzLabel="已退款" nzValue="5"></nz-option>
<nz-option nzLabel="退款中" nzValue="6"></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
@ -150,7 +151,8 @@
<td nzRight class="table-td-operation">
<a (click)="getDetail(data.id)">详情</a>
<a *ngIf="data.status === 2" (click)="finishOrder(data.id)">完成充值</a>
<a *ngIf="data.status === 2 && data.payType !== 3" (click)="orderToRefund(data.id)">退款</a>
<!-- <a *ngIf="data.status === 2 && data.payType !== 3" (click)="orderToRefund(data.id)">退款</a>-->
<a *ngIf="data.status === 2 && data.payType !== 3" (click)="postRefund(data.orderNo)">申请退款</a>
</td>
</tbody>
</nz-table>

@ -174,6 +174,26 @@ export class OrderListComponent implements OnInit , OnDestroy {
});
}
public postRefund(orderNo): void {
this.common.showConfirm('确认订单申请退款', item => {
if (item) {
this.recharge.postRefund({
refundSource: 1 ,
sourceOrderNo: orderNo
}, data => {
if (data['return_code'] === '000000') {
this.message.success('退款成功');
this.getRequest(false, this.searchForm.value);
} else {
this.message.error(data['return_msg']);
}
});
}
});
}
// 下载模板
downloadTemplate(whereObject) {
if (whereObject['payTime'] != null && whereObject['payTime'].length !== 0) {

@ -29,10 +29,13 @@ import {
ChannelMarkPipe,
TypePipe,
StatusPipe,
RechargePayTypePipe
RechargePayTypePipe,
RefundSourcePipe,
RefundStatusPipe
} from './pipes';
const PIPES = [
TimesPipe,
TextareaPipe,
@ -55,6 +58,8 @@ const PIPES = [
TypePipe,
StatusPipe,
RechargePayTypePipe,
RefundSourcePipe,
RefundStatusPipe,
];

@ -18,3 +18,5 @@ export * from './channel-mark.pipe';
export * from './activate/type.pipe';
export * from './activate/status.pipe';
export * from './recharge-pay-type.pipe';
export * from './audit/refund-source.pipe';
export * from './audit/refund-status.pipe';

@ -17,6 +17,8 @@ export class RechargeStatusPipe implements PipeTransform {
return '已取消';
case 5:
return '已退款';
case 6:
return '退款中';
}
}

@ -37,6 +37,30 @@ export class AuditService {
});
}
/**
* 退
*
* @param id
* @param callBack
*/
public getRefundReject(id: number, callBack) {
this.http.get(environment.baseUrl + 'highRefundAudit/getRefundReject?id=' + id).subscribe(data => {
callBack(data);
});
}
/**
* 退
*
* @param paramsObject
* @param callBack
*/
public getOrderList(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'highRefundAudit/getOrderList?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
/**
*

@ -101,6 +101,7 @@ export class RechargeService {
});
}
/**
* id查询详情
*
@ -137,6 +138,18 @@ export class RechargeService {
});
}
/**
* 退
*
* @param id id
* @param callBack
*/
public postRefund(params: object, callBack) {
this.http.post(environment.baseUrl + 'highRefundAudit/insertRefundAudit', params).subscribe(data => {
callBack(data);
});
}
/**
*
*

@ -4,10 +4,10 @@
export const environment = {
production: false,
// baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址)
// imageUrl: 'http://localhost:9302/filesystem/',
baseUrl: 'https://hsg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
imageUrl: 'https://hsg.dctpay.com/filesystem/',
baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址)
imageUrl: 'http://localhost:9302/filesystem/',
// baseUrl: 'https://hsg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
// imageUrl: 'https://hsg.dctpay.com/filesystem/',
key: 'https://hsgcs.dctpay.com/phone-recharge-H5/index.html?codeValue=',
inviteUrl: 'https://hsgcs.dctpay.com/wx/?action=ic&id=',
};

Loading…
Cancel
Save