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.
104 lines
3.0 KiB
104 lines
3.0 KiB
import request from '@/config/axios'
|
|
|
|
export interface ProductputawayRequestMainVO {
|
|
id: number
|
|
supplierCode: string
|
|
fromWarehouseCode: string
|
|
toWarehouseCode: string
|
|
fromAreaTypes: string
|
|
toAreaTypes: string
|
|
fromAreaCodes: string
|
|
toAreaCodes: 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 getProductputawayRequestMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/productputaway-request-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/productputaway-request-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询制品上架申请主详情
|
|
export const getProductputawayRequestMain = async (id: number) => {
|
|
return await request.get({ url: `/wms/productputaway-request-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增制品上架申请主
|
|
export const createProductputawayRequestMain = async (data: ProductputawayRequestMainVO) => {
|
|
return await request.post({ url: `/wms/productputaway-request-main/create`, data })
|
|
}
|
|
|
|
// 修改制品上架申请主
|
|
export const updateProductputawayRequestMain = async (data: ProductputawayRequestMainVO) => {
|
|
return await request.put({ url: `/wms/productputaway-request-main/update`, data })
|
|
}
|
|
|
|
// 删除制品上架申请主
|
|
export const deleteProductputawayRequestMain = async (id: number) => {
|
|
return await request.delete({ url: `/wms/productputaway-request-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出制品上架申请主 Excel
|
|
export const exportProductputawayRequestMain = async (params) => {
|
|
if (params.isSearch) {
|
|
const data = {...params}
|
|
return await request.downloadPost({ url: `/wms/productputaway-request-main/export-excel-senior`, data })
|
|
} else {
|
|
return await request.download({ url: `/wms/productputaway-request-main/export-excel`, params })
|
|
}
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/productputaway-request-main/get-import-template' })
|
|
}
|
|
|
|
|
|
// 关闭
|
|
export const close = (id) => {
|
|
return request.put({ url: '/wms/productputaway-request-main/close?id=' + id })
|
|
}
|
|
|
|
// 重新添加
|
|
export const reAdd = (id) => {
|
|
return request.put({ url: '/wms/productputaway-request-main/reAdd?id=' + id })
|
|
}
|
|
|
|
// 提交审批
|
|
export const submit = (id) => {
|
|
return request.put({ url: '/wms/productputaway-request-main/submit?id=' + id })
|
|
}
|
|
|
|
// 驳回
|
|
export const refused = (id) => {
|
|
return request.put({ url: '/wms/productputaway-request-main/refused?id=' + id })
|
|
}
|
|
|
|
// 审批通过
|
|
export const agree = (id) => {
|
|
return request.put({ url: '/wms/productputaway-request-main/agree?id=' + id })
|
|
}
|
|
|
|
// 处理
|
|
export const handle = (id) => {
|
|
return request.put({ url: '/wms/productputaway-request-main/handle?id=' + id })
|
|
}
|