want to extract recipe list from recipe detail. But still have no idea about link formControl between 2 component
This commit is contained in:
parent
72f27f198d
commit
bb29e7de5a
7 changed files with 257 additions and 130 deletions
53
client/src/app/shared/types/recipe.d.ts
vendored
Normal file
53
client/src/app/shared/types/recipe.d.ts
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
import { MatRecipe } from 'src/app/core/models/recipe.model';
|
||||
|
||||
export interface RecipeMetaData {
|
||||
productCode: string;
|
||||
name: string;
|
||||
otherName: string;
|
||||
description: string;
|
||||
otherDescription: string;
|
||||
picture: string;
|
||||
lastModified: Date;
|
||||
}
|
||||
|
||||
export interface MaterialData {
|
||||
id: number;
|
||||
name: string;
|
||||
enable: boolean;
|
||||
mixOrder: number;
|
||||
stirTime: number;
|
||||
powderGram: number;
|
||||
powderTime: number;
|
||||
syrupGram: number;
|
||||
syrupTime: number;
|
||||
waterCold: number;
|
||||
waterHot: number;
|
||||
}
|
||||
|
||||
export interface RecipeDetail {
|
||||
recipe: {
|
||||
lastModified: Date;
|
||||
productCode: string;
|
||||
name: string;
|
||||
otherName: string;
|
||||
description: string;
|
||||
otherDescription: string;
|
||||
price: number;
|
||||
isUse: boolean;
|
||||
isShow: boolean;
|
||||
disable: boolean;
|
||||
recipes?: MaterialData[];
|
||||
};
|
||||
recipes?: MatRecipe[];
|
||||
}
|
||||
|
||||
export interface RecipeDetailEditable {
|
||||
name: string;
|
||||
otherName: string;
|
||||
description: string;
|
||||
otherDescription: string;
|
||||
price: number;
|
||||
isUse: boolean;
|
||||
isShow: boolean;
|
||||
disable: boolean;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue