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.
57 lines
1.5 KiB
57 lines
1.5 KiB
1 week ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ItemPullVO {
|
||
|
id: number
|
||
|
itemCode: string
|
||
|
itemName: string
|
||
|
backNumber: string
|
||
|
receivedNumber: string
|
||
|
productionLine: string
|
||
|
supplierCode: string
|
||
|
replenishType: string
|
||
|
pullType: string
|
||
|
available: string
|
||
|
siteId: string
|
||
|
concurrencyStamp: number
|
||
|
}
|
||
|
|
||
|
// 查询物料拉动配置列表
|
||
|
export const getItemPullPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/item-pull/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/item-pull/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询物料拉动配置详情
|
||
|
export const getItemPull = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/item-pull/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增物料拉动配置
|
||
|
export const createItemPull = async (data: ItemPullVO) => {
|
||
|
return await request.post({ url: `/wms/item-pull/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改物料拉动配置
|
||
|
export const updateItemPull = async (data: ItemPullVO) => {
|
||
|
return await request.put({ url: `/wms/item-pull/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除物料拉动配置
|
||
|
export const deleteItemPull = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/item-pull/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出物料拉动配置 Excel
|
||
|
export const exportItemPull = async (params) => {
|
||
|
return await request.download({ url: `/wms/item-pull/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/item-pull/get-import-template' })
|
||
|
}
|