|
|
@@ -304,6 +304,7 @@ const _handlerScan = (code) => {
|
|
|
showNotify({ type: 'danger', style: 'font-size: 30px !important;height:50px', message: '请先扫描快递单号!' });
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
// 校验是否已扫描
|
|
|
if (list.value.some(item => item.code === code)) {
|
|
|
scanRepeat()
|
|
|
@@ -312,8 +313,12 @@ const _handlerScan = (code) => {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- // 校验是否已存在
|
|
|
- const currentTime = formatDateTime(new Date())
|
|
|
+ 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) {
|
|
|
@@ -323,19 +328,14 @@ const _handlerScan = (code) => {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if (pushing.value) {
|
|
|
- scanError()
|
|
|
- showNotify({ type: 'danger', style: 'font-size: 30px !important;height:50px', message: '正在提交中,请稍后扫描!' });
|
|
|
- return
|
|
|
- }
|
|
|
- pushing.value = true // 请求状态锁
|
|
|
let status = false
|
|
|
showLoadingToast({
|
|
|
message: '上传中...',
|
|
|
forbidClick: true,
|
|
|
closeToast: status
|
|
|
});
|
|
|
-
|
|
|
+ // 校验是否已存在
|
|
|
+ const currentTime = formatDateTime(new Date())
|
|
|
message.value = ''
|
|
|
const dto = {
|
|
|
deliveryNo: code,
|