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.
107 lines
3.2 KiB
107 lines
3.2 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ProductputawayJobMainVO {
|
||
|
requestNumber: string
|
||
|
supplierCode: string
|
||
|
fromWarehouseCode: string
|
||
|
toWarehouseCode: string
|
||
|
fromAreaCodes: string
|
||
|
toAreaCodes: string
|
||
|
fromAreaTypes: string
|
||
|
toAreaTypes: string
|
||
|
completetime: Date
|
||
|
requestTime: Date
|
||
|
requestDueTime: Date
|
||
|
status: string
|
||
|
expiredTime: Date
|
||
|
updateTime: Date
|
||
|
updater: string
|
||
|
jobStageStatus: string
|
||
|
priority: number
|
||
|
priorityIncrement: number
|
||
|
departmentCode: string
|
||
|
acceptUserId: string
|
||
|
acceptTime: Date
|
||
|
completeUserId: string
|
||
|
number: string
|
||
|
businessType: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creator: string
|
||
|
autoComplete: string
|
||
|
allowModifyLocation: string
|
||
|
allowModifyQty: string
|
||
|
allowBiggerQty: string
|
||
|
allowSmallerQty: string
|
||
|
allowModifyInventoryStatus: string
|
||
|
allowContinuousScanning: string
|
||
|
allowPartialComplete: string
|
||
|
allowModifyBatch: string
|
||
|
allowModifyPackingNumber: string
|
||
|
}
|
||
|
|
||
|
// 查询制品上架任务主列表
|
||
|
export const getProductputawayJobMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/productputaway-job-main/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/productputaway-job-main/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询制品上架任务主详情
|
||
|
export const getProductputawayJobMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/productputaway-job-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增制品上架任务主
|
||
|
export const createProductputawayJobMain = async (data: ProductputawayJobMainVO) => {
|
||
|
return await request.post({ url: `/wms/productputaway-job-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改制品上架任务主
|
||
|
export const updateProductputawayJobMain = async (data: ProductputawayJobMainVO) => {
|
||
|
return await request.put({ url: `/wms/productputaway-job-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除制品上架任务主
|
||
|
export const deleteProductputawayJobMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/productputaway-job-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出制品上架任务主 Excel
|
||
|
export const exportProductputawayJobMain = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
const data = {...params}
|
||
|
return await request.downloadPost({ url: `/wms/productputaway-job-main/export-excel-senior`, data })
|
||
|
} else {
|
||
|
return await request.download({ url: `/wms/productputaway-job-main/export-excel`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/productputaway-job-main/get-import-template' })
|
||
|
}
|
||
|
|
||
|
// 承接发料任务
|
||
|
export const acceptProductputawayMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/productputaway-job-main/accept?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 放弃发料任务
|
||
|
export const abandonProductputawayMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/productputaway-job-main/abandon?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 关闭发料任务
|
||
|
export const closeProductputawayMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/productputaway-job-main/close?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 执行发料任务
|
||
|
export const executeProductputawayMain = async (data) => {
|
||
|
return await request.put({ url: `/wms/productputaway-job-main/execute`, data})
|
||
|
}
|