59 lines
1.6 KiB
TypeScript
59 lines
1.6 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
export interface StorageInVO {
|
|
id: number
|
|
storageNo: string
|
|
purchaseType: boolean
|
|
goodsType: boolean
|
|
estimatedPrice: number
|
|
actualPrice: number
|
|
status: boolean
|
|
description: string
|
|
isPrint: string
|
|
printDtime: Date
|
|
ordDate: Date
|
|
}
|
|
|
|
// 查询入库单分页
|
|
export const getStorageInPage = async (params) => {
|
|
return await request.get({ url: `/heli/storage-in/page`, params })
|
|
}
|
|
|
|
// 查询入库单详情
|
|
export const getStorageIn = async (id: number) => {
|
|
return await request.get({ url: `/heli/storage-in/get?id=` + id })
|
|
}
|
|
|
|
// 新增入库单
|
|
export const createStorageIn = async (data: StorageInVO) => {
|
|
return await request.post({ url: `/heli/storage-in/create`, data })
|
|
}
|
|
|
|
// 修改入库单
|
|
export const updateStorageIn = async (data: StorageInVO) => {
|
|
return await request.put({ url: `/heli/storage-in/update`, data })
|
|
}
|
|
|
|
// 删除入库单
|
|
export const deleteStorageIn = async (id: number) => {
|
|
return await request.delete({ url: `/heli/storage-in/delete?id=` + id })
|
|
}
|
|
|
|
// 导出入库单 Excel
|
|
export const exportStorageIn = async (params) => {
|
|
return await request.download({ url: `/heli/storage-in/export-excel`, params })
|
|
}
|
|
|
|
// 查询入库单详情
|
|
export const isPrint = async (id: number) => {
|
|
return await request.get({ url: `/heli/storage-in/isPrint?id=` + id })
|
|
}
|
|
// 新增入库单
|
|
export const standardPartsReceived = async (data: StorageInVO) => {
|
|
return await request.post({ url: `/heli/storage-in/standardPartsReceived`, data })
|
|
}
|
|
// 查询入库单详情
|
|
export const warehousing = async (id: number) => {
|
|
return await request.get({ url: `/heli/storage-in/warehousing?id=` + id })
|
|
}
|