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.
95 lines
3.2 KiB
95 lines
3.2 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface InventoryinitRequestMainVO {
|
||
|
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 getInventoryinitRequestMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/inventoryinit-request-main/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/inventoryinit-request-main/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询库存初始化申请主详情
|
||
|
export const getInventoryinitRequestMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/inventoryinit-request-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增库存初始化申请主
|
||
|
export const createInventoryinitRequestMain = async (data: InventoryinitRequestMainVO) => {
|
||
|
return await request.post({ url: `/wms/inventoryinit-request-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改库存初始化申请主
|
||
|
export const updateInventoryinitRequestMain = async (data: InventoryinitRequestMainVO) => {
|
||
|
return await request.put({ url: `/wms/inventoryinit-request-main/update`, data })
|
||
|
}
|
||
|
// 关闭库存初始化申请主 Excel
|
||
|
export const closeInventoryinitRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/inventoryinit-request-main/close?id=` + id })
|
||
|
}
|
||
|
// 重新添加库存初始化申请主 Excel
|
||
|
export const reAddInventoryinitRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/inventoryinit-request-main/reAdd?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 审批驳回库存初始化申请主 Excel
|
||
|
export const refusedInventoryinitRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/inventoryinit-request-main/refused?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 审批通过库存初始化申请主 Excel
|
||
|
export const agreeInventoryinitRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/inventoryinit-request-main/agree?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 提交库存初始化申请主 Excel
|
||
|
export const submitInventoryinitRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/inventoryinit-request-main/submit?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 删除库存初始化申请主
|
||
|
export const deleteInventoryinitRequestMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/inventoryinit-request-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出库存初始化申请主 Excel
|
||
|
export const exportInventoryinitRequestMain = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
const data = {...params}
|
||
|
return await request.downloadPost({ url: `/wms/inventoryinit-request-main/export-excel-senior`, data })
|
||
|
} else {
|
||
|
return await request.download({ url: `/wms/inventoryinit-request-main/export-excel`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/inventoryinit-request-main/get-import-template' })
|
||
|
}
|
||
|
|
||
|
// 处理采购收货申请主 Excel
|
||
|
export const handleInventoryinitRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/inventoryinit-request-main/handle?id=` + id })
|
||
|
}
|