2023-10-28 17:12:18 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 订单
|
|
|
|
*/
|
|
|
|
|
|
|
|
export function getInventoryPageApi(query) {
|
|
|
|
return request({
|
|
|
|
url: '/business/convenience/mtInventory/getListByPage',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 新增
|
|
|
|
export function addInventoryApi(data) {
|
|
|
|
return request({
|
|
|
|
url: '/business/convenience/mtInventory',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改
|
|
|
|
export function editInventoryApi(data) {
|
|
|
|
return request({
|
|
|
|
url: '/business/convenience/mtInventory',
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 订单详情
|
|
|
|
*/
|
|
|
|
|
|
|
|
export function getInventoryDetailsPageApi(query) {
|
|
|
|
return request({
|
|
|
|
url: '/business/convenience/mtInventoryDetails/getListByPage',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function delDetailsApi(query) {
|
|
|
|
return request({
|
|
|
|
url: '/business/convenience/mtInventoryDetails',
|
|
|
|
method: 'delete',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function batchProcessingApi(data) {
|
|
|
|
return request({
|
|
|
|
url: '/business/convenience/mtInventoryDetails/batchProcessing',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 审核
|
|
|
|
export function auditInventoryApi(data) {
|
|
|
|
return request({
|
|
|
|
url: 'business/convenience/mtInventory/audit',
|
|
|
|
method: 'get',
|
|
|
|
params: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 入库
|
|
|
|
export function storageInventoryApi(data) {
|
|
|
|
return request({
|
|
|
|
url: 'business/convenience/mtInventory/storage',
|
|
|
|
method: 'get',
|
|
|
|
params: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 作废
|
|
|
|
export function abolitionInventoryApi(data) {
|
|
|
|
return request({
|
|
|
|
url: 'business/convenience/mtInventory/abolition',
|
|
|
|
method: 'get',
|
|
|
|
params: data
|
|
|
|
})
|
|
|
|
}
|
2023-10-31 17:55:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 导出信息
|
|
|
|
export function exportExcelApi(data) {
|
|
|
|
return request({
|
|
|
|
url: '/business/convenience/mtInventoryDetails/exportExcel',
|
|
|
|
method: 'post',
|
|
|
|
responseType:'blob',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|