Admin
5 天以前 bd6818fc9d40f343547bafca0743658f3c0379dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<template>
    <div>
    <!-- 打印条码 -->
    <vol-box
      :width="500"
      :height="140"
      v-model="printFlag"
      title="打印条码"
    >
      <div style="padding:10px;20px;font-size:22px;margin-left:120px">
        
        确认要打印该条码吗?
 
      </div>
      <template #footer>
        <div style="text-align: center;">
          <el-button
            type="primary"
            size="max"
            icon="md-checkmark-circle"
            long
            @click="print_Ok"
            >确认打印</el-button
          >
        </div>
      </template>
    </vol-box>
  </div>
</template>
 
 
<script>
import VolBox from "@/components/basic/VolBox.vue";
import VolForm from "@/components/basic/VolForm.vue";
export default {
  components: { "vol-box": VolBox ,"vol-form":VolForm },
  methods: {
  },
  data () {
    return {
      
        printFlag:false,
        printValue:"",
    }
  },
 
  methods: {
 
    //呼叫空托盘
    showPrintAlert(res){
      this.printValue = res.mesInfo_qrCode;
      this.printFlag = true;
    },
 
    print_Ok(){
      
      let params = {
          MainData:
            {
                qrCode:this.printValue,
            },
          DetailData: null,
          DelKeys: null,
          Extra: false
      }
      this.http.post("api/Dt_mes_goods_info/PrintGoodsQrCode", params, "打印申请中....").then(x => {
          if (!x.status) 
            return this.$Message.error(x.message);
          else 
            this.$Message.success("正在打印中...");
          this.printFlag = false;
          this.$parent.refresh();
      });
    }
 
 
    
  }
  
}
</script>