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.
79 lines
2.4 KiB
79 lines
2.4 KiB
import request from '@/config/axios'
|
|
|
|
export interface UnplannedreceiptJobMainVO {
|
|
requestNumber: string
|
|
toWarehouseCode: 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
|
|
fromLocationTypes: string
|
|
toLocationTypes: string
|
|
number: string
|
|
businessType: string
|
|
remark: string
|
|
createTime: Date
|
|
creator: 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 getUnplannedreceiptJobMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/unplannedreceipt-job-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/unplannedreceipt-job-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询计划外入库任务主详情
|
|
export const getUnplannedreceiptJobMain = async (id: number) => {
|
|
return await request.get({ url: `/wms/unplannedreceipt-job-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增计划外入库任务主
|
|
export const createUnplannedreceiptJobMain = async (data: UnplannedreceiptJobMainVO) => {
|
|
return await request.post({ url: `/wms/unplannedreceipt-job-main/create`, data })
|
|
}
|
|
|
|
// 修改计划外入库任务主
|
|
export const updateUnplannedreceiptJobMain = async (data: UnplannedreceiptJobMainVO) => {
|
|
return await request.put({ url: `/wms/unplannedreceipt-job-main/update`, data })
|
|
}
|
|
|
|
// 删除计划外入库任务主
|
|
export const deleteUnplannedreceiptJobMain = async (id: number) => {
|
|
return await request.delete({ url: `/wms/unplannedreceipt-job-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出计划外入库任务主 Excel
|
|
export const exportUnplannedreceiptJobMain = async (params) => {
|
|
return await request.download({ url: `/wms/unplannedreceipt-job-main/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/unplannedreceipt-job-main/get-import-template' })
|
|
}
|