Commit 3938c266 by wusiyi

fix: 修复配货分拣打印失败也提交打单成功nug

parent 495b530e
...@@ -216,6 +216,8 @@ ...@@ -216,6 +216,8 @@
>,不占用播种墙 >,不占用播种墙
</div> </div>
<div class="box-top-item-status"> <div class="box-top-item-status">
{{ isAutoPrint }}
{{ podOrderDetailsData?.printResult }}
<span <span
v-if=" v-if="
isAutoPrint && isAutoPrint &&
...@@ -735,14 +737,18 @@ const renderItemBox = (bool: boolean) => { ...@@ -735,14 +737,18 @@ const renderItemBox = (bool: boolean) => {
if (productList.every((item) => item.power)) { if (productList.every((item) => item.power)) {
if (userStore.user?.id !== boxItem.fromUser) return if (userStore.user?.id !== boxItem.fromUser) return
// 配货分拣 非自动打单的配货区: 不打印 不打单完成; 自动打单的配货区: 打印后打单完成 // 配货分拣 非自动打单的配货区: 不打印 不打单完成; 自动打单的配货区: 打印成功后打单完成
if (props.wallType === 'sort' && !isAutoPrint.value) { if (props.wallType === 'sort' && !isAutoPrint.value) {
renderLock = false renderLock = false
return return
} }
print(data, false, () => { print(data, false, () => {
if (props.wallType === 'sort' && isAutoPrint.value) { if (
props.wallType === 'sort' &&
isAutoPrint.value &&
data.printResult === 'printSuccess'
) {
submitInspection(() => { submitInspection(() => {
getPackingData(currentCode) getPackingData(currentCode)
renderLock = false renderLock = false
......
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