票务管理配置

This commit is contained in:
Taric Xin
2021-12-03 15:35:24 +08:00
parent 24895e552e
commit f704037fe4
23 changed files with 192 additions and 0 deletions

View File

@ -32,6 +32,7 @@ const routes: Routes = [
loadChildren: () => import('./usercenter/usercenter.module').then(m => m.UsercenterModule) loadChildren: () => import('./usercenter/usercenter.module').then(m => m.UsercenterModule)
}, },
{ path: 'system', loadChildren: () => import('./sys-setting/sys-setting.module').then(m => m.SysSettingModule) }, { path: 'system', loadChildren: () => import('./sys-setting/sys-setting.module').then(m => m.SysSettingModule) },
{ path: 'ticket', loadChildren: () => import('./ticket-management/ticket-management.module').then(m => m.TicketManagementModule) },
{ path: 'supplygoods', loadChildren: () => import('./supply-goods/supply-goods.module').then(m => m.SupplyGoodsModule) }, { path: 'supplygoods', loadChildren: () => import('./supply-goods/supply-goods.module').then(m => m.SupplyGoodsModule) },
{ path: 'vehicle', loadChildren: () => import('./vehicle/vehicle.module').then(m => m.VehicleModule) } { path: 'vehicle', loadChildren: () => import('./vehicle/vehicle.module').then(m => m.VehicleModule) }
] ]

View File

@ -0,0 +1 @@
<p>etc-blacklist works!</p>

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-etc-blacklist',
templateUrl: './etc-blacklist.component.html',
styleUrls: ['./etc-blacklist.component.less']
})
export class ETCBlacklistComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>etc-invoiced-list works!</p>

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-etc-invoiced-list',
templateUrl: './etc-invoiced-list.component.html',
styleUrls: ['./etc-invoiced-list.component.less']
})
export class ETCInvoicedListComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>etc-invoiced-logs works!</p>

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-etc-invoiced-logs',
templateUrl: './etc-invoiced-logs.component.html',
styleUrls: ['./etc-invoiced-logs.component.less']
})
export class ETCInvoicedLogsComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>etc-invoiced-requested works!</p>

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-etc-invoiced-requested',
templateUrl: './etc-invoiced-requested.component.html',
styleUrls: ['./etc-invoiced-requested.component.less']
})
export class ETCInvoicedRequestedComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>invoice-requested works!</p>

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-invoice-requested',
templateUrl: './invoice-requested.component.html',
styleUrls: ['./invoice-requested.component.less']
})
export class InvoiceRequestedComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>invoiced-list works!</p>

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-invoiced-list',
templateUrl: './invoiced-list.component.html',
styleUrls: ['./invoiced-list.component.less']
})
export class InvoicedListComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1,11 @@
import { Injectable, Injector } from '@angular/core';
import { BaseService } from 'src/app/shared/services';
@Injectable({
providedIn: 'root'
})
export class TicketService extends BaseService {
constructor(public injector: Injector) {
super(injector);
}
}

View File

@ -0,0 +1,23 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ETCBlacklistComponent } from './components/etc-blacklist/etc-blacklist.component';
import { ETCInvoicedListComponent } from './components/etc-invoiced-list/etc-invoiced-list.component';
import { ETCInvoicedLogsComponent } from './components/etc-invoiced-logs/etc-invoiced-logs.component';
import { ETCInvoicedRequestedComponent } from './components/etc-invoiced-requested/etc-invoiced-requested.component';
import { InvoiceRequestedComponent } from './components/invoice-requested/invoice-requested.component';
import { InvoicedListComponent } from './components/invoiced-list/invoiced-list.component';
const routes: Routes = [
{ path: 'invoice-requested', component: InvoiceRequestedComponent },
{ path: 'invoice-list', component: InvoicedListComponent },
{ path: 'etc-invoice-requested', component: ETCInvoicedRequestedComponent },
{ path: 'etc-invoice-list', component: ETCInvoicedListComponent },
{ path: 'etc-invoiced-logs', component: ETCInvoicedLogsComponent },
{ path: 'etc-blacklist', component: ETCBlacklistComponent }
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class TicketManagementRoutingModule {}

View File

@ -0,0 +1,25 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '@shared';
import { TicketManagementRoutingModule } from './ticket-management-routing.module';
import { ETCInvoicedListComponent } from './components/etc-invoiced-list/etc-invoiced-list.component';
import { ETCInvoicedRequestedComponent } from './components/etc-invoiced-requested/etc-invoiced-requested.component';
import { ETCInvoicedLogsComponent } from './components/etc-invoiced-logs/etc-invoiced-logs.component';
import { ETCBlacklistComponent } from './components/etc-blacklist/etc-blacklist.component';
import { InvoicedListComponent } from './components/invoiced-list/invoiced-list.component';
import { InvoiceRequestedComponent } from './components/invoice-requested/invoice-requested.component';
const COMPONENTS: any = [
ETCInvoicedListComponent,
ETCInvoicedRequestedComponent,
ETCInvoicedLogsComponent,
ETCBlacklistComponent,
InvoiceRequestedComponent,
InvoicedListComponent
];
const NOTROUTECOMPONENTS: any = [];
@NgModule({
declarations: [...COMPONENTS, ...NOTROUTECOMPONENTS],
imports: [CommonModule, TicketManagementRoutingModule, SharedModule]
})
export class TicketManagementModule {}

View File

@ -101,6 +101,42 @@
] ]
}] }]
}, },
{
"text": "票务管理",
"icon": "anticon anticon-dashboard",
"group": true,
"children": [
{
"text": "开票申请",
"link": "/ticket/invoice-requested"
},
{
"text": "已开发票",
"link": "/ticket/invoice-list"
},
{
"text": "ETC发票",
"children": [
{
"text": "申请发票",
"link": "/ticket/etc-invoice-requested"
},
{
"text": "运单开票记录",
"link": "/ticket/etc-invoice-list"
},
{
"text": "已开发票",
"link": "/ticket/etc-invoiced-logs"
},
{
"text": "黑名单",
"link": "/ticket/etc-blacklist"
}
]
}
]
},
{ {
"text": "货源管理", "text": "货源管理",
"icon": "anticon anticon-dashboard", "icon": "anticon anticon-dashboard",