From 1cb5e6401c6e56b298683e9dd1818f975865ef65 Mon Sep 17 00:00:00 2001 From: zuowenwen Date: Tue, 14 Dec 2021 13:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=20=E9=82=AE=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/toolMan/IQCInspectionTool.vue | 2 + src/views/modules/toolMan/assessment.vue | 1 + src/views/modules/toolMan/checkIn.vue | 1 + src/views/modules/toolMan/location.vue | 56 +++++++------ src/views/modules/toolMan/offInspection.vue | 78 ++++--------------- .../modules/toolMan/quarantineLibrary.vue | 18 +++++ .../toolMan/repairReturnInspection.vue | 1 + src/views/modules/toolMan/toolOffPlane.vue | 1 + 8 files changed, 73 insertions(+), 85 deletions(-) diff --git a/src/views/modules/toolMan/IQCInspectionTool.vue b/src/views/modules/toolMan/IQCInspectionTool.vue index bc0089de..e0f3e1ae 100644 --- a/src/views/modules/toolMan/IQCInspectionTool.vue +++ b/src/views/modules/toolMan/IQCInspectionTool.vue @@ -63,6 +63,7 @@ { diff --git a/src/views/modules/toolMan/assessment.vue b/src/views/modules/toolMan/assessment.vue index 56963b8c..181fdec5 100644 --- a/src/views/modules/toolMan/assessment.vue +++ b/src/views/modules/toolMan/assessment.vue @@ -63,6 +63,7 @@ {{buttons.add}} + {{buttons.print}} {{buttons.defaultTable}} {{ buttons.settingTable}} @@ -82,6 +83,12 @@ v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> + + ' + document.getElementById('commmon').innerHTML + '' //获取打印内容 - // - // LODOP.PRINT_INIT('') //初始化 - // LODOP.PRINT_DESIGN(); - // //LODOP.PREVIEW(); - // //LODOP.PRINT(); - // - // LODOP.SET_PRINT_PAGESIZE(2, 0, 0, 'A4') //设置横向 - // LODOP.ADD_PRINT_HTM('1%', '1%', '98%', '98%', strFormHtml) //设置打印内容 - // LODOP.SET_PREVIEW_WINDOW(2, 0, 0, 800, 600, '') //设置预览窗口模式和大小 - // LODOP.PREVIEW() - // } + debugger + let list = this.dataListSelections + const LODOP = getLodop() + if(list.length > 0){ + if (LODOP) { + LODOP.SET_LICENSES("","13F0BE83846277CB60918577C6281375","",""); + + for (let i = 0; i < list.length; i++) { + let row = list[i] + LODOP.NewPage(); + LODOP.SET_PRINT_PAGESIZE(0,1000,400,""); + LODOP.SET_PRINT_STYLE("FontSize",12); + LODOP.SET_PRINT_STYLE("LineHeight",-2); + LODOP.ADD_PRINT_BARCODE(3,3,300,120,"QRCode",row.locationId); + LODOP.SET_PRINT_STYLEA(0,"FontSize",12); + LODOP.ADD_PRINT_TEXT(10,205,400,150,row.locationId ); + LODOP.SET_PRINT_STYLEA(0,"FontSize",40); + } + + LODOP.PRINT_DESIGN(); + //LODOP.PREVIEW(); + // LODOP.PRINT(); + console.log("操作成功!") + } + } }, // 校验用户是否收藏 favoriteIsOk(){ diff --git a/src/views/modules/toolMan/offInspection.vue b/src/views/modules/toolMan/offInspection.vue index 815cde1b..3e3700f9 100644 --- a/src/views/modules/toolMan/offInspection.vue +++ b/src/views/modules/toolMan/offInspection.vue @@ -63,6 +63,7 @@