import request from '@/config/axios' export interface SupplyLabelVO { id: number itemCode: string locationCode: string uom: string } // 查询补给品标签列表 export const getSupplyLabelPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/supply-label/senior', data }) } else { return await request.get({ url: `/wms/supply-label/page`, params }) } } // 查询补给品标签详情 export const getSupplyLabel = async (id: number) => { return await request.get({ url: `/wms/supply-label/get?id=` + id }) } // 新增补给品标签 export const createSupplyLabel = async (data: SupplyLabelVO) => { return await request.post({ url: `/wms/supply-label/create`, data }) } // 修改补给品标签 export const updateSupplyLabel = async (data: SupplyLabelVO) => { return await request.put({ url: `/wms/supply-label/update`, data }) } // 删除补给品标签 export const deleteSupplyLabel = async (id: number) => { return await request.delete({ url: `/wms/supply-label/delete?id=` + id }) } // 导出补给品标签 Excel export const exportSupplyLabel = async (params) => { return await request.download({ url: `/wms/supply-label/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/supply-label/get-import-template' }) }