Browse Source

fix merge execl cell bug

animeic 2 years ago
parent
commit
2f164b8d08
1 changed files with 8 additions and 8 deletions
  1. 8 8
      boxcost/api/plan.go

+ 8 - 8
boxcost/api/plan.go

@@ -74,14 +74,14 @@ func DownLoadPlanCost(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 	planCostExcel.Content = supplierPlanCost
 	planCostExcel.Draws()
 
-	// 另存为
-	// _ = os.MkdirAll("excel", os.ModePerm)
-	// filename1 := time.Now().Format("20060102150405") + ".xlsx"
-	filename1 := "生产成本表.xlsx"
-	err = f.SaveAs(filename1)
-	if err != nil {
-		return nil, err
-	}
+	// // 另存为
+	// // _ = os.MkdirAll("excel", os.ModePerm)
+	// // filename1 := time.Now().Format("20060102150405") + ".xlsx"
+	// filename1 := "生产成本表.xlsx"
+	// err = f.SaveAs(filename1)
+	// if err != nil {
+	// 	return nil, err
+	// }
 
 	c.Header("Content-Type", "application/octet-stream")
 	c.Header("Content-Disposition", "attachment; filename="+"planCost.xlsx")