From 9c3c53c7050246f75ce587e3e5ce4ae24fd5f6a4 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Wed, 2 Sep 2026 11:59:09 +0800 Subject: [PATCH] feat(web-admin): pass address library notes through apply payload Allow load/delivery sections to receive notes when an address is selected. Co-authored-by: Cursor --- web-admin/src/api/pl/index.ts | 2 ++ .../components/business/pl-address-with-library/index.vue | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/web-admin/src/api/pl/index.ts b/web-admin/src/api/pl/index.ts index f0be669c6..386fe1d40 100644 --- a/web-admin/src/api/pl/index.ts +++ b/web-admin/src/api/pl/index.ts @@ -272,6 +272,7 @@ export interface TransportAddress { lat: number contactName?: string contactPhone?: string + notes?: string status: string remark?: string createTime: string @@ -292,6 +293,7 @@ export interface TransportAddressPayload { lat: number contactName?: string contactPhone?: string + notes?: string status?: string remark?: string } diff --git a/web-admin/src/components/business/pl-address-with-library/index.vue b/web-admin/src/components/business/pl-address-with-library/index.vue index 0b7689588..ea392764e 100644 --- a/web-admin/src/components/business/pl-address-with-library/index.vue +++ b/web-admin/src/components/business/pl-address-with-library/index.vue @@ -66,6 +66,7 @@ export type PlAddressApplyPayload = { lng: number | null lat: number | null contact?: string + notes?: string } const emit = defineEmits<{ @@ -122,6 +123,10 @@ function applyAddressRow(row: TransportAddress) { if (contactText) { payload.contact = contactText } + const notesText = (row.notes || '').trim() + if (notesText) { + payload.notes = notesText + } emitApply(payload) }