init 二期ACS
This commit is contained in:
169
acs2/nladmin-ui/src/api/acs/device/device.js
Normal file
169
acs2/nladmin-ui/src/api/acs/device/device.js
Normal file
@@ -0,0 +1,169 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/device',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/device/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/device',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectDeviceList() {
|
||||
return request({
|
||||
url: 'api/device/selectList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function selectConDeviceList() {
|
||||
return request({
|
||||
url: 'api/device/selectConveyorList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function selectDeviceListByRegion(region) {
|
||||
return request({
|
||||
url: 'api/device/region/' + region,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function selectDeviceListOne() {
|
||||
return request({
|
||||
url: 'api/device/selectListOne',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export function selectDeviceListTwo() {
|
||||
return request({
|
||||
url: 'api/device/selectListTwo',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export function selectDeviceListThree() {
|
||||
return request({
|
||||
url: 'api/device/selectListThree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function selectDeviceDevicerInfo(status) {
|
||||
return request({
|
||||
url: 'api/device/selectDeviceDevicerInfo/' + status,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function changeDeviceStatus(data) {
|
||||
return request({
|
||||
url: 'api/device/changeDeviceStatus',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function saveBarcode(data) {
|
||||
return request({
|
||||
url: 'api/device/updateBarcode',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function callAgv(data) {
|
||||
return request({
|
||||
url: 'api/device/callAgv',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function addMaterial(data) {
|
||||
return request({
|
||||
url: 'api/device/addMaterial',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function responseAgv(data) {
|
||||
return request({
|
||||
url: 'api/device/responseAgv',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function autoCreateTask(data) {
|
||||
return request({
|
||||
url: 'api/device/autoCreateTask',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function cleanTask(data) {
|
||||
return request({
|
||||
url: 'api/device/cleanTask',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function cleanMaterial(data) {
|
||||
return request({
|
||||
url: 'api/device/cleanMaterial',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function queryStorageExtra(storage_code) {
|
||||
return request({
|
||||
url: 'api/device/queryStorageExtra/' + storage_code,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function reload() {
|
||||
return request({
|
||||
url: 'api/device/reload',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function excelImport(data) {
|
||||
return request({
|
||||
url: 'api/device/excelImport',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectListByType() {
|
||||
return request({
|
||||
url: 'api/device//type/stacker',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask,
|
||||
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree,
|
||||
addMaterial, cleanMaterial, reload, excelImport, selectListByType }
|
||||
Reference in New Issue
Block a user