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>
<div class="card-header">Primary Calibration Device</div>
<div class="card-header">Primary Cal Device</div>
<div class="card-body">
<table class="table">
<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 class="item card">
<NewInstrumentForm @newInstrumentForm="newInstrumentForm" />
<InstrumentForm @instrumentForm="instrumentForm" />
<!-- <NewInstrumentForm @newInstrumentForm="newInstrumentForm" /> -->
</div>
<div class="item card">
<NewCalibrationDeviceForm @newCalibrationForm="newCalibrationForm" />
<CalibrationDeviceForm @calibrationForm="calibrationForm" />
<!-- <NewCalibrationDeviceForm @newCalibrationForm="newCalibrationForm" /> -->
</div>
</div>
</template>
@ -27,7 +30,9 @@ import { ref, defineEmits } from "vue";
import CustomerForm from "./CustomerForm.vue";
import NewInstrumentForm from "./Instrument/NewInstrumentForm.vue";
import InstrumentForm from "./Instrument/InstrumentForm.vue";
import NewCalibrationDeviceForm from "./CalibrationDevice/NewCalibrationDeviceForm.vue";
import CalibrationDeviceForm from "./CalibrationDevice/CalibrationDeviceForm.vue";
import EnvironmentForm from "./EnvironmentForm.vue";
import UploadForm from "./UploadForm.vue";

View File

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

View File

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