diff --git a/src/api/crm/product/index.ts b/src/api/crm/product/index.ts
index c6d5dfdbeb23a3b246dfbc5102bd76d8916d9471..a89d6e817802d7a0390007987c9b7f2a23a4eec2 100644
--- a/src/api/crm/product/index.ts
+++ b/src/api/crm/product/index.ts
@@ -14,30 +14,35 @@ export interface ProductVO {
// 查询产品列表
export const getProductPage = async (params) => {
- return await request.get({ url: `/crm/product/page`, params })
+ return await request.get({url: `/crm/product/page`, params})
}
// 查询产品详情
export const getProduct = async (id: number) => {
- return await request.get({ url: `/crm/product/get?id=` + id })
+ return await request.get({url: `/crm/product/get?id=` + id})
}
// 新增产品
export const createProduct = async (data: ProductVO) => {
- return await request.post({ url: `/crm/product/create`, data })
+ return await request.post({url: `/crm/product/create`, data})
}
// 修改产品
export const updateProduct = async (data: ProductVO) => {
- return await request.put({ url: `/crm/product/update`, data })
+ return await request.put({url: `/crm/product/update`, data})
}
// 删除产品
export const deleteProduct = async (id: number) => {
- return await request.delete({ url: `/crm/product/delete?id=` + id })
+ return await request.delete({url: `/crm/product/delete?id=` + id})
}
// 导出产品 Excel
export const exportProduct = async (params) => {
- return await request.download({ url: `/crm/product/export-excel`, params })
+ return await request.download({url: `/crm/product/export-excel`, params})
+}
+
+// 查询产品操作日志
+export const getOperateLogPage = async (params: any) => {
+ return await request.get({url: '/crm/product/operate-log-page', params})
}
diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts
index a562ea85e6eb1a8295cea460f1c158569e9e1928..639fae36caa5b5e9c9df52381c45e78961c295e4 100644
--- a/src/router/modules/remaining.ts
+++ b/src/router/modules/remaining.ts
@@ -517,6 +517,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
hidden: true
},
component: () => import('@/views/crm/contact/detail/index.vue')
+ },
+ {
+ path: 'product/detail/:id',
+ name: 'CrmProductDetail',
+ meta: {
+ title: '产品详情',
+ noCache: true,
+ hidden: true
+ },
+ component: () => import('@/views/crm/product/detail/index.vue')
}
]
}
diff --git a/src/views/crm/product/ProductDetail.vue b/src/views/crm/product/ProductDetail.vue
deleted file mode 100644
index f2638df0ba499632deaa43ffcc52b470e3021580..0000000000000000000000000000000000000000
--- a/src/views/crm/product/ProductDetail.vue
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
diff --git a/src/views/crm/product/ProductForm.vue b/src/views/crm/product/ProductForm.vue
index 0864c8d888a356e6adb9145d9ffd2b10a0b05136..74dc766261d92851fe93829f8770856348a03adb 100644
--- a/src/views/crm/product/ProductForm.vue
+++ b/src/views/crm/product/ProductForm.vue
@@ -10,7 +10,7 @@
-
+
@@ -57,7 +57,7 @@
-
+
@@ -74,7 +74,7 @@
-
+
@@ -98,17 +98,17 @@
diff --git a/src/views/crm/product/detail/ProductDetailsInfo.vue b/src/views/crm/product/detail/ProductDetailsInfo.vue
new file mode 100644
index 0000000000000000000000000000000000000000..85046b8568aec5941e04dc1cf2ae39a777064948
--- /dev/null
+++ b/src/views/crm/product/detail/ProductDetailsInfo.vue
@@ -0,0 +1,45 @@
+
+
+
+
+
+ 基本信息
+
+
+ {{ product.name }}
+ {{ product.no }}
+ {{ fenToYuan(product.price) }}元
+ {{ product.description }}
+
+ {{ productCategoryList?.find((c) => c.id === product.categoryId)?.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/crm/product/detail/index.vue b/src/views/crm/product/detail/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..9e84d2e5bc8ff375ad3a25fcb47974959c42d321
--- /dev/null
+++ b/src/views/crm/product/detail/index.vue
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/crm/product/index.vue b/src/views/crm/product/index.vue
index 3f01455ca3214128ab1e5110fc43fc940fb0dacb..aa517c170eec9c33f58717b3cfbb563a005e67bc 100644
--- a/src/views/crm/product/index.vue
+++ b/src/views/crm/product/index.vue
@@ -28,10 +28,17 @@
- 搜索
- 重置
+
+
+ 搜索
+
+
+
+ 重置
+
- 新增
+
+ 新增
- 导出
+
+ 导出
@@ -49,27 +57,33 @@
-
-
+
+
+
+ {{ scope.row.name }}
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
- 详情
-
-
-
-
+