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.
 
 
 

97 lines
2.9 KiB

import request from '@/config/axios'
export interface ProductreceiptJobDetailVO {
productionLineCode: string
workStationCode: string
processCode: string
packingNumber: string
containerNumber: string
batch: string
produceDate: Date
expireDate: Date
inventoryStatus: string
toLocationCode: string
woNumber: string
woLine: string
packQty: number
packUnit: string
itemCode: string
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
qty: number
uom: string
number: string
remark: string
createTime: Date
creator: string
toOwnerCode: string
}
// 查询制品收货任务子列表
export const getProductreceiptJobDetailPage = async (params) => {
params.type = 'predict'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productreceipt-job-detail/senior', data })
} else {
return await request.get({ url: `/wms/productreceipt-job-detail/page`, params })
}
}
// 查询制品收货任务子列表
export const getProductreceiptJobDetailPageAssemble = async (params) => {
params.type = 'assemble'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productreceipt-job-detail/senior', data })
} else {
return await request.get({ url: `/wms/productreceipt-job-detail/page`, params })
}
}
// 查询制品收货任务子列表
export const getProductreceiptJobDetailPageScarp = async (params) => {
params.type = 'scrap'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productreceipt-job-detail/senior', data })
} else {
return await request.get({ url: `/wms/productreceipt-job-detail/page`, params })
}
}
// 查询制品收货任务子详情
export const getProductreceiptJobDetail = async (id: number) => {
return await request.get({ url: `/wms/productreceipt-job-detail/get?id=` + id })
}
// 新增制品收货任务子
export const createProductreceiptJobDetail = async (data: ProductreceiptJobDetailVO) => {
return await request.post({ url: `/wms/productreceipt-job-detail/create`, data })
}
// 修改制品收货任务子
export const updateProductreceiptJobDetail = async (data: ProductreceiptJobDetailVO) => {
return await request.put({ url: `/wms/productreceipt-job-detail/update`, data })
}
// 删除制品收货任务子
export const deleteProductreceiptJobDetail = async (id: number) => {
return await request.delete({ url: `/wms/productreceipt-job-detail/delete?id=` + id })
}
// 导出制品收货任务子 Excel
export const exportProductreceiptJobDetail = async (params) => {
return await request.download({ url: `/wms/productreceipt-job-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productreceipt-job-detail/get-import-template' })
}