Commit 84e5cf18 by wusiyi

fix: 修复多次调用打单完成bug

parent 6165f981
......@@ -746,11 +746,10 @@ const renderItemBox = (bool: boolean) => {
submitInspection(() => {
getPackingData(currentCode)
renderLock = false
return
})
return
}
renderLock = false
return
})
} else {
renderLock = false
......@@ -1032,6 +1031,7 @@ const submitInspection = async (callback: () => void) => {
callback && callback()
} catch (error) {
isLock.value = false
renderLock = false
productionOrderRef.value.focus()
console.error(error)
}
......@@ -1196,7 +1196,9 @@ const nextStep = async (callback: () => void) => {
) {
try {
await ElMessageBox.alert(
'当前订单验货完成并打印面单成功,是否转至已完成',
`当前订单验货完成并打印面单成功,是否转至${
props.wallType === 'sort' ? '待发货' : '已完成'
}`,
'提示',
{
confirmButtonText: '确定',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment