Commit 1e039d32 by wusiyi

fix: 尝试修复扫下一单偶发上一单不自动打单完成问题 #1001679

parent 2219553e
......@@ -531,9 +531,6 @@ const podBoxList = computed(() => {
return orderStore.podBoxList
})
const coverImage = ref<string>('')
watch(coverImage, (value) => {
console.log('🍡🍡🍡🍡🍡coverImage changed:', value)
})
let currentCode = ''
const tableRef = ref()
watch(visible, async (value: boolean) => {
......@@ -749,7 +746,6 @@ const renderItemBox = (bool: boolean) => {
renderLock = false
return
}
console.log('=======⭐⭐⭐打印=======')
print(data, false, () => {
console.log('⭐⭐⭐打印结果data.printResult', data.printResult)
......@@ -759,7 +755,6 @@ const renderItemBox = (bool: boolean) => {
isAutoPrint.value &&
data.printResult === 'printSuccess'
) {
console.log('⭐⭐⭐提交打单')
submitInspection(() => {
renderLock = false
})
......@@ -856,9 +851,12 @@ const handleSearch = () => {
}
productionOrder.value = ''
isLock.value = true
const everyPower = podOrderDetailsData.value?.productList?.every(
(item) => item.power,
)
// 尝试修复扫下一单上一单不自动打单完成问题
const everyPower =
podOrderDetailsData.value?.pickingNumber ===
podOrderDetailsData.value?.purchaseNumber
console.log('⭐⭐⭐everyPower', everyPower)
if (props.wallType === 'sort' && !isAutoPrint.value) {
getPackingData(code)
return
......@@ -871,6 +869,8 @@ const handleSearch = () => {
* notPrintSuccess 未能获取打印状态
*/
// 非配货分拣 打印成功提示;配货分拣:开启自动打单且打印成功,提交;配货分拣:不开启自动打单,不提示
console.log('⭐⭐⭐查询printResult', podOrderDetailsData.value?.printResult)
if (
podOrderDetailsData.value?.printResult === 'printSuccess' &&
(props.wallType !== 'sort' ||
......@@ -1461,7 +1461,6 @@ const handleRowClick = (row: ProductList) => {
const handleCurrentChange = (url: string) => {
if (url) {
coverImage.value = url || ''
console.log('🍉🍉🍉🍉handleCurrentChange', coverImage.value)
}
}
const warehouseId = ref<string | number>('')
......
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