周俊杰
3 weeks ago
19 changed files with 739 additions and 364 deletions
@ -0,0 +1,36 @@ |
|||||
|
package org.nl.modules.system.service.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @description / |
||||
|
* @author ldjun |
||||
|
* @date 2021-01-14 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class ParamDto implements Serializable { |
||||
|
|
||||
|
private String id; |
||||
|
|
||||
|
private String code; |
||||
|
|
||||
|
private String name; |
||||
|
|
||||
|
private String value; |
||||
|
|
||||
|
private String remark; |
||||
|
|
||||
|
private Long create_id; |
||||
|
|
||||
|
private Long update_optid; |
||||
|
|
||||
|
private String create_name; |
||||
|
|
||||
|
private String create_time; |
||||
|
|
||||
|
private String update_optname; |
||||
|
|
||||
|
private String update_time; |
||||
|
} |
@ -1,217 +1,253 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
export function add(data) { |
export function add(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device', |
url: 'api/device', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function del(ids) { |
export function del(ids) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/', |
url: 'api/device/', |
||||
method: 'delete', |
method: 'delete', |
||||
data: ids |
data: ids |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function edit(data) { |
export function edit(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device', |
url: 'api/device', |
||||
method: 'put', |
method: 'put', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function selectDeviceList() { |
export function selectDeviceList() { |
||||
return request({ |
return request({ |
||||
url: 'api/device/selectList', |
url: 'api/device/selectList', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function selectConDeviceList() { |
export function selectConDeviceList() { |
||||
return request({ |
return request({ |
||||
url: 'api/device/selectConveyorList', |
url: 'api/device/selectConveyorList', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function selectDeviceListByRegion(region) { |
export function selectDeviceListByRegion(region) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/region/' + region, |
url: 'api/device/region/' + region, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function selectDeviceListOne() { |
export function selectDeviceListOne() { |
||||
return request({ |
return request({ |
||||
url: 'api/device/selectListOne', |
url: 'api/device/selectListOne', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
export function selectDeviceListTwo() { |
export function selectDeviceListTwo() { |
||||
return request({ |
return request({ |
||||
url: 'api/device/selectListTwo', |
url: 'api/device/selectListTwo', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
export function selectDeviceListThree() { |
export function selectDeviceListThree() { |
||||
return request({ |
return request({ |
||||
url: 'api/device/selectListThree', |
url: 'api/device/selectListThree', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function selectDeviceDevicerInfo(status) { |
export function selectDeviceDevicerInfo(status) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/selectDeviceDevicerInfo/' + status, |
url: 'api/device/selectDeviceDevicerInfo/' + status, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function changeDeviceStatus(data) { |
export function changeDeviceStatus(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/changeDeviceStatus', |
url: 'api/device/changeDeviceStatus', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function changeFenceStatus(data) { |
export function changeFenceStatus(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/changeFenceStatus', |
url: 'api/device/changeFenceStatus', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function saveBarcode(data) { |
export function saveBarcode(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/updateBarcode', |
url: 'api/device/updateBarcode', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function callAgv(data) { |
export function callAgv(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/callAgv', |
url: 'api/device/callAgv', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function addMaterial(data) { |
export function addMaterial(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/addMaterial', |
url: 'api/device/addMaterial', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function responseAgv(data) { |
export function responseAgv(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/responseAgv', |
url: 'api/device/responseAgv', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function autoCreateTask(data) { |
export function autoCreateTask(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/autoCreateTask', |
url: 'api/device/autoCreateTask', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function cleanTask(data) { |
export function cleanTask(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/cleanTask', |
url: 'api/device/cleanTask', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function cleanMaterial(data) { |
export function cleanMaterial(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/cleanMaterial', |
url: 'api/device/cleanMaterial', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function queryStorageExtra(storage_code) { |
export function queryStorageExtra(storage_code) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/queryStorageExtra/' + storage_code, |
url: 'api/device/queryStorageExtra/' + storage_code, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function reload() { |
export function reload() { |
||||
return request({ |
return request({ |
||||
url: 'api/device/reload', |
url: 'api/device/reload', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function cleans1(data) { |
export function cleans1(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/cleans1', |
url: 'api/device/cleans1', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function cleans2(data) { |
export function cleans2(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/cleans2', |
url: 'api/device/cleans2', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function enterSite1(data) { |
export function enterSite1(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/enterSite1', |
url: 'api/device/enterSite1', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function enterSite2(data) { |
export function enterSite2(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/enterSite2', |
url: 'api/device/enterSite2', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function cleans3(data) { |
export function cleans3(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/cleans3', |
url: 'api/device/cleans3', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function selectAGVList() { |
export function selectAGVList() { |
||||
return request({ |
return request({ |
||||
url: 'api/device/selectAGVList', |
url: 'api/device/selectAGVList', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export function agvTaskType(data) { |
export function agvTaskType(data) { |
||||
return request({ |
return request({ |
||||
url: 'api/device/agvTaskType', |
url: 'api/device/agvTaskType', |
||||
method: 'post', |
method: 'post', |
||||
data |
data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
export default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask, |
export function excelImport(data) { |
||||
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree, |
return request({ |
||||
addMaterial, cleanMaterial, changeFenceStatus,reload, cleans1, cleans2, enterSite1, enterSite2, cleans3, selectAGVList, agvTaskType} |
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, |
||||
|
changeFenceStatus, |
||||
|
reload, |
||||
|
cleans1, |
||||
|
cleans2, |
||||
|
enterSite1, |
||||
|
enterSite2, |
||||
|
cleans3, |
||||
|
selectAGVList, |
||||
|
agvTaskType, |
||||
|
excelImport |
||||
|
} |
Loading…
Reference in new issue