animeic há 2 anos atrás
pai
commit
270bede508
2 ficheiros alterados com 42 adições e 42 exclusões
  1. BIN
      boxcost/__debug_bin
  2. 42 42
      boxcost/api/plan-summary-excel.go

BIN
boxcost/__debug_bin


+ 42 - 42
boxcost/api/plan-summary-excel.go

@@ -301,27 +301,27 @@ func (b *PlanSummaryExcel) drawAllContent() error {
 
 	}
 
-	summaryEndRow := b.Row
-	startACell := fmt.Sprintf("%s%d", "A", summaryEndRow)
-	endNell := fmt.Sprintf("%s%d", "N", summaryEndRow)
-	OCell := fmt.Sprintf("%s%d", "O", summaryEndRow)
-	PCell := fmt.Sprintf("%s%d", "P", summaryEndRow)
-	b.Excel.MergeCell(b.SheetName, startACell, endNell)
-	b.Excel.SetCellStyle(b.SheetName, startACell, endNell, b.AlignCenterStyle)
-	b.Excel.SetCellValue(b.SheetName, startACell, "生产计划汇总金额")
-
-	// 生产预算汇总
-
-	b.Excel.SetCellStyle(b.SheetName, OCell, OCell, b.AlignCenterStyle)
-	totalOrderRealPrice := fmt.Sprintf("%.3f", totalBudgetPrice)
-	b.FormatToEmpty(&totalOrderRealPrice)
-	b.Excel.SetCellValue(b.SheetName, OCell, totalOrderRealPrice)
-
-	// 生产实际汇总
-	b.Excel.SetCellStyle(b.SheetName, PCell, PCell, b.AlignCenterStyle)
-	totalRealPricef := fmt.Sprintf("%.3f", totalRealPrice)
-	b.FormatToEmpty(&totalRealPricef)
-	b.Excel.SetCellValue(b.SheetName, PCell, totalRealPricef)
+	// summaryEndRow := b.Row
+	// startACell := fmt.Sprintf("%s%d", "A", summaryEndRow)
+	// endNell := fmt.Sprintf("%s%d", "N", summaryEndRow)
+	// OCell := fmt.Sprintf("%s%d", "O", summaryEndRow)
+	// PCell := fmt.Sprintf("%s%d", "P", summaryEndRow)
+	// b.Excel.MergeCell(b.SheetName, startACell, endNell)
+	// b.Excel.SetCellStyle(b.SheetName, startACell, endNell, b.AlignCenterStyle)
+	// b.Excel.SetCellValue(b.SheetName, startACell, "生产计划汇总金额")
+
+	// // 生产预算汇总
+
+	// b.Excel.SetCellStyle(b.SheetName, OCell, OCell, b.AlignCenterStyle)
+	// totalOrderRealPrice := fmt.Sprintf("%.3f", totalBudgetPrice)
+	// b.FormatToEmpty(&totalOrderRealPrice)
+	// b.Excel.SetCellValue(b.SheetName, OCell, totalOrderRealPrice)
+
+	// // 生产实际汇总
+	// b.Excel.SetCellStyle(b.SheetName, PCell, PCell, b.AlignCenterStyle)
+	// totalRealPricef := fmt.Sprintf("%.3f", totalRealPrice)
+	// b.FormatToEmpty(&totalRealPricef)
+	// b.Excel.SetCellValue(b.SheetName, PCell, totalRealPricef)
 
 	return nil
 }
@@ -498,27 +498,27 @@ func (b *PlanSummaryExcel) drawSupplierContent() error {
 		b.Excel.SetCellValue(b.SheetName, planStartACell, plan.Name)
 	}
 
-	summaryEndRow := b.Row
-	startACell := fmt.Sprintf("%s%d", "A", summaryEndRow)
-	endNell := fmt.Sprintf("%s%d", "N", summaryEndRow)
-	OCell := fmt.Sprintf("%s%d", "O", summaryEndRow)
-	PCell := fmt.Sprintf("%s%d", "P", summaryEndRow)
-	b.Excel.MergeCell(b.SheetName, startACell, endNell)
-	b.Excel.SetCellStyle(b.SheetName, startACell, endNell, b.AlignCenterStyle)
-	b.Excel.SetCellValue(b.SheetName, startACell, fmt.Sprintf("【%s】生产计划汇总金额", supplier))
-
-	// 生产预算汇总
-
-	b.Excel.SetCellStyle(b.SheetName, OCell, OCell, b.AlignCenterStyle)
-	totalOrderRealPrice := fmt.Sprintf("%.3f", totalBudgetPrice)
-	b.FormatToEmpty(&totalOrderRealPrice)
-	b.Excel.SetCellValue(b.SheetName, OCell, totalOrderRealPrice)
-
-	// 生产实际汇总
-	b.Excel.SetCellStyle(b.SheetName, PCell, PCell, b.AlignCenterStyle)
-	totalRealPricef := fmt.Sprintf("%.3f", totalRealPrice)
-	b.FormatToEmpty(&totalRealPricef)
-	b.Excel.SetCellValue(b.SheetName, PCell, totalRealPricef)
+	// summaryEndRow := b.Row
+	// startACell := fmt.Sprintf("%s%d", "A", summaryEndRow)
+	// endNell := fmt.Sprintf("%s%d", "N", summaryEndRow)
+	// OCell := fmt.Sprintf("%s%d", "O", summaryEndRow)
+	// PCell := fmt.Sprintf("%s%d", "P", summaryEndRow)
+	// b.Excel.MergeCell(b.SheetName, startACell, endNell)
+	// b.Excel.SetCellStyle(b.SheetName, startACell, endNell, b.AlignCenterStyle)
+	// b.Excel.SetCellValue(b.SheetName, startACell, fmt.Sprintf("【%s】生产计划汇总金额", supplier))
+
+	// // 生产预算汇总
+
+	// b.Excel.SetCellStyle(b.SheetName, OCell, OCell, b.AlignCenterStyle)
+	// totalOrderRealPrice := fmt.Sprintf("%.3f", totalBudgetPrice)
+	// b.FormatToEmpty(&totalOrderRealPrice)
+	// b.Excel.SetCellValue(b.SheetName, OCell, totalOrderRealPrice)
+
+	// // 生产实际汇总
+	// b.Excel.SetCellStyle(b.SheetName, PCell, PCell, b.AlignCenterStyle)
+	// totalRealPricef := fmt.Sprintf("%.3f", totalRealPrice)
+	// b.FormatToEmpty(&totalRealPricef)
+	// b.Excel.SetCellValue(b.SheetName, PCell, totalRealPricef)
 
 	// 供应商名字标题
 	style, err := b.Excel.NewStyle(&excelize.Style{