@@ -148,7 +148,6 @@ func (b *ProduceBillExcel) drawTableTitle() error {
b.Excel.SetCellValue(b.SheetName, left2Cell, value2)
return nil
}
-
drawCol("A", "加工项目")
drawCol("B", "规格")
drawCol("C", "纸张")
@@ -201,7 +200,9 @@ func (b *ProduceBillExcel) drawTableContent() error {
b.FormatToEmpty(&realPrice)
deliveryTime := produce.DeliveryTime.Local().Format("2006-01-02")
+
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++
@@ -15,6 +15,24 @@ import (
"go.mongodb.org/mongo-driver/bson/primitive"
)
+var ExcleColNum map[int]string = map[int]string{
+ 0: "A",
+ 1: "B",
+ 2: "C",
+ 3: "D",
+ 4: "E",
+ 5: "F",
+ 6: "G",
+ 7: "H",
+ 8: "I",
+ 9: "J",
+ 10: "K",
+ 11: "L",
+ 12: "M",
+ 13: "N",
+ 14: "O",
+}
var SignatureDir string = "https://www.3dqueen.cloud/box/v1/boxcost/public/"
// 去重相邻元素
@@ -149,6 +149,8 @@ type ProduceBill struct {
// 序号
SerialNumber string `bson:"serialNumber,omitempty" json:"serialNumber"`
+ IsPrint bool `bson:"isPrint,omitempty" json:"isPrint"`
// 成品采购单据