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 @@ - +