From 322c00f3bb69da7d075622e52fcb5abaa678c57c Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 5 Feb 2026 16:33:22 +0800 Subject: [PATCH] =?UTF-8?q?2026-02-05=20=E5=B7=B2=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=88=96=E5=B7=B2=E6=B6=88=E8=80=97=E7=9A=84=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E4=B8=8D=E5=85=81=E8=AE=B8=E5=B1=9E=E6=80=A7=E5=8F=98=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shopOrder/productionReport/searchSfdcRollsReport.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue b/src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue index 4214427..8be9c4d 100644 --- a/src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue +++ b/src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue @@ -1315,6 +1315,13 @@ import labelPrintTemplates from '@/mixins/labelPrintTemplates.js'; this.$message.warning('请先勾选要变动属性的标签!'); return false; } + // 校验:已入库或已消耗的单据不允许属性变动 + const invalidList = this.selectionDataList.filter(item => item.finalStatus === '已入库' || item.finalStatus === '已消耗'); + if (invalidList.length > 0) { + const rollNos = invalidList.map(item => item.rollNo).join('、'); + this.$message.warning(`标签号 ${rollNos} 状态为"已入库"或"已消耗",不允许属性变动!`); + return false; + } // 重置表单 this.attributeChangeForm = { parentRollNo: '',