|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface ProcessproductionRequestMainVO {
|
|
|
|
id: number
|
|
|
|
number: string
|
|
|
|
itemCode: string
|
|
|
|
completedQuantity: number
|
|
|
|
scrapQuantity: number
|
|
|
|
available: string
|
|
|
|
remark: string
|
|
|
|
deletionTime: Date
|
|
|
|
deleterId: string
|
|
|
|
extraProperties: string
|
|
|
|
concurrencyStamp: number
|
|
|
|
siteId: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询工序报产申请主列表
|
|
|
|
export const getProcessproductionRequestMainPage = async (params) => {
|
|
|
|
if (params.isSearch) {
|
|
|
|
delete params.isSearch
|
|
|
|
const data = {...params}
|
|
|
|
return await request.post({ url: '/wms/processproduction-request-main/senior', data })
|
|
|
|
} else {
|
|
|
|
return await request.get({ url: `/wms/processproduction-request-main/page`, params })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询工序报产申请主详情
|
|
|
|
export const getProcessproductionRequestMain = async (id: number) => {
|
|
|
|
return await request.get({ url: `/wms/processproduction-request-main/get?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增工序报产申请主
|
|
|
|
export const createProcessproductionRequestMain = async (data: ProcessproductionRequestMainVO) => {
|
|
|
|
return await request.post({ url: `/wms/processproduction-request-main/create`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改工序报产申请主
|
|
|
|
export const updateProcessproductionRequestMain = async (data: ProcessproductionRequestMainVO) => {
|
|
|
|
return await request.put({ url: `/wms/processproduction-request-main/update`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除工序报产申请主
|
|
|
|
export const deleteProcessproductionRequestMain = async (id: number) => {
|
|
|
|
return await request.delete({ url: `/wms/processproduction-request-main/delete?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出工序报产申请主 Excel
|
|
|
|
export const exportProcessproductionRequestMain = async (params) => {
|
|
|
|
return await request.download({ url: `/wms/processproduction-request-main/export-excel`, params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => {
|
|
|
|
return request.download({ url: '/wms/processproduction-request-main/get-import-template' })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 关闭
|
|
|
|
export const closeProcessproductionRequestMain = async (id) => {
|
|
|
|
return await request.put({ url: `/wms/processproduction-request-main/close?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 重新添加
|
|
|
|
export const reAddProcessproductionRequestMain = async (id) => {
|
|
|
|
return await request.put({ url: `/wms/processproduction-request-main/reAdd?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 提交审批
|
|
|
|
export const submitProcessproductionRequestMain = async (id) => {
|
|
|
|
return await request.put({ url: `/wms/processproduction-request-main/submit?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 审批驳回
|
|
|
|
export const refusedProcessproductionRequestMain = async (id) => {
|
|
|
|
return await request.put({ url: `/wms/processproduction-request-main/refused?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 审批通过
|
|
|
|
export const agreeProcessproductionRequestMain = async (id) => {
|
|
|
|
return await request.put({ url: `/wms/processproduction-request-main/agree?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 处理
|
|
|
|
export const handleProcessproductionRequestMain = async (id) => {
|
|
|
|
return await request.put({ url: `/wms/processproduction-request-main/handle?id=` + id })
|
|
|
|
}
|