|
|
@ -3391,7 +3391,7 @@ func (impl *BalanceServiceImplement) MpsPlanExport(user *global.User, CustArtSto |
|
|
|
artIdMap := make(map[string]interface{}) |
|
|
|
demandKeyLi := make([]interface{}, 0) |
|
|
|
for index, sorKey := range CustArtStockItem.SortKeys { |
|
|
|
if index >= 11 { |
|
|
|
if index >= 6 { |
|
|
|
demandKeyLi = append(demandKeyLi, sorKey) |
|
|
|
} |
|
|
|
} |
|
|
@ -3525,7 +3525,9 @@ func (impl *BalanceServiceImplement) MpsPlanExport(user *global.User, CustArtSto |
|
|
|
} |
|
|
|
} |
|
|
|
row := make([]interface{}, 0, len(titleLi)) |
|
|
|
row = append(row, item.ArtId, item.Desc, item.OpeningInventory, item.OutSourcingQty, item.IndependentDemandQty, item.WipQty, "需求量") |
|
|
|
|
|
|
|
|
|
|
|
row = append(row, item.ArtId, item.Desc, item.OpeningInventory, item.OutSourcingQty, item.IndependentDemandQty, item.WipQty,item.OutsourcingCriticalWip,item.FgCriticalWip,item.SfgWip,item.OurtsourcingWip,item.SFGStockQty, "需求量") |
|
|
|
for _, demandQty := range item.DemandQtyLi { |
|
|
|
row = append(row, demandQty.Qty) |
|
|
|
} |
|
|
@ -3538,7 +3540,7 @@ func (impl *BalanceServiceImplement) MpsPlanExport(user *global.User, CustArtSto |
|
|
|
} |
|
|
|
rowIndex++ |
|
|
|
row = make([]interface{}, 0, len(titleLi)) |
|
|
|
row = append(row, "", "", "", "", "", "", "生产量") |
|
|
|
row = append(row, "", "", "", "", "", "","", "", "", "", "", "生产量") |
|
|
|
for _, productQty := range item.ProductQtyLi { |
|
|
|
row = append(row, productQty.Qty) |
|
|
|
} |
|
|
|