44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import {StockInfo} from "../../interfaces/stock.interface";
|
|
import {NzTableComponent} from "ng-zorro-antd/table";
|
|
import {ModalNav} from "../modal-nav/modal-nav";
|
|
import {NzIconDirective} from "ng-zorro-antd/icon";
|
|
import {StockForm} from "../stock-form/stock-form";
|
|
|
|
@Component({
|
|
selector: 'app-stock-table',
|
|
imports: [
|
|
NzTableComponent,
|
|
ModalNav,
|
|
NzIconDirective,
|
|
StockForm
|
|
],
|
|
templateUrl: './stock-table.html',
|
|
styleUrl: './stock-table.css',
|
|
})
|
|
export class StockTable {
|
|
listOfData: StockInfo[] = [
|
|
{
|
|
name: 'Stock 1',
|
|
duration: '10 days',
|
|
caliber: '100g',
|
|
quantity: 100,
|
|
weight: 1000,
|
|
nec: '5kg',
|
|
minimalQuantity: 5
|
|
},
|
|
{
|
|
name: 'Stock 2',
|
|
duration: '20 days',
|
|
caliber: '200g',
|
|
quantity: 200,
|
|
weight: 2000,
|
|
nec: '10kg',
|
|
minimalQuantity: 10
|
|
}
|
|
];
|
|
delete(){
|
|
return
|
|
}
|
|
}
|