From 3f2a348c14808c4c60116b6f892996e97ccdcdcc Mon Sep 17 00:00:00 2001
From: yangmf_0726 <13243152557@163.com>
Date: Tue, 9 Sep 2025 18:45:52 +0800
Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=B4=A7=E9=81=93=E7=AE=A1?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/mall/product/channel.ts | 44 ++++
.../mall/product/channel/ChannelForm.vue | 114 +++++++++
src/views/mall/product/channel/index.vue | 232 ++++++++++++++++++
3 files changed, 390 insertions(+)
create mode 100644 src/api/mall/product/channel.ts
create mode 100644 src/views/mall/product/channel/ChannelForm.vue
create mode 100644 src/views/mall/product/channel/index.vue
diff --git a/src/api/mall/product/channel.ts b/src/api/mall/product/channel.ts
new file mode 100644
index 00000000..c42c321d
--- /dev/null
+++ b/src/api/mall/product/channel.ts
@@ -0,0 +1,44 @@
+import request from '@/config/axios'
+
+// 货道 VO
+export interface ChannelVO {
+ id: number // 表编号,自增
+ name: string // 名称
+ deviceId: string // 设备IMEI
+ cabinetChannel: string // 当前使用的货道或柜门编号
+ maxNum: number // 最大货物数
+ channelLine: number // 货道行号
+}
+
+// 货道 API
+export const ChannelApi = {
+ // 查询货道分页
+ getChannelPage: async (params: any) => {
+ return await request.get({ url: `/product/channel/page`, params })
+ },
+
+ // 查询货道详情
+ getChannel: async (id: number) => {
+ return await request.get({ url: `/product/channel/get?id=` + id })
+ },
+
+ // 新增货道
+ createChannel: async (data: ChannelVO) => {
+ return await request.post({ url: `/product/channel/create`, data })
+ },
+
+ // 修改货道
+ updateChannel: async (data: ChannelVO) => {
+ return await request.put({ url: `/product/channel/update`, data })
+ },
+
+ // 删除货道
+ deleteChannel: async (id: number) => {
+ return await request.delete({ url: `/product/channel/delete?id=` + id })
+ },
+
+ // 导出货道 Excel
+ exportChannel: async (params) => {
+ return await request.download({ url: `/product/channel/export-excel`, params })
+ }
+}
diff --git a/src/views/mall/product/channel/ChannelForm.vue b/src/views/mall/product/channel/ChannelForm.vue
new file mode 100644
index 00000000..8aadcebd
--- /dev/null
+++ b/src/views/mall/product/channel/ChannelForm.vue
@@ -0,0 +1,114 @@
+
+
+
+
diff --git a/src/views/mall/product/channel/index.vue b/src/views/mall/product/channel/index.vue
new file mode 100644
index 00000000..67895956
--- /dev/null
+++ b/src/views/mall/product/channel/index.vue
@@ -0,0 +1,232 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+