瀏覽代碼

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,