edit
This commit is contained in:
@ -40,14 +40,14 @@
|
|||||||
{{formData?.bankId}}
|
{{formData?.bankId}}
|
||||||
</se>
|
</se>
|
||||||
<se label="银行回" col="1">
|
<se label="银行回" col="1">
|
||||||
<img [src]="formData?.bankRecallBill" alt="" style="width: 200px;height: 160px;">
|
<img [src]="formData?.bankCardNumber" alt="" style="width: 200px;height: 160px;">
|
||||||
</se>
|
</se>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nz-alert nzType="info" nzMessage="提现进度" class="mb-md mt-md"></nz-alert>
|
<nz-alert nzType="info" nzMessage="提现进度" class="mb-md mt-md"></nz-alert>
|
||||||
<div nz-row class="mt-xl">
|
<div nz-row class="mt-xl">
|
||||||
<div nz-col nzSpan="12" nzOffset="1">
|
<div nz-col nzSpan="12" nzOffset="1">
|
||||||
<app-logistics-time-line></app-logistics-time-line>
|
<app-logistics-time-line [data]="timeLineData"></app-logistics-time-line>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
@ -10,6 +10,8 @@ import { FreightAccountService } from '../../../services/freight-account.service
|
|||||||
export class WithdrawalsDetailComponent implements OnInit {
|
export class WithdrawalsDetailComponent implements OnInit {
|
||||||
formData: any = {};
|
formData: any = {};
|
||||||
|
|
||||||
|
timeLineData: any = [];
|
||||||
|
|
||||||
refundStatus: any = {
|
refundStatus: any = {
|
||||||
'1': '待审核',
|
'1': '待审核',
|
||||||
'2': '提现中',
|
'2': '提现中',
|
||||||
@ -27,9 +29,31 @@ export class WithdrawalsDetailComponent implements OnInit {
|
|||||||
|
|
||||||
loadRefundDetail(id: string) {
|
loadRefundDetail(id: string) {
|
||||||
this.service.request(this.service.$api_get_refund_detail, { id }).subscribe(res => {
|
this.service.request(this.service.$api_get_refund_detail, { id }).subscribe(res => {
|
||||||
console.log(res);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
this.formData = res;
|
this.formData = res;
|
||||||
|
if (res.successTime) {
|
||||||
|
this.timeLineData.push({ time: res.successTime, value: `到账成功`, color: 'green' });
|
||||||
|
}
|
||||||
|
if (res.agreeTime) {
|
||||||
|
this.timeLineData.push({ time: res.agreeTime, value: `银行处理中`, color: 'gray' });
|
||||||
|
}
|
||||||
|
if (res.agreeTime) {
|
||||||
|
this.timeLineData.push({
|
||||||
|
time: res.agreeTime,
|
||||||
|
value: `审核通过<br/>操作人员:${res.bankAccountName}`,
|
||||||
|
color: 'gray'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (res.createTime) {
|
||||||
|
this.timeLineData.push({
|
||||||
|
time: res.createTime,
|
||||||
|
value: `提交提现申请<br/>提现${res.amount}元至${res.bankName}(${res.bankCardNumber})<br/>操作人员:${res.bankAccountName}`,
|
||||||
|
color: 'gray'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (this.timeLineData?.length > 0) {
|
||||||
|
this.timeLineData[0].color = 'green';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -80,7 +80,7 @@
|
|||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<div nz-col nzSpan="24" se-container [labelWidth]="80">
|
<div nz-col nzSpan="24" se-container [labelWidth]="80">
|
||||||
<se [col]="1" label="备注">
|
<se [col]="1" label="备注">
|
||||||
<textarea nz-input rows="3" placeholder="同意可以不用填写原因 ,拒绝必须说明原因"
|
<textarea nz-input rows="3" [(ngModel)]="msg" placeholder="同意可以不用填写原因 ,拒绝必须说明原因"
|
||||||
style="width: 325px;margin-left: 14px;"></textarea>
|
style="width: 325px;margin-left: 14px;"></textarea>
|
||||||
</se>
|
</se>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -25,6 +25,8 @@ export class WithdrawalsRecordComponent implements OnInit {
|
|||||||
selectedRows: any[] = [];
|
selectedRows: any[] = [];
|
||||||
totalCallNo = 0;
|
totalCallNo = 0;
|
||||||
refundStatus: any = '';
|
refundStatus: any = '';
|
||||||
|
|
||||||
|
msg = '';
|
||||||
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
|
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
ngOnInit(): void {}
|
||||||
@ -57,7 +59,11 @@ export class WithdrawalsRecordComponent implements OnInit {
|
|||||||
this.st.load(1);
|
this.st.load(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
auditAction(item: any) {
|
auditAction(item?: any) {
|
||||||
|
this.msg = '';
|
||||||
|
if(!item){
|
||||||
|
|
||||||
|
}
|
||||||
const modal = this.nzModalService.create({
|
const modal = this.nzModalService.create({
|
||||||
nzTitle: '审核',
|
nzTitle: '审核',
|
||||||
nzContent: this.auditModal,
|
nzContent: this.auditModal,
|
||||||
@ -66,15 +72,35 @@ export class WithdrawalsRecordComponent implements OnInit {
|
|||||||
label: '拒绝',
|
label: '拒绝',
|
||||||
type: 'default',
|
type: 'default',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
|
this.service
|
||||||
|
.request(this.service.$api_disagree_refund, {
|
||||||
|
refundApplicationId: item.id,
|
||||||
|
msg: this.msg
|
||||||
|
})
|
||||||
|
.subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.service.msgSrv.success('审核拒绝成功');
|
||||||
modal.destroy();
|
modal.destroy();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '通过',
|
label: '通过',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
|
this.service
|
||||||
|
.request(this.service.$api_agree_refund, {
|
||||||
|
refundApplicationId: item.id,
|
||||||
|
msg: this.msg
|
||||||
|
})
|
||||||
|
.subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.service.msgSrv.success('审核通过成功');
|
||||||
modal.destroy();
|
modal.destroy();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
@ -31,6 +31,10 @@ export class FreightAccountService extends ShipperBaseService {
|
|||||||
$api_get_refund_page = '/api/fcc/refundApplicationSMC/list/page';
|
$api_get_refund_page = '/api/fcc/refundApplicationSMC/list/page';
|
||||||
// 获取提现申请表详情
|
// 获取提现申请表详情
|
||||||
$api_get_refund_detail = '/api/fcc/refundApplicationSMC/get';
|
$api_get_refund_detail = '/api/fcc/refundApplicationSMC/get';
|
||||||
|
// 同意提现
|
||||||
|
$api_agree_refund = '/api/fcc/refundApplicationSMC/agreeRefund';
|
||||||
|
// 拒绝提现
|
||||||
|
$api_disagree_refund = '/api/fcc/refundApplicationSMC/disagreeRefund';
|
||||||
|
|
||||||
// 查询充值信息表
|
// 查询充值信息表
|
||||||
$api_get_recharge_page = '/api/fcc/rechargeInfo/list/page';
|
$api_get_recharge_page = '/api/fcc/rechargeInfo/list/page';
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
<nz-timeline [nzMode]="'left'">
|
<nz-timeline [nzMode]="'left'">
|
||||||
<nz-timeline-item nzLabel="2021-10-15 16:30:30">快件已签收</nz-timeline-item>
|
<nz-timeline-item *ngFor="let item of data" [nzLabel]="item.time" [nzColor]="item.color">
|
||||||
<nz-timeline-item nzLabel="2015-09-01 09:12:11">正在派送中,请您准备签收(派件人:吴彦祖,联系电话:13811223133)</nz-timeline-item>
|
<label [innerHtml]="item.value"></label>
|
||||||
<nz-timeline-item nzLabel="2021-10-15 16:30:30">快件已到【深圳市龙岗区配送中心】扫描员是【张三】</nz-timeline-item>
|
</nz-timeline-item>
|
||||||
<nz-timeline-item nzLabel="2015-09-01 09:12:11">【顺丰快递】的收件员已揽件</nz-timeline-item>
|
|
||||||
</nz-timeline>
|
</nz-timeline>
|
||||||
@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-logistics-time-line',
|
selector: 'app-logistics-time-line',
|
||||||
@ -6,10 +6,15 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
styleUrls: ['./logistics-time-line.component.less']
|
styleUrls: ['./logistics-time-line.component.less']
|
||||||
})
|
})
|
||||||
export class LogisticsTimeLineComponent implements OnInit {
|
export class LogisticsTimeLineComponent implements OnInit {
|
||||||
|
@Input()
|
||||||
|
data: any = [
|
||||||
|
{ time: '2020-07-29 11:02:00', value: '到账成功', color: 'green' },
|
||||||
|
{ time: '2020-07-29 11:02:00', value: '银行处理中', color: 'gray' },
|
||||||
|
{ time: '2020-07-29 11:02:00', value: '审核通过<br/>操作人员:李四', color: 'gray' },
|
||||||
|
{ time: '2020-07-29 11:02:00', value: '提交提现申请<br/>提现1000.00元至招商银行(8889)<br/>操作人员:张三', color: 'gray' }
|
||||||
|
];
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user