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>
This commit is contained in:
1 parent
22b92ea056
commit
9c3c53c705
2 files changed
+7
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user