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.
103 lines
3.1 KiB
103 lines
3.1 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface PutawayRequestMainVO {
|
||
|
supplierCode: string
|
||
|
fromWarehouseCode: 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 getPutawayRequestMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/putaway-request-main/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/putaway-request-main/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询上架申请主详情
|
||
|
export const getPutawayRequestMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/putaway-request-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增上架申请主
|
||
|
export const createPutawayRequestMain = async (data: PutawayRequestMainVO) => {
|
||
|
return await request.post({ url: `/wms/putaway-request-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改上架申请主
|
||
|
export const updatePutawayRequestMain = async (data: PutawayRequestMainVO) => {
|
||
|
return await request.put({ url: `/wms/putaway-request-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除上架申请主
|
||
|
export const deletePutawayRequestMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/putaway-request-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出上架申请主 Excel
|
||
|
export const exportPutawayRequestMain = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
const data = {...params}
|
||
|
return await request.downloadPost({ url: `/wms/putaway-request-main/export-excel-senior`, data })
|
||
|
} else {
|
||
|
return await request.download({url: `/wms/putaway-request-main/export-excel`, params})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/putaway-request-main/get-import-template' })
|
||
|
}
|
||
|
|
||
|
// 关闭上架申请主 Excel
|
||
|
export const closePutawayRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/putaway-request-main/close?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 重新添加上架申请主 Excel
|
||
|
export const reAddPutawayRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/putaway-request-main/reAdd?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 提交上架申请主 Excel
|
||
|
export const submitPutawayRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/putaway-request-main/submit?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 审批通过上架申请主 Excel
|
||
|
export const agreePutawayRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/putaway-request-main/agree?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 审批驳回上架申请主 Excel
|
||
|
export const refusedPutawayRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/putaway-request-main/refused?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 处理上架申请主 Excel
|
||
|
export const handlePutawayRequestMain = async (id) => {
|
||
|
return await request.put({ url: `/wms/putaway-request-main/handle?id=` + id })
|
||
|
}
|