Commit 84e5cf18 by wusiyi

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

parent 6165f981
...@@ -746,11 +746,10 @@ const renderItemBox = (bool: boolean) => { ...@@ -746,11 +746,10 @@ const renderItemBox = (bool: boolean) => {
submitInspection(() => { submitInspection(() => {
getPackingData(currentCode) getPackingData(currentCode)
renderLock = false renderLock = false
return
}) })
return
} }
renderLock = false renderLock = false
return
}) })
} else { } else {
renderLock = false renderLock = false
...@@ -1032,6 +1031,7 @@ const submitInspection = async (callback: () => void) => { ...@@ -1032,6 +1031,7 @@ const submitInspection = async (callback: () => void) => {
callback && callback() callback && callback()
} catch (error) { } catch (error) {
isLock.value = false isLock.value = false
renderLock = false
productionOrderRef.value.focus() productionOrderRef.value.focus()
console.error(error) console.error(error)
} }
...@@ -1196,7 +1196,9 @@ const nextStep = async (callback: () => void) => { ...@@ -1196,7 +1196,9 @@ const nextStep = async (callback: () => void) => {
) { ) {
try { try {
await ElMessageBox.alert( await ElMessageBox.alert(
'当前订单验货完成并打印面单成功,是否转至已完成', `当前订单验货完成并打印面单成功,是否转至${
props.wallType === 'sort' ? '待发货' : '已完成'
}`,
'提示', '提示',
{ {
confirmButtonText: '确定', 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