diff --git a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysCustomerHealthyController.java b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysCustomerHealthyController.java
index 1d9c91beb..404dc8c54 100644
--- a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysCustomerHealthyController.java
+++ b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysCustomerHealthyController.java
@@ -3,7 +3,10 @@ package com.stdiet.custom.controller;
import java.util.List;
import com.stdiet.common.utils.StringUtils;
+import com.stdiet.custom.domain.SysCustomerPhysicalSigns;
+import com.stdiet.custom.domain.SysPhysicalSigns;
import com.stdiet.custom.dto.request.HealthyDetailRequest;
+import com.stdiet.custom.service.ISysCustomerPhysicalSignsService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -29,6 +32,9 @@ public class SysCustomerHealthyController extends BaseController
@Autowired
private ISysCustomerHealthyService sysCustomerHealthyService;
+ @Autowired
+ private ISysCustomerPhysicalSignsService sysCustomerPhysicalSignsService;
+
/**
* 查询客户健康列表
*/
@@ -120,4 +126,14 @@ public class SysCustomerHealthyController extends BaseController
{
return sysCustomerHealthyService.generateHealthyReport(healthyDetailRequest);
}
+
+ /**
+ * 修改老的体征数据
+ * @param sysPhysicalSigns
+ * @return
+ */
+ @PutMapping("/edit/physical")
+ public AjaxResult editPhysical(@RequestBody SysCustomerPhysicalSigns sysPhysicalSigns) {
+ return toAjax(sysCustomerPhysicalSignsService.updateSysCustomerPhysicalSigns(sysPhysicalSigns));
+ }
}
\ No newline at end of file
diff --git a/stdiet-ui/public/index.html b/stdiet-ui/public/index.html
index 34b70ae6f..40cf9db93 100644
--- a/stdiet-ui/public/index.html
+++ b/stdiet-ui/public/index.html
@@ -1,208 +1,211 @@
-
{{ this.data.name }}
-
+ >
diff --git a/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/index.vue b/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/index.vue
new file mode 100644
index 000000000..2a0b99129
--- /dev/null
+++ b/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/index.vue
@@ -0,0 +1,507 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ `${(
+ ((scope.row.proteinRatio * scope.row.weight) / 100) *
+ 4 +
+ ((scope.row.fatRatio * scope.row.weight) / 100) * 9 +
+ ((scope.row.carbonRatio * scope.row.weight) / 100) * 4
+ ).toFixed(1)}`
+ }}
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+ {{ rec }}
+
+
+
+
+
+
+ {{ notRec }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/stdiet-ui/src/views/custom/dishes/index.vue b/stdiet-ui/src/views/custom/dishes/index.vue
index b01a02a5b..532a79f82 100644
--- a/stdiet-ui/src/views/custom/dishes/index.vue
+++ b/stdiet-ui/src/views/custom/dishes/index.vue
@@ -97,11 +97,7 @@
@queryTable="getList"
>
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{
- `${(
- ((scope.row.proteinRatio * scope.row.weight) / 100) *
- 4 +
- ((scope.row.fatRatio * scope.row.weight) / 100) * 9 +
- ((scope.row.carbonRatio * scope.row.weight) / 100) * 4
- ).toFixed(1)} kcal`
- }}
-
-
-
-
-
-
-
-
- {{ rec }}
-
-
-
-
-
-
- {{ notRec }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/stdiet-ui/src/views/custom/ingredient/index.vue b/stdiet-ui/src/views/custom/ingredient/index.vue
index 8bac238f2..038315fdb 100644
--- a/stdiet-ui/src/views/custom/ingredient/index.vue
+++ b/stdiet-ui/src/views/custom/ingredient/index.vue
@@ -146,6 +146,16 @@
+
+
+
+
+
+
+
+
")
- : [
+ : this.view === 1
+ ? [
`${marker} ${name}`,
`热量:${data[`heat${dim}`].toFixed(1)}千卡`,
`供能比:${percent}%`,
+ ].join("")
+ : [
+ `${marker} ${name}`,
+ `质量:${data[`weight${dim}`].toFixed(1)}克`,
+ `占比:${percent}%`,
].join("");
},
},
- graphic:
- this.view === 1
- ? [
- {
- type: "group",
- top: 60,
- left: 10,
- silent: true,
- children: [
- {
+ graphic: !this.view
+ ? []
+ : [
+ {
+ type: "group",
+ top: 60,
+ left: 10,
+ silent: true,
+ children: [
+ {
+ type: "text",
+ style: {
+ text: this.curTotalText,
+ fill: "#606266",
+ },
+ },
+ {
+ type: "text",
+ top: 18,
+ left: 8,
+ style: {
+ text: `${
+ data[`${this.curTotalName}`]
+ ? data[`${this.curTotalName}`].toFixed(1)
+ : 0
+ } ${this.curUnit}`,
+ font: '14px "Microsoft YaHei", sans-serif',
+ },
+ },
+ ],
+ },
+ {
+ type: "group",
+ top: 36,
+ right: 10,
+ silent: true,
+ children: Object.keys(this.curNameDict).reduce((arr, cur) => {
+ const tarData = data[this.getDataName(cur)];
+ if (tarData) {
+ arr.push({
type: "text",
+ top: arr.length * 20,
+ right: 10,
style: {
- text: "总热量约",
+ text: `${this.curNameDict[cur]}:${tarData.toFixed(1)}`,
fill: "#606266",
},
- },
- {
- type: "text",
- top: 18,
- left: 8,
- style: {
- text: `${
- data.totalHeat ? data.totalHeat.toFixed(1) : 0
- }千卡`,
- font: '14px "Microsoft YaHei", sans-serif',
- },
- },
- ],
- },
- {
- type: "group",
- top: 36,
- right: 10,
- silent: true,
- children: Object.keys(this.menuDict).reduce((arr, cur) => {
- const tarData = data[`heat${cur}`];
- if (tarData) {
- arr.push({
- type: "text",
- top: arr.length * 20,
- right: 10,
- style: {
- text: `${this.menuDict[cur]}:${tarData.toFixed(1)}`,
- fill: "#606266",
- },
- });
- }
- return arr;
- }, []),
- },
- ]
- : [],
+ });
+ }
+ return arr;
+ }, []),
+ },
+ ],
series: [
{
name: data.name,
type: "pie",
radius: [0, !this.view ? 40 : 60],
center: ["50%", "55%"],
- data: (!this.view
- ? Object.keys(this.nameDict)
- : Object.keys(this.menuDict)
- ).reduce((arr, dim) => {
+ data: Object.keys(this.curNameDict).reduce((arr, dim) => {
if (!this.view || data[`heat${dim}`]) {
arr.push({
dim,
- value: !this.view ? data[`${dim}Heat`] : data[`heat${dim}`],
- name: (!this.view ? this.nameDict : this.menuDict)[dim],
+ value: data[this.getDataName(dim)],
+ name: this.curNameDict[dim],
oriData: data,
});
}
diff --git a/stdiet-ui/src/views/custom/recipesBuild/VerifyView/IngredientSearchCom/index.vue b/stdiet-ui/src/views/custom/recipesBuild/VerifyView/IngredientSearchCom/index.vue
new file mode 100644
index 000000000..4308ad74b
--- /dev/null
+++ b/stdiet-ui/src/views/custom/recipesBuild/VerifyView/IngredientSearchCom/index.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+ {{ `第${dData.day}天` }}
+ {{ item.name }}
+
+
+
+
+
+
+
diff --git a/stdiet-ui/src/views/custom/recipesBuild/VerifyView/PhysicalSignCom/index.vue b/stdiet-ui/src/views/custom/recipesBuild/VerifyView/PhysicalSignCom/index.vue
new file mode 100644
index 000000000..e0767867c
--- /dev/null
+++ b/stdiet-ui/src/views/custom/recipesBuild/VerifyView/PhysicalSignCom/index.vue
@@ -0,0 +1,132 @@
+
+
+
+ {{ item.name }}
+
+
+
+
+
+ {{ `第${dData.day}天` }}
+ {{ item.name }}
+
+
+
+
+
+
+
diff --git a/stdiet-ui/src/views/custom/recipesBuild/VerifyView/index.vue b/stdiet-ui/src/views/custom/recipesBuild/VerifyView/index.vue
index bb423afbc..aab65ef1f 100644
--- a/stdiet-ui/src/views/custom/recipesBuild/VerifyView/index.vue
+++ b/stdiet-ui/src/views/custom/recipesBuild/VerifyView/index.vue
@@ -1,33 +1,29 @@
-
病理忌口
-
- {{ item.name }}
-
-
涉及食材
-
-
{{ igdTypeDict[key] }}
-
- {{ item.name }}
-
-
-
+
+
+
+
+
+
+
+
@@ -99,33 +75,5 @@ export default {
.verify_view_wrapper {
height: calc(100vh - 32px);
overflow: auto;
- .content {
- margin: 8px 0;
- .item {
- font-size: 14px;
- margin: 4px;
- border-radius: 8px;
- cursor: pointer;
- display: inline-block;
- color: #262626;
- border: 1px solid #8c8c8c;
- padding: 3px 8px;
- word-break: normal;
- transition: all 0.3s;
-
- &:hover {
- color: white;
- background: #d96969;
- border-color: #d96969;
- }
- }
-
- .selected_item {
- color: white;
- background: #d96969;
- border-color: #d96969;
- font-weight: bold;
- }
- }
}