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 getDockList = async (params) => { return await request.get({ url: `/wms/dock/list`, 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 }) } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/dock/get-import-template' }) }