This commit is contained in:
Taric Xin
2022-03-01 19:48:16 +08:00
parent b61340b451
commit dcfb0e08cb
14 changed files with 55 additions and 43 deletions

View File

@ -49,7 +49,7 @@ export class AdvanceCollectionComponent implements OnInit {
}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
private initSF(): SFSchema {

View File

@ -90,7 +90,7 @@ export class CostManagementComponent implements OnInit {
}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
routeTo(url: string, params?: any, status?: any) {
@ -188,7 +188,7 @@ export class CostManagementComponent implements OnInit {
searchLoadingText: '搜索中...',
allowClear: true,
onSearch: (q: any) => {
let str =q.replace(/^\s+|\s+$/g,"");
let str = q.replace(/^\s+|\s+$/g, '');
if (str) {
return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: str })
@ -213,7 +213,7 @@ export class CostManagementComponent implements OnInit {
searchLoadingText: '搜索中...',
allowClear: true,
onSearch: (q: any) => {
let str =q.replace(/^\s+|\s+$/g,"");
let str = q.replace(/^\s+|\s+$/g, '');
if (str) {
return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: str })
@ -302,13 +302,13 @@ export class CostManagementComponent implements OnInit {
{
text: '浏览',
click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id, { status: item?.feetypeLabel }),
acl: { ability: ['FINANCIAL-COST-view'] },
acl: { ability: ['FINANCIAL-COST-view'] }
},
{
text: '审核',
click: item => this.auditAction(item),
iif: item => item.sts === 2,
acl: { ability: ['FINANCIAL-COST-audit'] },
acl: { ability: ['FINANCIAL-COST-audit'] }
}
// {
// text: '修改',

View File

@ -74,7 +74,7 @@ export class DriverAccountDetailComponent implements OnInit {
stChange(e: STChange): void {}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
goBack() {

View File

@ -74,7 +74,7 @@ export class DriverAccountComponent implements OnInit {
}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
private initSF(): SFSchema {

View File

@ -74,7 +74,7 @@ export class FreightAccountDetailComponent implements OnInit {
stChange(e: STChange): void {}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
goBack() {

View File

@ -80,7 +80,7 @@ export class FreightAccountComponent implements OnInit {
}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
private initSF(): SFSchema {
@ -199,7 +199,7 @@ export class FreightAccountComponent implements OnInit {
{
title: '状态',
index: 'stateDeletedLabel',
width: 80,
width: 80
},
{
title: '操作',

View File

@ -65,7 +65,7 @@ export class PlatformAccountDetailComponent implements OnInit {
stChange(e: STChange): void {}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
goBack() {

View File

@ -49,7 +49,7 @@ export class RechargeRecordComponent implements OnInit {
}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
private initSF(): SFSchema {

View File

@ -113,7 +113,7 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
exportList() {
const params = this.reqParams;
this.service.downloadFile(this.service.$api_export_driver_cap, params);
this.service.downloadFile(this.service.$api_export_driver_cap, {...params, pageSize: -1});
}
private initSF(): SFSchema {

View File

@ -61,7 +61,7 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
exportList() {
const params = this.reqParams;
this.service.downloadFile(this.service.$api_export_driver_cap, params);
this.service.downloadFile(this.service.$api_export_driver_cap, { ...params, pageSize: -1 });
}
private initSF(): SFSchema {

View File

@ -26,7 +26,13 @@ export class UserCenterComponentsDriverComponent implements OnInit {
promotersTelephone = '';
resourceStatus: any = 10;
constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute,private modalHelper: ModalHelper) {}
constructor(
public service: UsermanageService,
private modal: NzModalService,
private router: Router,
private ar: ActivatedRoute,
private modalHelper: ModalHelper
) {}
/**
* 查询参数
@ -134,7 +140,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
exportList() {
const params = this.reqParams;
this.service.downloadFile(this.service.$api_export_driver, params);
this.service.downloadFile(this.service.$api_export_driver, { ...params, pageSize: -1 });
}
private initSF(): SFSchema {
@ -223,7 +229,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
{ label: '全部', value: '' },
{ label: '用户注册', value: 1 },
{ label: '货主添加', value: 2 },
{ label: '运营添加', value: 3 },
{ label: '运营添加', value: 3 }
],
default: '',
ui: {
@ -249,7 +255,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
};
}
add() {
this.modalHelper.create(CarSettleAddDriverComponent, { size: 900 }).subscribe((res) => {
this.modalHelper.create(CarSettleAddDriverComponent, { size: 900 }).subscribe(res => {
this.st.load();
});
}
@ -271,9 +277,8 @@ export class UserCenterComponentsDriverComponent implements OnInit {
0: { text: '待审核', color: 'default' },
1: { text: '通过', color: 'success' },
2: { text: '驳回', color: 'warning' }
}
, width: 180
},
width: 180
},
{
title: '驾驶证状态',
@ -286,8 +291,8 @@ export class UserCenterComponentsDriverComponent implements OnInit {
20: { text: '审核通过', color: 'success' },
30: { text: '驳回', color: 'warning' },
40: { text: '证件过期', color: 'error' }
}
, width: 180
},
width: 180
},
{
title: '从业资格证状态',
@ -300,11 +305,18 @@ export class UserCenterComponentsDriverComponent implements OnInit {
20: { text: '审核通过', color: 'success' },
30: { text: '驳回', color: 'warning' },
40: { text: '证件过期', color: 'error' }
}
, width: 180
},
width: 180
},
{ title: '推广业务员', className: 'text-center', render: 'promotersTelephone', width: 180 },
{ title: '注册渠道', className: 'text-center', index: 'source', type: 'enum', enum: { 1: '用户注册', 2: '货主添加', 3: '运营添加' }, width: 150 },
{
title: '注册渠道',
className: 'text-center',
index: 'source',
type: 'enum',
enum: { 1: '用户注册', 2: '货主添加', 3: '运营添加' },
width: 150
},
{ title: '注册时间', className: 'text-center', index: 'createTime', width: 200 },
{
title: '操作',
@ -317,7 +329,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
click: item => {
this.router.navigate(['./detail', item.appUserId], { relativeTo: this.ar });
},
acl: { ability: ['USERCENTER-DRIVER-LIST-view'] },
acl: { ability: ['USERCENTER-DRIVER-LIST-view'] }
},
// {
// text: '基础设置',
@ -327,7 +339,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
{
text: '资金账户',
click: item => this.showAccountDetail(item),
acl: { ability: ['USERCENTER-DRIVER-LIST-account'] },
acl: { ability: ['USERCENTER-DRIVER-LIST-account'] }
}
]
}

View File

@ -228,7 +228,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
}
exportList() {
const params = { ...this.sf.value, flag: this.tabType, listSource: 2 };
const params = { ...this.sf.value, flag: this.tabType, listSource: 2, pageSize: -1 };
this.service.downloadFile(this.service.$api_export_enterprise, params);
}

View File

@ -166,7 +166,7 @@ export class FreightConfigComponent implements OnInit {
}
exportList() {
const params = { listSource: 1, pageIndex: this.st.pi, pageSize: this.st.ps };
const params = { listSource: 1, pageSize: -1 };
if (this.sf) {
Object.assign(params, {
...this.sf.value

View File

@ -280,7 +280,7 @@ export class FreightComponentsListComponent implements OnInit {
enum: [
{ label: '全部', value: '' },
{ label: '是', value: true },
{ label: '否', value: false },
{ label: '否', value: false }
],
default: '',
ui: {
@ -439,7 +439,7 @@ export class FreightComponentsListComponent implements OnInit {
}
exportList() {
const params = { listSource: 1 };
const params = { listSource: 1, pageSize: -1 };
if (this.sf) {
Object.assign(params, {
...this.sf.value