From 144e3550aacefc225ac927282f8cb9107bc18960 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Fri, 19 Mar 2021 17:08:21 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=B7=9F=E6=8D=A2=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IngredientListView/index.vue | 131 ++++ .../custom/dishes/EditDishesDrawer/index.vue | 507 +++++++++++++++ stdiet-ui/src/views/custom/dishes/index.vue | 581 +----------------- .../src/views/custom/ingredient/index.vue | 10 + 4 files changed, 668 insertions(+), 561 deletions(-) create mode 100644 stdiet-ui/src/views/custom/dishes/EditDishesDrawer/IngredientListView/index.vue create mode 100644 stdiet-ui/src/views/custom/dishes/EditDishesDrawer/index.vue diff --git a/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/IngredientListView/index.vue b/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/IngredientListView/index.vue new file mode 100644 index 000000000..60cff0173 --- /dev/null +++ b/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/IngredientListView/index.vue @@ -0,0 +1,131 @@ + + 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..7ee9b0666 --- /dev/null +++ b/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/index.vue @@ -0,0 +1,507 @@ + + + + + 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" > - + 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 @@ + + + Date: Fri, 19 Mar 2021 17:18:37 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EditDishesDrawer/IngredientListView/index.vue | 10 ++++++++-- .../src/views/custom/dishes/EditDishesDrawer/index.vue | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/IngredientListView/index.vue b/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/IngredientListView/index.vue index 60cff0173..eac438a22 100644 --- a/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/IngredientListView/index.vue +++ b/stdiet-ui/src/views/custom/dishes/EditDishesDrawer/IngredientListView/index.vue @@ -51,7 +51,6 @@ :data="ingredientList" :cell-style="{ padding: 0 }" :header-cell-style="{ padding: 0, height: 'unset' }" - @current-change="handleCurrentChange" > + + + @@ -149,7 +149,7 @@ From 21fac2ae86e8bda93d16320a13b7539c7e237809 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Fri, 19 Mar 2021 18:57:07 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=80=81=E7=9A=84?= =?UTF-8?q?=E4=BD=93=E5=BE=81=E6=95=B0=E6=8D=AE=E5=A4=87=E6=B3=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom/SysCustomerHealthyController.java | 16 +++++ stdiet-ui/src/api/custom/healthy.js | 62 ++++++++++--------- .../src/components/BodySignView/index.vue | 14 ++--- 3 files changed, 57 insertions(+), 35 deletions(-) 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/src/api/custom/healthy.js b/stdiet-ui/src/api/custom/healthy.js index f4b718818..213b419cb 100644 --- a/stdiet-ui/src/api/custom/healthy.js +++ b/stdiet-ui/src/api/custom/healthy.js @@ -1,74 +1,80 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // 查询客户健康列表 export function listHealthy(query) { return request({ - url: '/custom/healthy/list', - method: 'get', + url: "/custom/healthy/list", + method: "get", params: query - }) + }); } // 查询客户健康详细 export function getHealthy(id) { return request({ - url: '/custom/healthy/' + id, - method: 'get' - }) + url: "/custom/healthy/" + id, + method: "get" + }); } // 新增客户健康 export function addHealthy(data) { return request({ - url: '/custom/healthy', - method: 'post', + url: "/custom/healthy", + method: "post", data: data - }) + }); } // 修改客户健康 export function updateHealthy(data) { return request({ - url: '/custom/healthy', - method: 'put', + url: "/custom/healthy", + method: "put", data: data - }) + }); } // 删除客户健康 export function delHealthy(id) { return request({ - url: '/custom/healthy/' + id, - method: 'delete' - }) + url: "/custom/healthy/" + id, + method: "delete" + }); } // 导出客户健康 export function exportHealthy(query) { return request({ - url: '/custom/healthy/export', - method: 'get', + url: "/custom/healthy/export", + method: "get", params: query - }) + }); } // 下载文件 export function download(fileName) { return request({ - url: '/common/download', - method: 'get', - params: {"fileName": fileName} - }) + url: "/common/download", + method: "get", + params: { fileName: fileName } + }); } // 生成健康体征报告 export function generateHealthyReport(healthyDetail) { return request({ - url: '/custom/healthy/generateHealthyReport', - method: 'post', + url: "/custom/healthy/generateHealthyReport", + method: "post", data: healthyDetail - }) + }); } - - +// 修改老的体征 +export function editPhysicalSigns(data) { + return request({ + url: "/custom/healthy/edit/physical", + method: "put", + data + }); +} diff --git a/stdiet-ui/src/components/BodySignView/index.vue b/stdiet-ui/src/components/BodySignView/index.vue index ed5c404dd..b3a228bc6 100644 --- a/stdiet-ui/src/components/BodySignView/index.vue +++ b/stdiet-ui/src/components/BodySignView/index.vue @@ -2,14 +2,14 @@

{{ this.data.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 @@ + + + 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 @@ @@ -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; - } - } }