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 @@ + + +