项目部授权

This commit is contained in:
hayu 2025-08-01 10:59:26 +08:00
parent 72cf172b19
commit c6ef1c7135
1 changed files with 10 additions and 1 deletions

View File

@ -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 = [