From ad0212a5608ac5dc26e4ef6291c6e4e1dd1f5f6c Mon Sep 17 00:00:00 2001 From: xhj Date: Thu, 5 Jun 2025 10:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jhzxgl/sljhD.vue | 67 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 3 deletions(-) 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 (){