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>
|
||||
<div class="card-header">Primary Calibration Device</div>
|
||||
<div class="card-header">Primary Cal Device</div>
|
||||
<div class="card-body">
|
||||
<table class="table">
|
||||
<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 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";
|
||||
|
||||
|
@ -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();
|
||||
|
@ -5,6 +5,7 @@ body {
|
||||
|
||||
.card {
|
||||
border: 1px solid;
|
||||
min-height: 300px;
|
||||
}
|
||||
.card-header{
|
||||
font-size: 2rem;
|
||||
|
Loading…
Reference in New Issue
Block a user