lxf 1 年之前
父节点
当前提交
9d37739e3d
共有 3 个文件被更改,包括 3 次插入8 次删除
  1. 0 1
      package.json
  2. 0 4
      src/main.js
  3. 3 3
      src/views/production/schedule/production-work-order/index.vue

+ 0 - 1
package.json

@@ -58,7 +58,6 @@
     "vue-lazyload": "^3.0.0",
     "vue-router": "4.1.4",
     "vue-super-flow": "^1.3.8",
-    "vue3-barcode": "^1.0.1",
     "vue3-clipboard": "^1.0.0",
     "vue3-print-nb": "^0.1.4"
   },

+ 0 - 4
src/main.js

@@ -31,9 +31,6 @@ import { createPinia } from "pinia"; //引入pinia
 import piniaPluginPersist from "pinia-plugin-persist"; //引入pinia数据持久化插件
 import VueLazyLoad from "vue-lazyload";
 
-// 条形码
-import Vue3Barcode from 'vue3-barcode'
-
 // 按钮防抖
 import preReClick from "./directive/preReClick.js";
 
@@ -104,7 +101,6 @@ app.config.globalProperties.useUserStore = useUserStore;
 // 全局组件挂载
 app.component("Pagination", Pagination);
 app.component("TreeSelect", TreeSelect);
-app.component("barcode", Vue3Barcode);
 
 app.use(router);
 app.use(store);

+ 3 - 3
src/views/production/schedule/production-work-order/index.vue

@@ -34,12 +34,12 @@
       <div style="width: 250px" id="printMe">
         <div v-for="(item, index) in QRcodeList" :key="index">
           <div style="height: 442px; padding-top: 2px; overflow: hidden; position: relative">
-            <div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-if="item.orderWlnCode">
+            <!-- <div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-if="item.orderWlnCode">
               <barcode :value="item.orderWlnCode" :height="50" :width="1.6" />
             </div>
             <div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-else>
               <barcode :value="item.orderCode" :height="50" :width="1.6" />
-            </div>
+            </div> -->
             <div style="display: flex; align-items: center; justify-content: center">
               <div style="width: 150px; height: 150px; margin-top: 8px" :id="'print' + index" :ref="'print' + index">
                 <img src="" alt="" style="vertical-align: middle; height: 100%; width: 100%" />
@@ -338,7 +338,7 @@ const clickPrint = (list) => {
   nextTick(() => {
     for (let i = 0; i < QRcodeList.value.length; i++) {
       proxy.$refs["print" + i][0].innerHTML = ""; //清除二维码方法一
-      let text = QRcodeList.value[i].skuSpecCode
+      let text = QRcodeList.value[i].skuSpecCode;
       new QRCode(proxy.$refs["print" + i][0], {
         text: text, //页面地址 ,如果页面需要参数传递请注意哈希模式#
         width: 150,