|
@@ -709,10 +709,12 @@ $(document).ready(function () {
|
|
|
});
|
|
|
},
|
|
|
enterCell: function(e, info) {
|
|
|
- if (info.sheet.zh_setting) {
|
|
|
- const col = info.sheet.zh_setting.cols[info.col];
|
|
|
- info.sheet.setActiveCell(info.row, 2);
|
|
|
- info.sheet.startEdit(true);
|
|
|
+ if (info.sheet.zh_setting && info.col === 2) {
|
|
|
+ if (ledgerSpread.getActiveSheet().getValue(info.row, info.col) !== '') {
|
|
|
+ const col = info.sheet.zh_setting.cols[info.col];
|
|
|
+ info.sheet.setActiveCell(info.row, 2);
|
|
|
+ info.sheet.startEdit(true);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
editStarting: function (e, info) {
|