修改
This commit is contained in:
parent
37d1b2ca25
commit
11d8cea16d
@ -165,26 +165,27 @@ func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, co
|
|||||||
pdf.Cell(nil, time.Now().Format("2006-01-02"))
|
pdf.Cell(nil, time.Now().Format("2006-01-02"))
|
||||||
|
|
||||||
pdf.SetX(180)
|
pdf.SetX(180)
|
||||||
pdf.SetY(208)
|
pdf.SetY(207)
|
||||||
pdf.Cell(nil, buyerName)
|
pdf.Cell(nil, buyerName)
|
||||||
|
|
||||||
pdf.SetX(210)
|
pdf.SetX(210)
|
||||||
pdf.SetY(233)
|
pdf.SetY(232)
|
||||||
pdf.Cell(nil, idNo)
|
pdf.Cell(nil, idNo)
|
||||||
|
|
||||||
pdf.SetX(200)
|
pdf.SetX(200)
|
||||||
pdf.SetY(259)
|
pdf.SetY(257)
|
||||||
pdf.Cell(nil, telNum)
|
pdf.Cell(nil, telNum)
|
||||||
|
|
||||||
pdf.SetX(200)
|
pdf.SetX(200)
|
||||||
pdf.SetY(284)
|
pdf.SetY(283)
|
||||||
pdf.Cell(nil, address)
|
pdf.Cell(nil, address)
|
||||||
|
|
||||||
// 填 金额
|
// 填 金额
|
||||||
pdf.SetPage(pricePage)
|
pdf.SetPage(pricePage)
|
||||||
pdf.SetX(379)
|
pdf.SetX(379)
|
||||||
pdf.SetY(639)
|
pdf.SetY(639)
|
||||||
pdf.Cell(nil, strconv.FormatFloat(float64(price), 'f', 2, 32))
|
// 保留整数
|
||||||
|
pdf.Cell(nil, strconv.FormatFloat(float64(price), 'f', 0, 32))
|
||||||
|
|
||||||
// 写 有效期
|
// 写 有效期
|
||||||
t := time.Now().AddDate(int(contractDuration), 0, 0)
|
t := time.Now().AddDate(int(contractDuration), 0, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user