added stock-form for change minimale quantity

This commit is contained in:
2025-11-13 18:56:30 +01:00
parent 0cc5d3b1f1
commit 8ef46ef1c8
7 changed files with 59 additions and 5 deletions

View File

@@ -0,0 +1,43 @@
import { Component } from '@angular/core';
import {StockInfo} from "../../interfaces/stock.interface";
import {NzTableComponent} from "ng-zorro-antd/table";
import {ModalNav} from "../modalNav/modalNav";
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
}
}