Procházet zdrojové kódy

多人协同修改

laiguoran před 4 roky
rodič
revize
99688d54b1
1 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. 6 4
      app/public/js/shenpi.js

+ 6 - 4
app/public/js/shenpi.js

@@ -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) {