소스 검색

fix(inventoryTableDetails): 添加selectable条件限制行选择

liujt 7 달 전
부모
커밋
8f316889f6
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/BIZComponents/inventoryTableDetails.vue

+ 4 - 1
src/BIZComponents/inventoryTableDetails.vue

@@ -344,7 +344,10 @@
             width: 45,
             type: 'selection',
             columnKey: 'selection',
-            align: 'center'
+            align: 'center',
+            selectable: (row, index) => {
+              return row.sendTotalCount && row.sendTotalCount > 0;
+          },
           },
           {
             minWidth: 200,