配餐项目前端文件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
4.5 KiB

<div class="body flex flex-col">
2 years ago
<div class="head clearfix">
<div class="logo">
<img src="/assets/images/jl-logo.png" />
</div>
<h1 class="title">{{orgName}}食谱营养报告</h1>
2 years ago
<div class="time">{{showTime}}</div>
</div>
<div class="mainbox flex flex-1">
2 years ago
<!-- <div class="boxnav mapc">
</div> -->
<div class="flex-1 flex flex-col">
2 years ago
<div class="flex-1 overflow-hidden pb-2">
<div class="box">
<div class="tit">今日带量食谱</div>
<div class="boxnav overflow-hidden" #tableEl>
<table class="w-full">
<thead>
<tr>
<th width="70px">
</th>
<th>
菜品名称
</th>
<th *ngFor="let p of peoples">
<div class="td">
{{p}}
</div>
</th>
</tr>
</thead>
<tbody>
<ng-container *ngFor="let meal of globalEnum.mealType">
<ng-container *ngIf="dishs[meal.value] as mealDish">
<tr *ngFor="let item of mealDish;let first = first">
<td *ngIf="first" [attr.rowspan]="mealDish.length">
{{meal.label}}
</td>
<th>
<div class="td">
{{ item.name}}
</div>
</th>
<th *ngFor="let p of peoples">
<div class="td">
{{item.people[p]}}g
</div>
</th>
</tr>
</ng-container>
</ng-container>
2 years ago
</tbody>
</table>
</div>
2 years ago
</div>
</div>
2 years ago
<div class="flex-1 overflow-hidden pt-2">
<div class="box">
<div class="tit">今日食材种类</div>
<div class="boxnav">
2 years ago
<div class="p-4">
<div nz-row [nzGutter]="[12,12]">
<div nz-col nzSpan="6" *ngFor="let type of analysis.types | keyvalue">
{{type.key}} : <b>{{type.value}}</b>
</div>
</div>
</div>
</div>
2 years ago
</div>
</div>
</div>
<div class="w-1/3 pl-4">
<div class="box">
2 years ago
<div class="tit flex justify-between items-center">
<span>
今日营养分析
</span>
<span>
<select [(ngModel)]="people" class="select" (ngModelChange)="getAnalysis()">
<option *ngFor="let p of peoples" [value]="p">
{{p}}
</option>
</select>
</span>
</div>
<div class="boxnav overflow-hidden" #nutritionEl>
<div class="p-4">
<nz-spin [nzSpinning]="analysisLoading">
<lib-nutrition-table *ngIf="analysis"
[dark]="true"
[nutritions]="analysis.ingredient">
</lib-nutrition-table>
</nz-spin>
</div>
2 years ago
</div>
</div>
</div>
</div>
</div>