Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -22,7 +22,7 @@ export class CoreService {
|
|||||||
public $api_get_current_user_info = `/scm/cuc/cuc/user/getUserDetail`;
|
public $api_get_current_user_info = `/scm/cuc/cuc/user/getUserDetail`;
|
||||||
|
|
||||||
// 获取当前用户所拥有的菜单
|
// 获取当前用户所拥有的菜单
|
||||||
public $api_get_current_user_menus = `/scm/cuc/cuc/functionInfo/getUserHaveFunctionsList`;
|
public $api_get_current_user_menus = `/api/mdc/cuc/functionInfo/getUserHaveFunctionsList`;
|
||||||
|
|
||||||
position = { lat: '', lng: '' };
|
position = { lat: '', lng: '' };
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import { cacheConf } from '@conf/cache.conf';
|
|||||||
import { sysConf } from '@conf/sys.conf';
|
import { sysConf } from '@conf/sys.conf';
|
||||||
import { ACLService } from '@delon/acl';
|
import { ACLService } from '@delon/acl';
|
||||||
import { MenuService, SettingsService, TitleService, _HttpClient } from '@delon/theme';
|
import { MenuService, SettingsService, TitleService, _HttpClient } from '@delon/theme';
|
||||||
|
import { environment } from '@env/environment';
|
||||||
import { AmapService, EACacheService, EAUserService } from '@shared';
|
import { AmapService, EACacheService, EAUserService } from '@shared';
|
||||||
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
||||||
import { NzIconService } from 'ng-zorro-antd/icon';
|
import { NzIconService } from 'ng-zorro-antd/icon';
|
||||||
@ -46,7 +47,7 @@ export class StartupService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let data;
|
let data;
|
||||||
if (this.coreSrv.loginStatus) {
|
if (this.coreSrv.loginStatus && environment.production) {
|
||||||
// 本地菜单
|
// 本地菜单
|
||||||
// data = this.loadMockData();
|
// data = this.loadMockData();
|
||||||
// 远程菜单
|
// 远程菜单
|
||||||
@ -133,12 +134,12 @@ export class StartupService {
|
|||||||
const userData = this.httpClient.post(this.userSrv.$api_get_user_by_token, {}).pipe(map((res: any) => res.data));
|
const userData = this.httpClient.post(this.userSrv.$api_get_user_by_token, {}).pipe(map((res: any) => res.data));
|
||||||
|
|
||||||
// 菜单数据
|
// 菜单数据
|
||||||
// const menuData = this.httpClient
|
const menuData = this.httpClient
|
||||||
// .post(this.coreSrv.$api_get_current_user_menus, {
|
.post(this.coreSrv.$api_get_current_user_menus, {
|
||||||
// appId: this.coreSrv.envSrv.getEnvironment().appId
|
appId: this.coreSrv.envSrv.getEnvironment().appId
|
||||||
// })
|
})
|
||||||
// .pipe(map((res: any) => res.data));
|
.pipe(map((res: any) => res.data));
|
||||||
const menuData = this.httpClient.get('assets/mocks/menu-data.json').pipe(map((res: any) => res.data.menu));
|
// const menuData = this.httpClient.get('assets/mocks/menu-data.json').pipe(map((res: any) => res.data.menu));
|
||||||
|
|
||||||
return zip(appData, userData, menuData);
|
return zip(appData, userData, menuData);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,12 +78,12 @@ export class DriverAccountComponent implements OnInit {
|
|||||||
hidden: true
|
hidden: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
name: {
|
userName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '司机姓名',
|
title: '司机姓名',
|
||||||
ui: { placeholder: '请输入' }
|
ui: { placeholder: '请输入' }
|
||||||
},
|
},
|
||||||
idNo: {
|
certificateNumber: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '证件号码',
|
title: '证件号码',
|
||||||
ui: { placeholder: '请输入' }
|
ui: { placeholder: '请输入' }
|
||||||
|
|||||||
@ -89,7 +89,7 @@ export class FreightAccountComponent implements OnInit {
|
|||||||
title: '企业名称',
|
title: '企业名称',
|
||||||
ui: { placeholder: '请输入' }
|
ui: { placeholder: '请输入' }
|
||||||
},
|
},
|
||||||
name: {
|
userName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '联系人',
|
title: '联系人',
|
||||||
ui: { placeholder: '请输入' }
|
ui: { placeholder: '请输入' }
|
||||||
|
|||||||
@ -0,0 +1,71 @@
|
|||||||
|
<page-header-wrapper [title]="'开票订单明细'" [logo]="logo">
|
||||||
|
<ng-template #logo>
|
||||||
|
<button nz-button nz-tooltip nzTooltipTitle="返回上一页" (click)="goBack()">
|
||||||
|
<i nz-icon nzType="left" nzTheme="outline"></i>
|
||||||
|
</button>
|
||||||
|
</ng-template>
|
||||||
|
</page-header-wrapper>
|
||||||
|
|
||||||
|
<nz-card>
|
||||||
|
<h3 class="font-weight-bold">天津怡亚通物流科技有限公司(浦发银行)</h3>
|
||||||
|
<nz-row [nzGutter]="16">
|
||||||
|
<nz-col [nzXl]="4" [nzLg]="8" [nzSm]="12">
|
||||||
|
<nz-statistic [nzValue]="'100,000,000.00 元'" nzTitle="平台账户余额"
|
||||||
|
[nzValueStyle]="{'font-size':'16px',color:'red'}" class="font-weight-bold">
|
||||||
|
</nz-statistic>
|
||||||
|
</nz-col>
|
||||||
|
<nz-col [nzXl]="4" [nzLg]="8" [nzSm]="12">
|
||||||
|
<nz-statistic [nzValue]="'100,000.00 元' " [nzTitle]="'货主账户余额'"
|
||||||
|
[nzValueStyle]="{'font-size':'16px',color:'red'}" class="font-weight-bold">
|
||||||
|
</nz-statistic>
|
||||||
|
</nz-col>
|
||||||
|
<nz-col [nzXl]="4" [nzLg]="8" [nzSm]="12">
|
||||||
|
<nz-statistic [nzValue]="'100,000.00 元'" [nzTitle]="'司机账户余额'"
|
||||||
|
[nzValueStyle]="{'font-size':'16px',color:'red'}" class="font-weight-bold">
|
||||||
|
</nz-statistic>
|
||||||
|
</nz-col>
|
||||||
|
<nz-col [nzXl]="4" [nzLg]="8" [nzSm]="12">
|
||||||
|
<nz-statistic [nzValue]="'100,000.00 元'" [nzTitle]="'累计充值金额'"
|
||||||
|
[nzValueStyle]="{'font-size':'16px',color:'red'}" class="font-weight-bold">
|
||||||
|
</nz-statistic>
|
||||||
|
</nz-col>
|
||||||
|
<nz-col [nzXl]="4" [nzLg]="8" [nzSm]="12">
|
||||||
|
<nz-statistic [nzValue]="'100,000.00 元'" [nzTitle]="'货主累计提现金额'"
|
||||||
|
[nzValueStyle]="{'font-size':'16px',color:'red'}" class="font-weight-bold">
|
||||||
|
</nz-statistic>
|
||||||
|
</nz-col>
|
||||||
|
<nz-col [nzXl]="4" [nzLg]="8" [nzSm]="12">
|
||||||
|
<nz-statistic [nzValue]="'100,000.00 元'" [nzTitle]="'司机累计提现金额'"
|
||||||
|
[nzValueStyle]="{'font-size':'16px',color:'red'}" class="font-weight-bold">
|
||||||
|
</nz-statistic>
|
||||||
|
</nz-col>
|
||||||
|
</nz-row>
|
||||||
|
</nz-card>
|
||||||
|
|
||||||
|
<nz-card class="search-box" nzBordered>
|
||||||
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||||
|
<sf #sf [schema]="searchSchema"
|
||||||
|
[ui]="{ '*': { spanLabelFixed: 90,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
|
||||||
|
[button]="'none'"></sf>
|
||||||
|
</div>
|
||||||
|
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand"
|
||||||
|
class="text-right">
|
||||||
|
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||||
|
<button nz-button (click)="resetSF()">重置</button>
|
||||||
|
<button nz-button (click)="exportList()"> 导出</button>
|
||||||
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
|
{{ !_$expand ? '展开' : '收起' }}
|
||||||
|
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nz-card>
|
||||||
|
|
||||||
|
<nz-card nzBordered>
|
||||||
|
<st #st [data]="service.$api_get_driver_account_detail" [columns]="columns"
|
||||||
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
|
||||||
|
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||||
|
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||||
|
[loading]="service.http.loading" [scroll]="{ x:'1200px',y: '300px' }" (change)="stChange($event)"></st>
|
||||||
|
</nz-card>
|
||||||
@ -0,0 +1,221 @@
|
|||||||
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st';
|
||||||
|
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
||||||
|
import { FreightAccountService } from '../../../services/freight-account.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-platform-account-detail',
|
||||||
|
templateUrl: './platform-account-detail.component.html',
|
||||||
|
styleUrls: ['../../../../commom/less/box.less', '../../../../commom/less/expend-but.less']
|
||||||
|
})
|
||||||
|
export class PlatformAccountDetailComponent implements OnInit {
|
||||||
|
|
||||||
|
@ViewChild('st', { static: true })
|
||||||
|
st!: STComponent;
|
||||||
|
@ViewChild('sf', { static: false })
|
||||||
|
sf!: SFComponent;
|
||||||
|
columns: STColumn[] = this.initST();
|
||||||
|
searchSchema: SFSchema = this.initSF();
|
||||||
|
|
||||||
|
_$expand = false;
|
||||||
|
|
||||||
|
info: any = {};
|
||||||
|
params: any = {};
|
||||||
|
constructor(public service: FreightAccountService, private route: ActivatedRoute) {
|
||||||
|
this.params = route.snapshot.queryParams;
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.loadInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
|
Object.assign(requestOptions.body, {
|
||||||
|
ltdId: this.params.ltdId,
|
||||||
|
projectId: this.params.projectId,
|
||||||
|
enterpriseId: this.params.enterpriseId,
|
||||||
|
roleId: this.params.roleId
|
||||||
|
});
|
||||||
|
if (this.sf) {
|
||||||
|
Object.assign(requestOptions.body, {
|
||||||
|
...this.sf.value,
|
||||||
|
createTime: {
|
||||||
|
start: this.sf.value?.createTime?.[0] || '',
|
||||||
|
end: this.sf.value?.createTime?.[1] || ''
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return requestOptions;
|
||||||
|
};
|
||||||
|
|
||||||
|
loadInfo() {
|
||||||
|
this.service
|
||||||
|
.request(this.service.$api_get_driver_account_balance_detail, {
|
||||||
|
...this.sf?.value,
|
||||||
|
ltdId: this.params.ltdId,
|
||||||
|
projectId: this.params.projectId,
|
||||||
|
enterpriseId: this.params.enterpriseId,
|
||||||
|
roleId: this.params.roleId,
|
||||||
|
pageIndex: this.st.pi,
|
||||||
|
pageSize: this.st.ps,
|
||||||
|
createTime: {
|
||||||
|
start: this.sf?.value?.createTime?.[0] || '',
|
||||||
|
end: this.sf?.value?.createTime?.[1] || ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.info = res;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
stChange(e: STChange): void {}
|
||||||
|
|
||||||
|
exportList() {
|
||||||
|
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
|
||||||
|
}
|
||||||
|
|
||||||
|
goBack() {
|
||||||
|
history.go(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置表单
|
||||||
|
*/
|
||||||
|
resetSF() {
|
||||||
|
this.sf.reset();
|
||||||
|
this._$expand = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 伸缩查询条件
|
||||||
|
*/
|
||||||
|
expandToggle() {
|
||||||
|
this._$expand = !this._$expand;
|
||||||
|
this.sf?.setValue('/expand', this._$expand);
|
||||||
|
}
|
||||||
|
|
||||||
|
private initSF(): SFSchema {
|
||||||
|
return {
|
||||||
|
properties: {
|
||||||
|
expand: {
|
||||||
|
type: 'boolean',
|
||||||
|
ui: {
|
||||||
|
hidden: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
createTime: {
|
||||||
|
title: '交易时间',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
widget: 'sl-from-to-search',
|
||||||
|
format: 'yyyy-MM-dd',
|
||||||
|
placeholder: '请选择',
|
||||||
|
nzShowTime: true
|
||||||
|
} as SFDateWidgetSchema
|
||||||
|
},
|
||||||
|
transactionNumber: {
|
||||||
|
type: 'string',
|
||||||
|
title: '流水号',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
businessNumber: {
|
||||||
|
type: 'string',
|
||||||
|
title: '交易单号',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
tradeType: {
|
||||||
|
type: 'string',
|
||||||
|
title: '交易类型',
|
||||||
|
ui: {
|
||||||
|
widget: 'dict-select',
|
||||||
|
params: { dictKey: 'trade:type' },
|
||||||
|
placeholder: '请选择',
|
||||||
|
visibleIf: {
|
||||||
|
expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
incomeType: {
|
||||||
|
type: 'string',
|
||||||
|
title: '收支类型',
|
||||||
|
ui: {
|
||||||
|
widget: 'dict-select',
|
||||||
|
params: { dictKey: 'income:type' },
|
||||||
|
placeholder: '请选择',
|
||||||
|
visibleIf: {
|
||||||
|
expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
incomeType1: {
|
||||||
|
type: 'string',
|
||||||
|
title: '货主',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
placeholder: '请选择',
|
||||||
|
visibleIf: {
|
||||||
|
expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
incomeType2: {
|
||||||
|
type: 'string',
|
||||||
|
title: '所属项目',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
placeholder: '请选择',
|
||||||
|
visibleIf: {
|
||||||
|
expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
private initST(): STColumn[] {
|
||||||
|
return [
|
||||||
|
{ title: '交易时间', index: 'createTime', type: 'date' },
|
||||||
|
{ title: '流水号', index: 'channelPaySn' },
|
||||||
|
{ title: '交易类型', index: 'tradeTypeLabel', className: 'text-center' },
|
||||||
|
{ title: '交易单号', index: 'businessNumber' },
|
||||||
|
{ title: '订单号', index: 'businessNumber' },
|
||||||
|
{ title: '运单号', index: 'businessNumber' },
|
||||||
|
{ title: '账户类型', index: 'incomeTypeLabel', className: 'text-center' },
|
||||||
|
{ title: '账户名称', index: 'incomeTypeLabel', className: 'text-center' },
|
||||||
|
{ title: '所属项目', index: 'incomeTypeLabel', className: 'text-center' },
|
||||||
|
{ title: '收支类型', index: 'incomeTypeLabel', className: 'text-center' },
|
||||||
|
{
|
||||||
|
title: '交易金额',
|
||||||
|
index: 'amount',
|
||||||
|
width: 150,
|
||||||
|
type: 'widget',
|
||||||
|
className: 'text-right',
|
||||||
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.amount }) }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '账户余额',
|
||||||
|
index: 'accountBalance',
|
||||||
|
width: 150,
|
||||||
|
type: 'widget',
|
||||||
|
className: 'text-right',
|
||||||
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.accountBalance }) }
|
||||||
|
},
|
||||||
|
{ title: '付款方', index: 'incomeTypeLabel', className: 'text-center' },
|
||||||
|
{ title: '收款方', index: 'incomeTypeLabel', className: 'text-center' },
|
||||||
|
{ title: '备注', index: 'incomeTypeLabel', className: 'text-center' },
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -52,7 +52,7 @@
|
|||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<nz-card class="content-box">
|
<nz-card class="content-box">
|
||||||
<st #st [data]="url" [columns]="columns" [req]="{ params: reqParams }" [scroll]="{ x: '1200px' }"
|
<st #st [data]="url" [columns]="columns" [req]="{ process: beforeReq }" [scroll]="{ x: '1200px' }"
|
||||||
[loading]="service.http.loading" (change)="stChange($event)">
|
[loading]="service.http.loading">
|
||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
@ -1,12 +1,9 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { STComponent, STColumn, STChange } from '@delon/abc/st';
|
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
|
||||||
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
import { SystemStaffStaffModalComponent } from 'src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component';
|
|
||||||
import { SystemService } from 'src/app/routes/sys-setting/services/system.service';
|
|
||||||
import { FreightAccountService } from '../../services/freight-account.service';
|
import { FreightAccountService } from '../../services/freight-account.service';
|
||||||
import { SettingFinancialComponent } from './setting-financial/setting-financial.component';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-platform-account',
|
selector: 'app-platform-account',
|
||||||
@ -18,40 +15,22 @@ export class PlatformAccountComponent implements OnInit {
|
|||||||
st!: STComponent;
|
st!: STComponent;
|
||||||
@ViewChild('sf', { static: false })
|
@ViewChild('sf', { static: false })
|
||||||
sf!: SFComponent;
|
sf!: SFComponent;
|
||||||
|
searchSchema: SFSchema = this.initSF();
|
||||||
|
columns: STColumn[] = this.initST();
|
||||||
|
|
||||||
url = `/rule?_allow_anonymous=true`;
|
url = `/rule?_allow_anonymous=true`;
|
||||||
|
|
||||||
searchSchema: SFSchema = this.initSF();
|
|
||||||
|
|
||||||
columns: STColumn[] = this.initST();
|
|
||||||
reqParams = { pageIndex: 1, pageSize: 10 };
|
|
||||||
|
|
||||||
constructor(public service: FreightAccountService, private router: Router, private nzModalService: NzModalService) {}
|
constructor(public service: FreightAccountService, private router: Router, private nzModalService: NzModalService) {}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
ngOnInit(): void {}
|
||||||
|
|
||||||
stChange(e: STChange): void {
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
switch (e.type) {
|
if (this.sf) {
|
||||||
case 'filter':
|
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||||
this.st.load();
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
return requestOptions;
|
||||||
|
};
|
||||||
settingFinanical(item: any) {
|
|
||||||
const modal = this.nzModalService.create({
|
|
||||||
nzContent: SettingFinancialComponent,
|
|
||||||
nzComponentParams: item ? { i: { ...item, roleId: '1,2,3', name: '用户名', phone: 18555555555 } } : { i: { id: 0 } },
|
|
||||||
nzFooter: null
|
|
||||||
});
|
|
||||||
modal.afterClose.subscribe(res => {
|
|
||||||
this.st.load();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
routeTo(item?: any) {
|
|
||||||
this.router.navigate(['/financial-management/driver-account-detail/1']);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置表单
|
* 重置表单
|
||||||
@ -192,7 +171,7 @@ export class PlatformAccountComponent implements OnInit {
|
|||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: '查看明细',
|
text: '查看明细',
|
||||||
click: item => this.routeTo(item)
|
click: item => this.router.navigate(['/financial-management/platform-account/detail/' + item.id])
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,6 +28,7 @@ import { VoucherListComponent } from './components/voucher-summary/voucher-list/
|
|||||||
import { ReceiptOrderDetailComponent } from './components/receipt-order/receipt-order-detail/receipt-order-detail.component';
|
import { ReceiptOrderDetailComponent } from './components/receipt-order/receipt-order-detail/receipt-order-detail.component';
|
||||||
import { PaymentOrderDetailComponent } from './components/payment-order/payment-order-detail/payment-order-detail.component';
|
import { PaymentOrderDetailComponent } from './components/payment-order/payment-order-detail/payment-order-detail.component';
|
||||||
import { PlatformAccountComponent } from './components/platform-account/platform-account.component';
|
import { PlatformAccountComponent } from './components/platform-account/platform-account.component';
|
||||||
|
import { PlatformAccountDetailComponent } from './components/platform-account/platform-account-detail/platform-account-detail.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: 'freight-account', component: FreightAccountComponent, data: { guard: { ability: ['FINANCIAL-FREIGHT-ACOUNT-list'] } } },
|
{ path: 'freight-account', component: FreightAccountComponent, data: { guard: { ability: ['FINANCIAL-FREIGHT-ACOUNT-list'] } } },
|
||||||
@ -35,6 +36,7 @@ const routes: Routes = [
|
|||||||
{ path: 'driver-account', component: DriverAccountComponent },
|
{ path: 'driver-account', component: DriverAccountComponent },
|
||||||
{ path: 'driver-account/detail/:id', component: DriverAccountDetailComponent },
|
{ path: 'driver-account/detail/:id', component: DriverAccountDetailComponent },
|
||||||
{ path: 'platform-account', component: PlatformAccountComponent },
|
{ path: 'platform-account', component: PlatformAccountComponent },
|
||||||
|
{ path: 'platform-account/detail/:id', component: PlatformAccountDetailComponent },
|
||||||
{ path: 'recharge-record', component: RechargeRecordComponent },
|
{ path: 'recharge-record', component: RechargeRecordComponent },
|
||||||
{ path: 'withdrawals-record', component: WithdrawalsRecordComponent },
|
{ path: 'withdrawals-record', component: WithdrawalsRecordComponent },
|
||||||
{ path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent },
|
{ path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent },
|
||||||
|
|||||||
@ -31,7 +31,7 @@ import { PaymentOrderDetailComponent } from './components/payment-order/payment-
|
|||||||
import { VoucherListComponent } from './components/voucher-summary/voucher-list/voucher-list.component';
|
import { VoucherListComponent } from './components/voucher-summary/voucher-list/voucher-list.component';
|
||||||
import { ReceiptOrderDetailComponent } from './components/receipt-order/receipt-order-detail/receipt-order-detail.component';
|
import { ReceiptOrderDetailComponent } from './components/receipt-order/receipt-order-detail/receipt-order-detail.component';
|
||||||
import { PlatformAccountComponent } from './components/platform-account/platform-account.component';
|
import { PlatformAccountComponent } from './components/platform-account/platform-account.component';
|
||||||
import { SettingFinancialComponent } from './components/platform-account/setting-financial/setting-financial.component';
|
import { PlatformAccountDetailComponent } from './components/platform-account/platform-account-detail/platform-account-detail.component';
|
||||||
|
|
||||||
const ROUTESCOMPONENTS = [
|
const ROUTESCOMPONENTS = [
|
||||||
FreightAccountComponent,
|
FreightAccountComponent,
|
||||||
@ -57,12 +57,13 @@ const ROUTESCOMPONENTS = [
|
|||||||
ReceivableOrderDetailComponent,
|
ReceivableOrderDetailComponent,
|
||||||
PayableOrderDetailComponent,
|
PayableOrderDetailComponent,
|
||||||
PlatformAccountComponent,
|
PlatformAccountComponent,
|
||||||
|
PlatformAccountDetailComponent,
|
||||||
PaymentOrderDetailComponent,
|
PaymentOrderDetailComponent,
|
||||||
VoucherListComponent,
|
VoucherListComponent,
|
||||||
ReceiptOrderDetailComponent
|
ReceiptOrderDetailComponent
|
||||||
];
|
];
|
||||||
|
|
||||||
const NOTROUTECOMPONENTS = [DriverAccountDetailComponent, FreightAccountDetailComponent, SettingFinancialComponent, ClearingModalComponent];
|
const NOTROUTECOMPONENTS = [DriverAccountDetailComponent, FreightAccountDetailComponent, ClearingModalComponent];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [...ROUTESCOMPONENTS, ...NOTROUTECOMPONENTS],
|
declarations: [...ROUTESCOMPONENTS, ...NOTROUTECOMPONENTS],
|
||||||
|
|||||||
@ -52,7 +52,7 @@ export class ApiAuthComponent implements OnInit {
|
|||||||
this.listOfMapData.forEach(item => {
|
this.listOfMapData.forEach(item => {
|
||||||
this.mapOfExpandedData[item.key] = this.service.convertTreeToList(item);
|
this.mapOfExpandedData[item.key] = this.service.convertTreeToList(item);
|
||||||
});
|
});
|
||||||
console.log(this.listOfMapData, this.mapOfExpandedData);
|
// console.log(this.listOfMapData, this.mapOfExpandedData);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,12 +70,15 @@
|
|||||||
<!-- <td nzWidth="70px" nzAlign="center" [nzChecked]="item.checked">{{ i+1 }}</td> -->
|
<!-- <td nzWidth="70px" nzAlign="center" [nzChecked]="item.checked">{{ i+1 }}</td> -->
|
||||||
<td [nzIndentSize]="item.level! * 20" [nzShowExpand]="!!item.children" [(nzExpand)]="item.expand"
|
<td [nzIndentSize]="item.level! * 20" [nzShowExpand]="!!item.children" [(nzExpand)]="item.expand"
|
||||||
(nzExpandChange)="service.collapse(mapOfExpandedData[data.key], item, $event)">
|
(nzExpandChange)="service.collapse(mapOfExpandedData[data.key], item, $event)">
|
||||||
{{ item.text }}
|
{{ item.title }}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ item.keyCode }}</td>
|
<td>{{ item.keyCode }}</td>
|
||||||
<td>{{ item.link }}</td>
|
<td>{{ item.link }}</td>
|
||||||
<td nzAlign="center" nzWidth="100px">
|
<td nzAlign="center" nzWidth="100px">
|
||||||
<i nz-icon [nzType]="item.iconType"></i>
|
<ng-container [ngSwitch]="item.iconType">
|
||||||
|
<i *ngSwitchCase="'icon'" nz-icon [nzType]="item.value"></i>
|
||||||
|
<i *ngSwitchCase="'iconfont'" [class]="item.value"></i>
|
||||||
|
</ng-container>
|
||||||
</td>
|
</td>
|
||||||
<td nzAlign="right" nzWidth="100px">{{ item.sorted }}</td>
|
<td nzAlign="right" nzWidth="100px">{{ item.sorted }}</td>
|
||||||
<td nzAlign="center" nzWidth="250px">
|
<td nzAlign="center" nzWidth="250px">
|
||||||
|
|||||||
@ -54,7 +54,7 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
|
|||||||
this.listOfMapData.forEach(item => {
|
this.listOfMapData.forEach(item => {
|
||||||
this.mapOfExpandedData[item.key] = this.service.convertTreeToList(item);
|
this.mapOfExpandedData[item.key] = this.service.convertTreeToList(item);
|
||||||
});
|
});
|
||||||
console.log(this.listOfMapData, this.mapOfExpandedData);
|
// console.log(this.listOfMapData, this.mapOfExpandedData);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,7 +33,7 @@ export class MenuModalComponent implements OnInit {
|
|||||||
initSF(data?: any) {
|
initSF(data?: any) {
|
||||||
this.schema = {
|
this.schema = {
|
||||||
properties: {
|
properties: {
|
||||||
text: {
|
title: {
|
||||||
title: '菜单名称',
|
title: '菜单名称',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: this.formData.text,
|
default: this.formData.text,
|
||||||
@ -99,7 +99,7 @@ export class MenuModalComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['text']
|
required: ['title']
|
||||||
};
|
};
|
||||||
this.ui = {
|
this.ui = {
|
||||||
'*': {
|
'*': {
|
||||||
@ -131,16 +131,16 @@ export class MenuModalComponent implements OnInit {
|
|||||||
const params = {
|
const params = {
|
||||||
...this.sf.value,
|
...this.sf.value,
|
||||||
...this.params,
|
...this.params,
|
||||||
i18n: this.sf.value.keyCode,
|
i18n: null,
|
||||||
|
// i18n: this.sf.value.keyCode,
|
||||||
menuType: 0,
|
menuType: 0,
|
||||||
reuse: 0,
|
reuse: 0,
|
||||||
shortcut: 0,
|
shortcut: 0,
|
||||||
hideInBreadcrumb: 0,
|
hideInBreadcrumb: 0,
|
||||||
functionType: 0,
|
functionType: 0,
|
||||||
sortId: this.sf.value.sortId?.toString() || null
|
sortId: this.sf.value.sortId?.toString() || null,
|
||||||
|
text: this.sf.value.title
|
||||||
};
|
};
|
||||||
console.log(params);
|
|
||||||
|
|
||||||
this.service.request(this.service.$api_add_one, params).subscribe(res => {
|
this.service.request(this.service.$api_add_one, params).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.service.msgSrv.success(this.formData.id ? '修改菜单成功' : '新增菜单成功');
|
this.service.msgSrv.success(this.formData.id ? '修改菜单成功' : '新增菜单成功');
|
||||||
|
|||||||
@ -20,11 +20,11 @@ export class MenuManagerService extends BaseService {
|
|||||||
// 获取菜单下按钮权限列表
|
// 获取菜单下按钮权限列表
|
||||||
$api_get_functions_by_id = `/api/mdc/cuc/functionButton/getFunctionButtonByFunctionId`;
|
$api_get_functions_by_id = `/api/mdc/cuc/functionButton/getFunctionButtonByFunctionId`;
|
||||||
// 获取所有按钮信息
|
// 获取所有按钮信息
|
||||||
$api_get_functions= `/api/mdc/cuc/buttonInfo/getButtonInfoList`;
|
$api_get_functions = `/api/mdc/cuc/buttonInfo/getButtonInfoList`;
|
||||||
// 保存菜单按钮关联
|
// 保存菜单按钮关联
|
||||||
$api_save_menu_function= `/api/mdc/cuc/functionButton/saveFunctionButton`;
|
$api_save_menu_function = `/api/mdc/cuc/functionButton/saveFunctionButton`;
|
||||||
// 删除菜单按钮关联表
|
// 删除菜单按钮关联表
|
||||||
$api_delete_menu_function= `/api/mdc/cuc/functionButton/deletebatch`;
|
$api_delete_menu_function = `/api/mdc/cuc/functionButton/deletebatch`;
|
||||||
|
|
||||||
constructor(public injector: Injector) {
|
constructor(public injector: Injector) {
|
||||||
super(injector);
|
super(injector);
|
||||||
@ -112,7 +112,7 @@ export class MenuManagerService extends BaseService {
|
|||||||
level: node.level! + 1,
|
level: node.level! + 1,
|
||||||
expand: false,
|
expand: false,
|
||||||
parent: node,
|
parent: node,
|
||||||
iconType: this.formatIcon(node.children[i].icon)
|
...this.formatIcon(node.children[i].icon)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -128,13 +128,17 @@ export class MenuManagerService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private formatIcon(icon: any) {
|
private formatIcon(icon: any): { iconType: string; value: string } {
|
||||||
let value = icon;
|
let value = icon;
|
||||||
|
let type = 'icon';
|
||||||
// compatible `anticon anticon-user`
|
// compatible `anticon anticon-user`
|
||||||
if (~icon.indexOf(`anticon-`)) {
|
if (~icon.indexOf(`anticon-`)) {
|
||||||
value = value.split('-').slice(1).join('-');
|
value = value.split('-').slice(1).join('-');
|
||||||
}
|
}
|
||||||
return value;
|
if (~icon.indexOf(`iconfont`)) {
|
||||||
|
type = 'iconfont';
|
||||||
|
}
|
||||||
|
return { iconType: type, value };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user