From 723f0327d2f91a0ac28e44f35e55a225436b5181 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Tue, 6 Jul 2021 11:21:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A3=9F=E8=B0=B1=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=88=97=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/BodySignView/index.vue | 13 +++ stdiet-ui/src/store/modules/recipes.js | 6 +- .../RecipesView/RecipesCom/index.vue | 84 +++++++++----- .../RecipesHeaderCom/ExportDialog/index.vue | 104 ++++++++++++++++++ .../RecipesView/RecipesHeaderCom/index.vue | 42 +++++-- 5 files changed, 211 insertions(+), 38 deletions(-) create mode 100644 stdiet-ui/src/views/custom/recipesBuild/RecipesView/RecipesHeaderCom/ExportDialog/index.vue diff --git a/stdiet-ui/src/components/BodySignView/index.vue b/stdiet-ui/src/components/BodySignView/index.vue index 1f379cf07..c60286b1c 100644 --- a/stdiet-ui/src/components/BodySignView/index.vue +++ b/stdiet-ui/src/components/BodySignView/index.vue @@ -33,6 +33,7 @@ import TextInfo from "@/components/TextInfo"; import ACFCom from "@/components/HealthyView/ACFCom"; import RemarkCom from "@/components/HealthyView/RemarkCom"; import { editPhysicalSigns } from "@/api/custom/healthy"; +import { updateRecipesPlan } from "@/api/custom/recipesPlan"; export default { name: "BodySignView", @@ -124,6 +125,18 @@ export default { } }); }, + handleOnRemarkConfirm(data) { + const { pathname } = window.location; + const recipesId = pathname.substring(pathname.lastIndexOf("/") + 1); + updateRecipesPlan({ + id: recipesId, + ...data, + }).then((res) => { + if (res.code === 200) { + this.$message.success("修改成功"); + } + }); + }, }, watch: { data(val, oldVal) { diff --git a/stdiet-ui/src/store/modules/recipes.js b/stdiet-ui/src/store/modules/recipes.js index f01aaecf2..22a5bff73 100644 --- a/stdiet-ui/src/store/modules/recipes.js +++ b/stdiet-ui/src/store/modules/recipes.js @@ -50,7 +50,8 @@ const oriState = { physicalSignsOptions: [], // curShortCutObj: {}, - recipesPlanRemark: "" + recipesPlanRemark: "", + exportCols: undefined }; const mutations = { @@ -126,6 +127,9 @@ const mutations = { setCurShortCutObj(state, payload) { state.curShortCutObj = payload.data; }, + setExportCols(state, payload) { + state.exportCols = payload.exportCols; + }, setDate(state, payload) { state.startDate = payload.startDate; state.endDate = payload.endDate; diff --git a/stdiet-ui/src/views/custom/recipesBuild/RecipesView/RecipesCom/index.vue b/stdiet-ui/src/views/custom/recipesBuild/RecipesView/RecipesCom/index.vue index b5dab009f..748d80cea 100644 --- a/stdiet-ui/src/views/custom/recipesBuild/RecipesView/RecipesCom/index.vue +++ b/stdiet-ui/src/views/custom/recipesBuild/RecipesView/RecipesCom/index.vue @@ -100,7 +100,12 @@ - + @@ -172,7 +177,12 @@ - +