Commit d4a3d6c2 by wusiyi

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

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