init
This commit is contained in:
27
wcs/qd/src/api/acs/config/deviceAssigned.js
Normal file
27
wcs/qd/src/api/acs/config/deviceAssigned.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/deviceAssigned',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/deviceAssigned/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/deviceAssigned',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
||||
27
wcs/qd/src/api/acs/device/acsDeviceErpmapping.js
Normal file
27
wcs/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 }
|
||||
154
wcs/qd/src/api/acs/device/device.js
Normal file
154
wcs/qd/src/api/acs/device/device.js
Normal file
@@ -0,0 +1,154 @@
|
||||
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 default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask,
|
||||
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree,
|
||||
addMaterial, cleanMaterial, reload }
|
||||
35
wcs/qd/src/api/acs/device/deviceDbitem.js
Normal file
35
wcs/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
wcs/qd/src/api/acs/device/driverConfig.js
Normal file
66
wcs/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
wcs/qd/src/api/acs/device/opc.js
Normal file
66
wcs/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
wcs/qd/src/api/acs/device/opcPlc.js
Normal file
41
wcs/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
wcs/qd/src/api/acs/device/storageCell.js
Normal file
27
wcs/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 }
|
||||
65
wcs/qd/src/api/acs/instruction/instruction.js
Normal file
65
wcs/qd/src/api/acs/instruction/instruction.js
Normal file
@@ -0,0 +1,65 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/instruction',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/instruction/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/instruction',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function finish(instruction_id) {
|
||||
return request({
|
||||
url: 'api/instruction/finish/' + instruction_id,
|
||||
method: 'post',
|
||||
data: instruction_id
|
||||
})
|
||||
}
|
||||
|
||||
export function cancel(instruction_id) {
|
||||
return request({
|
||||
url: 'api/instruction/cancel/' + instruction_id,
|
||||
method: 'post',
|
||||
data: instruction_id
|
||||
})
|
||||
}
|
||||
|
||||
export function queryUnFinish() {
|
||||
return request({
|
||||
url: 'api/instruction/unfinish/',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function queryByTaskId(task_id) {
|
||||
return request({
|
||||
url: 'api/instruction/queryByTaskId/' + task_id,
|
||||
method: 'post',
|
||||
data: task_id
|
||||
})
|
||||
}
|
||||
|
||||
export function reload() {
|
||||
return request({
|
||||
url: 'api/instruction/reload',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, finish, cancel, queryUnFinish, queryByTaskId, reload }
|
||||
10
wcs/qd/src/api/acs/lucene/log.js
Normal file
10
wcs/qd/src/api/acs/lucene/log.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function delAll(id) {
|
||||
return request({
|
||||
url: 'api/lucene/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export default { delAll }
|
||||
42
wcs/qd/src/api/acs/order/produceshiftorder.js
Normal file
42
wcs/qd/src/api/acs/order/produceshiftorder.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/produceshiftorder',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/produceshiftorder/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/produceshiftorder',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function finishd(data) {
|
||||
return request({
|
||||
url: 'api/produceshiftorder/finishd',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function synchron() {
|
||||
return request({
|
||||
url: 'api/produceshiftorder/synchron',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, finishd, synchron }
|
||||
40
wcs/qd/src/api/acs/route/routeLine.js
Normal file
40
wcs/qd/src/api/acs/route/routeLine.js
Normal file
@@ -0,0 +1,40 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/routeLine',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/routeLine/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/routeLine',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
} export function enabled(data) {
|
||||
return request({
|
||||
url: 'api/routeLine/enabled',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function reload() {
|
||||
return request({
|
||||
url: 'api/routeLine/reload',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, enabled, reload }
|
||||
27
wcs/qd/src/api/acs/route/routeLoc.js
Normal file
27
wcs/qd/src/api/acs/route/routeLoc.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/routeLoc',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/routeLoc/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/routeLoc',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
||||
40
wcs/qd/src/api/acs/route/routePlan.js
Normal file
40
wcs/qd/src/api/acs/route/routePlan.js
Normal file
@@ -0,0 +1,40 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/routePlan',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/routePlan/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/routePlan',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectList() {
|
||||
return request({
|
||||
url: 'api/routePlan/selectList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export function getRoute(device_code, next_device_code, route_plan_code) {
|
||||
return request({
|
||||
url: '/api/routeLine/getShortPathLines?device_code=' + device_code + '&next_device_code=' + next_device_code + '&route_plan_code=' + route_plan_code,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, selectList, getRoute }
|
||||
42
wcs/qd/src/api/acs/stage/actor.js
Normal file
42
wcs/qd/src/api/acs/stage/actor.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/stageActor',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/stageActor/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/stageActor',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function saveData(data) {
|
||||
return request({
|
||||
url: 'api/stageActor/saveData',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function queryStageActor(stage_code) {
|
||||
return request({
|
||||
url: 'api/stageActor/queryStageActor/' + stage_code,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, saveData, queryStageActor }
|
||||
34
wcs/qd/src/api/acs/stage/stage.js
Normal file
34
wcs/qd/src/api/acs/stage/stage.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/stage',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/stage/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/stage',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectStageList() {
|
||||
return request({
|
||||
url: 'api/stage/selectList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del,selectStageList }
|
||||
27
wcs/qd/src/api/acs/stage/stageImage.js
Normal file
27
wcs/qd/src/api/acs/stage/stageImage.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/stageImage',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/stageImage/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/stageImage',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
||||
99
wcs/qd/src/api/acs/task/task.js
Normal file
99
wcs/qd/src/api/acs/task/task.js
Normal file
@@ -0,0 +1,99 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/task',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/task/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/task',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function finish(task_id) {
|
||||
return request({
|
||||
url: 'api/task/finish/' + task_id,
|
||||
method: 'post',
|
||||
data: task_id
|
||||
})
|
||||
}
|
||||
|
||||
export function cancel(task_id) {
|
||||
return request({
|
||||
url: 'api/task/cancel/' + task_id,
|
||||
method: 'post',
|
||||
data: task_id
|
||||
})
|
||||
}
|
||||
|
||||
export function createInst(task_id) {
|
||||
return request({
|
||||
url: 'api/task/createInst/' + task_id,
|
||||
method: 'post',
|
||||
data: task_id
|
||||
})
|
||||
}
|
||||
|
||||
export function createTaskByClick(data) {
|
||||
return request({
|
||||
url: 'api/task/createTaskByClick',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function queryTaskTreeRecord(data) {
|
||||
return request({
|
||||
url: 'api/task/queryTaskTreeRecord',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function deviceAskTask(data) {
|
||||
return request({
|
||||
url: 'api/task/deviceAskTask',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function ordinaryTaskCreate(data) {
|
||||
return request({
|
||||
url: 'api/task/adds',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function specialTaskCreate(data) {
|
||||
return request({
|
||||
url: 'api/task/addes',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function reload() {
|
||||
return request({
|
||||
url: 'api/task/reload',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, finish, cancel, createTaskByClick, deviceAskTask, ordinaryTaskCreate, specialTaskCreate, createInst, reload }
|
||||
|
||||
19
wcs/qd/src/api/acs/task/taskFeedback.js
Normal file
19
wcs/qd/src/api/acs/task/taskFeedback.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function retry(task_id) {
|
||||
return request({
|
||||
url: 'api/taskFeedback/retry/' + task_id,
|
||||
method: 'post',
|
||||
data: task_id
|
||||
})
|
||||
}
|
||||
|
||||
export function invalid(task_id) {
|
||||
return request({
|
||||
url: 'api/taskFeedback/invalid/' + task_id,
|
||||
method: 'post',
|
||||
data: task_id
|
||||
})
|
||||
}
|
||||
|
||||
export default { retry, invalid }
|
||||
55
wcs/qd/src/api/acs/test/test.js
Normal file
55
wcs/qd/src/api/acs/test/test.js
Normal file
@@ -0,0 +1,55 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function test1() {
|
||||
return request({
|
||||
url: 'api/test/test1',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function test2() {
|
||||
return request({
|
||||
url: 'api/test/test2',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function test3() {
|
||||
return request({
|
||||
url: 'api/test/test3',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function test4(data) {
|
||||
return request({
|
||||
url: 'api/test/test4',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function test5() {
|
||||
return request({
|
||||
url: 'api/test/test5',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function test6(data) {
|
||||
return request({
|
||||
url: 'api/test/test6',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function print() {
|
||||
return request({
|
||||
url: 'api/test/print',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export default { test1, test2, test3, test4, test5, test6, print }
|
||||
|
||||
Reference in New Issue
Block a user