scanner in CustomerSelector.vue

This commit is contained in:
Timi
2026-09-09 17:49:37 +08:00
parent 809bfa8520
commit 8e77b114f9
17 changed files with 804 additions and 410 deletions
+2 -2
View File
@@ -48,10 +48,10 @@ async function findById(id: string): Promise<Customer | undefined> {
});
}
async function findByCode(code: string): Promise<Customer | undefined> {
async function findByCode(code: string, storeId = getCurrentStoreId()): Promise<Customer | undefined> {
return await axios.post(`${BASE_URI}/find/code`, null, {
params: {
storeId: getCurrentStoreId(),
storeId,
code
}
});