项目部授权
This commit is contained in:
parent
72cf172b19
commit
c6ef1c7135
|
|
@ -764,12 +764,21 @@ export default {
|
||||||
return
|
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.authDialogVisible = true
|
||||||
this.isEditMode = false
|
this.isEditMode = false
|
||||||
this.isBatchMode = true
|
this.isBatchMode = true
|
||||||
this.dialogTitle = `批量授权 (${this.selectedItems.length}条)`
|
this.dialogTitle = `批量授权 (${this.selectedItems.length}条)`
|
||||||
this.resetAuthForm()
|
this.resetAuthForm()
|
||||||
this.getTeamList()
|
this.getTeamList(firstTeamId)
|
||||||
|
|
||||||
// 初始化领料人数据
|
// 初始化领料人数据
|
||||||
this.materialReceivers = [
|
this.materialReceivers = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue