From ec1727c6934a17f490468e7f24014da23bc575af Mon Sep 17 00:00:00 2001 From: liushuai Date: Fri, 4 Jan 2019 20:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/main.js | 2 + .../PrintingAssemblyProcessCard/index.vue | 38 +++++++++++++++---- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 4bf74258..18989cfd 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" }, "dependencies": { + "@xkeshi/vue-barcode": "^1.0.0", "axios": "0.18.0", "echarts": "^4.2.0-rc.2", "element-ui": "2.4.6", diff --git a/src/main.js b/src/main.js index 36e6a610..8c256bac 100644 --- a/src/main.js +++ b/src/main.js @@ -19,6 +19,8 @@ import time from 'time-formater' import htmlToPdf from '@/vendor/htmlToPdf' import Viewer from 'v-viewer' import 'viewerjs/dist/viewer.css' +import VueBarcode from '@xkeshi/vue-barcode' +Vue.component('barcode', VueBarcode) Vue.use(curd) Vue.use(htmlToPdf) diff --git a/src/views/Assembly/PrintingAssemblyProcessCard/index.vue b/src/views/Assembly/PrintingAssemblyProcessCard/index.vue index 325cd08b..bb9257dd 100644 --- a/src/views/Assembly/PrintingAssemblyProcessCard/index.vue +++ b/src/views/Assembly/PrintingAssemblyProcessCard/index.vue @@ -70,14 +70,15 @@ GAOJING 专机装配工艺过程卡 + 机床编号: {{ MachineNum }} 机床名称: - {{ MachineName }} + {{ MachineName }} 客户名称: - {{ CustomerName }} + {{ CustomerName }} 序号 @@ -88,11 +89,12 @@ 完成情况/装配工 检验情况/检验员 备注 + 条码 - {{ item.table1 }} + {{ item.table1 }} {{ list.序号 }} @@ -103,6 +105,7 @@ + @@ -114,11 +117,20 @@