fix 81745

This commit is contained in:
赵霄
2024-02-04 12:04:00 +08:00
parent 82ebe4f7b5
commit 45341cb55f
+13 -11
View File
@@ -2204,10 +2204,10 @@ export default {
const userList = signatureInfo[key] || []
for (let i = 0; i < userList.length; i++) {
const user = userList[i]
// 姓名工号
const oRunUserName = Api.CreateRun()
oRunUserName.AddText(user.userName + ' ')
oRunUserName.SetPosition(48)
// // 姓名工号
// const oRunUserName = Api.CreateRun()
// oRunUserName.AddText(user.userName + ' ')
// oRunUserName.SetPosition(48)
// 手写章图片
const oRunImage = Api.CreateRun()
if (user.avatarFileId) {
@@ -2216,22 +2216,24 @@ export default {
oRunImage.AddDrawing(oDrawingImg)
}
// 签署日期
const oRunTime = Api.CreateRun()
oRunTime.AddText(' 签署日期:' + user.signTime)
oRunTime.SetPosition(48)
// const oRunTime = Api.CreateRun()
// oRunTime.AddText(' 签署日期:' + user.signTime)
// oRunTime.SetPosition(48)
if (i === 0) {
oParagraphLineOne.AddElement(oRunUserName)
// oParagraphLineOne.AddElement(oRunUserName)
oParagraphLineOne.AddElement(oRunImage)
oParagraphLineOne.AddElement(oRunTime)
// oParagraphLineOne.AddElement(oRunTime)
oParagraphLineOne.GetElement(0)
oParagraphLineOne.SetJc('center')
oDocContent.AddElement(oParagraphLineOne)
oDocContent.Push(oParagraphLineOne)
} else {
const oParagraphLine = Api.CreateParagraph()
oParagraphLine.AddElement(oRunUserName)
// oParagraphLine.AddElement(oRunUserName)
oParagraphLine.AddElement(oRunImage)
oParagraphLine.AddElement(oRunTime)
// oParagraphLine.AddElement(oRunTime)
oParagraphLine.SetIndLeft(1388)
oParagraphLine.SetJc('center')
oDocContent.AddElement(oParagraphLine)
oDocContent.Push(oParagraphLine)
}