diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 7d4b75e..8ba0a72 100755 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -125,7 +125,9 @@ declare global { const registerPlugins_: typeof import('./src/@core/utils/plugins')['registerPlugins_'] const requiredValidator: typeof import('./src/@core/utils/validators')['requiredValidator'] const resolveComponent: typeof import('vue')['resolveComponent'] + const resolveOrderStatus: typeof import('./src/utils/order')['resolveOrderStatus'] const resolveRef: typeof import('@vueuse/core')['resolveRef'] + const resolveStatus: typeof import('./src/utils/order')['resolveStatus'] const resolveUnref: typeof import('@vueuse/core')['resolveUnref'] const resolveVuetifyTheme: typeof import('./src/@core/utils/vuetify')['resolveVuetifyTheme'] const setActivePinia: typeof import('pinia')['setActivePinia'] @@ -480,6 +482,7 @@ declare module 'vue' { readonly registerPlugins: UnwrapRef readonly requiredValidator: UnwrapRef readonly resolveComponent: UnwrapRef + readonly resolveOrderStatus: UnwrapRef readonly resolveRef: UnwrapRef readonly resolveUnref: UnwrapRef readonly resolveVuetifyTheme: UnwrapRef @@ -824,6 +827,7 @@ declare module '@vue/runtime-core' { readonly registerPlugins: UnwrapRef readonly requiredValidator: UnwrapRef readonly resolveComponent: UnwrapRef + readonly resolveOrderStatus: UnwrapRef readonly resolveRef: UnwrapRef readonly resolveUnref: UnwrapRef readonly resolveVuetifyTheme: UnwrapRef diff --git a/src/pages/obi/order/details/[id].vue b/src/pages/obi/order/details/[id].vue index 41ad0c2..1f6583b 100644 --- a/src/pages/obi/order/details/[id].vue +++ b/src/pages/obi/order/details/[id].vue @@ -33,19 +33,6 @@ const refreshData = async () => { } handleData() - -const resolveStatus = (status: string) => { - if (status === 'fulfilled') - return { text: status, color: 'success' } - else if (status === 'polled') - return { text: status, color: 'info' } - else if (status === 'intransit polled') - return { text: status, color: 'warning' } - else if (status === 'cancelled' || status === 'unfulfillable') - return { text: status, color: 'error' } - else - return { text: status, color: 'primary' } -}