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) { 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`,

View File

@ -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>

View File

@ -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>