Merge branch 'feature/partner' of https://gitlab.eascs.com/tms-ui/tms-obc-web into feature/partner
This commit is contained in:
@ -0,0 +1,9 @@
|
|||||||
|
<page-header [action]="phActionTpl">
|
||||||
|
<ng-template #phActionTpl>
|
||||||
|
<button (click)="add()" nz-button nzType="primary">新建</button>
|
||||||
|
</ng-template>
|
||||||
|
</page-header>
|
||||||
|
<nz-card>
|
||||||
|
<sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
|
||||||
|
<st #st [data]="url" [columns]="columns"></st>
|
||||||
|
</nz-card>
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { PartnerBusinessStatisticsIndexComponent } from './index.component';
|
||||||
|
|
||||||
|
describe('PartnerBusinessStatisticsIndexComponent', () => {
|
||||||
|
let component: PartnerBusinessStatisticsIndexComponent;
|
||||||
|
let fixture: ComponentFixture<PartnerBusinessStatisticsIndexComponent>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [PartnerBusinessStatisticsIndexComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(PartnerBusinessStatisticsIndexComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
|
import { STColumn, STComponent } from '@delon/abc/st';
|
||||||
|
import { SFSchema } from '@delon/form';
|
||||||
|
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-partner-business-statistics-index',
|
||||||
|
templateUrl: './index.component.html',
|
||||||
|
})
|
||||||
|
export class PartnerBusinessStatisticsIndexComponent implements OnInit {
|
||||||
|
url = `/user`;
|
||||||
|
searchSchema: SFSchema = {
|
||||||
|
properties: {
|
||||||
|
no: {
|
||||||
|
type: 'string',
|
||||||
|
title: '编号'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
@ViewChild('st') private readonly st!: STComponent;
|
||||||
|
columns: STColumn[] = [
|
||||||
|
{ title: '编号', index: 'no' },
|
||||||
|
{ title: '调用次数', type: 'number', index: 'callNo' },
|
||||||
|
{ title: '头像', type: 'img', width: '50px', index: 'avatar' },
|
||||||
|
{ title: '时间', type: 'date', index: 'updatedAt' },
|
||||||
|
{
|
||||||
|
title: '',
|
||||||
|
buttons: [
|
||||||
|
// { text: '查看', click: (item: any) => `/form/${item.id}` },
|
||||||
|
// { text: '编辑', type: 'static', component: FormEditComponent, click: 'reload' },
|
||||||
|
]
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
constructor(private http: _HttpClient, private modal: ModalHelper) { }
|
||||||
|
|
||||||
|
ngOnInit(): void { }
|
||||||
|
|
||||||
|
add(): void {
|
||||||
|
// this.modal
|
||||||
|
// .createStatic(FormEditComponent, { i: { id: 0 } })
|
||||||
|
// .subscribe(() => this.st.reload());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,7 +1,9 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
import { PartnerBusinessStatisticsIndexComponent } from './business-statistics/components/index/index.component';
|
||||||
|
|
||||||
const routes: Routes = [];
|
const routes: Routes = [
|
||||||
|
{ path: 'index', component: PartnerBusinessStatisticsIndexComponent }];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild(routes)],
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
|||||||
@ -2,8 +2,10 @@ import { NgModule } from '@angular/core';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { SharedModule } from '@shared';
|
import { SharedModule } from '@shared';
|
||||||
import { PartnerRoutingModule } from './partner-routing.module';
|
import { PartnerRoutingModule } from './partner-routing.module';
|
||||||
|
import { PartnerBusinessStatisticsIndexComponent } from './business-statistics/components/index/index.component';
|
||||||
|
|
||||||
const COMPONENTS: any[] = [];
|
const COMPONENTS: any[] = [
|
||||||
|
PartnerBusinessStatisticsIndexComponent];
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [...COMPONENTS],
|
declarations: [...COMPONENTS],
|
||||||
imports: [CommonModule, PartnerRoutingModule, SharedModule]
|
imports: [CommonModule, PartnerRoutingModule, SharedModule]
|
||||||
|
|||||||
@ -1,19 +1,15 @@
|
|||||||
{
|
{
|
||||||
"menu": [
|
"menu": [{
|
||||||
{
|
|
||||||
"text": "主导航",
|
"text": "主导航",
|
||||||
"hideInBreadcrumb": true,
|
"hideInBreadcrumb": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "用户中心",
|
"text": "用户中心",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "货主管理",
|
"text": "货主管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "企业列表",
|
"text": "企业列表",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"link": "/usercenter/freight/list"
|
"link": "/usercenter/freight/list"
|
||||||
@ -63,8 +59,7 @@
|
|||||||
"text": "司机管理",
|
"text": "司机管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"link": "/demo/zorro",
|
"link": "/demo/zorro",
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "司机列表",
|
"text": "司机列表",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"link": "/usercenter/driver"
|
"link": "/usercenter/driver"
|
||||||
@ -88,8 +83,7 @@
|
|||||||
"text": "运力管理",
|
"text": "运力管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "车辆列表",
|
"text": "车辆列表",
|
||||||
"link": "/vehicle/list"
|
"link": "/vehicle/list"
|
||||||
},
|
},
|
||||||
@ -113,8 +107,7 @@
|
|||||||
"text": "货源管理",
|
"text": "货源管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "货源管理",
|
"text": "货源管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"link": "/supply-management/index",
|
"link": "/supply-management/index",
|
||||||
@ -144,8 +137,7 @@
|
|||||||
"text": "订单管理",
|
"text": "订单管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "整车订单",
|
"text": "整车订单",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"link": "/order-management/vehicle"
|
"link": "/order-management/vehicle"
|
||||||
@ -188,8 +180,7 @@
|
|||||||
"text": "运单管理",
|
"text": "运单管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "整车运单",
|
"text": "整车运单",
|
||||||
"link": "/waybill-management/vehicle"
|
"link": "/waybill-management/vehicle"
|
||||||
},
|
},
|
||||||
@ -217,8 +208,7 @@
|
|||||||
"text": "财务管理",
|
"text": "财务管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "费用管理",
|
"text": "费用管理",
|
||||||
"link": "/financial-management/cost-management"
|
"link": "/financial-management/cost-management"
|
||||||
},
|
},
|
||||||
@ -320,11 +310,9 @@
|
|||||||
"text": "票务管理",
|
"text": "票务管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "销项发票",
|
"text": "销项发票",
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "开票申请",
|
"text": "开票申请",
|
||||||
"link": "/ticket/invoice-requested"
|
"link": "/ticket/invoice-requested"
|
||||||
},
|
},
|
||||||
@ -359,8 +347,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "ETC发票",
|
"text": "ETC发票",
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "申请发票",
|
"text": "申请发票",
|
||||||
"link": "/ticket/etc-invoice-requested"
|
"link": "/ticket/etc-invoice-requested"
|
||||||
},
|
},
|
||||||
@ -398,8 +385,7 @@
|
|||||||
"text": "合同管理",
|
"text": "合同管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "保单管理",
|
"text": "保单管理",
|
||||||
"link": "/contract-management/policy"
|
"link": "/contract-management/policy"
|
||||||
},
|
},
|
||||||
@ -417,12 +403,10 @@
|
|||||||
"text": "系统设置",
|
"text": "系统设置",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "员工管理",
|
"text": "员工管理",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "员工管理",
|
"text": "员工管理",
|
||||||
"link": "/system/staff-management"
|
"link": "/system/staff-management"
|
||||||
},
|
},
|
||||||
@ -435,8 +419,7 @@
|
|||||||
{
|
{
|
||||||
"text": "操作日志",
|
"text": "操作日志",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "系统操作日志",
|
"text": "系统操作日志",
|
||||||
"link": "/logs/system-logs"
|
"link": "/logs/system-logs"
|
||||||
},
|
},
|
||||||
@ -511,8 +494,16 @@
|
|||||||
"link": "/system/goods-name-config"
|
"link": "/system/goods-name-config"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "合伙人管理",
|
||||||
|
"icon": "anticon anticon-dashboard",
|
||||||
|
"group": true,
|
||||||
|
"children": [{
|
||||||
|
"text": "业务统计",
|
||||||
|
"link": "parnter/business-statistics/index"
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user