|
@@ -74,6 +74,7 @@ func DownLoadPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
f.SetDefaultFont("宋体")
|
|
|
|
|
|
//
|
|
|
+ offset := 0
|
|
|
for _, mat := range curComp.Mats {
|
|
|
// 采购单
|
|
|
_purchaseId := mat.BillId
|
|
@@ -88,8 +89,10 @@ func DownLoadPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
purchaseExcel := NewPurchaseBill(f)
|
|
|
purchaseExcel.Content = &purchase
|
|
|
//设置对应的数据
|
|
|
+ purchaseExcel.Offset = offset
|
|
|
purchaseExcel.Draws()
|
|
|
- purchaseExcel.Offset += 15
|
|
|
+
|
|
|
+ offset += 15
|
|
|
}
|
|
|
}
|
|
|
if len(mat.Crafts) > 0 {
|
|
@@ -107,8 +110,10 @@ func DownLoadPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
produceExcel := NewProduceBill(f)
|
|
|
produceExcel.Content = &produce
|
|
|
//设置对应的数据
|
|
|
+ produceExcel.Offset = offset
|
|
|
produceExcel.Draws()
|
|
|
- produceExcel.Offset += 15
|
|
|
+
|
|
|
+ offset += 15
|
|
|
}
|
|
|
|
|
|
}
|