diff --git a/src/sql.ts b/src/sql.ts index 4a2a741..7bbd3bc 100644 --- a/src/sql.ts +++ b/src/sql.ts @@ -2563,10 +2563,10 @@ async function generateTemplate(data) { texts.forEach(ti => { cusInsertRowFunc(descRowNum, [descSheet.getRow(descRowNum - 1)], descSheet, (targetRow) => { descRowNum++; - targetRow.getCell(1).value = ti; - ciTastNum++; + targetRow.getCell(1).value = ti; }); }); + ciTastNum++; }); } ci.services.forEach((si, sindex) => { @@ -2580,10 +2580,10 @@ async function generateTemplate(data) { tsiTextArr.forEach(ti => { cusInsertRowFunc(descRowNum, [descSheet.getRow(descRowNum - 1)], descSheet, (targetRow) => { descRowNum++; - targetRow.getCell(1).value = ti; - ciTastNum++; - }); + targetRow.getCell(1).value = ti; + }); }); + ciTastNum++; tsi.text.forEach((sti, stindex) => { let stiTextArr = paragraphLineBreakFor1112(` ${stindex + 1})${sti}。`, ctx); stiTextArr.forEach(ti => { @@ -2601,10 +2601,10 @@ async function generateTemplate(data) { siTextArr.forEach(ti => { cusInsertRowFunc(descRowNum, [descSheet.getRow(descRowNum - 1)], descSheet, (targetRow) => { descRowNum++; - targetRow.getCell(1).value = ti; - ciTastNum++; + targetRow.getCell(1).value = ti; }); }); + ciTastNum++; cusInsertRowFunc(descRowNum, [descSheet.getRow(descRowNum - 1)], descSheet, (targetRow) => { descRowNum++; targetRow.getCell(1).value = ' 1)×××××。'; @@ -2643,10 +2643,10 @@ async function generateTemplate(data) { texts.forEach(ti => { cusInsertRowFunc(descRowNum, [descSheet.getRow(descRowNum - 1)], descSheet, (targetRow) => { descRowNum++; - targetRow.getCell(1).value = ti; - ciTastNum++; + targetRow.getCell(1).value = ti; }); }); + ciTastNum++; }); } cusInsertRowFunc(descRowNum, [descSheet.getRow(descRowNum - 1)], descSheet, (targetRow) => { @@ -2728,10 +2728,10 @@ async function generateTemplate(data) { texts.forEach(ti => { cusInsertRowFunc(descRowNum3, [descSheet.getRow(descRowNum3 - 1)], descSheet, (targetRow) => { descRowNum3++; - targetRow.getCell(1).value = ti; - ciTastNum++; + targetRow.getCell(1).value = ti; }); }); + ciTastNum++; }); } ci.services.forEach((si, sindex) => { @@ -2747,10 +2747,10 @@ async function generateTemplate(data) { tsiTextArr.forEach(ti => { cusInsertRowFunc(descRowNum3, [descSheet.getRow(descRowNum3 - 1)], descSheet, (targetRow) => { descRowNum3++; - targetRow.getCell(1).value = ti; - ciTastNum++; + targetRow.getCell(1).value = ti; }); }); + ciTastNum++; tsi.text.forEach((sti, stindex) => { let stiTextArr = paragraphLineBreakFor1112(` ${stindex + 1})${sti}。`, ctx); stiTextArr.forEach(ti => { @@ -2768,9 +2768,9 @@ async function generateTemplate(data) { cusInsertRowFunc(descRowNum3, [descSheet.getRow(descRowNum3 - 1)], descSheet, (targetRow) => { descRowNum3++; targetRow.getCell(1).value = ti; - ciTastNum++; }); }); + ciTastNum++; cusInsertRowFunc(descRowNum3, [descSheet.getRow(descRowNum3 - 1)], descSheet, (targetRow) => { descRowNum3++; targetRow.getCell(1).value = ' 1)×××××。'; @@ -2809,10 +2809,10 @@ async function generateTemplate(data) { texts.forEach(ti => { cusInsertRowFunc(descRowNum3, [descSheet.getRow(descRowNum3 - 1)], descSheet, (targetRow) => { descRowNum3++; - targetRow.getCell(1).value = ti; - ciTastNum++; + targetRow.getCell(1).value = ti; }); }); + ciTastNum++; }); } cusInsertRowFunc(descRowNum3, [descSheet.getRow(descRowNum3 - 1)], descSheet, (targetRow) => {