EAS_WEB编辑表格锁定单元格不可编辑或解锁单元格

lockPayerBankInfo: function(rowid) {
        var collectionGrid = waf("#editGrid_collection");
        //现金 银行账号、开户行等自动变为空 且锁定
        collectionGrid.wafGrid("setCell", rowid, "payerBank", null);
        collectionGrid.wafGrid("setCell", rowid, "openArea", null);
        collectionGrid.wafGrid("setCell", rowid, "payerAccount", null);

        collectionGrid.wafGrid("lockCell", rowid, "payerBank");
        collectionGrid.wafGrid("lockCell", rowid, "openArea");
        collectionGrid.wafGrid("lockCell", rowid, "payerAccount");
        },
unlockPayerBankInfo: function(rowid) {
      var collectionGrid = waf("#editGrid_collection");
      collectionGrid.wafGrid("unLockCell", rowid, "payerBank");
      collectionGrid.wafGrid("unLockCell", rowid, "openArea");
      collectionGrid.wafGrid("unLockCell", rowid, "payerAccount");
  }

 

posted @ 2024-01-09 10:30  凉了记忆  阅读(22)  评论(0编辑  收藏  举报