Browse Source

fix summary download unit && √×

animeic 1 year ago
parent
commit
ed8d0e4400
1 changed files with 6 additions and 6 deletions
  1. 6 6
      boxcost/api/plan-summary-excel.go

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

@@ -197,9 +197,9 @@ func (b *PlanSummaryExcel) drawAllContent() error {
 						realPrice := fmt.Sprintf("%.3f", stage.OrderPrice*float64(stage.ConfirmCount))
 						b.FormatToEmpty(&realPrice)
 						unit := stage.Unit
-						if stage.Unit == "吨" || stage.Unit == "平方米" {
-							unit = "张"
-						}
+						// if stage.Unit == "吨" || stage.Unit == "平方米" {
+						// 	unit = "张"
+						// }
 
 						supplierName := ""
 						if stage.SupplierInfo != nil {
@@ -417,9 +417,9 @@ func (b *PlanSummaryExcel) drawSupplierContent() error {
 								}
 								b.FormatToEmpty(&realPrice)
 								unit := stage.Unit
-								if stage.Unit == "吨" || stage.Unit == "平方米" {
-									unit = "张"
-								}
+								// if stage.Unit == "吨" || stage.Unit == "平方米" {
+								// 	unit = "张"
+								// }
 
 								supplierName := ""
 								if stage.SupplierInfo != nil {