| | |
| | | const projectArray=[]; |
| | | for (let i=0;i<selectRecords.length;i++){ |
| | | customerIdArray.push(selectRecords[i].customerId) |
| | | if(selectRecords[i].project.trim.length===0){ |
| | | projectArray.push(selectRecords[i].project.trim) |
| | | if(selectRecords[i].project.trim().length===0){ |
| | | projectArray.push(selectRecords[i].project.trim()) |
| | | }else{ |
| | | projectArray.push(selectRecords[i].project) |
| | | } |
| | |
| | | return |
| | | } |
| | | //判断所选项目是否相同 |
| | | console.log(projectArray) |
| | | if(!isAllEqual(projectArray)){ |
| | | ElMessage.warning(t('delivery.pleaseSelectTheSameCustomerProject')) |
| | | return |