|
@@ -2478,6 +2478,17 @@ $(document).ready(function() {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ this.posSpread.bind(spreadNS.Events.ClipboardPasted, function (e, info) {
|
|
|
+ const billsCount = info.sheet.getColumnCount() - 2, qdSheet = self.qdSpread.getActiveSheet();
|
|
|
+ const count = qdSheet.getRowCount();
|
|
|
+ if (billsCount > count) {
|
|
|
+ qdSheet.setRowCount(billsCount);
|
|
|
+ for (let i = count + 1; i <= billsCount; i++) {
|
|
|
+ qdSheet.getCell(i - 1, 0, spreadNS.SheetArea.rowHeader).text('清单' + i);
|
|
|
+ info.sheet.getCell(0, i + 2 - 1, spreadNS.SheetArea.colHeader).text('清单' + i);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
this.qdSpread.bind(spreadNS.Events.EditEnded, function (e, info) {
|
|
|
if (info.col === 0) {
|
|
|
const dealBills = self.dealSpread.getActiveSheet().zh_data;
|