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%;">
+
+
' //设置打印样式
- // var strFormHtml = strBodyStyle + '' + 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 @@