feat(web-admin): append pound QR links in copy-to-driver text

Include multi-line public pound QR URLs after the driver link when dibang slips exist.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-09-13 09:41:41 +08:00
1 parent 5b4c1bc991
commit ab3a90c3f5
5 files changed
+58 -4

No files matched your search

@@ -10,7 +10,11 @@ import DbPoundSlipQrcodeDialog from '@/components/business/db/DbPoundSlipQrcodeD
import { useDictStore } from '@/store/modules/dict'
import { pickBxData } from '@/utils/http/bx'
import { formatPlanProductListText } from '@/utils/pl-display'
import { buildDriverSummaryFromPlan, buildDriverStopBlocksFromPlan } from '@/utils/pl-driver-summary'
import {
buildDriverSummaryFromPlan,
buildDriverStopBlocksFromPlan,
buildPoundQrcodeLinksFromInventoryRecords
} from '@/utils/pl-driver-summary'
import { buildSiteSummaryFromInventoryLinks, buildSiteStopBlocksFromPlan } from '@/utils/db-site-summary'
export function usePlPlanArrangeActions() {
@@ -125,6 +129,7 @@ export function usePlPlanArrangeActions() {
destinationNotes?: string
licensePlate?: string
driverUrl?: string
poundQrcodeLinks?: { label: string; url: string }[]
}) {
return buildDriverSummaryFromPlan({
plan: plan.value || undefined,
@@ -137,7 +142,10 @@ export function usePlPlanArrangeActions() {
products: products.value,
getUnitLabel,
stopBlocks: buildDriverStopBlocksFromPlan(plan.value, getUnitLabel),
...options
...options,
poundQrcodeLinks:
options?.poundQrcodeLinks ??
buildPoundQrcodeLinksFromInventoryRecords(dibangInventoryRecords.value)
})
}
@@ -194,6 +202,7 @@ export function usePlPlanArrangeActions() {
destinationNotes?: string
licensePlate?: string
driverUrl?: string
poundQrcodeLinks?: { label: string; url: string }[]
}) {
await navigator.clipboard.writeText(buildPlanSummaryText(options))
ElMessage.success('已复制给司机')