diff --git a/src/app/pages/stock/stock.html b/src/app/pages/stock/stock.html index a46e7f2..94ddb77 100644 --- a/src/app/pages/stock/stock.html +++ b/src/app/pages/stock/stock.html @@ -1 +1,4 @@ -

stock works!

+ + + + \ No newline at end of file diff --git a/src/app/pages/stock/stock.ts b/src/app/pages/stock/stock.ts index 2ab1ba4..0b463bb 100644 --- a/src/app/pages/stock/stock.ts +++ b/src/app/pages/stock/stock.ts @@ -1,11 +1,51 @@ import { Component } from '@angular/core'; +import {NzTableComponent} from "ng-zorro-antd/table"; @Component({ selector: 'app-stock', - imports: [], + imports: [ + NzTableComponent + ], templateUrl: './stock.html', styleUrl: './stock.css', }) -export class Stock { +class StockInfo { + id: number; + name: string; + Duration: string; + Caliber: string; + Quantity: number; + Weight: number; + Nec: string; + MinimalQuantity: number; +} + + +export class Stock { + listOfData: StockInfo[] = [ + { + id: 1, + name: 'Stock 1', + Duration: '10 days', + Caliber: '100g', + Quantity: 100, + Weight: 1000, + Nec: '5kg', + MinimalQuantity: 5 + }, + { + id: 2, + name: 'Stock 2', + Duration: '20 days', + Caliber: '200g', + Quantity: 200, + Weight: 2000, + Nec: '10kg', + MinimalQuantity: 10 + } + ]; + delete(){ + return + } }