inint
This commit is contained in:
49
src/config/getData2.js
Normal file
49
src/config/getData2.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import {post} from '@config/http.js'
|
||||
// import store from '../vuex/store'
|
||||
|
||||
/** 设备状态修改 */
|
||||
|
||||
// 1.1查询所有区域信息
|
||||
export const handArea = (type) => post('api/andxy2/hand/area', {
|
||||
type: type
|
||||
})
|
||||
// export const handArea = () => {
|
||||
// let res = {
|
||||
// code: '1',
|
||||
// desc: '',
|
||||
// result: [{region_id: '1', region_name: 'a'}]
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
|
||||
// 1.2根据区域查询设备编号及状态
|
||||
export const handPoint = (reg) => post('api/andxy2/hand/point', {
|
||||
region: reg
|
||||
})
|
||||
|
||||
// 1.3修改设备状态
|
||||
export const handDeviceStatus = (code, type, no, mtype, quantity, remark) => post('api/andxy2/hand/deviceStatus', {
|
||||
device_code: code,
|
||||
type: type,
|
||||
status: no,
|
||||
material_type: mtype,
|
||||
quantity: quantity,
|
||||
remark: remark
|
||||
})
|
||||
|
||||
// 1.4查询物料
|
||||
export const handMatrial = () => post('api/andxy2/hand/matrial', {})
|
||||
|
||||
/** 普通任务 */
|
||||
|
||||
// 1.1创建任务
|
||||
export const handTask = (scode, ncode) => post('api/andxy2/hand/task2', {
|
||||
start_devicecode: scode,
|
||||
next_devicecode: ncode
|
||||
})
|
||||
|
||||
/** 特殊任务 */
|
||||
export const spehandTask = (scode, ncode) => post('api/andxy2/hand/task', {
|
||||
start_devicecode: scode,
|
||||
next_devicecode: ncode
|
||||
})
|
||||
Reference in New Issue
Block a user