diff --git a/src/views/materialsStation/straight/straightTransfer/index.vue b/src/views/materialsStation/straight/straightTransfer/index.vue index 4d1b62dc..1345c129 100644 --- a/src/views/materialsStation/straight/straightTransfer/index.vue +++ b/src/views/materialsStation/straight/straightTransfer/index.vue @@ -119,7 +119,13 @@ @change="leaseUniteChange" style="width: 100%" > - + @@ -719,6 +725,10 @@ export default { this.loading = false } }, + isTeamSelected(teamName) { + // 判断转出班组的teamName是否已经在选中的班组列表中 + return this.maForm.backTeamId && this.uniteList.some(item => item.teamName === teamName); + }, // 获取物资类型 async getMaTypeOpt() { try { @@ -818,9 +828,12 @@ export default { uniteChange(val) { if (!val) return this.maForm.backTeamName = this.uniteList.find(item => item.id === val).teamName + // 清空转入班组内容 + this.maForm.leaseTeamName = ''; this.getAgreementId() }, projectChange(val) { + this.maForm.backTeamId=undefined; const obj = this.projectList.find(item => item.proId === val) console.log('🚀 ~ projectChange ~ obj:', obj) if (!val) {