This commit is contained in:
蔡玲
2024-09-18 14:08:58 +08:00
parent 7d591553cb
commit 0ea86ffad2
5 changed files with 12 additions and 24 deletions

View File

@@ -1,17 +1,11 @@
// 1.1查询所有设备 // 1.1查询所有设备
export const queryAllPoints = () => { export const queryAllPoints = () => {
let res = { let res = [{device_code: '10001', device_name: '车号1'}]
data: [{device_code: '10001', device_name: '车号1'}],
message: 'ok'
}
return res return res
} }
// 1.2查询物料类型 // 1.2查询物料类型
export const queryMaterials = () => { export const queryMaterials = () => {
let res = { let res = [{value: '1', label: '类型一'}]
data: [{value: '1', label: '类型一'}],
message: 'ok'
}
return res return res
} }
// 1.3 确认下料 // 1.3 确认下料
@@ -30,10 +24,7 @@ export const putAction = (code, option) => {
} }
// 1.5 查询所有就绪或者执行中任务id // 1.5 查询所有就绪或者执行中任务id
export const queryTaskIds = () => { export const queryTaskIds = () => {
let res = { let res = [{task_id: '1'}]
data: [{task_id: '1'}],
message: 'ok'
}
return res return res
} }
// 1.6 取消操作 // 1.6 取消操作
@@ -52,10 +43,7 @@ export const forceFinish = (id) => {
} }
// 1.8查询所有区域 // 1.8查询所有区域
export const queryAreas = () => { export const queryAreas = () => {
let res = { let res = [{region_code: '1', region_name: 'A区', is_charge: '0', has_agv: '0'}, {region_code: '2', region_name: 'B区', is_charge: '0', has_agv: '0'}, {region_code: '3', region_name: 'C区', is_charge: '0', has_agv: '0'}, {region_code: '4', region_name: 'D区', is_charge: '0', has_agv: '0'}, {region_code: '5', region_name: 'E区', is_charge: '0', has_agv: '0'}]
data: [{region_code: '1', region_name: 'A区', is_charge: '0', has_agv: '0'}, {region_code: '2', region_name: 'B区', is_charge: '0', has_agv: '0'}, {region_code: '3', region_name: 'C区', is_charge: '0', has_agv: '0'}, {region_code: '4', region_name: 'D区', is_charge: '0', has_agv: '0'}, {region_code: '5', region_name: 'E区', is_charge: '0', has_agv: '0'}],
message: 'ok'
}
return res return res
} }
// 1.9 通道释放/通道管控 // 1.9 通道释放/通道管控

BIN
src/images/agv_b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
src/images/agv_l.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
src/images/agv_r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -174,10 +174,10 @@ export default {
} }
}, },
mounted () { mounted () {
// this._queryAllPoints() this._queryAllPoints()
// this._queryMaterials() this._queryMaterials()
// this._queryAreas() this._queryAreas()
// this._queryTaskIds() this._queryTaskIds()
}, },
methods: { methods: {
back () { back () {
@@ -197,19 +197,19 @@ export default {
}, },
async _queryAllPoints () { async _queryAllPoints () {
let res = await queryAllPoints() let res = await queryAllPoints()
this.options1 = [...res.data] this.options1 = [...res]
}, },
async _queryMaterials () { async _queryMaterials () {
let res = await queryMaterials() let res = await queryMaterials()
this.options2 = [...res.data] this.options2 = [...res]
}, },
async _queryAreas () { async _queryAreas () {
let res = await queryAreas() let res = await queryAreas()
this.options3 = [...res.data] this.options3 = [...res]
}, },
async _queryTaskIds () { async _queryTaskIds () {
let res = await queryTaskIds() let res = await queryTaskIds()
this.options4 = [...res.data] this.options4 = [...res]
}, },
async _callTask () { async _callTask () {
this.disabled1 = true this.disabled1 = true