80 lines
1.4 KiB
JavaScript
80 lines
1.4 KiB
JavaScript
|
|
import { request } from './request'
|
||
|
|
// 获取场景列表
|
||
|
|
const listScene = (params) => {
|
||
|
|
return request('/information/scene/list', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 获取场景的总条数
|
||
|
|
const getScene = (params) => {
|
||
|
|
return request('/Visual/getScene', params, 'POST')
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
// 获取图表
|
||
|
|
// const getChart = (params) => {
|
||
|
|
// return request('/AutoInventory/chart', params, 'POST')
|
||
|
|
// }
|
||
|
|
|
||
|
|
// 盘点任务总数
|
||
|
|
const taskCount = (params) => {
|
||
|
|
return request('/Inventory/task/count', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 盘点任务列表
|
||
|
|
const taskList = (params) => {
|
||
|
|
return request('/Inventory/task/list', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 每次盘点任务的总条目
|
||
|
|
const getTaskCount = (params) => {
|
||
|
|
return request('/statistics/count', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 开始盘点
|
||
|
|
const getScan = (params) => {
|
||
|
|
return request('/AutoInventory/scan', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 开始匹配
|
||
|
|
const getMatch = (params) => {
|
||
|
|
return request('/AutoInventory/match', params, 'POST')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 停止盘点
|
||
|
|
const stopScan = (params) => {
|
||
|
|
return request('/AutoInventory/stop', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 盘点结果
|
||
|
|
const getScanResult = (params) => {
|
||
|
|
return request('/MatchScan/countList', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 手动盘点-开始匹配
|
||
|
|
const getHandMatch = (params) => {
|
||
|
|
return request('/HdInventory/match', params, 'POST')
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export {
|
||
|
|
listScene,
|
||
|
|
getScene,
|
||
|
|
|
||
|
|
|
||
|
|
taskCount,
|
||
|
|
taskList,
|
||
|
|
getScan,
|
||
|
|
getTaskCount,
|
||
|
|
getMatch,
|
||
|
|
stopScan,
|
||
|
|
getScanResult,
|
||
|
|
getHandMatch,
|
||
|
|
}
|
||
|
|
|