更新最新ACS
This commit is contained in:
27
wcs/nladmin-ui/src/api/acs/device/acsDeviceErpmapping.js
Normal file
27
wcs/nladmin-ui/src/api/acs/device/acsDeviceErpmapping.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/acsDeviceErpmapping',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/acsDeviceErpmapping/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/acsDeviceErpmapping',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
||||
162
wcs/nladmin-ui/src/api/acs/device/device.js
Normal file
162
wcs/nladmin-ui/src/api/acs/device/device.js
Normal file
@@ -0,0 +1,162 @@
|
||||
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 default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask,
|
||||
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree,
|
||||
addMaterial, cleanMaterial, reload, excelImport }
|
||||
35
wcs/nladmin-ui/src/api/acs/device/deviceDbitem.js
Normal file
35
wcs/nladmin-ui/src/api/acs/device/deviceDbitem.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/deviceDbitem',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
const data = {
|
||||
id: 1,
|
||||
name2: '张三',
|
||||
info: {
|
||||
id: 999,
|
||||
str: 'str111'
|
||||
}
|
||||
}
|
||||
return request({
|
||||
url: 'api/deviceDbitem/getUserJson',
|
||||
method: 'get',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/deviceDbitem',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
||||
9
wcs/nladmin-ui/src/api/acs/device/deviceStageMonitor.js
Normal file
9
wcs/nladmin-ui/src/api/acs/device/deviceStageMonitor.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getDeviceByCodes(data) { // 获取舞台上设备信息
|
||||
return request({
|
||||
url: 'api/deviceInfo/getDeviceByCodes',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
89
wcs/nladmin-ui/src/api/acs/device/driverConfig.js
Normal file
89
wcs/nladmin-ui/src/api/acs/device/driverConfig.js
Normal file
@@ -0,0 +1,89 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function get(device_code) {
|
||||
return request({
|
||||
url: 'api/device/' + device_code,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function queryDriverConfig(device_id, driver_code) {
|
||||
const data = {
|
||||
device_id: device_id,
|
||||
driver_code: driver_code
|
||||
}
|
||||
return request({
|
||||
url: 'api/device/driverConfig',
|
||||
data,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function selectDriverCodeList(device_code) {
|
||||
return request({
|
||||
url: 'api/device/selectDriverCodeList/' + device_code,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function updateConfig(parentForm, form, data1, data2) {
|
||||
const data = {
|
||||
parentForm,
|
||||
form,
|
||||
data1,
|
||||
data2
|
||||
}
|
||||
return request({
|
||||
url: 'api/device/updateConfig',
|
||||
data,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function testRead(dbItems, opc_id) {
|
||||
const data = {
|
||||
dbItems: dbItems,
|
||||
opc_id: opc_id
|
||||
}
|
||||
return request({
|
||||
url: 'api/device/testRead',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function testwrite(dbItems, opc_id) {
|
||||
const data = {
|
||||
dbItems: dbItems,
|
||||
opc_id: opc_id
|
||||
}
|
||||
return request({
|
||||
url: 'api/device/testWrite',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function queryDBInfoByDriverCode(driverCode) {
|
||||
return request({
|
||||
url: 'api/device/queryDBInfoByDriverCode/' + driverCode,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function downloadProtocolConfig(data) {
|
||||
return request({
|
||||
url: 'api/device/downloadProtocolConfig',
|
||||
method: 'post',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
export function getAllDriverCodeList() {
|
||||
return request({
|
||||
url: 'api/device/getAllDriverCodeList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
66
wcs/nladmin-ui/src/api/acs/device/opc.js
Normal file
66
wcs/nladmin-ui/src/api/acs/device/opc.js
Normal file
@@ -0,0 +1,66 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/opc',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/opc/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function selectOpcList() {
|
||||
return request({
|
||||
url: 'api/opc/selectList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/opc',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getmeteal(data) {
|
||||
return request({
|
||||
url: 'api/opc/getmeteal',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function addPLC(data) {
|
||||
return request({
|
||||
url: 'api/opc/addPLC',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function editPLC(data) {
|
||||
return request({
|
||||
url: 'api/opc/editPLC',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function delPLC(data) {
|
||||
return request({
|
||||
url: 'api/opc/delPLC',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, selectOpcList, getmeteal, addPLC, delPLC, editPLC }
|
||||
41
wcs/nladmin-ui/src/api/acs/device/opcPlc.js
Normal file
41
wcs/nladmin-ui/src/api/acs/device/opcPlc.js
Normal file
@@ -0,0 +1,41 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/opcPlc',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/opcPlc/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/opcPlc',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectPlcList() {
|
||||
return request({
|
||||
url: 'api/opcPlc/selectList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function selectListByOpcID(opc_uuid) {
|
||||
return request({
|
||||
url: 'api/opcPlc/selectList/' + opc_uuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, selectPlcList, selectListByOpcID }
|
||||
27
wcs/nladmin-ui/src/api/acs/device/storageCell.js
Normal file
27
wcs/nladmin-ui/src/api/acs/device/storageCell.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/storageCell',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/storageCell/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/storageCell',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
||||
Reference in New Issue
Block a user