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.
93 lines
2.5 KiB
93 lines
2.5 KiB
import request from '@/config/axios'
|
|
|
|
export interface CountJobMainVO {
|
|
requestNumber: string
|
|
planNumber: string
|
|
stage: string
|
|
warehouseCode: string
|
|
locationCode: 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
|
|
siteId: string
|
|
autoComplete: string
|
|
allowModifyLocation: string
|
|
allowModifyQty: string
|
|
allowBiggerQty: string
|
|
allowSmallerQty: string
|
|
allowModifInventoryStatus: string
|
|
allowContinuousScanning: string
|
|
allowPartialComplete: string
|
|
allowModifyBatch: string
|
|
allowModifyPackingNumber: string
|
|
}
|
|
|
|
// 查询盘点任务主列表
|
|
export const getCountJobMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/count-job-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/count-job-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询盘点任务主详情
|
|
export const getCountJobMain = async (id: number) => {
|
|
return await request.get({ url: `/wms/count-job-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增盘点任务主
|
|
export const createCountJobMain = async (data: CountJobMainVO) => {
|
|
return await request.post({ url: `/wms/count-job-main/create`, data })
|
|
}
|
|
|
|
// 修改盘点任务主
|
|
export const updateCountJobMain = async (data: CountJobMainVO) => {
|
|
return await request.put({ url: `/wms/count-job-main/update`, data })
|
|
}
|
|
|
|
// 删除盘点任务主
|
|
export const deleteCountJobMain = async (id: number) => {
|
|
return await request.delete({ url: `/wms/count-job-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出盘点任务主 Excel
|
|
export const exportCountJobMain = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return request.post({ url: '/wms/count-job-main/export-excel-senior', data })
|
|
} else {
|
|
return await request.download({ url: `/wms/count-job-main/export-excel`, params })
|
|
}
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/count-job-main/get-import-template' })
|
|
}
|
|
|
|
// 关闭盘点任务主
|
|
export const closeCountJobMain = (id: number) => {
|
|
return request.download({ url: '/wms/count-job-main/close?id=' + id })
|
|
}
|
|
|