|
|
|
@ -121,7 +121,7 @@ |
|
|
|
> |
|
|
|
</el-switch> |
|
|
|
<span v-if="autoCalculate" style="font-size: 13px; color: #17B3A3; margin-top: 5px; display: block; font-weight: bold;"> |
|
|
|
💡 输入单包装数量后,按回车键或点击确定按钮 |
|
|
|
💡 输入单包装数量后按回车,将根据待收数量自动分配包装 |
|
|
|
</span> |
|
|
|
<span v-else style="font-size: 12px; color: #999; margin-top: 5px; display: block;"> |
|
|
|
手动输入单包装数量和包装数,然后点击"创建"按钮 |
|
|
|
@ -346,7 +346,7 @@ export default { |
|
|
|
}, |
|
|
|
handlingUnitStep() { |
|
|
|
this.processFlag = 3; |
|
|
|
this.autoCalculate = false; // 重置自动计算开关 |
|
|
|
this.autoCalculate = false; // 默认使用手动输入模式 |
|
|
|
const saved = localStorage.getItem(this.huKey); |
|
|
|
this.handlingUnit = saved ? JSON.parse(saved) : []; |
|
|
|
}, |
|
|
|
@ -362,10 +362,14 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// 获取待收数量 |
|
|
|
const qtyToReceive = parseFloat(this.recvItem.qtyToReceive) || 0; |
|
|
|
// 优先使用"此次接收数量",如果没有则使用"待收数量" |
|
|
|
let qtyToReceive = parseFloat(this.recvItem.transQty) || 0; |
|
|
|
if (qtyToReceive <= 0) { |
|
|
|
this.$message.warning('待收数量为0,无法创建HU'); |
|
|
|
qtyToReceive = parseFloat(this.recvItem.qtyToReceive) || 0; |
|
|
|
} |
|
|
|
|
|
|
|
if (qtyToReceive <= 0) { |
|
|
|
this.$message.warning('待收数量为0,无法自动计算包装'); |
|
|
|
this.hanlingItem.perQty = ''; |
|
|
|
return; |
|
|
|
} |
|
|
|
|