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.
42 lines
1.3 KiB
42 lines
1.3 KiB
2 years ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ProductionlineitemVO {
|
||
|
fgLocationCode: string
|
||
|
productionLineCode: string
|
||
|
itemCode: string
|
||
|
available: number
|
||
|
activeTime: Date
|
||
|
expireTime: Date
|
||
|
remark: string
|
||
|
}
|
||
|
|
||
|
// 查询生产线物料关系列表
|
||
|
export const getProductionlineitemPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/productionlineitem/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询生产线物料关系详情
|
||
|
export const getProductionlineitem = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/productionlineitem/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增生产线物料关系
|
||
|
export const createProductionlineitem = async (data: ProductionlineitemVO) => {
|
||
|
return await request.post({ url: `/wms/productionlineitem/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改生产线物料关系
|
||
|
export const updateProductionlineitem = async (data: ProductionlineitemVO) => {
|
||
|
return await request.put({ url: `/wms/productionlineitem/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除生产线物料关系
|
||
|
export const deleteProductionlineitem = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/productionlineitem/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出生产线物料关系 Excel
|
||
|
export const exportProductionlineitem = async (params) => {
|
||
|
return await request.download({ url: `/wms/productionlineitem/export-excel`, params })
|
||
|
}
|