Browse Source

Merge branch 'develop' of http://101.201.121.115:3000/leo/LAPP_Acura_MES_Backend

fix_dashboard V1.2.10
zhangxin 2 years ago
parent
commit
09fac0b077
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      services/jit/implments/PackOrder.service.impl.go

+ 3
- 2
services/jit/implments/PackOrder.service.impl.go View File

@ -879,12 +879,14 @@ func (impl *PackOrderServiceImplement) ScanBarcode(user *global.User, barcode st
} }
var tempMatchSign = true var tempMatchSign = true
for partId, qty := range packOrderItemMap { for partId, qty := range packOrderItemMap {
tempQty, exist := template.PartIdMap[partId] tempQty, exist := template.PartIdMap[partId]
if !exist { if !exist {
tempMatchSign = false tempMatchSign = false
break break
} }
if tempQty > qty {
if tempQty < qty {
tempMatchSign = false tempMatchSign = false
break break
} }
@ -893,7 +895,6 @@ func (impl *PackOrderServiceImplement) ScanBarcode(user *global.User, barcode st
tempMatchLi = append(tempMatchLi, template) tempMatchLi = append(tempMatchLi, template)
} }
} }
if len(matchLi) == 1 { if len(matchLi) == 1 {
// 当前包装单之前没有完全匹配到且只匹配到1个包装模板 现在只匹配到一个包装模板 进行关包处理 // 当前包装单之前没有完全匹配到且只匹配到1个包装模板 现在只匹配到一个包装模板 进行关包处理
template := matchLi[0] template := matchLi[0]


Loading…
Cancel
Save