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.
54 lines
1.6 KiB
54 lines
1.6 KiB
import request from '@/config/axios'
|
|
|
|
export interface PreparetoissueDetailVO {
|
|
toLocationCode: string
|
|
workStation: string
|
|
dueTime: Date
|
|
number: string
|
|
itemCode: string
|
|
remark: string
|
|
createTime: Date
|
|
creator: string
|
|
planQty: number
|
|
uom: string
|
|
updateTime: Date
|
|
updater: string
|
|
available: string
|
|
}
|
|
|
|
// 查询备料计划子列表
|
|
export const getPreparetoissueDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/preparetoissue-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/preparetoissue-detail/page`, params })
|
|
}
|
|
|
|
}
|
|
|
|
// 查询备料计划子详情
|
|
export const getPreparetoissueDetail = async (id: number) => {
|
|
return await request.get({ url: `/wms/preparetoissue-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增备料计划子
|
|
export const createPreparetoissueDetail = async (data: PreparetoissueDetailVO) => {
|
|
return await request.post({ url: `/wms/preparetoissue-detail/create`, data })
|
|
}
|
|
|
|
// 修改备料计划子
|
|
export const updatePreparetoissueDetail = async (data: PreparetoissueDetailVO) => {
|
|
return await request.put({ url: `/wms/preparetoissue-detail/update`, data })
|
|
}
|
|
|
|
// 删除备料计划子
|
|
export const deletePreparetoissueDetail = async (id: number) => {
|
|
return await request.delete({ url: `/wms/preparetoissue-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出备料计划子 Excel
|
|
export const exportPreparetoissueDetail = async (params) => {
|
|
return await request.download({ url: `/wms/preparetoissue-detail/export-excel`, params })
|
|
}
|
|
|