Просмотр исходного кода

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 <cursoragent@cursor.com>
zlwu 2 месяцев назад
Родитель
Сommit
9c3c53c705

+ 2 - 0
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
 }

+ 5 - 0
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)
 }