Commit 4f60e698 authored by xioln's avatar xioln

入库下载pdf修改

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