修复通俗重量

This commit is contained in:
huangdeliang
2021-02-09 10:25:34 +08:00
parent f8f40dc91c
commit afb7465281
26 changed files with 580 additions and 333 deletions

View File

@ -1,38 +0,0 @@
<template>
<div class="app-container">
<div class="content">
<div class="left"></div>
<div class="right"></div>
</div>
</div>
</template>
<script>
import { getRecipesPlan } from "@/api/custom/recipesPlan";
import { getOrder } from "@/api/custom/order";
import { getCustomerPhysicalSignsByCusId } from "@/api/custom/customer";
export default {
name: "BuildRecipies",
data() {
return {
healthyData: {},
};
},
created() {
getOrder(this.cusId).then((res) => {
console.log(res);
getCustomerPhysicalSignsByCusId(res.data.cusId).then((iRes) => {
this.healthyData = iRes.data;
});
});
},
components: {},
props: ["id", "cusId"],
methods: {},
};
</script>
<style>
.content .left {
}
.content .right {
}
</style>

View File

@ -198,7 +198,7 @@
type="text"
icon="el-icon-edit"
@click="handleBuild(scope.row)"
>制作食谱</el-button
>{{ `${scope.row.recipes_id ? "编辑" : "制作"}食谱` }}</el-button
>
</template>
</el-table-column>
@ -604,10 +604,20 @@ export default {
}
},
handleBuild(data) {
this.$router.push({
name: "RecipiesBuild",
params: { id: data.id, cusId: data.orderId },
});
// const params = { id: data.id, cusId: data.orderId };
let path = `/recipes/build/${data.orderId}/${data.id}`;
if (data.recipes_id) {
// params.recipesId = data.recipes_id;
path += `/${data.recipes_id}`;
}
// test
// params.recipesId = "61";
path += '/61';
// this.$router.push({
// name: "build",
// params,
// });
this.$router.push(path);
},
},
};