ZZJ 3 éve
szülő
commit
43b45166c0

+ 6 - 5
src/views/system/jbdScan/goods/tag.vue

@@ -1,10 +1,9 @@
 <template>
   <div class="bg">
-    <el-dialog width="30%"  :modal-append-to-body='false' title="样品标签" :visible.sync="visible">
+    <el-dialog width="30%"  :modal-append-to-body='false' title="样品标签" :visible.sync="scanVisible">
       <!-- 表单是否显示 -->
       <div style="height:500px">
           <div ref="qrcode" id="box">
-          <!-- <button @click="printDemo">打印标签</button> :page-break-inside=avoid -->
           <vue-easy-print tableShow ref="easyPrint"
             :onePageRow="onePageRow"
           >
@@ -83,6 +82,10 @@ export default {
     blankLines:{
       type:Boolean,
       default:true
+    },
+    scanVisible:{
+      type:Boolean,
+      default: false
     }
   },
   data() {
@@ -108,7 +111,7 @@ export default {
       this.$refs.easyPrint.print()
     },
     getInit() {
-      console.log(this.obj)
+      // console.log(this.obj)
       var idStr = '';
       this.obj.forEach(item=>{
         idStr += item + ','
@@ -122,10 +125,8 @@ export default {
       let sql = `select * from t_lhypb where find_in_set(parent_id_,'${id}')`
       console.log(sql)
       repostCurd("sql", sql).then(res => {
-        // console.log(res)
         if (res.state === 200) {
           const data = res.variables.data
-          console.log(data)
           let list = []
           data.forEach(item => {
             if (item.yang_pin_lei_xing != '' && parseInt(item.shu_liang_) > 0) {

+ 1 - 1
src/views/system/jbdScan/scan.vue

@@ -23,7 +23,7 @@ export default {
   props:{
     currentScan:String,
     scanVisible:Boolean,
-    obj:Array
+    obj:Array,
   },
 
   methods:{