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.

112 lines
3.3 KiB

import request from '@/config/axios'
export interface CountRequestMainVO {
requestNumber: string
planNumber: string
stage: string
warehouseCode: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
requestTime: Date
dueTime: Date
departmentCode: string
status: string
updateTime: Date
updater: string
autoCommit: string
autoAgree: string
autoExecute: string
directCreateRecord: string
}
// 查询盘点申请主列表
export const getCountRequestMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-request-main/senior', data })
} else {
return await request.get({ url: `/wms/count-request-main/page`, params })
}
}
// 查询盘点申请主详情
export const getCountRequestMain = async (id: number) => {
return await request.get({ url: `/wms/count-request-main/get?id=` + id })
}
// 新增盘点申请主
export const createCountRequestMain = async (data: CountRequestMainVO) => {
return await request.post({ url: `/wms/count-request-main/create`, data })
}
// 修改盘点申请主
export const updateCountRequestMain = async (data: CountRequestMainVO) => {
return await request.put({ url: `/wms/count-request-main/update`, data })
}
// 删除盘点申请主
export const deleteCountRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/count-request-main/delete?id=` + id })
}
// 导出盘点申请主 Excel
export const exportCountRequestMain = async (params) => {
return await request.download({ url: `/wms/count-request-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/count-request-main/get-import-template' })
}
// 关闭盘点申请主 Excel
export const close = async (id) => {
return await request.put({ url: `/wms/count-request-main/close?id=` + id })
}
// 重新添加盘点申请主 Excel
export const reAdd = async (id) => {
return await request.put({ url: `/wms/count-request-main/reAdd?id=` + id })
}
// 提交盘点申请主 Excel
export const submit = async (id) => {
return await request.put({ url: `/wms/count-request-main/submit?id=` + id })
}
// 审批通过盘点申请主 Excel
export const agree = async (id) => {
return await request.put({ url: `/wms/count-request-main/agree?id=` + id })
}
// 审批驳回盘点申请主 Excel
export const refused = async (id) => {
return await request.put({ url: `/wms/count-request-main/refused?id=` + id })
}
// 处理盘点申请主 Excel
export const handle = async (id) => {
return await request.put({ url: `/wms/count-request-main/handle?id=` + id })
}
//重盘
export const reCount = async (data) => {
return await request.put({ url: `/wms/count-request-main/reCount`,data})
}
//监盘
export const superviseCount = async (data) => {
return await request.put({ url: `/wms/count-request-main/supervise`,data})
}
//生成盘点调整申请
export const generateCountadjustRequest = async (id) => {
return await request.put({ url: `/wms/count-request-main/generateCountadjustRequest?id=` + id })
}
//解冻
export const thaw = async (id) => {
return await request.put({ url: `/wms/count-request-main/thaw?id=` + id })
}