From 2ebe94d7c8d3399c0f871a3e2893695e91b09bce Mon Sep 17 00:00:00 2001 From: xiangxy Date: Mon, 8 Aug 2022 14:22:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/getData.js | 10 +++++----- src/config/getData2.js | 28 ++-------------------------- 2 files changed, 7 insertions(+), 31 deletions(-) diff --git a/src/config/getData.js b/src/config/getData.js index fab0a35..e7cfce1 100644 --- a/src/config/getData.js +++ b/src/config/getData.js @@ -2,32 +2,32 @@ import {post} from '@config/http.js' // import store from '../vuex/store' // 登录 -export const loginApi = (user, password) => post('api/aqd/hand/handlogin', { +export const loginApi = (user, password) => post('api/anjyf/hand/handlogin', { user: user, password: password }) // 指令管理 // 1.1 查询未完成指令 -export const queryInstraction = (keyword, scode, ncode) => post('api/aqd/hand/insts', { +export const queryInstraction = (keyword, scode, ncode) => post('api/anjyf/hand/insts', { keyword: keyword, start_devicecode: scode, next_devicecode: ncode }) // 1.2 指令操作 -export const instOperation = (uuid, type) => post('api/aqd/hand/inst', { +export const instOperation = (uuid, type) => post('api/anjyf/hand/inst', { inst_uuid: uuid, type: type }) // 任务管理 // 1.1 查询未完成指令 -export const queryTask = (keyword, scode, ncode) => post('api/aqd/hand/tasks', { +export const queryTask = (keyword, scode, ncode) => post('api/anjyf/hand/tasks', { keyword: keyword, start_devicecode: scode, next_devicecode: ncode }) // 1.2 指令操作 -export const taskOperation = (uuid, type) => post('api/aqd/hand/taskoperation', { +export const taskOperation = (uuid, type) => post('api/anjyf/hand/taskoperation', { inst_uuid: uuid, type: type }) diff --git a/src/config/getData2.js b/src/config/getData2.js index 1be9947..b9feea4 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -2,35 +2,11 @@ import {post} from '@config/http.js' // import store from '../vuex/store' // 1.1查询所有区域信息 -export const handArea = (type) => post('api/aqd/hand/area', { +export const handArea = (type) => post('api/anjyf/hand/area', { area_flag: type }) // 1.2根据区域查询设备编号及状态 -export const handPoint = (reg) => post('api/aqd/hand/point', { +export const handPoint = (reg) => post('api/anjyf/hand/point', { region: reg }) - -// 1.3称重前任务 -export const handTask3 = (scode, ncode, type, batch, no) => post('api/aqd/hand/task3', { - start_devicecode: scode, - next_devicecode: ncode, - material_type: type, - batch: batch, - carrier: no -}) - -// 1.4称重后任务 -export const handTask = (scode, ncode, type, batch, no) => post('api/aqd/hand/task', { - start_devicecode: scode, - next_devicecode: ncode, - material_type: type, - batch: batch, - carrier: no -}) - -// 1.5点位放货确认 -export const handpointPut = (code, type) => post('api/aqd/hand/pointPut', { - device_code: code, - status_type: type -})