|
|
@@ -305,24 +305,26 @@ const _handlerScan = (code) => {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ if (pushing.value) {
|
|
|
+ scanError()
|
|
|
+ showNotify({ type: 'danger', style: 'font-size: 30px !important;height:50px', message: '正在提交中,请稍后扫描!' });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ pushing.value = true // 请求状态锁
|
|
|
+
|
|
|
// 校验是否已扫描
|
|
|
if (list.value.some(item => item.code === code)) {
|
|
|
scanRepeat()
|
|
|
+ pushing.value = false
|
|
|
message.value = '该快递单已扫描!'
|
|
|
showNotify({ type: 'danger', style: 'font-size: 30px !important;height:50px', message: '该快递单已扫描!' });
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if (pushing.value) {
|
|
|
- scanError()
|
|
|
- showNotify({ type: 'danger', style: 'font-size: 30px !important;height:50px', message: '正在提交中,请稍后扫描!' });
|
|
|
- return
|
|
|
- }
|
|
|
- pushing.value = true // 请求状态锁
|
|
|
-
|
|
|
const exists = isDeliveryNoExists(code)
|
|
|
if (!exists) {
|
|
|
scanRepeat()
|
|
|
+ pushing.value = false
|
|
|
message.value = '该快递单已扫描!'
|
|
|
showNotify({ type: 'danger', style: 'font-size: 30px !important;height:50px', message: '该快递单已扫描!' });
|
|
|
return
|