From f11b63f007f2660152dc6203b2a6ae01beb2d76c Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Mon, 16 Nov 2026 23:45:43 -0800 Subject: [PATCH 1/3] =?UTF-8?q?mingo=E6=B7=BB=E5=8A=A0=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E9=80=80=E6=96=99=E6=97=B6=E5=B1=95=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E5=8F=91=E6=96=99=E6=A0=87=E7=AD=BE=E5=A6=82=E6=9E=9C=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E4=B8=BA0=E5=B0=B1=E4=B8=8D=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=EF=BC=8C=E7=9B=B4=E6=8E=A5=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionReturnPDAIssueList.vue | 23 ++++--------------- .../productionReturnPickingDetail.vue | 23 ++++--------------- 2 files changed, 8 insertions(+), 38 deletions(-) diff --git a/src/views/modules/production-return/productionReturnPDAIssueList.vue b/src/views/modules/production-return/productionReturnPDAIssueList.vue index b608a41..f63d4d3 100644 --- a/src/views/modules/production-return/productionReturnPDAIssueList.vue +++ b/src/views/modules/production-return/productionReturnPDAIssueList.vue @@ -686,6 +686,8 @@ export default { // 确认生产退料 confirmReturn() { + // 先从页面列表移除零数量标签,再校验退料信息 + this.labelList = this.labelList.filter((label) => label.quantity && Number(label.quantity) !== 0) if (this.labelList.length === 0) { this.$message.warning('请先扫描退料标签') return @@ -703,26 +705,9 @@ export default { return } - const hasInvalidLabel = this.labelList.some((label) => { - const isInWh = label.isInWh - const quantity = Number(label.quantity) - return isInWh === 'Y' && !isNaN(quantity) && quantity === 0 - }) - - if (hasInvalidLabel) { - this.$message.warning('立库已有标签不能有数量') + // 立库已有标签不提交 + const labelLists = this.labelList.filter((label) => label.isInWh !== 'Y') - return - } - - // 从 labelList 中移除 isInWh 为 'Y' 或 quantity 为 0 的标签 - let labelLists = this.labelList.filter((label) => { - return !( - label.isInWh === 'Y' || - (Number(label.quantity) === 0 || !label.quantity) - ) - }) - // 如果过滤后没有标签了,提示用户 if (labelLists.length === 0) { this.$message.warning('没有可退料的标签') diff --git a/src/views/modules/production-return/productionReturnPickingDetail.vue b/src/views/modules/production-return/productionReturnPickingDetail.vue index 40d04d8..67d03ec 100644 --- a/src/views/modules/production-return/productionReturnPickingDetail.vue +++ b/src/views/modules/production-return/productionReturnPickingDetail.vue @@ -653,6 +653,8 @@ export default { // 确认生产退料 confirmReturn() { + // 先从页面列表移除零数量标签,再校验退料信息 + this.labelList = this.labelList.filter((label) => label.quantity && Number(label.quantity) !== 0) if (this.labelList.length === 0) { this.$message.warning('请先扫描退料标签') return @@ -669,26 +671,9 @@ export default { return } - const hasInvalidLabel = this.labelList.some((label) => { - const isInWh = label.isInWh - const quantity = Number(label.quantity) - return isInWh === 'Y' && !isNaN(quantity) && quantity === 0 - }) - - if (hasInvalidLabel) { - this.$message.warning('立库已有标签不能有数量') - - return - } + // 立库已有标签不提交 + const labelLists = this.labelList.filter((label) => label.isInWh !== 'Y') - // 从 labelList 中移除 isInWh 为 'Y' 或 quantity 为 0 的标签 - let labelLists = this.labelList.filter((label) => { - return !( - label.isInWh === 'Y' || - (Number(label.quantity) === 0 || !label.quantity) - ) - }) - // 如果过滤后没有标签了,提示用户 if (labelLists.length === 0) { this.$message.warning('没有可退料的标签') From e16696ff9e95854455805a705e5ed9e6503ba46b Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Tue, 17 Nov 2026 15:47:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=BA=93=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/production-inbound/inboundRegister.vue | 11 +---------- src/views/modules/recv/recv.vue | 12 +----------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/views/modules/production-inbound/inboundRegister.vue b/src/views/modules/production-inbound/inboundRegister.vue index 9ad6db2..b2c26be 100644 --- a/src/views/modules/production-inbound/inboundRegister.vue +++ b/src/views/modules/production-inbound/inboundRegister.vue @@ -86,8 +86,6 @@ :trigger-on-focus="true" clearable style="width: 100%;" - @select="handleLocationSelect" - @blur="handleLocationBlur" /> @@ -550,14 +548,6 @@ export default { : historyOptions; cb(result); }, - handleLocationSelect(selectedItem) { - // 选中历史值后立即置顶,保证高频库位下次优先展示。 - this.saveLocationHistory(selectedItem && selectedItem.value); - }, - handleLocationBlur() { - // 失焦即缓存,覆盖“手输后直接切换焦点”的场景。 - this.saveLocationHistory(this.inboundItem.locationNo); - }, saveLocationHistory(locationNo) { const normalizedLocation = (locationNo || '').trim(); if (!normalizedLocation) return; @@ -754,6 +744,7 @@ export default { submitShopOrderInbound(submitData).then(({ data }) => { if (data.code === 0) { this.$message.success("入库成功"); + // 只在入库成功后写入库位历史,避免未提交或校验失败的库位进入下次建议。 this.saveLocationHistory(item.locationNo); this.clearAllHandlingUnitCache(); diff --git a/src/views/modules/recv/recv.vue b/src/views/modules/recv/recv.vue index 3505e20..2aa940a 100644 --- a/src/views/modules/recv/recv.vue +++ b/src/views/modules/recv/recv.vue @@ -118,8 +118,6 @@ :trigger-on-focus="true" clearable style="width: 100%;" - @select="handleLocationSelect" - @blur="handleLocationBlur" /> @@ -589,14 +587,6 @@ export default { : historyOptions; cb(result); }, - handleLocationSelect(selectedItem) { - // 选中历史值后立即置顶,保证高频库位下次优先展示。 - this.saveLocationHistory(selectedItem && selectedItem.value); - }, - handleLocationBlur() { - // 失焦即缓存,覆盖“手输后直接切换焦点”的场景。 - this.saveLocationHistory(this.recvItem.locationNo); - }, saveLocationHistory(locationNo) { const normalizedLocation = (locationNo || '').trim(); if (!normalizedLocation) return; @@ -736,7 +726,7 @@ export default { receivePo(receiveData).then(({ data }) => { if (data.code === 0) { this.$message.success("操作成功"); - // 提交成功后再记一次,避免只填了默认库位、未失焦就保存时漏记。 + // 只在接收成功后写入库位历史,避免未提交或校验失败的库位进入下次建议。 this.saveLocationHistory(item.locationNo); this.clearAllHandlingUnitCache(); let printLabelType; From 95a691f5f1a4843051d2bb882936bc82edaadc55 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Thu, 19 Nov 2026 11:09:18 +0800 Subject: [PATCH 3/3] =?UTF-8?q?2026.11.19Mingo=E8=AF=B4=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A1=E9=87=8F=E5=8D=95=E4=BD=8D=E5=92=8C?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E8=AE=A1=E9=87=8F=E5=8D=95=E4=BD=8D=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/recv/recv.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/views/modules/recv/recv.vue b/src/views/modules/recv/recv.vue index 2aa940a..d2a2f7d 100644 --- a/src/views/modules/recv/recv.vue +++ b/src/views/modules/recv/recv.vue @@ -333,9 +333,6 @@ export default { if (row.status === 'Stopped' || row.status === 'Closed' || row.status === 'Cancelled') { return this.$message.warning("该采购订单行状态为"+row.status+",无法接收"); } - if (row.convFactor !== 1) { - return this.$message.warning("采购计量单位和库存计量单位不一致,无法接收"); - } // 获取下一个itemNo let nextItemNo = 1;