From b93c3788e928e8a98c7fb1f1f21054302006d6e1 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 24 Jun 2026 13:44:27 +0800 Subject: [PATCH] =?UTF-8?q?2026-06-24=20=E6=9C=BA=E5=8F=B0=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8F=B0=E3=80=90=E5=88=9B=E5=BB=BA=E5=88=86=E5=8D=B7?= =?UTF-8?q?=E3=80=91=E9=87=8C=E7=9A=84Packing=20List=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/yieldReport/com_separate_roll.vue | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/views/modules/yieldReport/com_separate_roll.vue b/src/views/modules/yieldReport/com_separate_roll.vue index 901775d..ca71914 100644 --- a/src/views/modules/yieldReport/com_separate_roll.vue +++ b/src/views/modules/yieldReport/com_separate_roll.vue @@ -778,6 +778,26 @@ export default { return true }, + // Packing List 条件必填校验(仅在 packingListFlag = Y 时生效) + validatePackingListRequired() { + if (this.scheduleData.packingListFlag !== 'Y') { + return true + } + + for (let i = 0; i < this.rowDataList.length; i++) { + const row = this.rowDataList[i] + const packingList = row && row.packingList !== undefined && row.packingList !== null + ? String(row.packingList).trim() + : '' + if (!packingList) { + this.$message.error(`Packing List不能为空`) + return false + } + } + + return true + }, + // 换班结转保存 async saveShiftChangeTransfer() { // 人员判断 @@ -1406,6 +1426,12 @@ export default { return false } + // Packing List 显示时要求必填 + if (!this.validatePackingListRequired()) { + this.yieldReportLoading = false; + return false + } + try { // 计算分卷 const rowsPerRoll = Math.floor(this.pageData.rowCount / this.pageData.rollCount)