소스 검색

feat:库存式订单物品选择库存为0不可选

liujt 3 주 전
부모
커밋
9eaa47f923
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/BIZComponents/selectStockLedger/selectStockLedgerDialog.vue

+ 5 - 1
src/BIZComponents/selectStockLedger/selectStockLedgerDialog.vue

@@ -152,7 +152,11 @@
             type: 'selection',
             columnKey: 'selection',
             align: 'center',
-            reserveSelection: true
+            reserveSelection: true,
+            selectable: (row) => {
+              return row.measureQuantity != 0;
+            }
+
           };
         }