added stock-form for change minimale quantity
This commit is contained in:
43
src/app/components/stock-table/stock-table.ts
Normal file
43
src/app/components/stock-table/stock-table.ts
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user