add: recycle product
This commit is contained in:
@@ -15,6 +15,7 @@ import followUpReminderRoutes from "@/router/routes/followUpReminderRoutes";
|
||||
import productRoutes from "@/router/routes/productRoutes";
|
||||
import salesOrderRoutes from "@/router/routes/salesOrderRoutes";
|
||||
import fulfillmentRoutes from "@/router/routes/fulfillmentRoutes";
|
||||
import recycleRoutes from "@/router/routes/recycleRoutes";
|
||||
import dataExportRoutes from "@/router/routes/dataExportRoutes";
|
||||
import { useCurrentStoreStore } from "@/store/currentStoreStore";
|
||||
import { useGlobalUIStore } from "@/store/globalUI";
|
||||
@@ -37,6 +38,7 @@ const detailRoutes = [
|
||||
...productRoutes,
|
||||
...salesOrderRoutes,
|
||||
...fulfillmentRoutes,
|
||||
...recycleRoutes,
|
||||
...dataExportRoutes
|
||||
];
|
||||
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
|
||||
function meta(depth = 3): RouteRecordRaw["meta"] {
|
||||
return { depth, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" };
|
||||
}
|
||||
|
||||
export default [
|
||||
{
|
||||
path: "/management/recycle-exchanges",
|
||||
name: "RecycleExchangeList",
|
||||
component: () => import("@/pages/recycle/RecycleExchangeList.vue"),
|
||||
meta: meta()
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-exchanges/create",
|
||||
name: "RecycleExchangeCreate",
|
||||
component: () => import("@/pages/recycle/RecycleExchangeCreate.vue"),
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-exchanges/:id",
|
||||
name: "RecycleExchangeDetail",
|
||||
component: () => import("@/pages/recycle/RecycleExchangeDetail.vue"),
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-items",
|
||||
name: "RecycleItemList",
|
||||
component: () => import("@/pages/recycle/RecycleItemList.vue"),
|
||||
meta: meta()
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-items/create",
|
||||
name: "RecycleItemCreate",
|
||||
component: () => import("@/pages/recycle/RecycleItemEdit.vue"),
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-items/:id",
|
||||
name: "RecycleItemEdit",
|
||||
component: () => import("@/pages/recycle/RecycleItemEdit.vue"),
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-rules",
|
||||
name: "RecycleRuleList",
|
||||
component: () => import("@/pages/recycle/RecycleRuleList.vue"),
|
||||
meta: meta()
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-rules/create",
|
||||
name: "RecycleRuleCreate",
|
||||
component: () => import("@/pages/recycle/RecycleRuleEdit.vue"),
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-rules/:id",
|
||||
name: "RecycleRuleEdit",
|
||||
component: () => import("@/pages/recycle/RecycleRuleEdit.vue"),
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/recycle-stats",
|
||||
name: "RecycleStat",
|
||||
component: () => import("@/pages/recycle/RecycleStat.vue"),
|
||||
meta: meta()
|
||||
}
|
||||
] as RouteRecordRaw[];
|
||||
Reference in New Issue
Block a user