closer to working

This commit is contained in:
Tyrel Souza 2024-07-05 00:06:32 -04:00
parent 098b616db2
commit 450c9ec991
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
3 changed files with 9 additions and 5 deletions

View File

@ -198,7 +198,6 @@ const exportToPDF = () => {
if (props.upload !== undefined && props.upload.files.length > 0) {
const element = document.getElementById("pdf");
var opt = {
margin: 0.4,
filename: `${props.instrument.model}_${i_date()}.pdf`,

View File

@ -37,6 +37,7 @@
</div>
<div class="right">
<!-- these props don't recalculate -->
<PDF
:upload="upload_form_data"
:customer="customer_form_data"
@ -121,6 +122,8 @@ const emits = defineEmits([
"showNewInstrument",
"showNewCalibration",
]);
</script>
<style scoped>

View File

@ -152,11 +152,13 @@ const readFile = ($event) => {
doc.value.value = null;
};
const emit = defineEmits();
const emit = defineEmits([
"upload-form",
]);
watchEffect(() => {
emit("uploadForm", {
report_type,
files,
emit("upload-form", {
report_type: report_type,
files: files,
});
});
</script>