Przeglądaj źródła

1. 台账分解、台账修订,编辑数据提交调整
2. 计量台账、合同支付,勾选框改善

maixinrong 5 lat temu
rodzic
commit
f91320683b

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

@@ -1340,7 +1340,7 @@ $(document).ready(function() {
                 const posData = info.sheet.zh_data ? info.sheet.zh_data[info.row] : null;
                 const col = info.sheet.zh_setting.cols[info.col];
                 const orgText = posData ? posData[col.field] : null;
-                const newText = trimInvalidChar(info.sheet.getCell(info.row, info.col).text());
+                const newText = trimInvalidChar(info.editingText);
                 if (orgText === newText || ((!orgText || orgText === '') && (newText === ''))) {
                     return;
                 }

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

@@ -1028,7 +1028,7 @@ $(document).ready(() => {
             const posData = info.sheet.zh_data ? info.sheet.zh_data[info.row] : null;
             const col = info.sheet.zh_setting.cols[info.col];
             const orgText = posData ? posData[col.field] : null;
-            const newText = trimInvalidChar(info.sheet.getCell(info.row, info.col).text());
+            const newText = trimInvalidChar(info.editingText);
             if (orgText === newText || ((!orgText || orgText === '') && (newText === ''))) return;
 
             const node = posSpreadObj.billsNode;

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

@@ -897,7 +897,7 @@ $(document).ready(() => {
                 };
 
                 if (col.field === 'is_tp') {
-                    if (info.sheet.isEditing) {
+                    if (info.sheet.isEditing()) {
                         info.sheet.endEdit(true);
                     }
 
@@ -1406,6 +1406,7 @@ $(document).ready(() => {
         $.contextMenu({
             selector: '#stage-pos',
             build: function ($trigger, e) {
+                if ()
                 const target = SpreadJsObj.safeRightClickSelection($trigger, e, spSpread);
                 return target.hitTestType === spreadNS.SheetArea.viewport || target.hitTestType === spreadNS.SheetArea.rowHeader;
             },

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

@@ -658,7 +658,7 @@ $(document).ready(() => {
                     return;
                 }
                 if (col.field === 'minus') {
-                    if (info.sheet.isEditing) {
+                    if (info.sheet.isEditing()) {
                         info.sheet.endEdit(true);
                     }
                     // 获取更新数据