chenfang
6 months ago
4 changed files with 81 additions and 77 deletions
@ -0,0 +1,50 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PrintCorrelationVO { |
|||
id: number |
|||
number: string |
|||
labelId: string |
|||
labelType: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询打印标签关联列表
|
|||
export const getPrintCorrelationPage = async (params) => { |
|||
if (params.isSearch) { |
|||
delete params.isSearch |
|||
const data = {...params} |
|||
return await request.post({ url: '/wms/print-correlation/senior', data }) |
|||
} else { |
|||
return await request.get({ url: `/wms/print-correlation/page`, params }) |
|||
} |
|||
} |
|||
|
|||
// 查询打印标签关联详情
|
|||
export const getPrintCorrelation = async (id: number) => { |
|||
return await request.get({ url: `/wms/print-correlation/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增打印标签关联
|
|||
export const createPrintCorrelation = async (data: PrintCorrelationVO) => { |
|||
return await request.post({ url: `/wms/print-correlation/create`, data }) |
|||
} |
|||
|
|||
// 修改打印标签关联
|
|||
export const updatePrintCorrelation = async (data: PrintCorrelationVO) => { |
|||
return await request.put({ url: `/wms/print-correlation/update`, data }) |
|||
} |
|||
|
|||
// 删除打印标签关联
|
|||
export const deletePrintCorrelation = async (id: number) => { |
|||
return await request.delete({ url: `/wms/print-correlation/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出打印标签关联 Excel
|
|||
export const exportPrintCorrelation = async (params) => { |
|||
return await request.download({ url: `/wms/print-correlation/export-excel`, params }) |
|||
} |
|||
|
|||
// 下载用户导入模板
|
|||
export const importTemplate = () => { |
|||
return request.download({ url: '/wms/print-correlation/get-import-template' }) |
|||
} |
Loading…
Reference in new issue