You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
2 years ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface DockVO {
|
||
|
code: string
|
||
|
name: string
|
||
|
description: string
|
||
|
city: string
|
||
|
address: string
|
||
|
type: string
|
||
|
warehouseCode: string
|
||
|
defaultLocationCode: string
|
||
|
contactPerson: string
|
||
|
contactPhone: string
|
||
|
available: number
|
||
|
activeTime: Date
|
||
|
expireTime: Date
|
||
|
remark: string
|
||
|
}
|
||
|
|
||
|
// 查询月台列表
|
||
|
export const getDockPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/dock/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询月台详情
|
||
|
export const getDock = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/dock/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增月台
|
||
|
export const createDock = async (data: DockVO) => {
|
||
|
return await request.post({ url: `/wms/dock/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改月台
|
||
|
export const updateDock = async (data: DockVO) => {
|
||
|
return await request.put({ url: `/wms/dock/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除月台
|
||
|
export const deleteDock = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/dock/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出月台 Excel
|
||
|
export const exportDock = async (params) => {
|
||
|
return await request.download({ url: `/wms/dock/export-excel`, params })
|
||
|
}
|