|
@@ -203,7 +203,7 @@ func SettleCenterSettleFileDown(c *gin.Context) { |
|
|
pdf.Text(left, 230, "日期:") |
|
|
pdf.Text(left, 230, "日期:") |
|
|
|
|
|
|
|
|
// 保存PDF文件 |
|
|
// 保存PDF文件 |
|
|
pdfName := medium.CompanyName + "(" + strings.ReplaceAll(date, "-", "") + ")结算单.pdf" |
|
|
|
|
|
|
|
|
pdfName := medium.CompanyName + "(" + strings.ReplaceAll(date, " ", "") + ")结算单.pdf" |
|
|
err := pdf.OutputFileAndClose(path + "/" + pdfName) |
|
|
err := pdf.OutputFileAndClose(path + "/" + pdfName) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
fmt.Println(err) |
|
|
fmt.Println(err) |
|
|