|
@@ -27,41 +27,41 @@ type ProduceBillExcel struct {
|
|
|
|
|
|
func (b *ProduceBillExcel) drawTitle() error {
|
|
|
b.Row++
|
|
|
- marginLeft := excelize.PageMarginLeft(0.15)
|
|
|
- startCell := fmt.Sprintf("A%d", b.Row)
|
|
|
- endCell := fmt.Sprintf("L%d", b.Row)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
- if !b.Content.IsPrint {
|
|
|
- endCell = fmt.Sprintf("I%d", b.Row)
|
|
|
- marginLeft = excelize.PageMarginLeft(0.4)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "A", "B", 16)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "C", "H", 10.5)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "I", "I", 16)
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
- if b.IsPdf == "true" {
|
|
|
- marginLeft = excelize.PageMarginLeft(0.18)
|
|
|
- startCell = fmt.Sprintf("A%d", b.Row)
|
|
|
- endCell = fmt.Sprintf("J%d", b.Row)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "A", "A", 16)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "B", "C", 14)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "C", "H", 10)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "I", "I", 12)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "J", "J", 14)
|
|
|
-
|
|
|
-
|
|
|
- if !b.Content.IsPrint {
|
|
|
- endCell = fmt.Sprintf("G%d", b.Row)
|
|
|
- marginLeft = excelize.PageMarginLeft(0.6)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "A", "B", 20)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "C", "F", 12)
|
|
|
- b.Excel.SetColWidth(b.SheetName, "G", "G", 20)
|
|
|
- }
|
|
|
+
|
|
|
+ marginLeft := excelize.PageMarginLeft(0.18)
|
|
|
+ startCell := fmt.Sprintf("A%d", b.Row)
|
|
|
+ endCell := fmt.Sprintf("J%d", b.Row)
|
|
|
+ b.Excel.SetColWidth(b.SheetName, "A", "A", 16)
|
|
|
+ b.Excel.SetColWidth(b.SheetName, "B", "C", 14)
|
|
|
+ b.Excel.SetColWidth(b.SheetName, "C", "H", 10)
|
|
|
+ b.Excel.SetColWidth(b.SheetName, "I", "I", 12)
|
|
|
+ b.Excel.SetColWidth(b.SheetName, "J", "J", 14)
|
|
|
|
|
|
+
|
|
|
+ if !b.Content.IsPrint {
|
|
|
+ endCell = fmt.Sprintf("G%d", b.Row)
|
|
|
+ marginLeft = excelize.PageMarginLeft(0.6)
|
|
|
+ b.Excel.SetColWidth(b.SheetName, "A", "B", 20)
|
|
|
+ b.Excel.SetColWidth(b.SheetName, "C", "F", 12)
|
|
|
+ b.Excel.SetColWidth(b.SheetName, "G", "G", 20)
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
b.Excel.SetPageMargins(b.SheetName, marginLeft)
|
|
|
|
|
|
err := b.Excel.MergeCell(b.SheetName, startCell, endCell)
|
|
@@ -99,10 +99,75 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
- var drawLeft = func(rowIndex int, value string) error {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ drawLeft := func(rowIndex int, value string) error {
|
|
|
|
|
|
left1Cell := fmt.Sprintf("A%d", rowIndex)
|
|
|
- err = b.Excel.MergeCell(b.SheetName, left1Cell, fmt.Sprintf("F%d", rowIndex))
|
|
|
+ err = b.Excel.MergeCell(b.SheetName, left1Cell, fmt.Sprintf("G%d", rowIndex))
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
@@ -114,9 +179,9 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
- var drawRight = func(rowIndex int, value string) error {
|
|
|
- right1Cell := fmt.Sprintf("G%d", rowIndex)
|
|
|
- err = b.Excel.MergeCell(b.SheetName, right1Cell, fmt.Sprintf("L%d", rowIndex))
|
|
|
+ drawRight := func(rowIndex int, value string) error {
|
|
|
+ right1Cell := fmt.Sprintf("H%d", rowIndex)
|
|
|
+ err = b.Excel.MergeCell(b.SheetName, right1Cell, fmt.Sprintf("J%d", rowIndex))
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
@@ -130,7 +195,6 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
|
|
|
|
|
|
if !b.Content.IsPrint {
|
|
|
-
|
|
|
drawLeft = func(rowIndex int, value string) error {
|
|
|
|
|
|
left1Cell := fmt.Sprintf("A%d", rowIndex)
|
|
@@ -148,7 +212,7 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
|
|
|
drawRight = func(rowIndex int, value string) error {
|
|
|
right1Cell := fmt.Sprintf("F%d", rowIndex)
|
|
|
- err = b.Excel.MergeCell(b.SheetName, right1Cell, fmt.Sprintf("I%d", rowIndex))
|
|
|
+ err = b.Excel.MergeCell(b.SheetName, right1Cell, fmt.Sprintf("G%d", rowIndex))
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
@@ -159,73 +223,9 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
b.Excel.SetCellValue(b.SheetName, right1Cell, value)
|
|
|
return nil
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if b.IsPdf == "true" {
|
|
|
- drawLeft = func(rowIndex int, value string) error {
|
|
|
-
|
|
|
- left1Cell := fmt.Sprintf("A%d", rowIndex)
|
|
|
- err = b.Excel.MergeCell(b.SheetName, left1Cell, fmt.Sprintf("E%d", rowIndex))
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- err = b.Excel.SetCellStyle(b.SheetName, left1Cell, left1Cell, styleLeft)
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- b.Excel.SetCellValue(b.SheetName, left1Cell, value)
|
|
|
- return nil
|
|
|
- }
|
|
|
-
|
|
|
- drawRight = func(rowIndex int, value string) error {
|
|
|
- right1Cell := fmt.Sprintf("F%d", rowIndex)
|
|
|
- err = b.Excel.MergeCell(b.SheetName, right1Cell, fmt.Sprintf("J%d", rowIndex))
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- err = b.Excel.SetCellStyle(b.SheetName, right1Cell, right1Cell, styleRight)
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- b.Excel.SetCellValue(b.SheetName, right1Cell, value)
|
|
|
- return nil
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- if !b.Content.IsPrint {
|
|
|
- drawLeft = func(rowIndex int, value string) error {
|
|
|
-
|
|
|
- left1Cell := fmt.Sprintf("A%d", rowIndex)
|
|
|
- err = b.Excel.MergeCell(b.SheetName, left1Cell, fmt.Sprintf("B%d", rowIndex))
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- err = b.Excel.SetCellStyle(b.SheetName, left1Cell, left1Cell, styleLeft)
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- b.Excel.SetCellValue(b.SheetName, left1Cell, value)
|
|
|
- return nil
|
|
|
- }
|
|
|
-
|
|
|
- drawRight = func(rowIndex int, value string) error {
|
|
|
- right1Cell := fmt.Sprintf("C%d", rowIndex)
|
|
|
- err = b.Excel.MergeCell(b.SheetName, right1Cell, fmt.Sprintf("G%d", rowIndex))
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- err = b.Excel.SetCellStyle(b.SheetName, right1Cell, right1Cell, styleRight)
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- b.Excel.SetCellValue(b.SheetName, right1Cell, value)
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
drawLeft(b.Row, "类别:"+b.Content.Type)
|
|
@@ -284,82 +284,106 @@ func (b *ProduceBillExcel) drawTableTitle() error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if !b.Content.IsPrint {
|
|
|
-
|
|
|
- if b.IsPdf == "true" {
|
|
|
- drawCol("A", "加工项目")
|
|
|
- drawCol("B", "规格")
|
|
|
- drawCol("C", "下单数量")
|
|
|
- drawCol2("D", "单价", "元/张")
|
|
|
- drawCol("E", "预算金额")
|
|
|
- drawCol("F", "交货时间")
|
|
|
- drawCol("G", "备注")
|
|
|
- } else {
|
|
|
- drawCol("A", "加工项目")
|
|
|
- drawCol("B", "规格")
|
|
|
- drawCol("C", "下单数量")
|
|
|
- drawCol("D", "完成数量")
|
|
|
- drawCol2("E", "单价", "元/张")
|
|
|
- drawCol("F", "预算金额")
|
|
|
- drawCol("G", "实际金额")
|
|
|
- drawCol("H", "交货时间")
|
|
|
- drawCol("I", "备注")
|
|
|
- }
|
|
|
+ if b.Content.IsPrint {
|
|
|
+ drawCol("A", "加工项目")
|
|
|
+ drawCol("B", "规格")
|
|
|
+ drawCol("C", "纸张")
|
|
|
+ drawCol("D", "来纸尺寸")
|
|
|
+ drawCol("E", "印刷尺寸")
|
|
|
+ drawCol("F", "下单数量")
|
|
|
+ drawCol2("G", "单价", "元/张")
|
|
|
+ drawCol("H", "预算金额")
|
|
|
+ drawCol("I", "交货时间")
|
|
|
+ drawCol("J", "备注")
|
|
|
|
|
|
} else {
|
|
|
-
|
|
|
- if b.IsPdf == "true" {
|
|
|
- drawCol("A", "加工项目")
|
|
|
- drawCol("B", "规格")
|
|
|
- drawCol("C", "纸张")
|
|
|
- drawCol("D", "来纸尺寸")
|
|
|
- drawCol("E", "印刷尺寸")
|
|
|
- drawCol("F", "下单数量")
|
|
|
- drawCol2("G", "单价", "元/张")
|
|
|
- drawCol("H", "预算金额")
|
|
|
- drawCol("I", "交货时间")
|
|
|
- drawCol("J", "备注")
|
|
|
-
|
|
|
- } else {
|
|
|
- drawCol("A", "加工项目")
|
|
|
- drawCol("B", "规格")
|
|
|
- drawCol("C", "纸张")
|
|
|
- drawCol("D", "来纸尺寸")
|
|
|
- drawCol("E", "印刷尺寸")
|
|
|
- drawCol("F", "下单数量")
|
|
|
- drawCol("G", "完成数量")
|
|
|
- drawCol2("H", "单价", "元/张")
|
|
|
- drawCol("I", "预算金额")
|
|
|
- drawCol("J", "实际金额")
|
|
|
- drawCol("K", "交货时间")
|
|
|
- drawCol("L", "备注")
|
|
|
-
|
|
|
- }
|
|
|
+ drawCol("A", "加工项目")
|
|
|
+ drawCol("B", "规格")
|
|
|
+ drawCol("C", "下单数量")
|
|
|
+ drawCol2("D", "单价", "元/张")
|
|
|
+ drawCol("E", "预算金额")
|
|
|
+ drawCol("F", "交货时间")
|
|
|
+ drawCol("G", "备注")
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (b *ProduceBillExcel) drawTableContent() error {
|
|
|
b.Row += 2
|
|
|
var DrawRow = func(rowIndex int, values ...string) {
|
|
|
- charas := []string{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ charas := []string{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J"}
|
|
|
|
|
|
if !b.Content.IsPrint {
|
|
|
- charas = []string{"A", "B", "C", "D", "E", "F", "G", "H", "I"}
|
|
|
+ charas = []string{"A", "B", "C", "D", "E", "F", "G"}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if b.IsPdf == "true" {
|
|
|
- charas = []string{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J"}
|
|
|
-
|
|
|
- if !b.Content.IsPrint {
|
|
|
- charas = []string{"A", "B", "C", "D", "E", "F", "G"}
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
for i, c := range charas {
|
|
|
v := ""
|
|
|
if i < len(values) {
|
|
@@ -393,27 +417,34 @@ func (b *ProduceBillExcel) drawTableContent() error {
|
|
|
|
|
|
deliveryTime := produce.DeliveryTime.Local().Format("2006-01-02")
|
|
|
|
|
|
+ if b.Content.IsPrint {
|
|
|
+ DrawRow(b.Row, produce.Name, produce.Norm, produce.Paper, produce.PaperSize, produce.PrintSize, fmt.Sprintf("%d", produce.OrderCount), priceStr, budgetAmount, deliveryTime, produce.Remark)
|
|
|
+
|
|
|
+ } else {
|
|
|
+ DrawRow(b.Row, produce.Name, produce.Norm, fmt.Sprintf("%d", produce.OrderCount), priceStr, budgetAmount, deliveryTime, produce.Remark)
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
- if !b.Content.IsPrint {
|
|
|
-
|
|
|
- if b.IsPdf == "true" {
|
|
|
- DrawRow(b.Row, produce.Name, produce.Norm, fmt.Sprintf("%d", produce.OrderCount), priceStr, budgetAmount, deliveryTime, produce.Remark)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- } else {
|
|
|
- DrawRow(b.Row, produce.Name, produce.Norm, fmt.Sprintf("%d", produce.OrderCount), realCount, priceStr, budgetAmount, realPrice, deliveryTime, produce.Remark)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
- } else {
|
|
|
-
|
|
|
- if b.IsPdf == "true" {
|
|
|
- DrawRow(b.Row, produce.Name, produce.Norm, produce.Paper, produce.PaperSize, produce.PrintSize, fmt.Sprintf("%d", produce.OrderCount), priceStr, budgetAmount, deliveryTime, produce.Remark)
|
|
|
- } else {
|
|
|
- DrawRow(b.Row, produce.Name, produce.Norm, produce.Paper, produce.PaperSize, produce.PrintSize, fmt.Sprintf("%d", produce.OrderCount), realCount, priceStr, budgetAmount, realPrice, deliveryTime, produce.Remark)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
+
|
|
|
b.Row++
|
|
|
}
|
|
|
}
|
|
@@ -435,30 +466,30 @@ func (b *ProduceBillExcel) drawTableFooter() error {
|
|
|
})
|
|
|
|
|
|
sendToStartCell := fmt.Sprintf("A%d", b.Row)
|
|
|
- sendToEndCell := fmt.Sprintf("G%d", b.Row)
|
|
|
- supplierStartCell := fmt.Sprintf("H%d", b.Row)
|
|
|
- supplierEndCell := fmt.Sprintf("L%d", b.Row)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ sendToEndCell := fmt.Sprintf("E%d", b.Row)
|
|
|
+ supplierStartCell := fmt.Sprintf("F%d", b.Row)
|
|
|
+ supplierEndCell := fmt.Sprintf("J%d", b.Row)
|
|
|
|
|
|
if !b.Content.IsPrint {
|
|
|
- sendToEndCell = fmt.Sprintf("F%d", b.Row)
|
|
|
- supplierStartCell = fmt.Sprintf("G%d", b.Row)
|
|
|
- supplierEndCell = fmt.Sprintf("I%d", b.Row)
|
|
|
+ sendToEndCell = fmt.Sprintf("D%d", b.Row)
|
|
|
+ supplierStartCell = fmt.Sprintf("E%d", b.Row)
|
|
|
+ supplierEndCell = fmt.Sprintf("G%d", b.Row)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if b.IsPdf == "true" {
|
|
|
- sendToEndCell = fmt.Sprintf("E%d", b.Row)
|
|
|
- supplierStartCell = fmt.Sprintf("F%d", b.Row)
|
|
|
- supplierEndCell = fmt.Sprintf("J%d", b.Row)
|
|
|
-
|
|
|
- if !b.Content.IsPrint {
|
|
|
- sendToEndCell = fmt.Sprintf("D%d", b.Row)
|
|
|
- supplierStartCell = fmt.Sprintf("E%d", b.Row)
|
|
|
- supplierEndCell = fmt.Sprintf("G%d", b.Row)
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
b.Excel.MergeCell(b.SheetName, sendToStartCell, sendToEndCell)
|
|
|
b.Excel.SetCellStyle(b.SheetName, sendToStartCell, sendToEndCell, styleLeft)
|
|
@@ -485,39 +516,39 @@ func (b *ProduceBillExcel) drawTableSignature() error {
|
|
|
b.Excel.MergeCell(b.SheetName, billUserCellS, billUserCellE)
|
|
|
b.Excel.SetCellValue(b.SheetName, billUserCellS, "制单人:"+b.Content.UserName)
|
|
|
|
|
|
- fontNum := "H"
|
|
|
- image1s := "I"
|
|
|
- image2s := "K"
|
|
|
- image1e := "J"
|
|
|
- image2e := "L"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
- if !b.Content.IsPrint {
|
|
|
- fontNum = "E"
|
|
|
- image1s = "F"
|
|
|
- image2s = "H"
|
|
|
- image1e = "G"
|
|
|
- image2e = "I"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
- if b.IsPdf == "true" {
|
|
|
- fontNum = "F"
|
|
|
- image1s = "G"
|
|
|
- image2s = "I"
|
|
|
- image1e = "H"
|
|
|
- image2e = "J"
|
|
|
- if !b.Content.IsPrint {
|
|
|
- fontNum = "D"
|
|
|
- image1s = "E"
|
|
|
- image2s = "G"
|
|
|
- image1e = "F"
|
|
|
- image2e = "G"
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
+ fontNum := "F"
|
|
|
+ image1s := "G"
|
|
|
+ image2s := "I"
|
|
|
+ image1e := "H"
|
|
|
+ image2e := "J"
|
|
|
+ if !b.Content.IsPrint {
|
|
|
+ fontNum = "D"
|
|
|
+ image1s = "E"
|
|
|
+ image2s = "G"
|
|
|
+ image1e = "F"
|
|
|
+ image2e = "G"
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
fontCell := fmt.Sprintf("%s%d", fontNum, b.Row)
|
|
|
fontEndCell := fmt.Sprintf("%s%d", fontNum, b.Row+2)
|
|
|
|
|
@@ -589,10 +620,10 @@ func NewProduceBill(f *excelize.File) *ProduceBillExcel {
|
|
|
Signatures: make([]*model.Signature, 0),
|
|
|
}
|
|
|
|
|
|
- f.SetColWidth(b.SheetName, "A", "A", 12)
|
|
|
- f.SetColWidth(b.SheetName, "B", "K", 9.5)
|
|
|
-
|
|
|
- f.SetColWidth(b.SheetName, "L", "L", 10)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
f.SetPageMargins(b.SheetName, excelize.PageMarginTop(0), excelize.PageMarginLeft(0), excelize.PageMarginRight(0))
|
|
|
|
|
|
return b
|