From 7571644553f660b7f80d7a246523b0a8b447e7f4 Mon Sep 17 00:00:00 2001 From: xhj Date: Wed, 11 Dec 2024 10:15:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jhzxgl/sljhD.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/jhzxgl/sljhD.vue b/src/views/jhzxgl/sljhD.vue index 3c30fbb..ab0067f 100644 --- a/src/views/jhzxgl/sljhD.vue +++ b/src/views/jhzxgl/sljhD.vue @@ -1069,6 +1069,9 @@ export default { if(this.queryParam.rqopt=='03'){ // 取消打印 let selectRecords = this.$refs.xGrid.getCheckboxRecords() + + + if(selectRecords.length>0){ slPrintqx(selectRecords).then(res=>{ if(res.success){ @@ -1084,6 +1087,13 @@ export default { return } let selectRecords = this.$refs.xGrid.getCheckboxRecords() + + for(let i = 0; i < selectRecords.length; i++) { + if(selectRecords[i].dcth =='' || selectRecords[i].dcth ===null){ + this.$message({ message: '套料图为空', type: 'warning' }) + retrun + } + } if(selectRecords.length>0){ slPrint(selectRecords).then(res=>{ this.sljhPrintData=res.data