diff --git a/src/api/kmres.js b/src/api/kmres.js index eebe696..c25fd12 100644 --- a/src/api/kmres.js +++ b/src/api/kmres.js @@ -8,4 +8,13 @@ export function missionStateCallback(data) { }) } -export default { missionStateCallback } +export function containerSynchronized(data) { + return request({ + url: 'interfaces/api/amr/containerSynchronized', + method: 'post', + data + }) +} + + +export default {missionStateCallback, containerSynchronized} diff --git a/src/views/base-data/point/index.vue b/src/views/base-data/point/index.vue index dc8516c..48c6bbc 100644 --- a/src/views/base-data/point/index.vue +++ b/src/views/base-data/point/index.vue @@ -33,6 +33,7 @@ + + + + + diff --git a/src/views/base-data/stock/index.vue b/src/views/base-data/stock/index.vue index d58c28a..b81eb02 100644 --- a/src/views/base-data/stock/index.vue +++ b/src/views/base-data/stock/index.vue @@ -47,8 +47,14 @@ - - + + + + + @@ -82,8 +100,46 @@ 导入 + + 同步AGV容器 + + + + + + + + + + {{ item.label }} + {{ item.value }} + + + + + + + { + crudArea.queryAreaAll({}).then(res => { this.areas = res }) }, @@ -351,6 +418,27 @@ export default { }, filterTag(value, row) { return row.status === value + }, + containerSynchronized() { + this.$refs['containerSynchronizedForm'].validate((valid) => { + if (valid) { + console.log(this.containerSynchronizedForm) + crudKmres.containerSynchronized({ + areaCode: this.containerSynchronizedForm.areaCode + }).then(res => { + if (res.status == 200) { + this.containerSynchronizedDialog = false + this.crud.notify('同步成功!', CRUD.NOTIFICATION_TYPE.SUCCESS) + this.crud.toQuery() + this.containerSynchronizedForm = {areaCode: null} + } else { + this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR) + } + }) + } else { + return false + } + }) } } } diff --git a/src/views/business-data/pick/index.vue b/src/views/business-data/pick/index.vue index ff9b5b3..9bfc751 100644 --- a/src/views/business-data/pick/index.vue +++ b/src/views/business-data/pick/index.vue @@ -189,7 +189,6 @@ -