edit
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
<page-header-wrapper title="预收款余额">
|
<!-- <page-header-wrapper title="预收款余额">
|
||||||
</page-header-wrapper>
|
</page-header-wrapper>
|
||||||
|
|
||||||
<nz-card class="search-box">
|
<nz-card class="search-box">
|
||||||
@ -19,10 +19,17 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nz-card>
|
</nz-card> -->
|
||||||
|
|
||||||
<nz-card class="content-box">
|
<nz-card class="table-box">
|
||||||
<st #st [data]="service.$api_get_advance_collection_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
|
<div class="header_box">
|
||||||
[loading]="false" [scroll]="{ x: '1200px' }">
|
<label class="page_title"> <label class="driver">|</label> 预收款余额</label>
|
||||||
|
<div class="mr-sm">
|
||||||
|
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button>
|
||||||
|
<button nz-button nzDanger (click)="exportList()"> 导出</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<st #st [data]="service.$api_get_advance_collection_page" [columns]="columns" [req]="{ process: beforeReq }"
|
||||||
|
[page]="{}" [loading]="false" [scroll]="{ x: '1200px',y:scrollY }">
|
||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
@ -2,26 +2,37 @@ import { Component, ViewChild } from '@angular/core';
|
|||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st';
|
import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st';
|
||||||
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
||||||
|
import { SearchDrawerService } from '@shared';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
|
import { BasicTableComponent } from 'src/app/routes/commom';
|
||||||
|
|
||||||
import { FreightAccountService } from '../../services/freight-account.service';
|
import { FreightAccountService } from '../../services/freight-account.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-advance-collection',
|
selector: 'app-advance-collection',
|
||||||
templateUrl: './advance-collection.component.html',
|
templateUrl: './advance-collection.component.html',
|
||||||
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
|
styleUrls: ['../../../commom/less/commom-table.less']
|
||||||
})
|
})
|
||||||
export class AdvanceCollectionComponent {
|
export class AdvanceCollectionComponent extends BasicTableComponent {
|
||||||
@ViewChild('st', { static: true })
|
@ViewChild('st', { static: true })
|
||||||
st!: STComponent;
|
st!: STComponent;
|
||||||
@ViewChild('sf', { static: false })
|
|
||||||
sf!: SFComponent;
|
|
||||||
|
|
||||||
searchSchema: SFSchema = this.initSF();
|
schema: SFSchema = this.initSF();
|
||||||
columns: STColumn[] = this.initST();
|
columns: STColumn[] = this.initST();
|
||||||
_$expand = false;
|
|
||||||
|
|
||||||
constructor(public service: FreightAccountService, private router: Router, private modal: NzModalService) {}
|
constructor(
|
||||||
|
public service: FreightAccountService,
|
||||||
|
private router: Router,
|
||||||
|
public searchDrawerService: SearchDrawerService
|
||||||
|
) {
|
||||||
|
super(searchDrawerService);
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit(): void {}
|
||||||
|
|
||||||
|
search() {
|
||||||
|
this.st?.load(1);
|
||||||
|
}
|
||||||
|
|
||||||
beforeReq = (requestOptions: STRequestOptions) => {
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
if (this.sf) {
|
if (this.sf) {
|
||||||
@ -30,24 +41,8 @@ export class AdvanceCollectionComponent {
|
|||||||
return requestOptions;
|
return requestOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 重置表单
|
|
||||||
*/
|
|
||||||
resetSF() {
|
|
||||||
this.sf.reset();
|
|
||||||
this._$expand = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 伸缩查询条件
|
|
||||||
*/
|
|
||||||
expandToggle() {
|
|
||||||
this._$expand = !this._$expand;
|
|
||||||
this.sf?.setValue('/expand', this._$expand);
|
|
||||||
}
|
|
||||||
|
|
||||||
exportList() {
|
exportList() {
|
||||||
this.service.exportStart( { ...this.sf.value, pageSize: -1 }, this.service.$api_get_reportYskBla,);
|
this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_reportYskBla);
|
||||||
}
|
}
|
||||||
|
|
||||||
private initSF(): SFSchema {
|
private initSF(): SFSchema {
|
||||||
@ -97,10 +92,7 @@ export class AdvanceCollectionComponent {
|
|||||||
enum: [{ label: '全部', value: null }],
|
enum: [{ label: '全部', value: null }],
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择'
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
@ -114,10 +106,7 @@ export class AdvanceCollectionComponent {
|
|||||||
],
|
],
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择'
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
default: null
|
default: null
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<page-header-wrapper [title]="'退款记录'">
|
<!-- <page-header-wrapper [title]="'退款记录'">
|
||||||
</page-header-wrapper>
|
</page-header-wrapper>
|
||||||
|
|
||||||
<nz-card class="search-box" nzBordered>
|
<nz-card class="search-box" nzBordered>
|
||||||
@ -19,19 +19,24 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nz-card>
|
</nz-card> -->
|
||||||
|
|
||||||
<nz-card class="content-box" nzBordered>
|
<nz-card class="table-box">
|
||||||
<nz-tabset>
|
<div class="tab_header">
|
||||||
<nz-tab nzTitle="全部" (nzClick)="changeRefundStatus()"></nz-tab>
|
<label class="page_title">
|
||||||
<nz-tab nzTitle="待审核" (nzClick)="changeRefundStatus('1')"></nz-tab>
|
<label class="driver">|</label>
|
||||||
<nz-tab nzTitle="退款中" (nzClick)="changeRefundStatus('4')"></nz-tab>
|
退款记录</label>
|
||||||
<nz-tab nzTitle="退款成功" (nzClick)="changeRefundStatus('2')"></nz-tab>
|
<nz-tabset [nzTabBarExtraContent]="extraTemplate">
|
||||||
<nz-tab nzTitle="退款失败" (nzClick)="changeRefundStatus('5')"></nz-tab>
|
<nz-tab nzTitle="全部" (nzClick)="changeRefundStatus()"> </nz-tab>
|
||||||
</nz-tabset>
|
<nz-tab nzTitle="待审核" (nzClick)="changeRefundStatus('1')"></nz-tab>
|
||||||
|
<nz-tab nzTitle="退款中" (nzClick)="changeRefundStatus('4')"></nz-tab>
|
||||||
|
<nz-tab nzTitle="退款成功" (nzClick)="changeRefundStatus('2')"></nz-tab>
|
||||||
|
<nz-tab nzTitle="退款失败" (nzClick)="changeRefundStatus('5')"></nz-tab>
|
||||||
|
</nz-tabset>
|
||||||
|
</div>
|
||||||
|
|
||||||
<st #st [data]="service.$api_get_refund_record_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
|
<st #st [data]="service.$api_get_refund_record_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
|
||||||
[loading]="false" [scroll]="{ x:'1200px' }">
|
[loading]="false" [scroll]="{ x:'1200px',y:scrollY }">
|
||||||
<ng-template st-row="orderRefundCode" let-item let-index="index" let-column="column">
|
<ng-template st-row="orderRefundCode" let-item let-index="index" let-column="column">
|
||||||
{{ item.orderRefundCode }} <br> {{ item.refundStatusLabel }}
|
{{ item.orderRefundCode }} <br> {{ item.refundStatusLabel }}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
@ -42,7 +47,7 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="billRefundPaymentVOS" let-item let-index="index" let-column="column">
|
<ng-template st-row="billRefundPaymentVOS" let-item let-index="index" let-column="column">
|
||||||
<ng-container *ngFor="let bill of item.billRefundPaymentVOS">
|
<ng-container *ngFor="let bill of item.billRefundPaymentVOS">
|
||||||
{{ bill.paymentApplicationCode }}<br>
|
{{ bill.paymentApplicationCode }}<br>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="driver" let-item let-index="index" let-column="column">
|
<ng-template st-row="driver" let-item let-index="index" let-column="column">
|
||||||
@ -54,6 +59,13 @@
|
|||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
|
<ng-template #extraTemplate>
|
||||||
|
<div class="mr-sm">
|
||||||
|
<button nz-button nzDanger (click)="openDrawer()" class="mr-sm">筛选</button>
|
||||||
|
<button nz-button nzDanger [disabled]="service.http.loading" (click)="exprot()">导出</button>
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
<ng-template #auditModal>
|
<ng-template #auditModal>
|
||||||
<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">
|
||||||
|
|||||||
@ -2,32 +2,40 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
|||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st';
|
import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st';
|
||||||
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
||||||
|
import { SearchDrawerService } from '@shared';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
|
import { BasicTableComponent } from 'src/app/routes/commom';
|
||||||
import { FreightAccountService } from '../../services/freight-account.service';
|
import { FreightAccountService } from '../../services/freight-account.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-refund-record',
|
selector: 'app-refund-record',
|
||||||
templateUrl: './refund-record.component.html',
|
templateUrl: './refund-record.component.html',
|
||||||
styleUrls: ['../../../commom/less/box.less']
|
styleUrls: ['../../../commom/less/commom-table.less']
|
||||||
})
|
})
|
||||||
export class RefundRecordComponent implements OnInit {
|
export class RefundRecordComponent extends BasicTableComponent implements OnInit {
|
||||||
@ViewChild('st', { static: true })
|
@ViewChild('st', { static: true })
|
||||||
st!: STComponent;
|
st!: STComponent;
|
||||||
@ViewChild('sf', { static: false })
|
|
||||||
sf!: SFComponent;
|
|
||||||
@ViewChild('auditModal', { static: false })
|
@ViewChild('auditModal', { static: false })
|
||||||
auditModal!: any;
|
auditModal!: any;
|
||||||
columns: STColumn[] = this.initST();
|
columns: STColumn[] = this.initST();
|
||||||
searchSchema: SFSchema = this.initSF();
|
schema: SFSchema = this.initSF();
|
||||||
|
|
||||||
_$expand = false;
|
|
||||||
refundStatus: any = '';
|
refundStatus: any = '';
|
||||||
|
|
||||||
msg = '';
|
msg = '';
|
||||||
|
|
||||||
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
|
constructor(
|
||||||
|
public service: FreightAccountService,
|
||||||
|
private nzModalService: NzModalService,
|
||||||
|
public searchDrawerService: SearchDrawerService
|
||||||
|
) {
|
||||||
|
super(searchDrawerService);
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
ngOnInit(): void {}
|
||||||
|
search() {
|
||||||
|
this.st?.load(1);
|
||||||
|
}
|
||||||
|
|
||||||
beforeReq = (requestOptions: STRequestOptions) => {
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
Object.assign(requestOptions.body, { refundStatus: this.refundStatus || null });
|
Object.assign(requestOptions.body, { refundStatus: this.refundStatus || null });
|
||||||
@ -120,22 +128,6 @@ export class RefundRecordComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 重置表单
|
|
||||||
*/
|
|
||||||
resetSF() {
|
|
||||||
this.sf.reset();
|
|
||||||
this._$expand = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 伸缩查询条件
|
|
||||||
*/
|
|
||||||
expandToggle() {
|
|
||||||
this._$expand = !this._$expand;
|
|
||||||
this.sf?.setValue('/expand', this._$expand);
|
|
||||||
}
|
|
||||||
|
|
||||||
private initSF(): SFSchema {
|
private initSF(): SFSchema {
|
||||||
return {
|
return {
|
||||||
properties: {
|
properties: {
|
||||||
@ -177,9 +169,6 @@ export class RefundRecordComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: '订单号',
|
title: '订单号',
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
},
|
|
||||||
placeholder: '请输入'
|
placeholder: '请输入'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -187,19 +176,13 @@ export class RefundRecordComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
placeholder: '请输入',
|
placeholder: '请输入'
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resourceCode: {
|
resourceCode: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货源号',
|
title: '货源号',
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
},
|
|
||||||
placeholder: '请输入'
|
placeholder: '请输入'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -210,9 +193,6 @@ export class RefundRecordComponent implements OnInit {
|
|||||||
widget: 'sl-from-to-search',
|
widget: 'sl-from-to-search',
|
||||||
format: 'yyyy-MM-dd',
|
format: 'yyyy-MM-dd',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
},
|
|
||||||
nzShowTime: true
|
nzShowTime: true
|
||||||
} as SFDateWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
},
|
},
|
||||||
@ -223,10 +203,7 @@ export class RefundRecordComponent implements OnInit {
|
|||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
asyncData: () => this.service.getNetworkFreightForwarder(),
|
asyncData: () => this.service.getNetworkFreightForwarder()
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bankType: {
|
bankType: {
|
||||||
@ -235,10 +212,7 @@ export class RefundRecordComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'bankname:type' },
|
params: { dictKey: 'bankname:type' },
|
||||||
placeholder: '请输入',
|
placeholder: '请输入'
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user