From 70bcdd88d238f004b9e05385443c05c47e4305f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 30 Dec 2025 09:48:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=93=E5=BA=93=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=88=90=E5=93=812=E5=BA=93B=E5=8C=BA?= =?UTF-8?q?=E7=9A=84=E5=A4=8D=E5=90=88=E6=9E=B6=E9=85=8D=E7=BD=AE=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加F2B区的复合架配置规则,并完善复合架规则的验证逻辑,增加错误日志输出以便调试 --- .../wms/warehouse/components/WarehouseInterlaced.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/klp-ui/src/views/wms/warehouse/components/WarehouseInterlaced.vue b/klp-ui/src/views/wms/warehouse/components/WarehouseInterlaced.vue index 88441f7a..c0e79b70 100644 --- a/klp-ui/src/views/wms/warehouse/components/WarehouseInterlaced.vue +++ b/klp-ui/src/views/wms/warehouse/components/WarehouseInterlaced.vue @@ -126,6 +126,13 @@ export default { small: 29, rows: [0, 1, 2, 3, 4] }, + // 成品2库B区,F2B + '1998933646134919170': { + col: 7, + big: 29 + 28, + small: 43 + 42, + rows: [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26] + } }, dialogOpen: false, currentWarehouse: null, @@ -141,16 +148,19 @@ export default { // 当前的库区是否支持复合架 isComposite() { if (!this.compositeRules[this.id]) { + console.log('当前库区不支持复合架'); return false; } // 检车规则是否合法, // 1. (small - big) / 2 = rows.length if ((this.compositeRules[this.id].small - this.compositeRules[this.id].big) / 2 !== this.compositeRules[this.id].rows.length) { + console.log('检车规则不合法,(small - big) / 2 !== rows.length'); return false; } // 2. row中最大的值小于等于big const maxRow = Math.max(...this.compositeRules[this.id].rows); if (maxRow > this.compositeRules[this.id].big) { + console.log('检车规则不合法,row中最大的值大于big'); return false; }