Commit d4a3d6c2 by wusiyi

fix: 修复自动打单不触发问题

parent 9a72bd10
......@@ -218,7 +218,8 @@
<div class="box-top-item-status">
<span
v-if="
isAutoPrint &&
((props.wallType === 'sort' && isAutoPrint) ||
props.wallType !== 'sort') &&
podOrderDetailsData?.pickingNumber &&
podOrderDetailsData?.purchaseNumber &&
podOrderDetailsData?.pickingNumber ===
......@@ -745,11 +746,10 @@ const renderItemBox = (bool: boolean) => {
renderLock = false
return
}
print(data, false, () => {
if (
props.wallType === 'sort' &&
isAutoPrint.value &&
((props.wallType === 'sort' && isAutoPrint.value) ||
props.wallType !== 'sort') &&
data.printResult === 'printSuccess'
) {
submitInspection(() => {
......@@ -1371,6 +1371,8 @@ const handlePrinterChange = (value: string) => {
}
const print = (data: OrderData, forcePrint = false, callback?: () => void) => {
console.log('🍡🍡🍡🍡')
const _boxIndex = boxIndex.value
if (!forcePrint && data.printResult) {
......
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