Commit 4f60e698 authored by xioln's avatar xioln

入库下载pdf修改

parent a15c7b62
...@@ -345,7 +345,7 @@ export default { ...@@ -345,7 +345,7 @@ export default {
}) })
}, },
savePDF() { savePDF() {
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.basicData.id}&billType=AirEquipment`) this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=AirEquipment`)
} }
} }
} }
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<!-- <el-input v-model="form.isPerformRetest" :disabled="true" /> --> <!-- <el-input v-model="form.isPerformRetest" :disabled="true" /> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col v-if="form.isPerformRetest" :span="24"> <el-col v-if="chemicalDisplay" :span="24">
<el-col :span="8"> <el-col :span="8">
<!-- <span>报告单号:</span> --> <!-- <span>报告单号:</span> -->
<el-form-item label="报告单号" label-width="130px"> <el-form-item label="报告单号" label-width="130px">
...@@ -748,7 +748,8 @@ export default { ...@@ -748,7 +748,8 @@ export default {
} }
} }
} }
] ],
chemicalDisplay: false
} }
}, },
computed: {}, computed: {},
...@@ -796,9 +797,7 @@ export default { ...@@ -796,9 +797,7 @@ export default {
) )
this.jobTestCheckItems = this.form.jobTestCheckItems this.jobTestCheckItems = this.form.jobTestCheckItems
} }
if (this.form.isPerformRetest) { this.getChemicalData(this.basicData.id)
this.getChemicalData(this.basicData.id)
}
}, },
methods: { methods: {
getChemicalData(id) { getChemicalData(id) {
...@@ -848,15 +847,17 @@ export default { ...@@ -848,15 +847,17 @@ export default {
] ]
} }
post('JobResponseInStorage/search', param).then(res => { post('JobResponseInStorage/search', param).then(res => {
// this.data = res.items.content[0]
const data = res.items.content[0] const data = res.items.content[0]
this.form = { if (data.reportNo) {
...this.form, this.chemicalDisplay = true
reportNo: data.reportNo, this.form = {
reportNoIsPass: data.isPass, ...this.form,
isDestroy: data.isDestroy, reportNo: data.reportNo,
experimentAmount: data.experimentAmount, reportNoIsPass: data.isPass,
chemicalObjFileLinks: data.objFileLinks isDestroy: data.isDestroy,
experimentAmount: data.experimentAmount,
chemicalObjFileLinks: data.objFileLinks
}
} }
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
...@@ -874,7 +875,7 @@ export default { ...@@ -874,7 +875,7 @@ export default {
// }) // })
// }, // },
savePDF() { savePDF() {
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.basicData.id}&billType=Material`) this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=Material`)
}, },
viewDialog() { }, viewDialog() { },
onSubmit() { onSubmit() {
......
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
}) })
}, },
savePDF() { savePDF() {
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.basicData.id}&billType=OutSource`) this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=OutSource`)
} }
} }
} }
......
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