|
|
@@ -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<PlanDeliveryForm> = {
|
|
|
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)
|
|
|
}
|
|
|
|