import request from '@/router/axios'
|
|
export function fetchListReceiving(query) {
|
return request({
|
url: '/mes/receiving/page',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function addReceiving(obj) {
|
return request({
|
url: '/mes/receiving',
|
method: 'post',
|
data: obj
|
})
|
}
|
|
export function getReceiving(id) {
|
return request({
|
url: '/mes/receiving/' + id,
|
method: 'get'
|
})
|
}
|
|
export function delReceiving(id) {
|
return request({
|
url: '/mes/receiving/' + id,
|
method: 'delete'
|
})
|
}
|
|
export function putReceiving(obj) {
|
return request({
|
url: '/mes/receiving',
|
method: 'put',
|
data: obj
|
})
|
}
|
|
export function fetchListReceivingDetail(query) {
|
return request({
|
url: '/mes/receiving/receivingDetail/page',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function addReceivingDetail(obj) {
|
return request({
|
url: '/mes/receiving/receivingDetail',
|
method: 'post',
|
data: obj
|
})
|
}
|
|
export function getReceivingDetail(id) {
|
return request({
|
url: '/mes/receiving/receivingDetail/' + id,
|
method: 'get'
|
})
|
}
|
|
export function delReceivingDetail(id) {
|
return request({
|
url: '/mes/receiving/receivingDetail/' + id,
|
method: 'delete'
|
})
|
}
|
|
export function putReceivingDetail(obj) {
|
return request({
|
url: '/mes/receiving/receivingDetail',
|
method: 'put',
|
data: obj
|
})
|
}
|
|
export function fetchListDeliveryDetail(query) {
|
return request({
|
url: '/mes/receiving/deliveryDetail/page',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function addDeliveryDetail(obj) {
|
return request({
|
url: '/mes/receiving/deliveryDetail',
|
method: 'post',
|
data: obj
|
})
|
}
|
|
export function getDeliveryDetail(id) {
|
return request({
|
url: '/mes/receiving/deliveryDetail/' + id,
|
method: 'get'
|
})
|
}
|
|
export function delDeliveryDetail(id) {
|
return request({
|
url: '/mes/receiving/deliveryDetail/' + id,
|
method: 'delete'
|
})
|
}
|
|
export function putDeliveryDetail(obj) {
|
return request({
|
url: '/mes/receiving/deliveryDetail',
|
method: 'put',
|
data: obj
|
})
|
}
|
|
export function auditDeliveryDetail(mainId) {
|
return request({
|
url: '/mes/receiving/auditDeliveryDetail/' + mainId,
|
method: 'get'
|
})
|
}
|
|
export function putInStorage(mainId) {
|
return request({
|
url: '/mes/receiving/putInStorage/' + mainId,
|
method: 'get'
|
})
|
}
|