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.
 
 
 

167 lines
5.2 KiB

import request from '@/config/axios'
export interface PurchasereceiptJobMainVO {
requestNumber: string
asnNumber: string
ppNumber: string
supplierCode: string
toDockCode: string
carrierCode: string
transferMode: string
vehiclePlateNumber: string
fromWarehouseCode: string
toWarehouseCode: string
requestTime: Date
requestDueTime: Date
status: string
expiredTime: Date
updateTime: Date
updater: string
jobStageStatus: string
priority: number
priorityIncrement: number
departmentCode: string
userPositionCode: string
acceptUserId: string
acceptTime: Date
completeUserId: string
completeTime: Date
fromAreaTypes: string
toAreaTypes: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
allowModifyBatch: string
fromAreaCodes: string
toAreaCodes: string
autoComplete: string
allowModifyLocation: string
allowModifyQty: string
allowBiggerQty: string
allowSmallerQty: string
allowModifyInventoryStatus: string
allowContinuousScanning: string
allowPartialComplete: string
allowModifyPackingNumber: string
}
// 查询采购收货任务主列表
export const getPurchasereceiptJobMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereceipt-job-main/senior', data })
} else {
return await request.get({ url: `/wms/purchasereceipt-job-main/page`, params })
}
}
// 查询备件收货任务主列表
export const getPurchasereceiptJobMainPageSpare = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereceipt-job-main/seniorSpare', data })
} else {
return await request.get({ url: `/wms/purchasereceipt-job-main/pageSpare`, params })
}
}
// 查询采购收货任务主详情
export const getPurchasereceiptJobMain = async (id: number) => {
return await request.get({ url: `/wms/purchasereceipt-job-main/get?id=` + id })
}
// 新增采购收货任务主
export const createPurchasereceiptJobMain = async (data: PurchasereceiptJobMainVO) => {
return await request.post({ url: `/wms/purchasereceipt-job-main/create`, data })
}
// 修改采购收货任务主
export const updatePurchasereceiptJobMain = async (data: PurchasereceiptJobMainVO) => {
return await request.put({ url: `/wms/purchasereceipt-job-main/update`, data })
}
// 删除采购收货任务主
export const deletePurchasereceiptJobMain = async (id: number) => {
return await request.delete({ url: `/wms/purchasereceipt-job-main/delete?id=` + id })
}
// 导出采购收货任务主 Excel
export const exportPurchasereceiptJobMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereceipt-job-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/purchasereceipt-job-main/export-excel`, params })
}
}
// 导出协定品收货任务主 Excel
export const exportToolPurchasereceiptJobMain = async (params) => {
if (params.isSearch) {
params.source_type = "TOOL"
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereceipt-job-main/export-excel-senior`, data })
} else {
params.sourceType = "TOOL"
return await request.download({ url: `/wms/purchasereceipt-job-main/export-excel`, params })
}
}
// 导出号试品收货任务主 Excel
export const exportDevelopPurchasereceiptJobMain = async (params) => {
if (params.isSearch) {
params.source_type = "Develop"
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereceipt-job-main/export-excel-senior`, data })
} else {
params.sourceType = "Develop"
return await request.download({ url: `/wms/purchasereceipt-job-main/export-excel`, params })
}
}
// 导出备件收货任务
export const exportSparereceiptJobMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereceipt-job-main/export-excel-spare-senior`, data })
} else {
return await request.download({ url: `/wms/purchasereceipt-job-main/export-excel-spare`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchasereceipt-job-main/get-import-template' })
}
// 关闭采购收货任务主
export const closePurchasereceiptJobMain = (id: number) => {
return request.put({ url: '/wms/purchasereceipt-job-main/close?id=' + id })
}
// 执行备件收货任务主
export const executePurchasereceiptJobMainSpare = (id: number) => {
return request.put({ url: '/wms/purchasereceipt-job-main/executeSpare?id=' + id })
}
// 放弃备件收货任务主
export const abandonPurchasereceiptJobMainSpare = (id: number) => {
return request.put({ url: '/wms/purchasereceipt-job-main/abandon?id=' + id })
}
// 承接采购收货任务主
export const acceptPurchasereceiptJobMain = (id: number) => {
return request.put({ url: '/wms/purchasereceipt-job-main/accept?id=' + id })
}
// 拒收采购收货任务主
export const refusalPurchasereceiptJobMain = (data) => {
return request.post({ url: '/wms/purchasereceipt-job-main/refusal',data})
}