diff --git a/src/views/modules/print/print_transNo_label.js b/src/views/modules/print/print_transNo_label.js index 8413c35..866357b 100644 --- a/src/views/modules/print/print_transNo_label.js +++ b/src/views/modules/print/print_transNo_label.js @@ -163,7 +163,72 @@ export function printTransNoLabel(printList) { LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); } - else { + else if(printData.type=='reportData'){ + LODOP.NewPage(); + LODOP.SET_PRINT_PAGESIZE(0,1000,700,""); + // LODOP.ADD_PRINT_TEXT(95,208,173,46,'合格'); + // LODOP.SET_PRINT_STYLEA(0,"FontSize",30); + // LODOP.SET_PRINT_STYLEA(0,"Alignment",2); + // LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(88,8,108,25,"Part:"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(88,50,200,50,printData.partNo+'|'+printData.partDesc); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(153,8,128,24,"Operator:"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(153,110,140,20,printData.operatorName); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(132,8,113,25,"Shift:"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(132,110,139,25,printData.sShiftNo); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(41,8,98,25,"Job No:"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(41,110,136,25,printData.seqNo); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(173,8,94,25,"Order No:"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(173,110,141,25,printData.orderNo); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(64,8,96,25,"合格数量:"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(64,70,188,24,printData.strQty+printData.umid+' | '+printData.weight+'公斤'); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(194,8,128,25,"MFG Date:"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(194,110,170,25,printData.sScheduledDate); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(224,5,256,24,"Manufactured by A&M Polymer"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.ADD_PRINT_TEXT(224,212,156,25,"IATF:16949 Certified"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); + LODOP.SET_PRINT_STYLEA(0,"Alignment",3); + LODOP.ADD_PRINT_LINE(218,2,217,374,0,1); + LODOP.ADD_PRINT_TEXT(12,122,135,30,"派工单报工标签"); + LODOP.SET_PRINT_STYLEA(0,"FontSize",12); + LODOP.SET_PRINT_STYLEA(0,"Alignment",2); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(194,266,110,25,"工厂编码:"+printData.site); + LODOP.SET_PRINT_STYLEA(0,"FontSize",11); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(175,265,110,20,"工序:"+printData.itemDesc); + LODOP.SET_PRINT_STYLEA(0,"FontSize",11); + LODOP.SET_PRINT_STYLEA(0,"Bold",1); + }else { LODOP.NewPage(); LODOP.SET_PRINT_PAGESIZE(0,1000,700,""); LODOP.ADD_PRINT_TEXT(95,208,173,46,'合格'); @@ -236,56 +301,3 @@ export function printTransNoLabel(printList) { console.log("操作成功!") } } -// LODOP.SET_PRINT_PAGESIZE(0,1000,700,""); -// LODOP.ADD_PRINT_BARCODE(11,244,208,140,"QRCode",printData.transNo); -// LODOP.ADD_PRINT_TEXT(58,8,108,25,"PartNo:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(58,110,140,25,printData.partNo); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(111,8,77,24,"SeqNo:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(111,110,140,20,printData.seqNo); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(84,8,113,25,"WorkCenterNo:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(84,110,139,25,printData.workCenterNo); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(9,8,98,25,"TransNo:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(9,110,136,25,printData.transNo); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(136,8,94,25,"OrderNo:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(136,110,141,25,printData.orderNo); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(34,8,96,25,"TransQty:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(34,110,138,24,printData.transQty); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(162,8,97,25,"TransDate:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(162,110,170,25,printData.transDate); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(192,5,256,24,"Manufactured by A&M Polymer"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.ADD_PRINT_TEXT(192,259,109,25,"vender Code:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.ADD_PRINT_TEXT(210,5,257,35,"No.188 Taigu Road,Lili lndustrial Park,Wujiang District,Suzhou,China"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.ADD_PRINT_TEXT(246,5,407,35,"Phone: 086-0512-63678826 Email: service@husenrubber.com"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.ADD_PRINT_LINE(186,2,187,374,0,1); diff --git a/src/views/modules/production/generateReport.vue b/src/views/modules/production/generateReport.vue index 68a32a8..f82b302 100644 --- a/src/views/modules/production/generateReport.vue +++ b/src/views/modules/production/generateReport.vue @@ -911,6 +911,9 @@ if(data.badData!=null){ inList.push(data.badData) } + if(data.reportData!=null){ + inList.push(data.reportData) + } if(this.saveHeaderData.printQty>0){ for (let i = 0; i -
- - - - - - 加工中心编码 - - - - 产品编码 - - - - 查询 - - {{'导出'}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 操作员 - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- 不良品分析 - - - 操作员 - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - 取消 - 确定 - -
- - -
- - - - - diff --git a/src/views/modules/production/inspect.vue b/src/views/modules/production/inspect.vue index 490f0e6..7665b5a 100644 --- a/src/views/modules/production/inspect.vue +++ b/src/views/modules/production/inspect.vue @@ -14,7 +14,7 @@ - + diff --git a/src/views/modules/production/liuhuaProductView.vue b/src/views/modules/production/liuhuaProductView.vue index d93cff1..cee266a 100644 --- a/src/views/modules/production/liuhuaProductView.vue +++ b/src/views/modules/production/liuhuaProductView.vue @@ -344,6 +344,23 @@ serialNumber: null, columnType: null, align: 'right' + }, { + tableId: "liuhuaView", + tableName: this.$route.meta.title, + columnProp: "liuhuahegelv", + columnLabel: "总完成率", + columnHidden: false, + columnImage: false, + columnSortable: false, + columnWidth: 60, + format: null, + functionId: this.$route.meta.menuId, + sortLv: 0, + status: true, + fixed: '', + serialNumber: null, + columnType: null, + align: 'right' } ], visible:false,