From f21a7298feb98e0eb00347da5b580371cb968b22 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 31 May 2024 10:58:44 -0500 Subject: [PATCH] Optionally allow decimal quantities for receiving --- src/components/numeric-input/NumericInput.vue | 152 ++++++++++++++++++ src/components/numeric-input/index.js | 28 ++++ src/components/receiving/ByjoveReceiving.vue | 19 ++- 3 files changed, 195 insertions(+), 4 deletions(-) create mode 100644 src/components/numeric-input/NumericInput.vue create mode 100644 src/components/numeric-input/index.js diff --git a/src/components/numeric-input/NumericInput.vue b/src/components/numeric-input/NumericInput.vue new file mode 100644 index 0000000..7bdef1b --- /dev/null +++ b/src/components/numeric-input/NumericInput.vue @@ -0,0 +1,152 @@ + + + diff --git a/src/components/numeric-input/index.js b/src/components/numeric-input/index.js new file mode 100644 index 0000000..fa116e7 --- /dev/null +++ b/src/components/numeric-input/index.js @@ -0,0 +1,28 @@ +// Import vue component +import NumericInput from './NumericInput.vue' + +// Declare install function executed by Vue.use() +export function install(Vue) { + if (install.installed) return; + install.installed = true; + Vue.component('NumericInput', NumericInput); +} + +// Create module definition for Vue.use() +const plugin = { + install, +}; + +// Auto-install when vue is found (eg. in browser via