diff --git a/src/views/jhzxgl/sljhD.vue b/src/views/jhzxgl/sljhD.vue index 09a4279..8c90740 100644 --- a/src/views/jhzxgl/sljhD.vue +++ b/src/views/jhzxgl/sljhD.vue @@ -97,6 +97,7 @@ 保存 打印 直接打印 + 导出 @@ -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 (){