component changes, non-new for instrument and calibration
This commit is contained in:
parent
a822acfe31
commit
ad870290e9
@ -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>
|
@ -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>
|
||||||
|
36
benchtop-fe/src/components/Instrument/InstrumentForm.vue
Normal file
36
benchtop-fe/src/components/Instrument/InstrumentForm.vue
Normal 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>
|
@ -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";
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user