diff --git a/spaces/pages/customers.vue b/spaces/pages/customers.vue deleted file mode 100644 index 0f0d8e0..0000000 --- a/spaces/pages/customers.vue +++ /dev/null @@ -1,291 +0,0 @@ - - - - - \ No newline at end of file diff --git a/spaces/pages/customers/[mode]/[[id]].vue b/spaces/pages/customers/[mode]/[[id]].vue new file mode 100644 index 0000000..af9ca19 --- /dev/null +++ b/spaces/pages/customers/[mode]/[[id]].vue @@ -0,0 +1,283 @@ + + + + + \ No newline at end of file diff --git a/spaces/pages/customers/index.vue b/spaces/pages/customers/index.vue new file mode 100644 index 0000000..b30c2f7 --- /dev/null +++ b/spaces/pages/customers/index.vue @@ -0,0 +1,49 @@ + + + + + \ No newline at end of file diff --git a/spaces/stores/data.ts b/spaces/stores/data.ts index e8b7fee..0c20fc3 100644 --- a/spaces/stores/data.ts +++ b/spaces/stores/data.ts @@ -120,6 +120,7 @@ export const useDataStore = defineStore('data', { movementsBySpace: (state) => (spaceId:number) => state.movements.filter(move => move.spaceId === spaceId), getProductById: (state) => (productId:number) => state.products.find(product => product.id === productId), getProjectById: (state) => (projectId:number) => state.projects.find(project => project.id === projectId), + getCustomerById: (state) => (customerId:number) => state.customers.find(customer => customer.id === customerId), getFormSubmitsWithLabelProp: (state) => (state.formSubmits.map(submit => {return{...submit, label: submit.id}})), getResources: (state) => { return [