This commit is contained in:
bb_pan 2025-09-01 17:57:43 +08:00
parent 8bae76a0d6
commit 2435684baf
1 changed files with 59 additions and 38 deletions

View File

@ -109,6 +109,7 @@ const boxInfo = ref([])
const qrCode = ref('')
const maInfo = ref({})
const scanQrCodeRef = ref(null)
const isSubmit = ref(false)
// const typeId = ref('')
// const taskId = ref('')
// const maTypeName = ref('')
@ -448,6 +449,10 @@ const onHandleInbound = async () => {
})
}
})
try {
if (isSubmit.value) return
isSubmit.value = true
uni.showLoading({ title: '操作中...', mask: true })
let param = {
taskId: queryParams.value.taskId,
typeId: queryParams.value.typeId,
@ -468,6 +473,12 @@ const onHandleInbound = async () => {
uni.$emit('onUpdate')
}, 800)
}
} catch (error) {
console.log('🚀 ~ onHandleInbound ~ error:', error)
} finally {
isSubmit.value = false
uni.hideLoading()
}
}
//
@ -499,6 +510,10 @@ const onRejectOutbound = async () => {
})
}
})
try {
if (isSubmit.value) return
isSubmit.value = true
uni.showLoading({ title: '操作中...', mask: true })
let param = {
taskId: queryParams.value.taskId,
typeId: queryParams.value.typeId,
@ -519,6 +534,12 @@ const onRejectOutbound = async () => {
uni.$emit('onUpdate')
}, 800)
}
} catch (error) {
console.log('🚀 ~ onRejectOutbound ~ error:', error)
} finally {
isSubmit.value = false
uni.hideLoading()
}
}
</script>