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 @@