animeic il y a 2 ans
Parent
commit
a12ad0ba97
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 2 2
      boxcost/api/bill-product-excel.go
  2. 1 1
      boxcost/api/report-product-excel.go

+ 2 - 2
boxcost/api/bill-product-excel.go

@@ -293,7 +293,7 @@ func (b *ProductBillExcel) drawRemark() error {
 
 	//第二行
 	drawLeft(b.Row+1, "联系人:")
-	timeformat := b.Content.CreateTime.Local().Format("2006年01月02号 15:04:05")
+	timeformat := b.Content.CreateTime.Local().Format("2006年01月02号")
 	drawRight(b.Row+1, "联系人:")
 	b.Excel.SetRowHeight(b.SheetName, b.Row+1, 21)
 
@@ -394,7 +394,7 @@ func NewProductBill(f *excelize.File) *ProductBillExcel {
 	}
 
 	f.SetColWidth(b.SheetName, "A", "J", 11.5)
-	f.SetPageMargins(b.SheetName, excelize.PageMarginTop(1.5), excelize.PageMarginLeft(0.25), excelize.PageMarginRight(0))
+	f.SetPageMargins(b.SheetName, excelize.PageMarginTop(1), excelize.PageMarginLeft(0.25), excelize.PageMarginRight(0))
 	return b
 }
 

+ 1 - 1
boxcost/api/report-product-excel.go

@@ -311,7 +311,7 @@ func NewReportProductBill(f *excelize.File) *ReportProductExcel {
 	}
 
 	f.SetColWidth(b.SheetName, "A", "J", 11.5)
-	f.SetPageMargins(b.SheetName, excelize.PageMarginTop(1.5), excelize.PageMarginLeft(0.25), excelize.PageMarginRight(0))
+	f.SetPageMargins(b.SheetName, excelize.PageMarginTop(1), excelize.PageMarginLeft(0.25), excelize.PageMarginRight(0))
 	return b
 }