|
|
@@ -104,6 +104,12 @@ export default {
|
|
|
this.loading = true
|
|
|
this.heightTable = 'calc(100vh - 160px)'
|
|
|
this.listData()
|
|
|
+ }else if (type == '合格证'){
|
|
|
+ this.nowSelect = type
|
|
|
+ this.idName = 'sa_dispatchid'
|
|
|
+ this.drawerTitle = '打印合格证'
|
|
|
+ this.dataid = this.$route.query.id
|
|
|
+ this.isPrint()
|
|
|
}
|
|
|
this.queryReportId(type)
|
|
|
},
|
|
|
@@ -147,6 +153,21 @@ export default {
|
|
|
this.param.content.pageNumber = val
|
|
|
this.listData()
|
|
|
},
|
|
|
+ /*判断是否可以打印合格证*/
|
|
|
+ async isPrint(){
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": "2025101713160202",
|
|
|
+ "content": {
|
|
|
+ "sa_dispatchid":this.$route.query.id
|
|
|
+ },
|
|
|
+ })
|
|
|
+ if (res.code == 0){
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.printBtn()
|
|
|
+ }
|
|
|
+ },
|
|
|
async printBtn (data) {
|
|
|
if (this.nowSelect == '检验报告'){
|
|
|
this.dataid = data.sa_dispatch_itemsid
|