component changes, non-new for instrument and calibration

This commit is contained in:
Tyrel Souza 2023-10-06 23:57:27 -04:00
parent a822acfe31
commit ad870290e9
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
6 changed files with 82 additions and 5 deletions

View File

@ -0,0 +1,36 @@
<template>
<div class="card-header">Primary Cal Device</div>
<div class="card-body">
<table class="table">
<tbody>
<tr>
<td>Serial #</td>
<td>
<input
type="text"
name="serial"
maxlength="100"
v-model="serial"
required
id="id_serial"
/>
</td>
</tr>
</tbody>
</table>
</div>
</template>
<script setup>
import { ref, defineEmits, watchEffect } from "vue";
const
serial = ref("")
const emit = defineEmits();
watchEffect(() => {
emit("calibration-form", {
serial,
});
});
</script>

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="card-header">Primary Calibration Device</div> <div class="card-header">Primary Cal Device</div>
<div class="card-body"> <div class="card-body">
<table class="table"> <table class="table">
<tbody> <tbody>

View File

@ -0,0 +1,36 @@
<template>
<div class="card-header">Instrument</div>
<div class="card-body">
<table class="table">
<tbody>
<tr>
<td>Serial #</td>
<td>
<input
type="text"
name="serial"
maxlength="100"
v-model="serial"
required
id="id_serial"
/>
</td>
</tr>
</tbody>
</table>
</div>
</template>
<script setup>
import { ref, defineEmits, watchEffect } from "vue";
const
serial = ref("")
const emit = defineEmits();
watchEffect(() => {
emit("instrument-form", {
serial,
});
});
</script>

View File

@ -14,11 +14,14 @@
</div> </div>
<div class="item card"> <div class="item card">
<NewInstrumentForm @newInstrumentForm="newInstrumentForm" /> <InstrumentForm @instrumentForm="instrumentForm" />
<!-- <NewInstrumentForm @newInstrumentForm="newInstrumentForm" /> -->
</div> </div>
<div class="item card"> <div class="item card">
<NewCalibrationDeviceForm @newCalibrationForm="newCalibrationForm" /> <CalibrationDeviceForm @calibrationForm="calibrationForm" />
<!-- <NewCalibrationDeviceForm @newCalibrationForm="newCalibrationForm" /> -->
</div> </div>
</div> </div>
</template> </template>
@ -27,7 +30,9 @@ import { ref, defineEmits } from "vue";
import CustomerForm from "./CustomerForm.vue"; import CustomerForm from "./CustomerForm.vue";
import NewInstrumentForm from "./Instrument/NewInstrumentForm.vue"; import NewInstrumentForm from "./Instrument/NewInstrumentForm.vue";
import InstrumentForm from "./Instrument/InstrumentForm.vue";
import NewCalibrationDeviceForm from "./CalibrationDevice/NewCalibrationDeviceForm.vue"; import NewCalibrationDeviceForm from "./CalibrationDevice/NewCalibrationDeviceForm.vue";
import CalibrationDeviceForm from "./CalibrationDevice/CalibrationDeviceForm.vue";
import EnvironmentForm from "./EnvironmentForm.vue"; import EnvironmentForm from "./EnvironmentForm.vue";
import UploadForm from "./UploadForm.vue"; import UploadForm from "./UploadForm.vue";

View File

@ -81,8 +81,7 @@
<script setup> <script setup>
import { ref, computed, watchEffect } from "vue"; import { ref, computed, watchEffect } from "vue";
const const report_type = ref(""),
report_type = ref(""),
files = ref([]), files = ref([]),
current_file = ref(null), current_file = ref(null),
doc = ref(); doc = ref();

View File

@ -5,6 +5,7 @@ body {
.card { .card {
border: 1px solid; border: 1px solid;
min-height: 300px;
} }
.card-header{ .card-header{
font-size: 2rem; font-size: 2rem;