|
@ -264,32 +264,60 @@ |
|
|
} else { |
|
|
} else { |
|
|
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); |
|
|
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); |
|
|
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); |
|
|
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); |
|
|
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { |
|
|
if (itemDetail.inventoryStatus != result.balance.inventoryStatus){ |
|
|
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + |
|
|
if(this.jobContent.allowModifyInventoryStatus=="TRUE"){ |
|
|
']不一致,是否继续转移?', res => { |
|
|
this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + |
|
|
if (res) { |
|
|
']不一致,是否继续转移?', res => { |
|
|
itemDetail.scaned = true; |
|
|
if (res) { |
|
|
itemDetail.handleQty = Number(result.balance.qty) ; |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
itemDetail.handleQty = Number(result.balance.qty) ; |
|
|
itemDetail.balance = result.balance; |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
itemDetail.balance.balanceQty = result.balance.qty; |
|
|
itemDetail.balance = result.balance; |
|
|
itemDetail.balance.stdPackQty = result.package.stdPackQty |
|
|
itemDetail.balance.balanceQty =Number(result.balance.qty) ; |
|
|
itemDetail.balance.stdPackUnit = result.package.stdPackUnit |
|
|
itemDetail.balance.stdPackQty = Number(result.package.stdPackQty) |
|
|
this.calcHandleQty(); |
|
|
itemDetail.balance.stdPackUnit = result.package.stdPackUnit |
|
|
} else { |
|
|
this.calcHandleQty(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.scanPopupGetFocus(); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}else { |
|
|
|
|
|
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + |
|
|
|
|
|
']不一致,不允许转移!', res => { |
|
|
this.scanPopupGetFocus(); |
|
|
this.scanPopupGetFocus(); |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} else { |
|
|
}else { |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.handleQty = Number(result.balance.qty) ; |
|
|
itemDetail.handleQty = Number(result.balance.qty) ; |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
itemDetail.balance = result.balance; |
|
|
itemDetail.balance = result.balance; |
|
|
itemDetail.balance.balanceQty = result.balance.qty; |
|
|
itemDetail.balance.balanceQty = Number(result.balance.qty); |
|
|
itemDetail.balance.stdPackQty = result.package.stdPackQty |
|
|
itemDetail.balance.stdPackQty = Number(result.package.stdPackQty) |
|
|
itemDetail.balance.stdPackUnit = result.package.stdPackUnit |
|
|
itemDetail.balance.stdPackUnit = result.package.stdPackUnit |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { |
|
|
|
|
|
// this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + |
|
|
|
|
|
// ']不一致,是否继续转移?', res => { |
|
|
|
|
|
// if (res) { |
|
|
|
|
|
// itemDetail.scaned = true; |
|
|
|
|
|
// itemDetail.handleQty = Number(result.balance.qty) ; |
|
|
|
|
|
// itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
|
|
|
// itemDetail.balance = result.balance; |
|
|
|
|
|
// itemDetail.balance.balanceQty = result.balance.qty; |
|
|
|
|
|
// itemDetail.balance.stdPackQty = result.package.stdPackQty |
|
|
|
|
|
// itemDetail.balance.stdPackUnit = result.package.stdPackUnit |
|
|
|
|
|
// this.calcHandleQty(); |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.scanPopupGetFocus(); |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } else { |
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|