From 870efe5b55ca0fe39972c44ec1d37a88fe8694e0 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Sat, 27 Mar 2021 17:24:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=80=81=E4=BD=93=E5=BE=81=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=B7=BB=E5=8A=A0=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/SysCustomerPhysicalSigns.java | 2 + .../components/PhysicalSignsDialog/index.vue | 78 +++++++++------- .../components/PhysicalSignsRemark/index.vue | 90 +++++++++++-------- stdiet-ui/src/views/custom/customer/index.vue | 4 +- 4 files changed, 100 insertions(+), 74 deletions(-) diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerPhysicalSigns.java b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerPhysicalSigns.java index ffe435bc5..4af1aad63 100644 --- a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerPhysicalSigns.java +++ b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerPhysicalSigns.java @@ -1,6 +1,7 @@ package com.stdiet.custom.domain; import com.alibaba.fastjson.JSONArray; +import com.fasterxml.jackson.annotation.JsonFormat; import com.stdiet.common.annotation.Excel; import lombok.Data; @@ -224,6 +225,7 @@ public class SysCustomerPhysicalSigns { private JSONArray avoidFood; + @JsonFormat(pattern = "yyyy-MM-dd HH:mm") private Date createTime; private Date updateTime; diff --git a/stdiet-ui/src/components/PhysicalSignsDialog/index.vue b/stdiet-ui/src/components/PhysicalSignsDialog/index.vue index 79b223773..fdfb923be 100644 --- a/stdiet-ui/src/components/PhysicalSignsDialog/index.vue +++ b/stdiet-ui/src/components/PhysicalSignsDialog/index.vue @@ -16,22 +16,21 @@ 下载报告 减脂指导 修改备注 @@ -39,14 +38,14 @@ v-hasPermi="['custom:healthy:edit']" type="warning" v-show="dataType == 0" - @click="handleEditHealthyClick()" + @click="handleEditHealthyClick" plain >修改信息 删除信息 @@ -177,28 +176,39 @@ -
- -
+ + + - -
- 健康评估表链接 - -
+ + + + +
+
+
+ +
+ 健康评估表链接 +
@@ -207,19 +217,19 @@ @@ -433,9 +443,10 @@ export default { if (res.data.customerHealthy) { //判断是体征还是健康评估 this.dataType = res.data.type; + this.healthyData = res.data.customerHealthy; + this.dataList = []; + this.remarkList[0].remarkValue = this.healthyData.remark; if (this.dataType == 0) { - this.healthyData = Object.assign({}, res.data.customerHealthy); - this.remarkList[0].remarkValue = this.healthyData.remark; this.guidanceList[0].guidanceValue = this.healthyData.guidance; this.getDataListByHealthyMessage(res.data.customerHealthy); } else { @@ -847,7 +858,8 @@ export default { handleEditRemarkClick() { this.$refs["physicalSignsRemarkDialog"].showDialog( this.data, - this.healthyData + this.healthyData, + this.dataType ); }, handleEditGuidanceClick() { diff --git a/stdiet-ui/src/components/PhysicalSignsRemark/index.vue b/stdiet-ui/src/components/PhysicalSignsRemark/index.vue index a2d43b832..ab3b89249 100644 --- a/stdiet-ui/src/components/PhysicalSignsRemark/index.vue +++ b/stdiet-ui/src/components/PhysicalSignsRemark/index.vue @@ -1,49 +1,61 @@ diff --git a/stdiet-ui/src/views/custom/customer/index.vue b/stdiet-ui/src/views/custom/customer/index.vue index 127446616..8150bdd56 100644 --- a/stdiet-ui/src/views/custom/customer/index.vue +++ b/stdiet-ui/src/views/custom/customer/index.vue @@ -74,9 +74,7 @@ 搜索 - 重置 + 重置 From 8f94c50d22f0e3a37f11fc8442c915a39b44d4a0 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Mon, 29 Mar 2021 19:42:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/custom/SysWapController.java | 20 ++- .../stdiet/custom/domain/SysOrderPause.java | 2 + .../mapper/custom/SysOrderPauseMapper.xml | 7 +- stdiet-ui/src/api/custom/recipesShow.js | 11 ++ .../src/components/OrderDrawer/index.vue | 10 +- .../src/views/custom/recipesShow/index.vue | 121 +++++++++++------- 6 files changed, 116 insertions(+), 55 deletions(-) diff --git a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysWapController.java b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysWapController.java index 4acf10865..63f6ab9b0 100644 --- a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysWapController.java +++ b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysWapController.java @@ -2,6 +2,8 @@ package com.stdiet.web.controller.custom; import com.stdiet.common.core.controller.BaseController; import com.stdiet.common.core.domain.AjaxResult; +import com.stdiet.custom.domain.SysOrderPause; +import com.stdiet.custom.service.ISysOrderPauseService; import com.stdiet.custom.service.ISysRecipesService; import com.stdiet.custom.service.ISysWapServices; import com.stdiet.system.service.ISysDictTypeService; @@ -11,9 +13,7 @@ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; +import java.util.List; @RestController @RequestMapping("/wap") @@ -27,6 +27,9 @@ public class SysWapController extends BaseController { @Autowired ISysDictTypeService iSysDictTypeService; + @Autowired + ISysOrderPauseService iSysOrderPauseService; + /** * 客户食谱详情 * @@ -38,6 +41,17 @@ public class SysWapController extends BaseController { return AjaxResult.success(iSysWapServices.getRecipesPlanListInfo(outId)); } + @GetMapping(value = "/recipes/plan/pause/{outId}") + public AjaxResult planPauses(@PathVariable String outId) { + SysOrderPause sysOrderPause = new SysOrderPause(); + sysOrderPause.setOutId(outId); + List list = iSysOrderPauseService.selectSysOrderPauseList(sysOrderPause); + for (SysOrderPause pause : list) { + pause.setCusId(null); + } + return AjaxResult.success(list); + } + /** * 获取用户信息 * diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysOrderPause.java b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysOrderPause.java index ff5b2d792..085ad81dd 100644 --- a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysOrderPause.java +++ b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysOrderPause.java @@ -29,6 +29,8 @@ public class SysOrderPause { private Long cusId; + private String outId; + /** * 服务暂停开始时间 */ diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysOrderPauseMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysOrderPauseMapper.xml index 3493d133a..6f5db35a6 100644 --- a/stdiet-custom/src/main/resources/mapper/custom/SysOrderPauseMapper.xml +++ b/stdiet-custom/src/main/resources/mapper/custom/SysOrderPauseMapper.xml @@ -8,6 +8,7 @@ + @@ -24,7 +25,7 @@ - select id, order_id, cus_id, pause_start_date, pause_end_date, reason, remarks, create_time, create_by, update_time, update_by, del_flag from sys_recipes_pause sop + select id, order_id, cus_id, out_id, pause_start_date, pause_end_date, reason, remarks, create_time, create_by, update_time, update_by, del_flag from sys_recipes_pause sop