修复食谱生成bug
This commit is contained in:
parent
c9a8264f1e
commit
ff89b9bf5e
stdiet-custom/src/main
java/com/stdiet/custom/service/impl
resources/mapper/custom
stdiet-ui/src
components/RecipesPlanDrawer
store/modules
views/custom/recipesBuild
@ -1,5 +1,6 @@
|
||||
package com.stdiet.custom.service.impl;
|
||||
|
||||
import com.stdiet.common.utils.StringUtils;
|
||||
import com.stdiet.custom.domain.SysRecipes;
|
||||
import com.stdiet.custom.domain.SysRecipesDaily;
|
||||
import com.stdiet.custom.domain.SysRecipesDailyDishes;
|
||||
|
@ -144,7 +144,7 @@
|
||||
<insert id="bashAddDishes" >
|
||||
insert into sys_customer_menu_dishes (menu_id, type, dishes_id, remark, detail) values
|
||||
<foreach collection="list" separator="," item="item" index="index">
|
||||
(#{item.menuId}, #{item.type}, #{item.dishesId}, #{remark}, #{item.detail, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler})
|
||||
(#{item.menuId}, #{item.type}, #{item.dishesId}, #{item.remark}, #{item.detail, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
class="copyBtn"
|
||||
:data-clipboard-text="copyValue"
|
||||
@click="handleOnRecipesLinkClick"
|
||||
>客户食谱链接
|
||||
>食谱链接
|
||||
</el-button>
|
||||
<el-popover placement="top" trigger="click" v-if="cusOutId" style="margin: 0 12px">
|
||||
<VueQr :text="copyValue" :logoSrc="logo" size="256" />
|
||||
|
@ -14,6 +14,7 @@ import { getDicts } from "@/api/system/dict/data";
|
||||
|
||||
const oriState = {
|
||||
cusId: undefined,
|
||||
name: undefined,
|
||||
planId: undefined,
|
||||
temId: undefined,
|
||||
recipesId: undefined,
|
||||
@ -269,6 +270,7 @@ const actions = {
|
||||
dishes: menu.dishes.map(dObj => ({
|
||||
dishesId: dObj.dishesId,
|
||||
type: dObj.type,
|
||||
remark: dObj.remark,
|
||||
detail: dObj.igdList.map(igd => ({
|
||||
id: igd.id,
|
||||
weight: igd.weight,
|
||||
@ -286,7 +288,7 @@ const actions = {
|
||||
dispatch("getRecipesInfo", { recipesId });
|
||||
payload.callback &&
|
||||
payload.callback({
|
||||
name: state.healthyData.name,
|
||||
name: state.name,
|
||||
planId: state.planId
|
||||
});
|
||||
}
|
||||
|
@ -415,9 +415,6 @@ export default {
|
||||
handleParentClick(e) {
|
||||
// 校验某天
|
||||
this.setCurrentDay({ currentDay: this.num });
|
||||
VueScrollTo.scrollTo(`#recipes${this.num}`, 500, {
|
||||
container: "#recipes_content",
|
||||
});
|
||||
},
|
||||
spanMethod({ row, column, rowIndex, columnIndex }) {
|
||||
if (columnIndex === 0) {
|
||||
@ -440,6 +437,9 @@ export default {
|
||||
e.stopPropagation();
|
||||
// 取消高亮
|
||||
this.resetCurrentDay({ currentDay: this.num });
|
||||
VueScrollTo.scrollTo(`#recipes${this.num}`, 500, {
|
||||
container: "#recipes_content",
|
||||
});
|
||||
},
|
||||
handleOnAdd() {
|
||||
// console.log(this.num);
|
||||
|
@ -42,6 +42,7 @@ export default {
|
||||
mounted() {
|
||||
this.init({
|
||||
planId: this.planId,
|
||||
name: this.name,
|
||||
temId: this.temId,
|
||||
}).catch((err) => {
|
||||
this.$message.error(err.message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user