直接打印

master
xhj 2 weeks ago
parent 90001e5616
commit ad0212a560

@ -97,6 +97,7 @@
<el-button type="success" @click="saveOne()"></el-button>
<el-button type="success" @click="print()"></el-button>
<el-button type="success" @click="printzj()"></el-button>
<!-- <el-button type="success" @click="printwhd()">()</el-button>-->
<el-button type="success" @click="exportExcel()"></el-button>
<!-- <el-button type="success" @click="exportExcel1()"></el-button>-->
</el-col>
@ -1217,9 +1218,9 @@ export default {
}
if(this.queryParam.rqopt!='02'){
return
}
if(this.queryParam.rqopt==='02'){
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
console.log(this.queryParam.sdsl)
@ -1248,6 +1249,66 @@ export default {
}, 50)
})
}
}
if(this.queryParam.rqopt==='01'){
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
console.log(this.queryParam.sdsl)
if(selectRecords.length>0){
slPrint(selectRecords).then(res=>{
this.sljhPrintData=res.data
console.log(this.sljhPrintData)
this.wgzyprintFlag=true
this.$refs.dy.gegn();
setTimeout(() => {
this.$print(this.$refs.print)
this.wgzyprintFlag = false
this.initList()
}, 50)
})
}
}
},
printwhd(){
if(this.queryParam.rqopt!='01'){
return
}
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
// if(this.queryParam.sdsl){
//
// }else {
// for(let i = 0; i < selectRecords.length; i++) {
// if(selectRecords[i].dcth =='' || selectRecords[i].dcth ===null){
// this.$message({ message: '', type: 'warning' })
// return
// }
// }
// }
if(selectRecords.length>0){
slPrint(selectRecords).then(res=>{
this.sljhPrintData=res.data
console.log(this.sljhPrintData)
this.wgzyprintFlag=true
this.$refs.dy.gegn();
setTimeout(() => {
this.$print(this.$refs.print)
this.wgzyprintFlag = false
this.initList()
}, 50)
})
}
},
async getlist1 (){

Loading…
Cancel
Save