|
|
|
@ -599,19 +599,12 @@ Page({ |
|
|
|
console.log('✓ 售空分支执行: 只显示规格信息'); |
|
|
|
console.log('weightQuantityData设置为:', weightQuantityData); |
|
|
|
} else { |
|
|
|
// 非售空状态,正常处理规格信息,但不显示件数
|
|
|
|
console.log('× 非售空分支执行: 只显示规格信息'); |
|
|
|
console.log('输入参数: weightSpecString="', weightSpecString, '"'); |
|
|
|
// 非售空状态,使用processWeightAndQuantityData函数正确处理规格和件数信息
|
|
|
|
console.log('× 非售空分支执行: 调用processWeightAndQuantityData处理'); |
|
|
|
console.log('输入参数: weightSpecString="', weightSpecString, '", quantityString="', quantityString, '"'); |
|
|
|
|
|
|
|
weightQuantityData = processWeightAndQuantityData(weightSpecString, quantityString, ''); |
|
|
|
|
|
|
|
if (weightSpecString) { |
|
|
|
// 处理净重/规格字符串,只显示规格信息
|
|
|
|
const weightSpecArray = weightSpecString.split(/[,,、]/).map(item => item.trim()).filter(item => item); |
|
|
|
weightQuantityData = weightSpecArray.map(spec => ({ |
|
|
|
weightSpec: spec.includes('毛重') ? spec : `毛重${spec}`, |
|
|
|
quantity: '', |
|
|
|
display: spec.includes('毛重') ? spec : `毛重${spec}` |
|
|
|
})); |
|
|
|
} |
|
|
|
console.log('× 非售空分支结果:', weightQuantityData); |
|
|
|
} |
|
|
|
|
|
|
|
|