|
|
@@ -143,6 +143,16 @@
|
|
|
<el-form-item label="联系电话">
|
|
|
<el-input v-model="addressForm.contactPhone" placeholder="联系电话(可选)" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="注意事项" class="form-col-span-2">
|
|
|
+ <el-input
|
|
|
+ v-model="addressForm.notes"
|
|
|
+ type="textarea"
|
|
|
+ :rows="2"
|
|
|
+ maxlength="500"
|
|
|
+ show-word-limit
|
|
|
+ placeholder="注意事项(可选,选中地址时可带入装/送货)"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="备注" class="form-col-span-2">
|
|
|
<el-input v-model="addressForm.remark" type="textarea" :rows="2" placeholder="备注(可选)" />
|
|
|
</el-form-item>
|
|
|
@@ -211,6 +221,7 @@ const addressForm = reactive({
|
|
|
lat: null as number | null,
|
|
|
contactName: '',
|
|
|
contactPhone: '',
|
|
|
+ notes: '',
|
|
|
remark: ''
|
|
|
})
|
|
|
|
|
|
@@ -262,6 +273,7 @@ function resetAddressForm() {
|
|
|
lat: null,
|
|
|
contactName: '',
|
|
|
contactPhone: '',
|
|
|
+ notes: '',
|
|
|
remark: ''
|
|
|
})
|
|
|
formRef.value?.resetFields()
|
|
|
@@ -275,6 +287,7 @@ function fillAddressForm(row: TransportAddress) {
|
|
|
lat: row.lat != null ? Number(row.lat) : null,
|
|
|
contactName: row.contactName || '',
|
|
|
contactPhone: row.contactPhone || '',
|
|
|
+ notes: row.notes || '',
|
|
|
remark: row.remark || ''
|
|
|
})
|
|
|
}
|
|
|
@@ -305,6 +318,7 @@ function buildPayload(): TransportAddressPayload {
|
|
|
lat: addressForm.lat as number,
|
|
|
contactName: addressForm.contactName.trim() || undefined,
|
|
|
contactPhone: addressForm.contactPhone.trim() || undefined,
|
|
|
+ notes: addressForm.notes.trim() || undefined,
|
|
|
status: '1',
|
|
|
remark: addressForm.remark.trim() || undefined
|
|
|
}
|