init project
This commit is contained in:
27
qd/src/api/acs/device/acsDeviceErpmapping.js
Normal file
27
qd/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 }
|
||||
217
qd/src/api/acs/device/device.js
Normal file
217
qd/src/api/acs/device/device.js
Normal file
@@ -0,0 +1,217 @@
|
||||
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 changeFenceStatus(data) {
|
||||
return request({
|
||||
url: 'api/device/changeFenceStatus',
|
||||
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 cleans1(data) {
|
||||
return request({
|
||||
url: 'api/device/cleans1',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function cleans2(data) {
|
||||
return request({
|
||||
url: 'api/device/cleans2',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function enterSite1(data) {
|
||||
return request({
|
||||
url: 'api/device/enterSite1',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function enterSite2(data) {
|
||||
return request({
|
||||
url: 'api/device/enterSite2',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function cleans3(data) {
|
||||
return request({
|
||||
url: 'api/device/cleans3',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectAGVList() {
|
||||
return request({
|
||||
url: 'api/device/selectAGVList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function agvTaskType(data) {
|
||||
return request({
|
||||
url: 'api/device/agvTaskType',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask,
|
||||
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree,
|
||||
addMaterial, cleanMaterial, changeFenceStatus,reload, cleans1, cleans2, enterSite1, enterSite2, cleans3, selectAGVList, agvTaskType}
|
||||
4
qd/src/api/acs/device/device.js.rej
Normal file
4
qd/src/api/acs/device/device.js.rej
Normal file
@@ -0,0 +1,4 @@
|
||||
diff a/src/api/acs/device/device.js b/src/api/acs/device/device.js (rejected hunks)
|
||||
@@ -131 +130 @@ export default { add, edit, del, selectDeviceList, selectDeviceListByRegion, cal
|
||||
- changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne,selectDeviceListTwo,selectDeviceListThree }
|
||||
+ changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree }
|
||||
27
qd/src/api/acs/device/deviceAccuracyLog.js
Normal file
27
qd/src/api/acs/device/deviceAccuracyLog.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/deviceAccuracyLog',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/deviceAccuracyLog/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/deviceAccuracyLog',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
||||
35
qd/src/api/acs/device/deviceDbitem.js
Normal file
35
qd/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 }
|
||||
66
qd/src/api/acs/device/driverConfig.js
Normal file
66
qd/src/api/acs/device/driverConfig.js
Normal file
@@ -0,0 +1,66 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
|
||||
66
qd/src/api/acs/device/opc.js
Normal file
66
qd/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
qd/src/api/acs/device/opcPlc.js
Normal file
41
qd/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
qd/src/api/acs/device/storageCell.js
Normal file
27
qd/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