feat: recycle system
This commit is contained in:
@@ -64,25 +64,25 @@ const menuGroupList = computed<MenuGroup[]>(() => [
|
||||
items: [
|
||||
{
|
||||
icon: "catalog",
|
||||
path: "/management/product-categories",
|
||||
path: "/product/product-categories",
|
||||
title: "产品分类",
|
||||
visible: userStore.hasPermissions(permissionCodes.productCategory.read)
|
||||
},
|
||||
{
|
||||
icon: "control-platform",
|
||||
path: "/management/products",
|
||||
path: "/product/products",
|
||||
title: "产品库",
|
||||
visible: userStore.hasPermissions(permissionCodes.product.read)
|
||||
},
|
||||
{
|
||||
icon: "wallet",
|
||||
path: "/management/product-stocks",
|
||||
path: "/product/product-stocks",
|
||||
title: "库存",
|
||||
visible: userStore.hasPermissions(permissionCodes.productStock.read)
|
||||
},
|
||||
{
|
||||
icon: "history",
|
||||
path: "/management/product-stock-records",
|
||||
path: "/product/product-stock-records",
|
||||
title: "库存流水",
|
||||
visible: userStore.hasPermissions(permissionCodes.productStock.read)
|
||||
}
|
||||
@@ -92,25 +92,25 @@ const menuGroupList = computed<MenuGroup[]>(() => [
|
||||
items: [
|
||||
{
|
||||
icon: "task",
|
||||
path: "/management/sales-orders",
|
||||
title: "销售订单",
|
||||
path: "/product/sales-orders",
|
||||
title: "交易订单",
|
||||
visible: userStore.hasPermissions(permissionCodes.salesOrder.read)
|
||||
},
|
||||
{
|
||||
icon: "wallet",
|
||||
path: "/management/fund-records",
|
||||
path: "/product/fund-records",
|
||||
title: "资金流水",
|
||||
visible: userStore.hasPermissions(permissionCodes.fundRecord.read)
|
||||
},
|
||||
{
|
||||
icon: "undertake-delivery",
|
||||
path: "/management/order-fulfillments",
|
||||
path: "/product/order-fulfillments",
|
||||
title: "履约记录",
|
||||
visible: userStore.hasPermissions(permissionCodes.orderFulfillment.read)
|
||||
},
|
||||
{
|
||||
icon: "money",
|
||||
path: "/management/consumption-records",
|
||||
path: "/product/consumption-records",
|
||||
title: "消费记录",
|
||||
visible: userStore.hasPermissions(permissionCodes.salesOrder.read)
|
||||
}
|
||||
@@ -120,13 +120,13 @@ const menuGroupList = computed<MenuGroup[]>(() => [
|
||||
items: [
|
||||
{
|
||||
icon: "layers",
|
||||
path: "/management/package-configs",
|
||||
path: "/product/package-configs",
|
||||
title: "套餐配置",
|
||||
visible: userStore.hasPermissions(permissionCodes.packageConfig.read)
|
||||
},
|
||||
{
|
||||
icon: "task",
|
||||
path: "/management/package-orders",
|
||||
path: "/product/package-orders",
|
||||
title: "套餐订单",
|
||||
visible: userStore.hasPermissions(permissionCodes.packageConfig.read)
|
||||
&& userStore.hasPermissions(permissionCodes.salesOrder.read)
|
||||
@@ -137,13 +137,13 @@ const menuGroupList = computed<MenuGroup[]>(() => [
|
||||
items: [
|
||||
{
|
||||
icon: "cart",
|
||||
path: "/management/points/redeem-skus",
|
||||
path: "/product/points/redeem-skus",
|
||||
title: "兑换商品",
|
||||
visible: userStore.hasPermissions(permissionCodes.pointRedeemSku.manage)
|
||||
},
|
||||
{
|
||||
icon: "gift",
|
||||
path: "/management/points/redemptions",
|
||||
path: "/product/points/redemptions",
|
||||
title: "积分兑换",
|
||||
visible: userStore.hasPermissions(permissionCodes.pointRedemption.create)
|
||||
}
|
||||
@@ -152,22 +152,28 @@ const menuGroupList = computed<MenuGroup[]>(() => [
|
||||
{
|
||||
items: [
|
||||
{
|
||||
icon: "swap",
|
||||
path: "/management/recycle-exchanges",
|
||||
title: "回收兑换",
|
||||
visible: userStore.hasPermissions(permissionCodes.recycleExchange.query)
|
||||
icon: "layers",
|
||||
path: "/product/recycle-items",
|
||||
title: "回收物",
|
||||
visible: userStore.hasPermissions(permissionCodes.recycleExchange.configManage)
|
||||
},
|
||||
{
|
||||
icon: "history",
|
||||
path: "/product/recycle-payments",
|
||||
title: "回收流水",
|
||||
visible: userStore.hasPermissions(permissionCodes.fundRecord.read)
|
||||
},
|
||||
{
|
||||
icon: "setting",
|
||||
path: "/management/recycle-items",
|
||||
title: "回收配置",
|
||||
path: "/product/recycle-rules",
|
||||
title: "兑换模板",
|
||||
visible: userStore.hasPermissions(permissionCodes.recycleExchange.configManage)
|
||||
},
|
||||
{
|
||||
icon: "chart-combo",
|
||||
path: "/management/recycle-stats",
|
||||
path: "/product/recycle-stats",
|
||||
title: "回收统计",
|
||||
visible: userStore.hasPermissions(permissionCodes.recycleExchange.query)
|
||||
visible: userStore.hasPermissions(permissionCodes.salesOrder.read)
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -176,13 +182,13 @@ const menuGroupList = computed<MenuGroup[]>(() => [
|
||||
items: [
|
||||
{
|
||||
icon: "chart-analytics",
|
||||
path: "/management/product-data-charts",
|
||||
path: "/product/product-data-charts",
|
||||
title: "产品经营图表",
|
||||
visible: userStore.hasPermissions(permissionCodes.stat.read)
|
||||
},
|
||||
{
|
||||
icon: "chart-combo",
|
||||
path: "/management/order-data-charts",
|
||||
path: "/product/order-data-charts",
|
||||
title: "客户经营图表",
|
||||
visible: userStore.hasPermissions(permissionCodes.stat.read)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user