Explorar el Código

无台账数据,进入计量台账报错

MaiXinRong hace 4 años
padre
commit
02eb7e4d16
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      app/public/js/stage.js

+ 1 - 2
app/public/js/stage.js

@@ -301,6 +301,7 @@ $(document).ready(() => {
     const reloadCooperationHtml = function () {
         const html = [];
         for (const p of stageTree.pwd) {
+            if (!p.node) continue;
             html.push('<tr>', `<td>${p.node.code}</td>`, `<td>${p.node.name}</td>`);
             html.push('<td>', p.check ? `已解锁:${p.pwd}` : `<a name="ledger-unlock" lid="${p.ledger_id}" href="javascript: void(0);">解锁</a>`, '</td>');
             html.push('</tr>');
@@ -1492,8 +1493,6 @@ $(document).ready(() => {
         loadCurPosData: function () {
             const sheet = slSpread.getActiveSheet();
             const node = SpreadJsObj.getSelectObject(sheet);
-            console.log(node);
-
             if (node) {
                 spSpread.getActiveSheet().zh_setting.readOnly = node.lock;
                 const posData = stagePos.ledgerPos[itemsPre + node.id] || [];