From c6ef1c71353ea49cbae985ec8056b2ec31328920 Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Fri, 1 Aug 2025 10:59:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=83=A8=E6=8E=88=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/materialStation/authorize/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/material/materialStation/authorize/index.vue b/src/views/material/materialStation/authorize/index.vue index 2c96cad7..45821492 100644 --- a/src/views/material/materialStation/authorize/index.vue +++ b/src/views/material/materialStation/authorize/index.vue @@ -764,12 +764,21 @@ export default { return } + // 检查所有选中的申请单是否属于同一个班组 + const firstTeamId = this.selectedItems[0].externalId + const allSameTeam = this.selectedItems.every(item => item.externalId === firstTeamId) + + if (!allSameTeam) { + this.$message.error('批量授权只能选择相同班组的申请单') + return + } + this.authDialogVisible = true this.isEditMode = false this.isBatchMode = true this.dialogTitle = `批量授权 (${this.selectedItems.length}条)` this.resetAuthForm() - this.getTeamList() + this.getTeamList(firstTeamId) // 初始化领料人数据 this.materialReceivers = [