Commit 5baf984b authored by xioln's avatar xioln

入库检验流程下载PDF

parent 4f60e698
......@@ -345,7 +345,9 @@ export default {
})
},
savePDF() {
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=AirEquipment`)
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=AirEquipment`).then((res) => {
this.$utils.downLoadFile(res, '机载系统设备验收单.pdf')
})
}
}
}
......
......@@ -875,7 +875,9 @@ export default {
// })
// },
savePDF() {
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=Material`)
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=Material`).then((res) => {
this.$utils.downLoadFile(res, '器材验收单.pdf')
})
},
viewDialog() { },
onSubmit() {
......
......@@ -317,7 +317,9 @@ export default {
})
},
savePDF() {
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=OutSource`)
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=OutSource`).then((res) => {
this.$utils.downLoadFile(res, '外包产品验收单.pdf')
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment