From d9c1880598022933dcce9d89475637ce4346b94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Mon, 9 Nov 2026 11:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=98=E7=9B=98=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/haianWarehouse/warehousePallet.js | 6 + .../automatedWarehouse/agvTask54.vue | 4 +- .../warehousePallet/warehousePallet54.vue | 151 ++++++++++++++++-- 3 files changed, 149 insertions(+), 12 deletions(-) diff --git a/src/api/haianWarehouse/warehousePallet.js b/src/api/haianWarehouse/warehousePallet.js index 6313c2c..c4d9308 100644 --- a/src/api/haianWarehouse/warehousePallet.js +++ b/src/api/haianWarehouse/warehousePallet.js @@ -35,3 +35,9 @@ export const haiAnGetMaxPalletNoByFamily = data => createAPI('/autoWareHourceHai // 海安托盘批量生成 - rqrq export const haiAnBatchGeneratePallet = data => createAPI('/autoWareHourceHaian/haiAnPallet/batchGeneratePallet', 'post', data) + +// 海安托盘标签明细,弹窗展示位置、层数、标签、物料、批次、数量、WDR - rqrq +export const haiAnListPalletLabelDetails = data => createAPI('/autoWareHourceHaian/haiAnPallet/listLabelDetails', 'post', data) + +// 货架托盘同步当前标签明细到立库,不在货架时后端拒绝 - rqrq +export const haiAnSyncPalletDetailToWcs = data => createAPI('/autoWareHourceHaian/haiAnPallet/syncPalletDetailToWcs', 'post', data) diff --git a/src/views/modules/haianWarehouse/automatedWarehouse/agvTask54.vue b/src/views/modules/haianWarehouse/automatedWarehouse/agvTask54.vue index 22644b4..520a8a2 100644 --- a/src/views/modules/haianWarehouse/automatedWarehouse/agvTask54.vue +++ b/src/views/modules/haianWarehouse/automatedWarehouse/agvTask54.vue @@ -131,8 +131,8 @@ - - + + diff --git a/src/views/modules/haianWarehouse/warehousePallet/warehousePallet54.vue b/src/views/modules/haianWarehouse/warehousePallet/warehousePallet54.vue index 41ffcd0..91f1e80 100644 --- a/src/views/modules/haianWarehouse/warehousePallet/warehousePallet54.vue +++ b/src/views/modules/haianWarehouse/warehousePallet/warehousePallet54.vue @@ -97,6 +97,25 @@ @selection-change="selectionChangeHandle" style="width: 100%;" > + + + + + + + + + + + + + + + + + + + + { + if (requestSeq !== this.detailRequestSeq) { + return + } + if (data && data.code === 0) { + this.detailDialog.rows = data.rows || [] + } else { + this.$alert((data && data.msg) || '查询托盘明细失败', '提示', { confirmButtonText: '确定' }) + } + }).catch(() => { + if (requestSeq !== this.detailRequestSeq) { + return + } + this.$message.error('查询托盘明细失败') + }).finally(() => { + if (requestSeq === this.detailRequestSeq) { + this.detailDialog.loading = false + } + }) + }, + // 货架托盘把当前标签明细推给立库;失败弹框,点确认后提示消失 - rqrq + syncWcs(row) { + if (!this.hasWcsLocation(row) || this.syncingPalletId) { + return + } + this.syncingPalletId = row.palletId + haiAnSyncPalletDetailToWcs({ + site: this.currentSite, + palletId: row.palletId + }).then(({ data }) => { + if (data && data.code === 0) { + this.$message.success((data && data.msg) || '同步WCS成功') + } else { + this.$alert((data && data.msg) || '同步WCS失败', '提示', { confirmButtonText: '确定' }) + } + }).catch(() => { + this.$message.error('同步WCS失败') + }).finally(() => { + this.syncingPalletId = '' + }) } } }