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:
1 parent
d7dec04cb3
commit
5b4c1bc991
3 files changed
+162
No files matched your search
@@ -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[] }
|
||||
|
||||
Reference in new issue
Block a user