修复编制说明的编号问题

This commit is contained in:
ForeverSmiYng 2026-03-26 17:16:58 +08:00
parent 7a5f023eda
commit d85584e875

View File

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