Browse Source

fix: 修正导出表头

hsun 2 years ago
parent
commit
71944a9ecc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controller/contract/register.go

+ 2 - 2
controller/contract/register.go

@@ -933,7 +933,7 @@ func (rg *RegisterController) Export(c *gin.Context) {
 	for i := 0; i < maxPayment; i++ {
 		n := i + 1
 		c1 := titleRow2.AddCell()
-		t1 := fmt.Sprintf("%s%d", "收款", n)
+		t1 := fmt.Sprintf("%s%d", "收款", n)
 		c1.SetValue(t1)
 		c1.SetStyle(style)
 		c2 := titleRow2.AddCell()
@@ -1046,7 +1046,7 @@ func (rg *RegisterController) Export(c *gin.Context) {
 		if pyList != nil && pyListLen > 0 {
 			for ib := 0; ib < maxInvoice; ib++ {
 				if ib < pyListLen {
-					dataRow.AddCell().SetString(utils.TimeTransferString("2006/01/02", pyList[ib].InvoiceDate)) // 收款
+					dataRow.AddCell().SetString(utils.TimeTransferString("2006/01/02", pyList[ib].InvoiceDate)) // 收款
 					dataRow.AddCell().SetString(fmt.Sprint(pyList[ib].Amount))                                  // 收款金额
 				} else {
 					// 已经是最后的几列了其实可以不用填充空, 万一后面要加列此处还是填充上吧