feat(web-admin): add public pound QR page by inventory id

Drivers can open a standalone link that renders the shared weighbridge QR card.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-09-13 09:38:23 +08:00
1 parent d7dec04cb3
commit 5b4c1bc991
3 files changed
+162

No files matched your search

+15
View File
@@ -19,8 +19,23 @@ export interface PublicInventoryPage {
voided: boolean
}
export interface PublicPoundQr {
id: string
date?: string
businessType: string
vehicleNo: string
partnerCompany: string
product: string
specification?: string
quantity: number
quantityUnit?: string
remarks?: string
}
export const publicInventoryApi = {
getPage: (token: string) => publicPlGet<PublicInventoryPage>(`/public/db/inventory/${token}`),
getPoundQr: (inventoryId: string) =>
publicPlGet<PublicPoundQr>(`/public/db/inventory/${inventoryId}/pound-qr`),
saveFeedback: (
token: string,
data: { siteFeedbackRemark?: string; siteFeedbackImages?: string[] }