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.
 
 
 

102 lines
2.8 KiB

import request from '@/config/axios'
export interface RepleinshRequestMainVO {
fomWarehouseCode: string
fromAreaTypes: string
fromAreaCodes: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
requestTime: Date
dueTime: Date
departmentCode: string
status: string
updateTime: Date
updater: string
toWarehouseCode: string
toAreaTypes: string
toAreaCodes: string
autoCommit: string
autoAgree: string
autoExecute: string
directCreateRecord: string
}
// 查询补料申请主列表
export const getRepleinshRequestMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/repleinsh-request-main/senior', data })
} else {
return await request.get({ url: `/wms/repleinsh-request-main/page`, params })
}
}
// 查询补料申请主详情
export const getRepleinshRequestMain = async (id: number) => {
return await request.get({ url: `/wms/repleinsh-request-main/get?id=` + id })
}
// 新增补料申请主
export const createRepleinshRequestMain = async (data: RepleinshRequestMainVO) => {
return await request.post({ url: `/wms/repleinsh-request-main/create`, data })
}
// 修改补料申请主
export const updateRepleinshRequestMain = async (data: RepleinshRequestMainVO) => {
return await request.put({ url: `/wms/repleinsh-request-main/update`, data })
}
// 删除补料申请主
export const deleteRepleinshRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/repleinsh-request-main/delete?id=` + id })
}
// 导出补料申请主 Excel
export const exportRepleinshRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/repleinsh-request-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/repleinsh-request-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/repleinsh-request-main/get-import-template' })
}
// 关闭
export const close = (id) => {
return request.put({ url: '/wms/repleinsh-request-main/close?id=' + id })
}
// 重新添加
export const reAdd = (id) => {
return request.put({ url: '/wms/repleinsh-request-main/reAdd?id=' + id })
}
// 提交审批
export const submit = (id) => {
return request.put({ url: '/wms/repleinsh-request-main/submit?id=' + id })
}
// 驳回
export const refused = (id) => {
return request.put({ url: '/wms/repleinsh-request-main/refused?id=' + id })
}
// 审批通过
export const agree = (id) => {
return request.put({ url: '/wms/repleinsh-request-main/agree?id=' + id })
}
// 处理
export const handle = (id) => {
return request.put({ url: '/wms/repleinsh-request-main/handle?id=' + id })
}