This commit is contained in:
parent
8bae76a0d6
commit
2435684baf
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue