Browse Source

更新

master
huangjiajun 6 months ago
parent
commit
c471a2377a
2 changed files with 9 additions and 1 deletions
  1. +7
    -1
      app/admin/svc/order/svc_order_list.go
  2. +2
    -0
      app/admin/svc/svc_data_statisstics.go

+ 7
- 1
app/admin/svc/order/svc_order_list.go View File

@@ -203,6 +203,9 @@ func OrderExport(c *gin.Context) {
})
xlsx.SetRowHeight("Sheet1", j, 20)
j++
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{})
xlsx.SetRowHeight("Sheet1", j, 20)
j++
}
}
xlsx.DeleteSheet("template") //删除模板表
@@ -627,8 +630,9 @@ func OrderOutput(c *gin.Context) {
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{
inSideName + " 汇总: " + utils.IntToStr(total),
})
xlsx.SetRowHeight("Sheet1", j, 20)
j++
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{})

xlsx.SetRowHeight("Sheet1", j, 20)
j++
}
@@ -757,6 +761,8 @@ func OrderGoodsOutput(c *gin.Context) {
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{
title + " 汇总: " + utils.IntToStr(total),
})
xlsx.SetRowHeight("Sheet1", j, 20)
j++
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{})
xlsx.SetRowHeight("Sheet1", j, 20)
j++


+ 2
- 0
app/admin/svc/svc_data_statisstics.go View File

@@ -111,6 +111,8 @@ func DataStatisticsExport(req md.DataStatisticsExportReq) {
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{
k + " 汇总: " + utils.IntToStr(total),
})
xlsx.SetRowHeight("Sheet1", j, 20)
j++
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{})
xlsx.SetRowHeight("Sheet1", j, 20)
j++


Loading…
Cancel
Save