Commit 1e039d32 by wusiyi

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

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