账户明细接口对接
This commit is contained in:
@ -19,12 +19,12 @@ export class PartnerRecordedDetailComponent implements OnInit {
|
||||
|
||||
constructor(public service: RecordedService, private route: ActivatedRoute, private nzModalService: NzModalService) {
|
||||
this.id = route.snapshot.params.id;
|
||||
this.loadRefundDetail(this.id);
|
||||
this.getRecordedDetail(this.id);
|
||||
}
|
||||
|
||||
ngOnInit(): void { }
|
||||
|
||||
loadRefundDetail(id: string) {
|
||||
getRecordedDetail(id: string) {
|
||||
this.service.request(this.service.$api_get_recorded_record_detail, { id }).subscribe(res => {
|
||||
if (res) {
|
||||
this.formData = res;
|
||||
@ -106,7 +106,7 @@ export class PartnerRecordedDetailComponent implements OnInit {
|
||||
});
|
||||
modal.afterClose.subscribe((res: any) => {
|
||||
if (res) {
|
||||
this.loadRefundDetail(this.id);
|
||||
this.getRecordedDetail(this.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<div class="d-flex align-items-center ">
|
||||
<div class="mr-md">
|
||||
已选择
|
||||
<strong class="text-red">{{ selectedRows.length }}</strong> 条数据 累计提现 <strong class="text-red">{{
|
||||
<strong class="text-red">{{ selectedRows.length }}</strong> 条数据,累计入账 <strong class="text-red">{{
|
||||
totalCallNo }}</strong>
|
||||
<!-- <a *ngIf="totalCallNo > 0" (click)="st.clearCheck()" class="ml-lg">清空</a> -->
|
||||
</div>
|
||||
@ -44,7 +44,7 @@
|
||||
<st #st [data]="service.$api_get_recorded_page" [columns]="columns"
|
||||
[req]="{ method: 'POST', allInBody: true,process: beforeReq}" [loading]="service.http.loading"
|
||||
[scroll]="{ x:'1200px' }" (change)="stChange($event)"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' }, process: afterRes }"
|
||||
[res]="{ reName: { list: 'data', total: 'data.total' }, process: afterRes }"
|
||||
[page]="{ show: true, pageSizes: [10, 20, 50, 100, 200, 500] }">
|
||||
<ng-template st-row="bankCardNumber" let-item let-index="index" let-column="column">
|
||||
{{ item.bankName }} <br> {{ item.bankCardNumber }}
|
||||
|
||||
@ -70,7 +70,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
|
||||
};
|
||||
|
||||
afterRes = (data: any[], rawData?: any) => {
|
||||
data = data.map(node => ({ ...node, disabled: node.refundStatus !== '1' }));
|
||||
data = data.map(node => ({ ...node, disabled: node.sts !== '0' }));
|
||||
return data;
|
||||
};
|
||||
|
||||
@ -104,7 +104,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
|
||||
}
|
||||
let totalCallNo = 0;
|
||||
this.selectedRows.forEach((item => {
|
||||
totalCallNo = new Big(this.totalCallNo).plus(item?.amount).parse();
|
||||
totalCallNo = new Big(this.totalCallNo).plus(item?.entryAmount).parse();
|
||||
}));
|
||||
this.totalCallNo = totalCallNo;
|
||||
} else if (e.type === 'loaded') {
|
||||
@ -125,6 +125,10 @@ export class PartnerRecordedRecordComponent implements OnInit {
|
||||
}
|
||||
|
||||
auditAction(item?: any, type: string = '1') {
|
||||
if (!item && this.selectedRows.length === 0) {
|
||||
this.service.msgSrv.warning('请选择需要审核的记录');
|
||||
return;
|
||||
}
|
||||
this.msg = '';
|
||||
let params: Array<string> = [];
|
||||
if (item) {
|
||||
@ -252,7 +256,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
allowClear: true,
|
||||
asyncData: () => this.shipperSrv.getNetworkFreightForwarder(),
|
||||
asyncData: () => this.shipperSrv.getNetworkFreightForwarder({}, true),
|
||||
}
|
||||
},
|
||||
submitTime: {
|
||||
@ -313,7 +317,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '审核',
|
||||
iif: item => item.refundStatus === '0',
|
||||
iif: item => item.sts === '0',
|
||||
click: item => this.auditAction(item)
|
||||
},
|
||||
{
|
||||
@ -335,7 +339,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
|
||||
*/
|
||||
audit(params: any, callback: Function, msg = '成功') {
|
||||
this.service
|
||||
.request(this.service.$api_audit_recored, ...params)
|
||||
.request(this.service.$api_audit_recored, { ...params })
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success(msg);
|
||||
|
||||
@ -6,8 +6,8 @@ import { BaseService } from '@shared';
|
||||
})
|
||||
export class RecordedService extends BaseService {
|
||||
|
||||
$api_get_recorded_page = `/api/bpc/partnerInvoice/getDetail`; // 查询合伙人发票入账主表
|
||||
$api_get_recorded_record_detail = `api/bpc/partnerInvoice/getDetailByOpration`; // 入账记录详情
|
||||
$api_get_recorded_page = `/api/bpc/partnerInvoiceEntry/queryInvoiceEntrylist`; // 查询合伙人发票入账主表
|
||||
$api_get_recorded_record_detail = `/api/bpc/partnerInvoice/getDetailByOpration`; // 入账记录详情
|
||||
$api_disagree_recorded = ``; // 拒绝审核
|
||||
$api_agree_recorded = ``; // 同意审核
|
||||
$api_audit_recored = `/api/bpc/partnerInvoiceEntry/oprationAudit`; // 审核单据
|
||||
|
||||
Reference in New Issue
Block a user