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

@ -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,10 +213,10 @@ 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})
.request(this.service.$api_enterpriceList, { enterpriseName: str })
.pipe(map((res: any) => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
.toPromise();
} else {
@ -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: '修改',