From 6b7edadc149a7dfefc5f9f84ea325b3686c911d9 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Sun, 27 Nov 2022 21:24:57 +0800 Subject: [PATCH] =?UTF-8?q?0412=20=E6=96=B0=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/production/PartProperties.vue | 202 ++++++++++++++++++ .../modules/production/generateReport.vue | 2 +- .../modules/production/print_part_label.js | 4 +- .../modules/production/print_seqNo_label.js | 10 +- .../modules/production/print_stock_label.js | 4 +- .../modules/production/print_transNo_label.js | 4 +- .../modules/production/soscheduleRouting.vue | 6 +- src/views/modules/production/stockPrint.vue | 2 + 8 files changed, 218 insertions(+), 16 deletions(-) create mode 100644 src/views/modules/production/PartProperties.vue diff --git a/src/views/modules/production/PartProperties.vue b/src/views/modules/production/PartProperties.vue new file mode 100644 index 0000000..aa9b061 --- /dev/null +++ b/src/views/modules/production/PartProperties.vue @@ -0,0 +1,202 @@ + + + diff --git a/src/views/modules/production/generateReport.vue b/src/views/modules/production/generateReport.vue index f0389e2..7092362 100644 --- a/src/views/modules/production/generateReport.vue +++ b/src/views/modules/production/generateReport.vue @@ -413,7 +413,7 @@ - + diff --git a/src/views/modules/production/print_part_label.js b/src/views/modules/production/print_part_label.js index 8455087..5effe64 100644 --- a/src/views/modules/production/print_part_label.js +++ b/src/views/modules/production/print_part_label.js @@ -130,8 +130,8 @@ export function printPartLabel(printList) { } LODOP.SET_PRINT_STYLEA(1,"AngleOfPageInside",-90); // LODOP.PRINT_DESIGN(); - //LODOP.PREVIEW(); - LODOP.PRINT(); + LODOP.PREVIEW(); + // LODOP.PRINT(); console.log("操作成功!") } } diff --git a/src/views/modules/production/print_seqNo_label.js b/src/views/modules/production/print_seqNo_label.js index d383415..50cedb8 100644 --- a/src/views/modules/production/print_seqNo_label.js +++ b/src/views/modules/production/print_seqNo_label.js @@ -46,7 +46,7 @@ export function printSeqNoLabel(printList) { LODOP.ADD_PRINT_TEXT(66,8,96,25,"Q.T.Y:"); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); - LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.qtyRequired+' | '+printData.weight+'公斤'); + LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.qtyRequired+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:"); @@ -68,11 +68,13 @@ export function printSeqNoLabel(printList) { 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); } // LODOP.PRINT_DESIGN(); - //LODOP.PREVIEW(); - LODOP.PRINT(); + LODOP.PREVIEW(); + // LODOP.PRINT(); console.log("操作成功!") } } diff --git a/src/views/modules/production/print_stock_label.js b/src/views/modules/production/print_stock_label.js index c945a3a..cba3aab 100644 --- a/src/views/modules/production/print_stock_label.js +++ b/src/views/modules/production/print_stock_label.js @@ -16,7 +16,7 @@ export function printMaterialLabel(printList) { LODOP.ADD_PRINT_TEXT(90,8,133,25,"WareHouse ID:"); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); - LODOP.ADD_PRINT_TEXT(90,110,140,25,printData.wareHouseId); + LODOP.ADD_PRINT_TEXT(90,110,140,25,printData.wareHouseDesc); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); LODOP.ADD_PRINT_TEXT(143,8,103,24,"Batch No:"); @@ -46,7 +46,7 @@ export function printMaterialLabel(printList) { LODOP.ADD_PRINT_TEXT(66,8,81,25,"Q.T.Y:"); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); - LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.qty); + LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.qty+printData.umid); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); LODOP.ADD_PRINT_TEXT(194,8,113,25,"Trans Date:"); diff --git a/src/views/modules/production/print_transNo_label.js b/src/views/modules/production/print_transNo_label.js index 79a92cf..ff66cc8 100644 --- a/src/views/modules/production/print_transNo_label.js +++ b/src/views/modules/production/print_transNo_label.js @@ -46,7 +46,7 @@ export function printTransNoLabel(printList) { LODOP.ADD_PRINT_TEXT(66,8,121,25,"Trans Q.T.Y:"); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); - LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.transQty); + LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.transQty+printData.umid); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); LODOP.ADD_PRINT_TEXT(194,8,97,25,"Trans Date:"); @@ -70,7 +70,7 @@ export function printTransNoLabel(printList) { LODOP.SET_PRINT_STYLEA(0,"Bold",1); } // LODOP.PRINT_DESIGN(); - //LODOP.PREVIEW(); + // LODOP.PREVIEW(); LODOP.PRINT(); console.log("操作成功!") } diff --git a/src/views/modules/production/soscheduleRouting.vue b/src/views/modules/production/soscheduleRouting.vue index 9af5796..0d73f71 100644 --- a/src/views/modules/production/soscheduleRouting.vue +++ b/src/views/modules/production/soscheduleRouting.vue @@ -105,7 +105,7 @@ label="操作"> @@ -476,10 +476,6 @@ }, toPrint(row){ let array=[]; - let data={ - seqNo:row.seqNo, - - } array.push(row) printSeqNoLabel(array) }, diff --git a/src/views/modules/production/stockPrint.vue b/src/views/modules/production/stockPrint.vue index 4a1972b..1ec31e0 100644 --- a/src/views/modules/production/stockPrint.vue +++ b/src/views/modules/production/stockPrint.vue @@ -246,8 +246,10 @@ batchNo:row.batchNo, locationId:row.locationId, partDesc:row.partDesc, + wareHouseDesc:row.wareHouseDesc, orderNo:row.orderNo, qty:row.qty, + umid:row.umid, transDate:row.transDate } array.push(data)