Align desktop UI with mobile shop flows and polish navigation
This commit is contained in:
@@ -6,6 +6,7 @@ import type { AgentProfileDto } from '@/services/agentApi'
|
||||
import {
|
||||
completeReminder as apiCompleteReminder,
|
||||
createAgentCustomer,
|
||||
updateAgentCustomer,
|
||||
createMeetingReport,
|
||||
createReminder as apiCreateReminder,
|
||||
fetchAgentCustomerDetail,
|
||||
@@ -161,6 +162,13 @@ export const useCrmStore = defineStore('crm', () => {
|
||||
return createAgentCustomer(body)
|
||||
}
|
||||
|
||||
async function updateCustomer(
|
||||
id: string,
|
||||
body: Parameters<typeof createAgentCustomer>[0],
|
||||
) {
|
||||
return updateAgentCustomer(id, body)
|
||||
}
|
||||
|
||||
async function loadReminders(filter?: string) {
|
||||
reminders.value = (await fetchReminders(filter)) as CrmReminder[]
|
||||
return reminders.value
|
||||
@@ -203,6 +211,7 @@ export const useCrmStore = defineStore('crm', () => {
|
||||
loadCustomerDetail,
|
||||
submitMeeting,
|
||||
registerCustomer,
|
||||
updateCustomer,
|
||||
loadReminders,
|
||||
loadReminderDetail,
|
||||
markReminderComplete,
|
||||
|
||||
Reference in New Issue
Block a user