Commit a0e454b5 by wusiyi

fix: 添加日志以处理线上问题

parent ee6404ae
...@@ -531,6 +531,9 @@ const podBoxList = computed(() => { ...@@ -531,6 +531,9 @@ 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) => {
...@@ -746,12 +749,17 @@ const renderItemBox = (bool: boolean) => { ...@@ -746,12 +749,17 @@ const renderItemBox = (bool: boolean) => {
renderLock = false renderLock = false
return return
} }
console.log('=======⭐⭐⭐打印=======')
print(data, false, () => { print(data, false, () => {
console.log('⭐⭐⭐打印结果data.printResult', data.printResult)
if ( if (
((props.wallType === 'sort' && isAutoPrint.value) || ((props.wallType === 'sort' && isAutoPrint.value) ||
props.wallType !== 'sort') && props.wallType !== 'sort') &&
data.printResult === 'printSuccess' data.printResult === 'printSuccess'
) { ) {
console.log('⭐⭐⭐提交打单')
submitInspection(() => { submitInspection(() => {
renderLock = false renderLock = false
}) })
...@@ -1043,6 +1051,7 @@ const getPackingData = async (code: string) => { ...@@ -1043,6 +1051,7 @@ const getPackingData = async (code: string) => {
// 提交打单 // 提交打单
const submitInspection = async (callback: () => void) => { const submitInspection = async (callback: () => void) => {
const factoryNo = userStore.user?.factory.id const factoryNo = userStore.user?.factory.id
console.log('⭐⭐⭐提交打单factoryNo', factoryNo)
if (!factoryNo) { if (!factoryNo) {
return return
} }
......
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