diff --git a/benchtop-fe/package-lock.json b/benchtop-fe/package-lock.json index 1434980..bbbb888 100644 --- a/benchtop-fe/package-lock.json +++ b/benchtop-fe/package-lock.json @@ -12,8 +12,7 @@ "@vuepic/vue-datepicker": "^7.0.0", "vls": "^0.8.5", "volar-service-vetur": "^0.0.13", - "vue": "^3.3.4", - "vue-upload-component": "^3.1.8" + "vue": "^3.3.4" }, "devDependencies": { "@vitejs/plugin-vue": "^4.2.3", @@ -2513,11 +2512,6 @@ "eslint": ">=6.0.0" } }, - "node_modules/vue-upload-component": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/vue-upload-component/-/vue-upload-component-3.1.8.tgz", - "integrity": "sha512-8LHCrgmEZPg+1hbkKjQgMce2uasmGLEnIsLE8YG+vNyfNDuaQA71T+5t6kdDSG/szeh+E8mjb26uEd9WkVSFtg==" - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", diff --git a/benchtop-fe/package.json b/benchtop-fe/package.json index 4d6ecb1..9cc46a5 100644 --- a/benchtop-fe/package.json +++ b/benchtop-fe/package.json @@ -13,8 +13,7 @@ "@vuepic/vue-datepicker": "^7.0.0", "vls": "^0.8.5", "volar-service-vetur": "^0.0.13", - "vue": "^3.3.4", - "vue-upload-component": "^3.1.8" + "vue": "^3.3.4" }, "devDependencies": { "@vitejs/plugin-vue": "^4.2.3", diff --git a/benchtop-fe/public/funky-lines.webp b/benchtop-fe/public/funky-lines.webp new file mode 100644 index 0000000..9385220 Binary files /dev/null and b/benchtop-fe/public/funky-lines.webp differ diff --git a/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue b/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue index abae57e..f204175 100644 --- a/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue +++ b/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue @@ -3,49 +3,93 @@
- - - - - - - - - - - - + + + + + + + + + + + + - - - - + + + +

Calibration Date

- -

Calibration Due Date

- -
Model - -
Serial # - -
+

Calibration Date

+ +
+

Calibration Due Date

+ +
Model + +
Serial # + +
Cert ID - -
Cert ID + +
\ No newline at end of file +import VueDatePicker from "@vuepic/vue-datepicker"; +import "@vuepic/vue-datepicker/dist/main.css"; + +const + model = ref(""), + serial = ref(""), + cert_id = ref(""), + due_date = ref(""), + date = ref("") + +const flow = ref(["year", "month", "calendar"]); + +const emit = defineEmits(); +watchEffect(() => { + emit("new-calibration-form", { + model, + serial, + cert_id, + due_date, + date, + }); +}); + diff --git a/benchtop-fe/src/components/CustomerForm.vue b/benchtop-fe/src/components/CustomerForm.vue index 125ee24..aee8b30 100644 --- a/benchtop-fe/src/components/CustomerForm.vue +++ b/benchtop-fe/src/components/CustomerForm.vue @@ -34,10 +34,21 @@ \ No newline at end of file diff --git a/benchtop-fe/src/components/EnvironmentForm.vue b/benchtop-fe/src/components/EnvironmentForm.vue index de7e39a..8d3de13 100644 --- a/benchtop-fe/src/components/EnvironmentForm.vue +++ b/benchtop-fe/src/components/EnvironmentForm.vue @@ -6,14 +6,14 @@ Accuracy - + - Barometric Pressure (mbar) + Barometric Pressure (psi) - + @@ -24,7 +24,7 @@ - Humidity + Humidity (%RH) @@ -35,10 +35,21 @@ \ No newline at end of file diff --git a/benchtop-fe/src/components/Instrument/NewInstrumentForm.vue b/benchtop-fe/src/components/Instrument/NewInstrumentForm.vue index 3f14a7a..4390cc9 100644 --- a/benchtop-fe/src/components/Instrument/NewInstrumentForm.vue +++ b/benchtop-fe/src/components/Instrument/NewInstrumentForm.vue @@ -3,65 +3,121 @@
- - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +

Calibration Date

- -

Calibration Due Date

- -
Model - -
Serial Number - -
Channel - -
Transducer Model - -
Transducer Span - -
+

Calibration Date

+ +
+

Calibration Due Date

+ +
Model + +
Serial Number + +
Channel + +
Transducer Model + +
Transducer Span + +
\ No newline at end of file +const + channel = ref(""), + serial_number = ref(""), + model = ref(""), + transducer_model = ref(""), + transducer_span = ref(""), + due_date = ref(""), + date = ref(""), + flow = ["year", "month", "calendar"] + +const emit = defineEmits(); +watchEffect(() => { + emit("new-instrument-form", { + channel, + serial_number, + model, + transducer_model, + transducer_span, + due_date, + date, + }); +}); + diff --git a/benchtop-fe/src/components/Sheet.vue b/benchtop-fe/src/components/Sheet.vue index 286ddb8..a48d686 100644 --- a/benchtop-fe/src/components/Sheet.vue +++ b/benchtop-fe/src/components/Sheet.vue @@ -7,19 +7,18 @@
- +
- +
- +
- +
-
@@ -32,12 +31,51 @@ import NewCalibrationDeviceForm from "./CalibrationDevice/NewCalibrationDeviceFo import EnvironmentForm from "./EnvironmentForm.vue"; import UploadForm from "./UploadForm.vue"; -const upload_form_data = ref(); +const + upload_form_data = ref(), + calibration_form_data = ref(), + customer_form_data = ref(), + environment_form_data = ref(), + new_instrument_form_data = ref(), + instrument_form_data = ref(), + new_calibration_form_data = ref() + const uploadForm = (form) => { upload_form_data.value = form; -} +}; +const customerForm = (form) => { + customer_form_data.value = form; +}; -const emits = defineEmits(["uploadForm"]); +const environmentForm = (form) => { + environment_form_data.value = form; +}; + +const newInstrumentForm = (form) => { + new_instrument_form_data.value = form; +}; + +const instrumentForm = (form) => { + instrument_form_data.value = form; +}; + +const newCalibrationForm = (form) => { + new_calibration_form_data.value = form; +}; + +const calibrationForm = (form) => { + calibration_form_data.value = form; +}; + +const emits = defineEmits([ + "uploadForm", + "customerForm", + "environmentForm", + "instrumentForm", + "newInstrumentForm", + "calibrationForm", + "newCalibrationForm", +]); diff --git a/benchtop-fe/src/components/UploadForm.vue b/benchtop-fe/src/components/UploadForm.vue index d5acf60..3172ea2 100644 --- a/benchtop-fe/src/components/UploadForm.vue +++ b/benchtop-fe/src/components/UploadForm.vue @@ -81,10 +81,11 @@ \ No newline at end of file diff --git a/benchtop-fe/src/style.css b/benchtop-fe/src/style.css index cbec394..4539eb0 100644 --- a/benchtop-fe/src/style.css +++ b/benchtop-fe/src/style.css @@ -1,5 +1,6 @@ body { margin: 1rem; + background: url("/public/funky-lines.webp") } .card { @@ -7,6 +8,9 @@ body { } .card-header{ font-size: 2rem; + color:black; + font-weight: bold; + } .container { @@ -15,7 +19,7 @@ body { align-content: space-between; /* Your container needs a fixed height, and it * needs to be taller than your tallest column. */ - height: 1300px; + height: 1200px; border-radius: 3px; counter-reset: items; @@ -34,7 +38,7 @@ body { 0 8px 8px rgba(0,90,250,0.05), 0 16px 16px rgba(0,90,250,0.05); color: #fff; - padding: 15px; + /* padding: 15px; */ box-sizing: border-box; } .item::before { @@ -53,4 +57,6 @@ body { width: 0; order: 2; } -h3 { text-align: center; } \ No newline at end of file +h3 { + text-align: center; +} \ No newline at end of file