From 6293b386b2fccf7b74fe4e2c2261e40d588b070c Mon Sep 17 00:00:00 2001 From: xiezhijun <15270898033@163.com> Date: Wed, 30 Jun 2021 18:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=90=8E=E8=B0=83=E7=90=86=E3=80=81?= =?UTF-8?q?=E8=83=83=E8=82=A0=E8=82=BF=E7=98=A4=E9=97=AE=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/InvestigateController.java | 7 + .../domain/SysCustomerHealthyExtended.java | 8 + .../SysCustomerHealthyExtendedMapper.xml | 12 +- .../custom/SysCustomerHealthyMapper.xml | 6 +- .../src/components/HealthyForm/Form1.vue | 2 +- .../src/components/HealthyForm/Form8.vue | 4 +- .../components/HealthyForm/FormExtended.vue | 185 +++++++++++++++++- .../components/PhysicalSignsDialog/index.vue | 11 +- stdiet-ui/src/utils/healthyData.js | 171 +++++++++++++++- .../custom/subhealthy/investigation/index.vue | 127 ++++++++---- 10 files changed, 478 insertions(+), 55 deletions(-) diff --git a/stdiet-admin/src/main/java/com/stdiet/web/controller/common/InvestigateController.java b/stdiet-admin/src/main/java/com/stdiet/web/controller/common/InvestigateController.java index 1e07cbb69..83f151ba0 100644 --- a/stdiet-admin/src/main/java/com/stdiet/web/controller/common/InvestigateController.java +++ b/stdiet-admin/src/main/java/com/stdiet/web/controller/common/InvestigateController.java @@ -7,6 +7,7 @@ import com.stdiet.common.utils.StringUtils; import com.stdiet.common.utils.sign.AesUtils; import com.stdiet.custom.domain.SysCustomer; import com.stdiet.custom.domain.SysCustomerHealthy; +import com.stdiet.custom.domain.SysOrder; import com.stdiet.custom.domain.SysPhysicalSigns; import com.stdiet.custom.dto.request.CustomerInvestigateRequest; import com.stdiet.custom.dto.request.FoodHeatCalculatorRequest; @@ -47,6 +48,9 @@ public class InvestigateController extends BaseController { @Autowired private ISysFoodHeatStatisticsService sysFoodHeatStatisticsService; + @Autowired + private ISysOrderService sysOrderService; + /** * 建立客户信息档案 */ @@ -92,6 +96,9 @@ public class InvestigateController extends BaseController { Map result = new HashMap<>(); result.put("name", sysCustomer.getName()); result.put("phone", sysCustomer.getPhone()); + //查询下单对应调理项目 + SysOrder order = sysOrderService.getLastOrderByCusId(Long.parseLong(id)); + result.put("projectId", (order != null && order.getConditioningProjectId() != null) ? order.getConditioningProjectId() : null); return AjaxResult.success(result); } } diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerHealthyExtended.java b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerHealthyExtended.java index 90c66cd26..8fa32eb22 100644 --- a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerHealthyExtended.java +++ b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerHealthyExtended.java @@ -61,6 +61,14 @@ public class SysCustomerHealthyExtended extends BaseEntity @Excel(name = "月经不调、多囊信息") private String menstruationMessage; + /** 胃肠肿瘤信息 */ + @Excel(name = "胃肠肿瘤信息") + private String gastrointestinalMessage; + + /** 产后调理信息 */ + @Excel(name = "产后调理信息") + private String postpartumConditioningMessage; + /** 删除标识 0未删除 1已删除 */ private Long delFlag; } \ No newline at end of file diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysCustomerHealthyExtendedMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysCustomerHealthyExtendedMapper.xml index eac78d073..479a15449 100644 --- a/stdiet-custom/src/main/resources/mapper/custom/SysCustomerHealthyExtendedMapper.xml +++ b/stdiet-custom/src/main/resources/mapper/custom/SysCustomerHealthyExtendedMapper.xml @@ -16,11 +16,15 @@ + + - select id, healthy_id, waist, hipline, eat_fruits_message, long_eat_drug_message, blood_sugar_message, depressed_state_message, blood_pressure_message, anxiety_state_message, menstruation_messag,del_flag from sys_customer_healthy_extended + select id, healthy_id, waist, hipline, eat_fruits_message, long_eat_drug_message, blood_sugar_message, depressed_state_message, blood_pressure_message, anxiety_state_message, menstruation_messag, + gastrointestinal_message,postpartum_conditioning_message,del_flag + from sys_customer_healthy_extended - select id, healthy_id, waist, hipline, eat_fruits_message, long_eat_drug_message, blood_sugar_message, depressed_state_message, blood_pressure_message, anxiety_state_message,menstruation_message from sys_customer_healthy_extended where del_flag = 0 and healthy_id = #{id} limit 1 + select id, healthy_id, waist, hipline, eat_fruits_message, long_eat_drug_message, blood_sugar_message, depressed_state_message, + blood_pressure_message, anxiety_state_message,menstruation_message,gastrointestinal_message,postpartum_conditioning_message + from sys_customer_healthy_extended where del_flag = 0 and healthy_id = #{id} limit 1 \ No newline at end of file diff --git a/stdiet-ui/src/components/HealthyForm/Form1.vue b/stdiet-ui/src/components/HealthyForm/Form1.vue index 959ffc575..62b9313c1 100644 --- a/stdiet-ui/src/components/HealthyForm/Form1.vue +++ b/stdiet-ui/src/components/HealthyForm/Form1.vue @@ -30,7 +30,7 @@ - + {{item.name}} -
其他手术史 +
其他手术史以及手术时间
-

九、{{healthyData.projectName[form.conditioningProjectId+'']}}信息评估

+

{{getTitle()}}

@@ -366,6 +366,183 @@
+ +
+

1、体重变化情况

+ + + +

2、饮食习惯

+
+
+ 一餐 + + + +
+
+ 一餐 + + 个菜 +
+
+ 一餐 + + 个汤 +
+
+ 一天食量 + +
+

3、食欲情况

+ + + {{ item.name }} + +
其他 + +
+
+

4、睡眠状况

+ +
+ 晚上几点睡觉 + +
+
+ 早上几点起床 + +
+
+ 午休时间 + +
+
+

5、放化疗情况

+ + + + + + +
若存在放化疗,请描述具体情况 + +
+
+

6、食物不耐受检测

+ + + + + + +
若存在食物不耐受,请描述具体情况 + +
+
+
+
+
+

1、产后情况

+
+
+ (1)、孕期增长 + + +
+
+ (2)、目前产后 + + 个月 +
+ + + {{ item.name }} + +
其他状况 + +
+
+ + + {{ item.name }} + +
其他疾病 + +
+
+ + + {{ item.name }} + +
其他喂养方式 + +
+
+ + + {{ item.name }} + +
其他乳汁状态 + +
+
+ + + {{ item.name }} + +
其他产后症状 + +
+
+

2、生育史

+
+ (1)、生产几次 + +
+
+ (2)、流产几次 + +
+ +
+