|
@@ -152,7 +152,7 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
}
|
|
|
b.Excel.SetCellValue(b.SheetName, left1Cell, value)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:I"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:I"))})
|
|
|
return nil
|
|
|
}
|
|
|
|
|
@@ -183,7 +183,7 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
}
|
|
|
b.Excel.SetCellValue(b.SheetName, left1Cell, value)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:L"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:L"))})
|
|
|
return nil
|
|
|
}
|
|
|
|
|
@@ -201,7 +201,7 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
}
|
|
|
b.Excel.SetCellValue(b.SheetName, left1Cell, value)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:F"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:F"))})
|
|
|
return nil
|
|
|
}
|
|
|
|
|
@@ -232,7 +232,7 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
}
|
|
|
b.Excel.SetCellValue(b.SheetName, left1Cell, value)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:H"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:H"))})
|
|
|
return nil
|
|
|
}
|
|
|
if b.Content.IsLam {
|
|
@@ -249,7 +249,7 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
}
|
|
|
b.Excel.SetCellValue(b.SheetName, left1Cell, value)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:F"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:F"))})
|
|
|
return nil
|
|
|
}
|
|
|
|
|
@@ -280,7 +280,7 @@ func (b *ProduceBillExcel) drawSubTitles() error {
|
|
|
}
|
|
|
b.Excel.SetCellValue(b.SheetName, left1Cell, value)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:I"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{rowIndex: getRowHeight(value, b.getRangeWidth("A:I"))})
|
|
|
return nil
|
|
|
}
|
|
|
|
|
@@ -534,16 +534,16 @@ func (b *ProduceBillExcel) drawSupplierRemark() error {
|
|
|
|
|
|
sendToEndCell := fmt.Sprintf("L%d", b.Row)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{b.Row: getRowHeight("供应商备注:"+b.Content.SupplierRemark, b.getRangeWidth("A:L"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{b.Row: getRowHeight("供应商备注:"+b.Content.SupplierRemark, b.getRangeWidth("A:L"))})
|
|
|
if !b.Content.IsPrint {
|
|
|
sendToEndCell = fmt.Sprintf("H%d", b.Row)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{b.Row: getRowHeight("供应商备注:"+b.Content.SupplierRemark, b.getRangeWidth("A:H"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{b.Row: getRowHeight("供应商备注:"+b.Content.SupplierRemark, b.getRangeWidth("A:H"))})
|
|
|
|
|
|
if b.Content.IsLam {
|
|
|
sendToEndCell = fmt.Sprintf("I%d", b.Row)
|
|
|
// 设置行高
|
|
|
- b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{b.Row: getRowHeight("供应商备注:"+b.Content.SupplierRemark, b.getRangeWidth("A:I"), 18)})
|
|
|
+ b.RowsHeightArray = append(b.RowsHeightArray, map[int]float64{b.Row: getRowHeight("供应商备注:"+b.Content.SupplierRemark, b.getRangeWidth("A:I"))})
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -627,8 +627,6 @@ func (b *ProduceBillExcel) drawTableSignature() error {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- b.Excel.SetRowHeight(b.SheetName, b.Row, 21)
|
|
|
-
|
|
|
return nil
|
|
|
}
|
|
|
|