creating purchase order page
This commit is contained in:
@@ -0,0 +1,193 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {ModalNav} from "../modal-nav/modal-nav";
|
||||
import {NzDividerComponent} from "ng-zorro-antd/divider";
|
||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||
import {NzTableComponent} from "ng-zorro-antd/table";
|
||||
import {PurchaseOrderInfo} from "../../interfaces/purchase-order.interface";
|
||||
import {PurchaseOrderForm} from "../purchase-order-form/purchase-order-form";
|
||||
import {ModalButton} from "../modal-button/modal-button";
|
||||
import {ProductForm} from "../product-form/product-form";
|
||||
|
||||
@Component({
|
||||
selector: 'app-purchase-order-table',
|
||||
imports: [
|
||||
ModalNav,
|
||||
NzDividerComponent,
|
||||
NzIconDirective,
|
||||
NzTableComponent,
|
||||
PurchaseOrderForm,
|
||||
ModalButton,
|
||||
ProductForm
|
||||
],
|
||||
templateUrl: './purchase-order-table.html',
|
||||
styleUrl: './purchase-order-table.css',
|
||||
})
|
||||
export class PurchaseOrderTable {
|
||||
purchaseOrders: PurchaseOrderInfo[] = [
|
||||
{
|
||||
purchaseCondition: "Condition d'achat standard 1",
|
||||
supplier: {
|
||||
name: "Fournisseur 1",
|
||||
email: "contact1@example.com",
|
||||
phone: "0100000001",
|
||||
address: "1 Rue de Paris",
|
||||
zipCode: "75001",
|
||||
city: "Paris",
|
||||
deliveryDelay: 3,
|
||||
products: [
|
||||
{
|
||||
reference: "F1-P1",
|
||||
name: "Produit 1A",
|
||||
supplier: [],
|
||||
duration: 0,
|
||||
caliber: "",
|
||||
approvalNumber: "",
|
||||
weight: 1,
|
||||
nec: 0,
|
||||
image: "",
|
||||
link: "",
|
||||
minimalQuantity: 1
|
||||
},
|
||||
{
|
||||
reference: "F1-P2",
|
||||
name: "Produit 1B",
|
||||
supplier: [],
|
||||
duration: 0,
|
||||
caliber: "",
|
||||
approvalNumber: "",
|
||||
weight: 2,
|
||||
nec: 0,
|
||||
image: "",
|
||||
link: "",
|
||||
minimalQuantity: 1
|
||||
}
|
||||
]
|
||||
},
|
||||
productOrder: [
|
||||
{
|
||||
product: {
|
||||
reference: "F1-P1",
|
||||
name: "Produit 1A",
|
||||
supplier: [],
|
||||
duration: 0,
|
||||
caliber: "",
|
||||
approvalNumber: "",
|
||||
weight: 1,
|
||||
nec: 0,
|
||||
image: "",
|
||||
link: "",
|
||||
minimalQuantity: 1
|
||||
},
|
||||
quantity: 5,
|
||||
price: 10
|
||||
},
|
||||
{
|
||||
product: {
|
||||
reference: "F1-P2",
|
||||
name: "Produit 1B",
|
||||
supplier: [],
|
||||
duration: 0,
|
||||
caliber: "",
|
||||
approvalNumber: "",
|
||||
weight: 2,
|
||||
nec: 0,
|
||||
image: "",
|
||||
link: "",
|
||||
minimalQuantity: 1
|
||||
},
|
||||
quantity: 3,
|
||||
price: 15
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
purchaseCondition: "Condition d'achat standard 2",
|
||||
supplier: {
|
||||
name: "Fournisseur 2",
|
||||
email: "contact2@example.com",
|
||||
phone: "0100000002",
|
||||
address: "2 Rue de Lyon",
|
||||
zipCode: "75002",
|
||||
city: "Paris",
|
||||
deliveryDelay: 4,
|
||||
products: [
|
||||
{
|
||||
reference: "F2-P1",
|
||||
name: "Produit 2A",
|
||||
supplier: [],
|
||||
duration: 0,
|
||||
caliber: "",
|
||||
approvalNumber: "",
|
||||
weight: 1.5,
|
||||
nec: 0,
|
||||
image: "",
|
||||
link: "",
|
||||
minimalQuantity: 1
|
||||
},
|
||||
{
|
||||
reference: "F2-P2",
|
||||
name: "Produit 2B",
|
||||
supplier: [],
|
||||
duration: 0,
|
||||
caliber: "",
|
||||
approvalNumber: "",
|
||||
weight: 2.5,
|
||||
nec: 0,
|
||||
image: "",
|
||||
link: "",
|
||||
minimalQuantity: 1
|
||||
}
|
||||
]
|
||||
},
|
||||
productOrder: [
|
||||
{
|
||||
product: {
|
||||
reference: "F2-P1",
|
||||
name: "Produit 2A",
|
||||
supplier: [],
|
||||
duration: 0,
|
||||
caliber: "",
|
||||
approvalNumber: "",
|
||||
weight: 1.5,
|
||||
nec: 0,
|
||||
image: "",
|
||||
link: "",
|
||||
minimalQuantity: 1
|
||||
},
|
||||
quantity: 6,
|
||||
price: 11
|
||||
},
|
||||
{
|
||||
product: {
|
||||
reference: "F2-P2",
|
||||
name: "Produit 2B",
|
||||
supplier: [],
|
||||
duration: 0,
|
||||
caliber: "",
|
||||
approvalNumber: "",
|
||||
weight: 2.5,
|
||||
nec: 0,
|
||||
image: "",
|
||||
link: "",
|
||||
minimalQuantity: 1
|
||||
},
|
||||
quantity: 4,
|
||||
price: 16
|
||||
}
|
||||
]
|
||||
},
|
||||
];
|
||||
|
||||
delete() {
|
||||
return
|
||||
}
|
||||
|
||||
export(){
|
||||
return
|
||||
}
|
||||
|
||||
transfert() {
|
||||
return
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user