Browse Source

导出模板

fix_import11
娄文智 3 years ago
parent
commit
2de7922d7b
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      services/ap/implments/Balance.service.impl.go

+ 5
- 3
services/ap/implments/Balance.service.impl.go View File

@ -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)
}


Loading…
Cancel
Save