62 lines
1.7 KiB
TypeScript
62 lines
1.7 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
export interface ProStorageMatVO {
|
|
id: number
|
|
stockId: number
|
|
description: string
|
|
storeHouseId: number
|
|
storeAreaId: number
|
|
storeHouseCd: string
|
|
storeHouseName: string
|
|
storeAreCd: string
|
|
storeAreaName: string
|
|
materialId: number
|
|
matName: string
|
|
matCode: string
|
|
spec: string
|
|
unit: string
|
|
lotNo: string
|
|
operatorQty: number
|
|
sourceId: number
|
|
relarionId: number
|
|
bagSpec: number
|
|
bagQty: number
|
|
planId: number
|
|
proNo: string
|
|
}
|
|
|
|
// 查询成品入/出库子分页
|
|
export const getProStorageMatPage = async (params) => {
|
|
return await request.get({ url: `/twm/pro-storage-mat/page`, params })
|
|
}
|
|
|
|
// 查询成品入/出库子详情
|
|
export const getProStorageMat = async (id: number) => {
|
|
return await request.get({ url: `/twm/pro-storage-mat/get?id=` + id })
|
|
}
|
|
|
|
// 查询成品入/出库子分页
|
|
export const getProStorageMatPageByStockId = async (stockId: number) => {
|
|
return await request.get({ url: `/twm/pro-storage-mat/getByStockId?stockId=` + stockId })
|
|
}
|
|
|
|
// 新增成品入/出库子
|
|
export const createProStorageMat = async (data: ProStorageMatVO) => {
|
|
return await request.post({ url: `/twm/pro-storage-mat/create`, data })
|
|
}
|
|
|
|
// 修改成品入/出库子
|
|
export const updateProStorageMat = async (data: ProStorageMatVO) => {
|
|
return await request.put({ url: `/twm/pro-storage-mat/update`, data })
|
|
}
|
|
|
|
// 删除成品入/出库子
|
|
export const deleteProStorageMat = async (id: number) => {
|
|
return await request.delete({ url: `/twm/pro-storage-mat/delete?id=` + id })
|
|
}
|
|
|
|
// 导出成品入/出库子 Excel
|
|
export const exportProStorageMat = async (params) => {
|
|
return await request.download({ url: `/twm/pro-storage-mat/export-excel`, params })
|
|
}
|