diff --git a/src/views/equipement/standard/checkData/detail.vue b/src/views/equipement/standard/checkData/detail.vue index 55435fd..42053f7 100644 --- a/src/views/equipement/standard/checkData/detail.vue +++ b/src/views/equipement/standard/checkData/detail.vue @@ -255,7 +255,7 @@ } listQueryJobInstruction.value.id = StandardId // 标准装置id getJobInstructionList(listQueryJobInstruction.value).then((response) => { - technologyFile.value = response.data.rows.map((item: { pdfUrl: string }) => item.pdfUrl) + technologyFile.value = response.data.rows.filter((i: { pdfUrl: string }) => i.pdfUrl).map((item: { pdfUrl: string }) => item.pdfUrl) }) } @@ -1107,7 +1107,7 @@
- + diff --git a/src/views/equipement/standard/checkData/detail.vue b/src/views/equipement/standard/checkData/detail.vue index 55435fd..42053f7 100644 --- a/src/views/equipement/standard/checkData/detail.vue +++ b/src/views/equipement/standard/checkData/detail.vue @@ -255,7 +255,7 @@ } listQueryJobInstruction.value.id = StandardId // 标准装置id getJobInstructionList(listQueryJobInstruction.value).then((response) => { - technologyFile.value = response.data.rows.map((item: { pdfUrl: string }) => item.pdfUrl) + technologyFile.value = response.data.rows.filter((i: { pdfUrl: string }) => i.pdfUrl).map((item: { pdfUrl: string }) => item.pdfUrl) }) } @@ -1107,7 +1107,7 @@
- + diff --git a/src/views/resource/customer/examine/approvedDetail.vue b/src/views/resource/customer/examine/approvedDetail.vue index 89acb2f..99b9472 100644 --- a/src/views/resource/customer/examine/approvedDetail.vue +++ b/src/views/resource/customer/examine/approvedDetail.vue @@ -5,8 +5,9 @@ import { exportFile } from '@/utils/exportUtils' import { printPdf } from '@/utils/printUtils' import { getBase64 } from '@/utils/download' -import { getStream } from '@/api/resource/examine' -import { getPdfStream } from '@/api/file' +import FilterCustomerStaff from '@/views/resource/common/filterCustomerStaff.vue' +import { getStream, sendTo } from '@/api/resource/examine' + const infoId = ref('') // id const $route = useRoute() const $router = useRouter() @@ -50,8 +51,8 @@ lock: true, text: '加载中...', background: 'rgba(255, 255, 255, 0.6)', - }); - ($route.query.examineFormFile ? getPdfStream($route.query.examineFormFile as string) : getStream({ id: infoId.value, pdf: true })).then((res) => { + }) + getStream({ id: infoId.value, pdf: true }).then((res) => { pdfStream.value = new Blob([res.data]) getBase64(res.data).then((res) => { pdfUrl.value = res as string @@ -101,7 +102,6 @@ 发送给委托方 - 导出word