|
@@ -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
|
|
* @param e
|
|
@@ -1694,7 +1679,6 @@ $(document).ready(() => {
|
|
|
|
|
|
posSpread.bind(spreadNS.Events.EditStarting, posSpreadObj.editStarting);
|
|
posSpread.bind(spreadNS.Events.EditStarting, posSpreadObj.editStarting);
|
|
posSpread.bind(spreadNS.Events.EditEnded, posSpreadObj.editEnded);
|
|
posSpread.bind(spreadNS.Events.EditEnded, posSpreadObj.editEnded);
|
|
- posSpread.bind(spreadNS.Events.ClipboardPasting, posSpreadObj.clipboardPasting);
|
|
|
|
posSpread.bind(spreadNS.Events.ClipboardPasted, posSpreadObj.clipboardPasted);
|
|
posSpread.bind(spreadNS.Events.ClipboardPasted, posSpreadObj.clipboardPasted);
|
|
SpreadJsObj.addDeleteBind(posSpread, posSpreadObj.deletePress);
|
|
SpreadJsObj.addDeleteBind(posSpread, posSpreadObj.deletePress);
|
|
|
|
|