From 8d5a0fa16f15a9f18aeb20d711a4e6d5dc9b6914 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Wed, 21 Aug 2024 15:09:13 +0800 Subject: [PATCH] =?UTF-8?q?2024-08-21=20=E8=AE=A1=E5=88=92-=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E5=B7=A5=E5=8D=95=E7=AE=A1=E7=90=86-=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=A0=87=E8=AF=86=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/plan/workorder.js | 7 ++ src/views/plan/workorder/index.vue | 3 +- src/views/plan/workorder/printID.vue | 141 ++++++++++++++++++++++----- 3 files changed, 126 insertions(+), 25 deletions(-) diff --git a/src/api/plan/workorder.js b/src/api/plan/workorder.js index f3c2697..d1fa835 100644 --- a/src/api/plan/workorder.js +++ b/src/api/plan/workorder.js @@ -188,3 +188,10 @@ export function getIdCardList(data){ data:data }) } + +export function getBatchCode(workorderId){ + return request({ + url:'/plan/pro/workorder/getBatchCode/'+ workorderId, + method: 'get' + }) + } \ No newline at end of file diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index 87f2c7d..833fd26 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -1987,7 +1987,6 @@ export default { /**打印标识卡弹出框**/ printIdCard() { - //var statusesArray = this.statuses; //for (var i = 0; i < statusesArray.length; i++) { // if (statusesArray[i] == 'w0') {//已经下达的不允许操作 @@ -1996,7 +1995,7 @@ export default { // } //} - this.$refs.printID.init(this.selectWork.workorderCode); + this.$refs.printID.init(this.selectWork.workorderCode,this.selectWork.workorderId); this.$refs.printID.printDialogVisible = true; }, //标识卡选择确认 diff --git a/src/views/plan/workorder/printID.vue b/src/views/plan/workorder/printID.vue index f20abb0..a3f4b6d 100644 --- a/src/views/plan/workorder/printID.vue +++ b/src/views/plan/workorder/printID.vue @@ -2,14 +2,38 @@
- - - + + + - + + + + + + + + + + + + + + -
+
@@ -26,19 +50,25 @@
- -
产品名称: {{ item.productName }}

-
批次号: {{ item.batchCode }}

+ +
产品名称: {{ item.productName }}

+
批次号: {{ item.batchCode }}

生产日期: {{ item.productDateStr }}

板次: {{ item.palletNo }}

数量: {{ item.batchQuantity }}
- +
-
+
+ + + + +
+
@@ -53,6 +83,7 @@