Browse Source

移除台账修订,计量单元,复制粘贴判断

MaiXinRong 4 years ago
parent
commit
5c1dc42434
1 changed files with 0 additions and 16 deletions
  1. 0 16
      app/public/js/revise.js

+ 0 - 16
app/public/js/revise.js

@@ -1521,21 +1521,6 @@ $(document).ready(() => {
                 });
             }
         },
-        clipboardPasting: function (e, info) {
-            if (!info.sheet.zh_setting) {
-                info.cancel = true;
-                return;
-            }
-            const range = info.cellRange;
-            for (let iRow = range.row; iRow < range.row + range.rowCount; iRow++) {
-                const posData = info.sheet.zh_data[iRow];
-                if (posData && posData.used) {
-                    toastr.warning('"' + pos.name +'"已计量,请勿修改');
-                    info.cancel = true;
-                    return;
-                }
-            }
-        },
         /**
          * 粘贴单元格响应事件
          * @param e
@@ -1694,7 +1679,6 @@ $(document).ready(() => {
 
         posSpread.bind(spreadNS.Events.EditStarting, posSpreadObj.editStarting);
         posSpread.bind(spreadNS.Events.EditEnded, posSpreadObj.editEnded);
-        posSpread.bind(spreadNS.Events.ClipboardPasting, posSpreadObj.clipboardPasting);
         posSpread.bind(spreadNS.Events.ClipboardPasted, posSpreadObj.clipboardPasted);
         SpreadJsObj.addDeleteBind(posSpread, posSpreadObj.deletePress);