提交
This commit is contained in:
64
src/api/Inventory/autoInventory.js
Normal file
64
src/api/Inventory/autoInventory.js
Normal file
@@ -0,0 +1,64 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 开始盘点
|
||||
export function getTaskCount(query) {
|
||||
return request({
|
||||
url: '/statistics/count',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 开始盘点
|
||||
export function getScan(query) {
|
||||
return request({
|
||||
url: '/AutoInventory/scan',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 开始匹配
|
||||
export function getMatch(data) {
|
||||
return request({
|
||||
url: '/AutoInventory/match',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 停止盘点
|
||||
export function stopScan(query) {
|
||||
return request({
|
||||
url: '/AutoInventory/stop',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取盘点结果
|
||||
export function getScanResult(query) {
|
||||
return request({
|
||||
url: '/MatchScan/countList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取图表
|
||||
export function getChart(data) {
|
||||
return request({
|
||||
url: '/AutoInventory/chart',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 根据盘点结果,用存放位置查看具体内容
|
||||
export function getStockList(id) {
|
||||
return request({
|
||||
url: '/wisdom/stock/pcode/' + id,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user