ccjgmwz 3 年 前
コミット
d90261d342

+ 14 - 1
src/views/statisticalReport/purchaseClosingCashierList.vue

@@ -61,7 +61,7 @@
           border
           :summary-method="getSummaries"
           show-summary
-          
+          @row-click="handleRowClick"
           @selection-change="handleSelectionChange"
         >
           <el-table-column :selectable='selectInit' type="selection" width="55"></el-table-column>
@@ -319,6 +319,19 @@ export default {
     this.showType = this.isShow
   },
   methods: {
+    handleRowClick(row){
+        if(row.approveStatus==null){
+            this.$refs.warehouseList.toggleRowSelection(row);
+            return true  
+        }else if(row.approveStatus!=null){    
+          if(row.taskId==null){
+            return false 
+          }else{
+            this.$refs.warehouseList.toggleRowSelection(row);
+            return true  
+          }
+        }
+    },
     selectInit(row){
 //在这里一定要记得类型匹配的上。
             if(row.approveStatus==null){

+ 14 - 1
src/views/statisticalReport/purchaseReceiptStatisticsList.vue

@@ -74,7 +74,7 @@
         border
         :summary-method="getSummaries"
         show-summary
-        
+        @row-click="handleRowClick"
         @selection-change="handleSelectionChange"
       >
         <el-table-column :selectable='selectInit' type="selection" width="55"></el-table-column>
@@ -623,6 +623,19 @@ export default {
               EventBus.$emit('error', response.message)
             })
       }
+    },
+    handleRowClick(row){
+        if(row.approveStatus==null){
+            this.$refs.warehouseList.toggleRowSelection(row);
+            return true  
+        }else if(row.approveStatus!=null){    
+          if(row.taskId==null){
+            return false 
+          }else{
+            this.$refs.warehouseList.toggleRowSelection(row);
+            return true  
+          }
+        }
     },
      selectInit(row){
 //在这里一定要记得类型匹配的上。

+ 14 - 1
src/views/statisticalReport/salesClosingCashierList.vue

@@ -60,7 +60,7 @@
           @selection-change="handleSelectionChange"
           ref="warehouseList"
           border
-          
+          @row-click="handleRowClick"
           :summary-method="getSummaries"
           show-summary
         >
@@ -316,6 +316,19 @@ export default {
     this.showType = this.isShow
   },
   methods: {
+    handleRowClick(row){
+        if(row.approveStatus==null){
+            this.$refs.warehouseList.toggleRowSelection(row);
+            return true  
+        }else if(row.approveStatus!=null){    
+          if(row.taskId==null){
+            return false 
+          }else{
+            this.$refs.warehouseList.toggleRowSelection(row);
+            return true  
+          }
+        }
+    },
     selectInit(row){
 //在这里一定要记得类型匹配的上。
             if(row.approveStatus==null){

+ 14 - 1
src/views/statisticalReport/salesDeliveryReportList.vue

@@ -75,7 +75,7 @@
           border
           :summary-method="getSummaries"
           show-summary
-          
+          @row-click="handleRowClick"
           @selection-change="handleSelectionChange"
         >
           <el-table-column :selectable='selectInit' type="selection" width="55"></el-table-column>
@@ -399,6 +399,19 @@ export default {
   //    }
   // },
   methods: {
+    handleRowClick(row){
+        if(row.approveStatus==null){
+            this.$refs.warehouseList.toggleRowSelection(row);
+            return true  
+        }else if(row.approveStatus!=null){    
+          if(row.taskId==null){
+            return false 
+          }else{
+            this.$refs.warehouseList.toggleRowSelection(row);
+            return true  
+          }
+        }
+    },
     selectInit(row){
 //在这里一定要记得类型匹配的上。
             if(row.approveStatus==null){