animeic 2 years ago
parent
commit
af500cd89d
2 changed files with 4 additions and 4 deletions
  1. 2 2
      boxcost/api/plan-summary-excel.go
  2. 2 2
      boxcost/api/summary-sample-excel.go

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

@@ -293,7 +293,7 @@ func (b *PlanSummaryExcel) drawAllContent() error {
 		if err != nil {
 			return err
 		}
-		b.Excel.SetCellValue(b.SheetName, planStartACell, plan.Name)
+		b.Excel.SetCellValue(b.SheetName, planStartACell, fmt.Sprintf("%s(%d)", plan.Name, plan.Total))
 
 	}
 
@@ -489,7 +489,7 @@ func (b *PlanSummaryExcel) drawSupplierContent() error {
 		if err != nil {
 			return err
 		}
-		b.Excel.SetCellValue(b.SheetName, planStartACell, plan.Name)
+		b.Excel.SetCellValue(b.SheetName, planStartACell, fmt.Sprintf("%s(%d)", plan.Name, plan.Total))
 	}
 
 	// summaryEndRow := b.Row

+ 2 - 2
boxcost/api/summary-sample-excel.go

@@ -206,7 +206,7 @@ func (b *SummarySampleExcel) drawAllContent() error {
 		if err != nil {
 			return err
 		}
-		b.Excel.SetCellValue(b.SheetName, planStartBCell, plan.Name)
+		b.Excel.SetCellValue(b.SheetName, planStartBCell, fmt.Sprintf("%s(%d)", plan.Name, plan.Total))
 
 		// 备注
 		planStartFCell := fmt.Sprintf("%s%d", "G", planStartRow)
@@ -349,7 +349,7 @@ func (b *SummarySampleExcel) drawSupplierContent() error {
 		if err != nil {
 			return err
 		}
-		b.Excel.SetCellValue(b.SheetName, planStartBCell, plan.Name)
+		b.Excel.SetCellValue(b.SheetName, planStartBCell, fmt.Sprintf("%s(%d)", plan.Name, plan.Total))
 
 		// 备注
 		planStartFCell := fmt.Sprintf("%s%d", "G", planStartRow)