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) {
|
||||
const element = document.getElementById("pdf");
|
||||
|
||||
|
||||
var opt = {
|
||||
margin: 0.4,
|
||||
filename: `${props.instrument.model}_${i_date()}.pdf`,
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user