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.
62 lines
2.0 KiB
62 lines
2.0 KiB
import request from '@/config/axios'
|
|
|
|
export interface ItemSyntheticRelationVO {
|
|
code: string
|
|
name: string
|
|
itemCode: string
|
|
itemName: string
|
|
creatorName: string
|
|
updaterName: string
|
|
deleteTime: Date
|
|
deleter: string
|
|
deleteName: string
|
|
}
|
|
|
|
// 查询物料组合关系列表
|
|
export const getItemSyntheticRelationPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/item-synthetic-relation/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/item-synthetic-relation/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询物料组合关系详情
|
|
export const getItemSyntheticRelation = async (id: number) => {
|
|
return await request.get({ url: `/wms/item-synthetic-relation/get?id=` + id })
|
|
}
|
|
|
|
// 新增物料组合关系
|
|
export const createItemSyntheticRelation = async (data: ItemSyntheticRelationVO) => {
|
|
return await request.post({ url: `/wms/item-synthetic-relation/create`, data })
|
|
}
|
|
|
|
// 修改物料组合关系
|
|
export const updateItemSyntheticRelation = async (data: ItemSyntheticRelationVO) => {
|
|
return await request.put({ url: `/wms/item-synthetic-relation/update`, data })
|
|
}
|
|
|
|
// 删除物料组合关系
|
|
export const deleteItemSyntheticRelation = async (id: number) => {
|
|
return await request.delete({ url: `/wms/item-synthetic-relation/delete?id=` + id })
|
|
}
|
|
|
|
// 导出物料组合关系 Excel
|
|
export const exportItemSyntheticRelation = async (params) => {
|
|
return await request.download({ url: `/wms/item-synthetic-relation/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/item-synthetic-relation/get-import-template' })
|
|
}
|
|
|
|
export async function enableItemSyntheticRelation(id: number) {
|
|
return await request.enable({ url: `/wms/item-synthetic-relation/enable?id=` + id })
|
|
}
|
|
|
|
export async function disableItemSyntheticRelation(id: number) {
|
|
return await request.disable({ url: `/wms/item-synthetic-relation/disable?id=` + id })
|
|
}
|
|
|