|
|
|
@ -91,6 +91,7 @@
|
|
|
|
|
<!-- <el-button type="danger" @click="delOne('insert')">删除</el-button>-->
|
|
|
|
|
<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="exportExcel()">导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="10">-->
|
|
|
|
@ -360,6 +361,7 @@ import {
|
|
|
|
|
getydjhByid,
|
|
|
|
|
getKcAndSljh1,
|
|
|
|
|
slPrint,
|
|
|
|
|
slPrintD,
|
|
|
|
|
kcAdnSlBd1,
|
|
|
|
|
kcAdnSlBd2, slPrintqx, kcAdnSlBdQX
|
|
|
|
|
} from '@/api/jhzxgl/pgd'
|
|
|
|
@ -1035,6 +1037,27 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
printzj(){
|
|
|
|
|
if(this.queryParam.rqopt!=='03'){
|
|
|
|
|
return
|
|
|
|
|
}else {
|
|
|
|
|
this.$message({ message: '请在已打印中打印', type: 'warning' })
|
|
|
|
|
}
|
|
|
|
|
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
if(selectRecords.length>0){
|
|
|
|
|
slPrintD(selectRecords).then(res=>{
|
|
|
|
|
this.sljhPrintData=res.data
|
|
|
|
|
console.log(this.sljhPrintData)
|
|
|
|
|
this.wgzyprintFlag=true
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.$print(this.$refs.print)
|
|
|
|
|
this.wgzyprintFlag = false
|
|
|
|
|
this.initList()
|
|
|
|
|
}, 50)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
print(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|