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