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.
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface ProductputawayJobDetailVO {
|
|
|
|
packingNumber: string
|
|
|
|
containerNumber: string
|
|
|
|
batch: string
|
|
|
|
inventoryStatus: string
|
|
|
|
poNumber: string
|
|
|
|
poLine: string
|
|
|
|
fromLocationCode: string
|
|
|
|
toLocationCode: string
|
|
|
|
itemCode: string
|
|
|
|
itemName: string
|
|
|
|
itemDesc1: string
|
|
|
|
itemDesc2: string
|
|
|
|
projectCode: string
|
|
|
|
qty: number
|
|
|
|
uom: string
|
|
|
|
number: string
|
|
|
|
remark: string
|
|
|
|
createTime: Date
|
|
|
|
creator: string
|
|
|
|
fromOwnerCode: string
|
|
|
|
toOwnerCode: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询制品上架任务子列表
|
|
|
|
export const getProductputawayJobDetailPage = async (params) => {
|
|
|
|
params.type = 'predict'
|
|
|
|
if (params.isSearch) {
|
|
|
|
delete params.isSearch
|
|
|
|
const data = {...params}
|
|
|
|
return await request.post({ url: '/wms/productputaway-job-detail/senior', data })
|
|
|
|
} else {
|
|
|
|
return await request.get({ url: `/wms/productputaway-job-detail/page`, params })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询制品上架任务子列表
|
|
|
|
export const getProductputawayJobDetailPageAssemble = async (params) => {
|
|
|
|
params.type = 'assemble'
|
|
|
|
if (params.isSearch) {
|
|
|
|
delete params.isSearch
|
|
|
|
const data = {...params}
|
|
|
|
return await request.post({ url: '/wms/productputaway-job-detail/senior', data })
|
|
|
|
} else {
|
|
|
|
return await request.get({ url: `/wms/productputaway-job-detail/page`, params })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询制品上架任务子详情
|
|
|
|
export const getProductputawayJobDetail = async (id: number) => {
|
|
|
|
return await request.get({ url: `/wms/productputaway-job-detail/get?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增制品上架任务子
|
|
|
|
export const createProductputawayJobDetail = async (data: ProductputawayJobDetailVO) => {
|
|
|
|
return await request.post({ url: `/wms/productputaway-job-detail/create`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改制品上架任务子
|
|
|
|
export const updateProductputawayJobDetail = async (data: ProductputawayJobDetailVO) => {
|
|
|
|
return await request.put({ url: `/wms/productputaway-job-detail/update`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除制品上架任务子
|
|
|
|
export const deleteProductputawayJobDetail = async (id: number) => {
|
|
|
|
return await request.delete({ url: `/wms/productputaway-job-detail/delete?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出制品上架任务子 Excel
|
|
|
|
export const exportProductputawayJobDetail = async (params) => {
|
|
|
|
return await request.download({ url: `/wms/productputaway-job-detail/export-excel`, params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => {
|
|
|
|
return request.download({ url: '/wms/productputaway-job-detail/get-import-template' })
|
|
|
|
}
|