sparkles: 全部重扫功能

This commit is contained in:
my_ong 2024-12-19 14:49:54 +08:00
parent c9537f5f04
commit edb74d7bf3

View File

@ -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>