diff --git a/web-admin/src/components/business/pl-plan-delivery-section/index.vue b/web-admin/src/components/business/pl-plan-delivery-section/index.vue index c6b3bb913..abca8a8a8 100644 --- a/web-admin/src/components/business/pl-plan-delivery-section/index.vue +++ b/web-admin/src/components/business/pl-plan-delivery-section/index.vue @@ -230,6 +230,7 @@ } from '@/components/business/pl-address-with-library/index.vue' import PlPlanContractMultiSelect from '@/components/business/pl-plan-contract-multi-select/index.vue' import PlPlanStopProductTable from '@/components/business/pl-plan-stop-product-table/index.vue' + import { resolveAddressNotesFill } from '@/utils/pl-address-notes-fill' import { createEmptyDeliveryForm, resolveStopDibangDefaults, @@ -336,6 +337,7 @@ } function patchDeliveryAddress(index: number, fields: PlAddressApplyPayload) { + const delivery = props.modelValue[index] const partial: Partial = { address: fields.address, lng: fields.lng, @@ -344,6 +346,10 @@ if (fields.contact !== undefined) { partial.contact = fields.contact } + const nextNotes = resolveAddressNotesFill(delivery?.notes, fields.notes) + if (nextNotes !== undefined) { + partial.notes = nextNotes + } patchDelivery(index, partial) } diff --git a/web-admin/src/components/business/pl-plan-load-section/index.vue b/web-admin/src/components/business/pl-plan-load-section/index.vue index 9dbbbd467..fa3c22205 100644 --- a/web-admin/src/components/business/pl-plan-load-section/index.vue +++ b/web-admin/src/components/business/pl-plan-load-section/index.vue @@ -161,6 +161,7 @@ } from '@/components/business/pl-address-with-library/index.vue' import PlPlanContractMultiSelect from '@/components/business/pl-plan-contract-multi-select/index.vue' import PlPlanStopProductTable from '@/components/business/pl-plan-stop-product-table/index.vue' + import { resolveAddressNotesFill } from '@/utils/pl-address-notes-fill' import { resolveStopDibangDefaults, type PlanLoadForm } from '@/utils/pl-plan-stop-form' import { isPlInternalCustomerName } from '@/utils/pl-internal-customer' import { pickBxData } from '@/utils/http/bx' @@ -241,6 +242,10 @@ if (fields.contact !== undefined) { partial.contact = fields.contact } + const nextNotes = resolveAddressNotesFill(props.modelValue.notes, fields.notes) + if (nextNotes !== undefined) { + partial.notes = nextNotes + } patch(partial) }