소스 검색

feat: 51005临时处理方案

wuzh 1 개월 전
부모
커밋
1668340bfa
1개의 변경된 파일과 9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/views/beEntrusted/index.vue

+ 9 - 0
src/views/beEntrusted/index.vue

@@ -560,6 +560,15 @@
         if (unreceived) {
           return this.$message.warning(`请先收货再${actionText}`);
         }
+        console.log('selectionselectionselection',this.selection)
+        const errorItem = this.selection.find(item=>{
+          return item.receiveQuantity && item.receiveQuantity < item.totalCount
+        })
+        if(errorItem){
+          this.$message.warning(`请托单编码:${errorItem.code}请先将请托单全部收货`)
+          return;
+        }
+        
 
         const converted = this.selection.find(
           (item) =>