Browse Source

部位明细,定义前一条bug

MaiXinRong 6 years ago
parent
commit
52dfbfd282
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/ledger.js

+ 1 - 1
app/public/js/ledger.js

@@ -703,7 +703,7 @@ $(document).ready(function() {
                 const sheet = posSpread.getActiveSheet();
                 const sel = sheet.getSelections()[0];
                 const curRow = sel ? sel.row : 0;
-                let next = _.find(resultArr, function (d) {
+                let next = _.findLast(resultArr, function (d) {
                     return d.index < curRow;
                 });
                 if (!next) next = resultArr[resultArr.length - 1];