106 lines
3.0 KiB
106 lines
3.0 KiB
import request from '@/config/axios'
|
|
|
|
export interface RepleinshJobMainVO {
|
|
requestNumber: string
|
|
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
|
|
completeTime: Date
|
|
fromAreaTypes: string
|
|
toAreaTypes: string
|
|
number: string
|
|
businessType: string
|
|
remark: string
|
|
createTime: Date
|
|
creator: string
|
|
fromWarehouseCode: string
|
|
toWarehouseCode: string
|
|
fromAreaCodes: string
|
|
toAreaCodes: string
|
|
autoComplete: string
|
|
allowModifyLocation: string
|
|
allowModifyQty: string
|
|
allowBiggerQty: string
|
|
allowSmallerQty: string
|
|
allowModifyInventoryStatus: string
|
|
allowContinuousScanning: string
|
|
allowPartialComplete: string
|
|
allowModifyBatch: string
|
|
allowModifyPackingNumber: string
|
|
}
|
|
|
|
// 查询补料任务主列表
|
|
export const getRepleinshJobMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/repleinsh-job-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/repleinsh-job-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询补料任务主详情
|
|
export const getRepleinshJobMain = async (id: number) => {
|
|
return await request.get({ url: `/wms/repleinsh-job-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增补料任务主
|
|
export const createRepleinshJobMain = async (data: RepleinshJobMainVO) => {
|
|
return await request.post({ url: `/wms/repleinsh-job-main/create`, data })
|
|
}
|
|
|
|
// 修改补料任务主
|
|
export const updateRepleinshJobMain = async (data: RepleinshJobMainVO) => {
|
|
return await request.put({ url: `/wms/repleinsh-job-main/update`, data })
|
|
}
|
|
|
|
// 删除补料任务主
|
|
export const deleteRepleinshJobMain = async (id: number) => {
|
|
return await request.delete({ url: `/wms/repleinsh-job-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出补料任务主 Excel
|
|
export const exportRepleinshJobMain = async (params) => {
|
|
if (params.isSearch) {
|
|
const data = {...params}
|
|
return await request.downloadPost({ url: `/wms/repleinsh-job-main/export-excel-senior`, data })
|
|
} else {
|
|
return await request.download({ url: `/wms/repleinsh-job-main/export-excel`, params })
|
|
}
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/repleinsh-job-main/get-import-template' })
|
|
}
|
|
|
|
// 承接发料任务
|
|
export const acceptRepleinshMain = async (id) => {
|
|
return await request.put({ url: `/wms/repleinsh-job-main/accept?id=` + id })
|
|
}
|
|
|
|
// 放弃发料任务
|
|
export const abandonRepleinshMain = async (id) => {
|
|
return await request.put({ url: `/wms/repleinsh-job-main/abandon?id=` + id })
|
|
}
|
|
|
|
// 关闭发料任务
|
|
export const closeRepleinshMain = async (id) => {
|
|
return await request.put({ url: `/wms/repleinsh-job-main/close?id=` + id })
|
|
}
|
|
|
|
// 执行发料任务
|
|
export const executeRepleinshMain = async (data) => {
|
|
return await request.put({ url: `/wms/repleinsh-job-main/execute`, data})
|
|
}
|