From fdfc2c66434bdacdd539f228b51a33c8d15e71d5 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期六, 20 四月 2024 12:32:15 +0800 Subject: [PATCH] # --- pages/print/printUNI.vue | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/pages/print/printUNI.vue b/pages/print/printUNI.vue index 75b8835..0a2fdf8 100644 --- a/pages/print/printUNI.vue +++ b/pages/print/printUNI.vue @@ -46,6 +46,9 @@ val: "", dateTimer: "", valArr: [], + print_data: '', + mat: '', + time: '', // 宸存灙鍙傛暟 // broadcase_actions: "com.android.receive_scan_action", // broadcast_flag: "data" @@ -69,13 +72,25 @@ onLoad(options) { _this = this; this.$init_bluetooth(); + let that = this + const eventChannel = this.getOpenerEventChannel(); + eventChannel.on('data1', function(data1) { + that.mat = data1.data + that.time = data1.time + console.log(data1); + }) }, methods: { ...mapActions([SET_CONNECTBLEDATA]), senBleLabel() { // console.log(this.$Mock.order_data); if(!print) return; - print.startPrint(this.$Mock.order_data); + console.log(this.mat); + this.print_data = this.$Mock.order_data + this.print_data.MATNR = this.mat.matnr + this.print_data.MAKTX = this.mat.maktx + this.print_data.MODI_TIME = this.time + print.startPrint(this.print_data); }, // 杩炴帴鎵撳嵃鏈� confirm_bluetooth(item) { -- Gitblit v1.9.1