2歳以上日誌出力用 preprare

This commit is contained in:
2025-02-16 09:15:13 +08:00
parent 4bcad33a61
commit 6b8c172bac
5 changed files with 119 additions and 8 deletions

View File

@@ -65,7 +65,7 @@
const signLabels = ['園長', '主幹', '指導', '担任'];
const signRow = baseCells['園長'][0].row + 1;
for (let i = 0; i < signLabels.length; i++) {
worksheet.getCell(signRow, baseCells['園長'][0].col + i).value = records[0][signLabels[i]].value; // TODO force use records[0]?
worksheet.getCell(signRow, baseCells['園長'][0].col + i).value = (records[0][signLabels[i]]?.value || ''); // TODO force use records[0]?
}
const pageSize = 10;
@@ -84,7 +84,7 @@
copyPageRowEnd,
callback: (newPage, rowCount) => {
['月', '児童名'].forEach((label) => {
const last = baseCells[label][newPage - lastPage];
const last = baseCells[label][newPage - 2];
baseCells[label].push({
col: last.col,
row: last.row + rowCount