diff --git a/src/views/modules/production/print_inspect_label.js b/src/views/modules/production/print_inspect_label.js index dda3375..e438a37 100644 --- a/src/views/modules/production/print_inspect_label.js +++ b/src/views/modules/production/print_inspect_label.js @@ -15,7 +15,7 @@ export function printInspectLabel(printList) { 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,190,50,printData.partNo+'|'+printData.partDesc); + LODOP.ADD_PRINT_TEXT(88,50,165,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:"); @@ -73,8 +73,8 @@ export function printInspectLabel(printList) { LODOP.ADD_PRINT_TEXT(63,259,100,25,"检验结果:"); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",0); - LODOP.ADD_PRINT_TEXT(95,233,148,66,printData.remark); - LODOP.SET_PRINT_STYLEA(0,"FontSize",33); + LODOP.ADD_PRINT_TEXT(95,208,173,46,printData.remark); + 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(42,249,93,25,"Inspector:"); @@ -83,6 +83,8 @@ export function printInspectLabel(printList) { LODOP.ADD_PRINT_TEXT(42,329,59,25,printData.userId); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); + LODOP.ADD_PRINT_TEXT(142,251,126,35,printData.inspectRemark); + LODOP.SET_PRINT_STYLEA(0,"FontSize",10); } // LODOP.PRINT_DESIGN(); LODOP.PREVIEW(); @@ -91,57 +93,5 @@ export function printInspectLabel(printList) { } } -// LODOP.SET_PRINT_PAGESIZE(0,1000,700,""); -// LODOP.ADD_PRINT_BARCODE(11,244,208,140,"QRCode",printData.seqNo); -// 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,128,24,"Operator:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(111,110,140,20,printData.operatorName); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(84,8,113,25,"Shift:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(84,110,139,25,printData.sShiftNo); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(9,8,98,25,"SeqNo:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(9,110,136,25,printData.seqNo); -// 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,"Qty:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(34,110,138,24,printData.qtyRequired); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(162,8,128,25,"ScheduledDate:"); -// LODOP.SET_PRINT_STYLEA(0,"FontSize",10); -// LODOP.SET_PRINT_STYLEA(0,"Bold",1); -// LODOP.ADD_PRINT_TEXT(162,110,170,25,printData.sScheduledDate); -// 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/print_transNo_label.js b/src/views/modules/production/print_transNo_label.js index 537f255..a9d00f5 100644 --- a/src/views/modules/production/print_transNo_label.js +++ b/src/views/modules/production/print_transNo_label.js @@ -70,8 +70,8 @@ export function printTransNoLabel(printList) { LODOP.SET_PRINT_STYLEA(0,"Bold",1); } // LODOP.PRINT_DESIGN(); - // LODOP.PREVIEW(); - LODOP.PRINT(); + LODOP.PREVIEW(); + // LODOP.PRINT(); console.log("操作成功!") } } diff --git a/src/views/modules/production/productionBlankingSearch.vue b/src/views/modules/production/productionBlankingSearch.vue index df131b5..646f1c5 100644 --- a/src/views/modules/production/productionBlankingSearch.vue +++ b/src/views/modules/production/productionBlankingSearch.vue @@ -315,6 +315,12 @@ }, search () { productionBlankingSearch(this.searchData).then(({data}) => { + for (let i = 0; i