├── src ├── assets │ ├── .gitkeep │ └── icons │ │ ├── icon-128x128.png │ │ ├── icon-144x144.png │ │ ├── icon-152x152.png │ │ ├── icon-192x192.png │ │ ├── icon-384x384.png │ │ ├── icon-512x512.png │ │ ├── icon-72x72.png │ │ └── icon-96x96.png ├── app │ ├── shared │ │ ├── services │ │ │ ├── alert │ │ │ │ ├── alert.component.scss │ │ │ │ ├── alert.service.spec.ts │ │ │ │ ├── alert.component.ts │ │ │ │ ├── alert.service.ts │ │ │ │ ├── alert.component.spec.ts │ │ │ │ └── alert.component.html │ │ │ ├── data │ │ │ │ ├── data-pws.spec.ts │ │ │ │ ├── data-users.spec.ts │ │ │ │ ├── data-prices.spec.ts │ │ │ │ ├── data-customers.spec.ts │ │ │ │ ├── data-vehicle-steel.spec.ts │ │ │ │ ├── data-users.ts │ │ │ │ ├── data-prices.ts │ │ │ │ ├── data-pws.ts │ │ │ │ ├── data-customers.ts │ │ │ │ └── data-vehicle-steel.ts │ │ │ ├── auth.service.spec.ts │ │ │ ├── data.service.spec.ts │ │ │ ├── utils.service.spec.ts │ │ │ ├── calculate-patches.service.spec.ts │ │ │ ├── data.service.ts │ │ │ ├── utils.service.ts │ │ │ ├── calculate-patches.service.ts │ │ │ └── auth.service.ts │ │ ├── components │ │ │ ├── loading │ │ │ │ ├── loading.component.scss │ │ │ │ ├── loading.component.html │ │ │ │ ├── loading.component.ts │ │ │ │ └── loading.component.spec.ts │ │ │ ├── dashboard │ │ │ │ ├── dashboard.component.scss │ │ │ │ ├── dashboard.component.html │ │ │ │ ├── dashboard.component.ts │ │ │ │ └── dashboard.component.spec.ts │ │ │ ├── not-found │ │ │ │ ├── not-found.component.scss │ │ │ │ ├── not-found.component.html │ │ │ │ ├── not-found.component.ts │ │ │ │ └── not-found.component.spec.ts │ │ │ └── login │ │ │ │ ├── login.component.scss │ │ │ │ ├── login.component.spec.ts │ │ │ │ ├── login.component.html │ │ │ │ └── login.component.ts │ │ ├── guards │ │ │ ├── auth.guard.spec.ts │ │ │ └── auth.guard.ts │ │ └── shared.module.ts │ ├── customers │ │ ├── customer-dialog │ │ │ ├── customer-dialog.component.scss │ │ │ ├── customer-dialog-service.service.spec.ts │ │ │ ├── customer-dialog.component.spec.ts │ │ │ ├── customer-dialog.component.html │ │ │ ├── customer-dialog-service.service.ts │ │ │ └── customer-dialog.component.ts │ │ ├── customers-routing.module.ts │ │ └── customers.module.ts │ ├── app.component.scss │ ├── vehicle-steel │ │ ├── vehicle-steel-home │ │ │ ├── vehicle-steel-home.component.scss │ │ │ ├── vehicle-steel-home.component.spec.ts │ │ │ ├── vehicle-steel-home.component.html │ │ │ └── vehicle-steel-home.component.ts │ │ ├── vehicle-steel-weighing-survey │ │ │ ├── vehicle-steel-weighing-survey.component.scss │ │ │ ├── vehicle-steel-weighing-survey.component.spec.ts │ │ │ ├── vehicle-steel-weighing-survey.component.html │ │ │ └── vehicle-steel-weighing-survey.component.ts │ │ ├── vehicle-steel-weighing-survey-recent │ │ │ ├── vehicle-steel-weighing-survey-recent.component.scss │ │ │ ├── vehicle-steel-weighing-survey-recent.component.spec.ts │ │ │ ├── vehicle-steel-weighing-survey-recent.component.html │ │ │ └── vehicle-steel-weighing-survey-recent.component.ts │ │ ├── vehicle-steel-weighing-survey-dialog │ │ │ ├── vehicle-steel-weighing-survey-dialog.component.scss │ │ │ ├── vehicle-steel-weighing-survey-dialog.service.spec.ts │ │ │ ├── vehicle-steel-survey-print │ │ │ │ ├── vehicle-steel-survey-print.component.spec.ts │ │ │ │ ├── vehicle-steel-survey-print.component.scss │ │ │ │ ├── vehicle-steel-survey-print.component.html │ │ │ │ └── vehicle-steel-survey-print.component.ts │ │ │ ├── vehicle-steel-weighing-print │ │ │ │ ├── vehicle-steel-weighing-print.component.spec.ts │ │ │ │ ├── vehicle-steel-weighing-print.component.scss │ │ │ │ ├── vehicle-steel-weighing-print.component.ts │ │ │ │ └── vehicle-steel-weighing-print.component.html │ │ │ ├── vehicle-steel-weighing-survey-dialog.component.spec.ts │ │ │ ├── vehicle-steel-weighing-survey-dialog.service.ts │ │ │ ├── vehicle-steel-weighing-survey-dialog.component.html │ │ │ └── vehicle-steel-weighing-survey-dialog.component.ts │ │ ├── vehicle-steel-routing.module.ts │ │ └── vehicle-steel.module.ts │ ├── app.config.ts │ ├── app.component.ts │ ├── app.component.html │ ├── app-routing.module.ts │ ├── app.component.spec.ts │ └── app.module.ts ├── favicon.ico ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── main.ts ├── styles.scss ├── index.html ├── test.ts ├── manifest.webmanifest └── polyfills.ts ├── cert.rar ├── notes ├── deploy.md ├── certs.md ├── port-forwarding.md └── config.md ├── .editorconfig ├── tsconfig.app.json ├── tsconfig.spec.json ├── ngsw-config.json ├── .browserslistrc ├── .gitignore ├── tsconfig.json ├── README.md ├── package.json ├── karma.conf.js └── angular.json /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/services/alert/alert.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/loading/loading.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/dashboard/dashboard.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/not-found/not-found.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/customers/customer-dialog/customer-dialog.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cert.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timathon/lyfront-vs/master/cert.rar -------------------------------------------------------------------------------- /src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | .example-spacer { 2 | flex: 1 1 auto; 3 | } -------------------------------------------------------------------------------- /src/app/vehicle-steel/vehicle-steel-home/vehicle-steel-home.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/dashboard/dashboard.component.html: -------------------------------------------------------------------------------- 1 |
dashboard works!
2 | -------------------------------------------------------------------------------- /src/app/shared/components/not-found/not-found.component.html: -------------------------------------------------------------------------------- 1 |not-found works!
2 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timathon/lyfront-vs/master/src/favicon.ico -------------------------------------------------------------------------------- /src/app/shared/components/loading/loading.component.html: -------------------------------------------------------------------------------- 1 |12 | v20210902 13 |
14 | -------------------------------------------------------------------------------- /src/app/vehicle-steel/vehicle-steel-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule, Routes } from '@angular/router'; 3 | import { VehicleSteelHomeComponent } from './vehicle-steel-home/vehicle-steel-home.component'; 4 | 5 | const routes: Routes = [ 6 | { path: '', component: VehicleSteelHomeComponent, /* canActivate: [AuthGuard], */pathMatch: 'full' } 7 | ]; 8 | 9 | @NgModule({ 10 | imports: [RouterModule.forChild(routes)], 11 | exports: [RouterModule] 12 | }) 13 | export class VehicleSteelRoutingModule { } 14 | -------------------------------------------------------------------------------- /src/app/customers/customer-dialog/customer-dialog-service.service.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed } from '@angular/core/testing'; 2 | 3 | import { CustomerDialogServiceService } from './customer-dialog-service.service'; 4 | 5 | describe('CustomerDialogServiceService', () => { 6 | let service: CustomerDialogServiceService; 7 | 8 | beforeEach(() => { 9 | TestBed.configureTestingModule({}); 10 | service = TestBed.inject(CustomerDialogServiceService); 11 | }); 12 | 13 | it('should be created', () => { 14 | expect(service).toBeTruthy(); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /src/app/shared/services/alert/alert.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, Inject, OnInit } from '@angular/core'; 2 | import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; 3 | 4 | @Component({ 5 | selector: 'app-alert', 6 | templateUrl: './alert.component.html', 7 | styleUrls: ['./alert.component.scss'] 8 | }) 9 | export class AlertComponent implements OnInit { 10 | 11 | constructor( 12 | @Inject(MAT_DIALOG_DATA) public data: { alert: any }, 13 | private dialogRef: MatDialogRef| 货车进场日期 | 8 |{{element.weighing?.inWeighedAt | date: 'y-MM-dd HH:mm'}} | 9 |货车车牌号 | 13 |{{element.weighing.truckPlateNo}} | 14 |18 | 净重 19 | | 20 |{{ 21 | getNetWeight(element) | number 22 | }} 23 | | 24 |操作 | 27 |28 | 31 | 32 | 37 | 38 | 43 | | 44 |已验质 | 49 |{{!!element.survey.surveyedAt ? '是' : '否'}} | 50 |采购 | 54 |{{element.weighing.customerId === '60b99776fe22ea0526faa6c9' ? '' : '是'}} | 55 |
|---|