closer to working
This commit is contained in:
parent
098b616db2
commit
450c9ec991
@ -198,7 +198,6 @@ const exportToPDF = () => {
|
|||||||
if (props.upload !== undefined && props.upload.files.length > 0) {
|
if (props.upload !== undefined && props.upload.files.length > 0) {
|
||||||
const element = document.getElementById("pdf");
|
const element = document.getElementById("pdf");
|
||||||
|
|
||||||
|
|
||||||
var opt = {
|
var opt = {
|
||||||
margin: 0.4,
|
margin: 0.4,
|
||||||
filename: `${props.instrument.model}_${i_date()}.pdf`,
|
filename: `${props.instrument.model}_${i_date()}.pdf`,
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
|
<!-- these props don't recalculate -->
|
||||||
<PDF
|
<PDF
|
||||||
:upload="upload_form_data"
|
:upload="upload_form_data"
|
||||||
:customer="customer_form_data"
|
:customer="customer_form_data"
|
||||||
@ -121,6 +122,8 @@ const emits = defineEmits([
|
|||||||
"showNewInstrument",
|
"showNewInstrument",
|
||||||
"showNewCalibration",
|
"showNewCalibration",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@ -152,11 +152,13 @@ const readFile = ($event) => {
|
|||||||
doc.value.value = null;
|
doc.value.value = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
const emit = defineEmits();
|
const emit = defineEmits([
|
||||||
|
"upload-form",
|
||||||
|
]);
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
emit("uploadForm", {
|
emit("upload-form", {
|
||||||
report_type,
|
report_type: report_type,
|
||||||
files,
|
files: files,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user