sparkles: 全部重扫功能
This commit is contained in:
parent
c9537f5f04
commit
edb74d7bf3
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<a-button type="primary" @click="beiginScan">开始扫码</a-button>
|
||||
<a-button type="primary" danger style="left: 20px">重新扫码</a-button>
|
||||
<a-button type="primary" danger style="left: 20px" @click="clearScanData">全部重扫</a-button>
|
||||
<a-input
|
||||
ref="snInput"
|
||||
v-model:value="value"
|
||||
@ -205,4 +205,14 @@
|
||||
value.value = ''
|
||||
}
|
||||
}
|
||||
|
||||
// 清空扫码数据
|
||||
const clearScanData = () => {
|
||||
const $table = applyDetailTableRef.value
|
||||
if ($table) {
|
||||
$table.remove()
|
||||
snListCache.value = []
|
||||
remainderValue.value = 0
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user