diff --git a/src/assets/styles/custom.scss b/src/assets/styles/custom.scss
index 1495537..8b51175 100644
--- a/src/assets/styles/custom.scss
+++ b/src/assets/styles/custom.scss
@@ -218,6 +218,7 @@
height: 100%;
left: 0;
right: 0;
+ min-width: 1000px;
}
// 表格组件中的各插槽元素自定义样式
.custom-tooltip-content {
diff --git a/src/components/tableComponent.vue b/src/components/tableComponent.vue
index 983144c..7392864 100644
--- a/src/components/tableComponent.vue
+++ b/src/components/tableComponent.vue
@@ -59,6 +59,7 @@
:label="column.label"
:width="column.width"
:align="column.align || 'center'"
+ :fixed="column.fixed ?? false"
:sortable="column.sortable"
:header-class-name="column.headerClassName"
>
@@ -340,7 +341,7 @@ onBeforeUnmount(() => {
/* 自定义鼠标悬停颜色 */
:deep(.el-table__body tr:hover > td) {
- background-color: rgba(37, 191, 130, 0.1) !important;
+ background-color: rgba(237 255 248) !important;
}
/* 自定义表头样式 */
diff --git a/src/router/index.js b/src/router/index.js
index 6e83c75..521891a 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,3 +1,4 @@
+
import { createWebHistory, createRouter } from 'vue-router'
/* Layout */
import Layout from '@/layout'
@@ -92,16 +93,38 @@ export const constantRoutes = [
component: () => import('@/views/goods/goodsManage/editGoods'),
name: 'editGoods',
meta: { title: '编辑商品', icon: '' }
- },
- {
- path: '/goods/goodsReview/auditGoods/:activeTab?',
- component: () => import('@/views/goods/goodsReview/auditGoods'),
- name: 'auditGoods',
- meta: { title: '审核商品', icon: '' }
}
]
},
- {
+ {
+ path: '/order',
+ component: Layout,
+ hidden: true,
+ redirect: 'noredirect',
+ children: [
+ {
+ path: 'order/sendGoodsInfo/:activeTab?',
+ component: () => import('@/views/order/sendGoodsInfo'),
+ hidden: false,
+ meta: {
+ title: "去发货",
+ icon: "star",
+ },
+ name: "sendGoodsInfo",
+ },
+ {
+ path: 'order/orderDetails/:activeTab?',
+ component: () => import('@/views/order/orderDetails'),
+ hidden: false,
+ meta: {
+ title: "订单详情",
+ icon: "star",
+ },
+ name: "orderDetails",
+ },
+ ]
+ },
+ {
path: '/user',
component: Layout,
hidden: true,
@@ -192,31 +215,7 @@ export const constantRoutes = [
noCache: false,
link: null,
},
- },
- {
- path: 'goods/contrabandManage',
- component: () => import('@/views/goods/contrabandManage/index'),
- name: 'contrabandManage',
- hidden: false,
- meta: {
- title: "违禁物品管理",
- icon: "",
- noCache: false,
- link: null,
- },
- },
- {
- path: 'goods/goodsReview',
- component: () => import('@/views/goods/goodsReview/index'),
- name: 'goodsReview',
- hidden: false,
- meta: {
- title: "上架审核设置",
- icon: "",
- noCache: false,
- link: null,
- },
- },
+ }
],
},
{
@@ -328,63 +327,122 @@ export const constantRoutes = [
name: "brand",
component: Layout,
hidden: false,
- alwaysShow: true,
- redirect: 'noredirect',
+ children: [
+ {
+ path: 'brand/index',
+ component: () => import('@/views/brand/index'),
+ hidden: false,
+ meta: {
+ title: "公共品牌",
+ icon: "star",
+ noCache: false,
+ link: null,
+ },
+ name: "index",
+ },
+ ],
+ },
+ {
+ path: '/order',
+ name: "order",
+ component: Layout,
+ hidden: false,
meta: {
- icon: "money",
- link: null,
+ title: "订单列表",
+ icon: "documentation",
noCache: false,
- title: "公共品牌",
+ link: null,
},
children: [
{
- path: 'brand/informationManagement',
- component: () => import('@/views/brand/informationManagement/index'),
+ path: 'order/obligation',
+ component: () => import('@/views/order/obligation'),
hidden: false,
meta: {
- title: "信息管理",
- icon: "",
+ title: "待付款",
noCache: false,
link: null,
},
- name: "informationManagement",
+ name: "obligation",
},
{
- path: 'brand/applicationReview',
- component: () => import('@/views/brand/applicationReview/index'),
+ path: 'order/sendGoods',
+ component: () => import('@/views/order/sendGoods'),
hidden: false,
meta: {
- title: "申请审核",
- icon: "",
+ title: "待发货",
noCache: false,
link: null,
},
- name: "applicationReview",
+ name: "sendGoods",
},
{
- path: 'brand/renewal',
- component: () => import('@/views/brand/renewal/index'),
+ path: 'order/shipped',
+ component: () => import('@/views/order/shipped'),
hidden: false,
meta: {
- title: "申请续期",
- icon: "",
+ title: "已发货",
noCache: false,
link: null,
},
- name: "renewal",
+ name: "shipped",
},
- // {
- // path: 'brand/management',
- // component: () => import('@/views/brand/management/index'),
- // hidden: false,
- // meta: {
- // title: "品牌使用管理",
- // icon: "",
- // noCache: false,
- // link: null,
- // },
- // name: "management",
- // },
+ {
+ path: 'order/receivedGoods',
+ component: () => import('@/views/order/receivedGoods'),
+ hidden: false,
+ meta: {
+ title: "已收货",
+ noCache: false,
+ link: null,
+ },
+ name: "receivedGoods",
+ },
+ {
+ path: 'order/completed',
+ component: () => import('@/views/order/completed'),
+ hidden: false,
+ meta: {
+ title: "已完成",
+ noCache: false,
+ link: null,
+ },
+ name: "completed",
+ },
+ {
+ path: 'order/cancelled',
+ component: () => import('@/views/order/cancelled'),
+ hidden: false,
+ meta: {
+ title: "已取消",
+ noCache: false,
+ link: null,
+ },
+ name: "cancelled",
+ },
+ {
+ path: 'order/salesService',
+ component: () => import('@/views/order/salesService'),
+ hidden: false,
+ meta: {
+ title: "退货/退款",
+ noCache: false,
+ link: null,
+ },
+ name: "salesService",
+ },
+ {
+ path: 'order/refunded',
+ component: () => import('@/views/order/refunded'),
+ hidden: false,
+ meta: {
+ title: "已退货/退款",
+ noCache: false,
+ link: null,
+ },
+ name: "refunded",
+ },
+
],
},
]
@@ -474,4 +532,4 @@ const router = createRouter({
},
})
-export default router
+export default router
\ No newline at end of file
diff --git a/src/views/goods/goodsCategory/index.vue b/src/views/goods/goodsCategory/index.vue
index a6759b2..721472d 100644
--- a/src/views/goods/goodsCategory/index.vue
+++ b/src/views/goods/goodsCategory/index.vue
@@ -171,7 +171,7 @@ const columns1 = ref([
{ prop: "level", label: "分类级别", slotName: "level" },
{ prop: "createTime", label: "添加时间" },
{ prop: "status", label: "状态", slotName: "status" },
- { prop: "action", label: "操作", slotName: "action", width: 150 },
+ { prop: "action", label: "操作", slotName: "action", width: 150,fixed: "right" },
]);
// 生成食物主题昵称
diff --git a/src/views/goods/goodsManage/addGoods.vue b/src/views/goods/goodsManage/addGoods.vue
index 320c81f..df0b064 100644
--- a/src/views/goods/goodsManage/addGoods.vue
+++ b/src/views/goods/goodsManage/addGoods.vue
@@ -564,6 +564,7 @@ const onGoodSave = async (params) => {
if (response.code === 200) {
ElMessage.success("新增成功!");
formRef.value.resetFields();
+ router.go(-1);
} else {
ElMessage.error(response.message);
}
diff --git a/src/views/goods/goodsManage/editGoods.vue b/src/views/goods/goodsManage/editGoods.vue
index ddebca7..e629540 100644
--- a/src/views/goods/goodsManage/editGoods.vue
+++ b/src/views/goods/goodsManage/editGoods.vue
@@ -554,6 +554,7 @@ const onGoodSave = async (params) => {
if (response.code === 200) {
ElMessage.success("编辑成功!");
formRef.value.resetFields();
+ router.go(-1);
} else {
ElMessage.error(response.message);
}
diff --git a/src/views/goods/goodsManage/seeDetails.vue b/src/views/goods/goodsManage/seeDetails.vue
index 0de9d37..e3c6761 100644
--- a/src/views/goods/goodsManage/seeDetails.vue
+++ b/src/views/goods/goodsManage/seeDetails.vue
@@ -209,7 +209,7 @@
-