From 0d0b43e3afcbc89bc0268eb0dc8477da88a5e8a9 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 18 五月 2024 08:45:20 +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