From af95155c788ff5b88f55e0bea732b480a68be442 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期五, 07 三月 2025 10:16:13 +0800 Subject: [PATCH] 兼容ctu容器条码 --- pages/pakin/putOn.vue | 8 ++++---- pages/pakin/pakin.vue | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/pages/pakin/pakin.vue b/pages/pakin/pakin.vue index 97f9cac..1c39cfa 100644 --- a/pages/pakin/pakin.vue +++ b/pages/pakin/pakin.vue @@ -175,15 +175,15 @@ // 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏� setTimeout(() => { var len = this.barcode.length - if (len != 8) { - uni.showToast({ - title: '鎵樼洏鐮佹湁璇閲嶈瘯', - icon: "none", - position: 'top' - }); - // this.barcodeFocuss() - return; - } + // if (len != 8) { + // uni.showToast({ + // title: '鎵樼洏鐮佹湁璇閲嶈瘯', + // icon: "none", + // position: 'top' + // }); + // // this.barcodeFocuss() + // return; + // } // this.focuss() }, 200) }, diff --git a/pages/pakin/putOn.vue b/pages/pakin/putOn.vue index 38ca44c..f022d3d 100644 --- a/pages/pakin/putOn.vue +++ b/pages/pakin/putOn.vue @@ -116,10 +116,10 @@ if (this.barcode.length < 1) { return } - if (this.barcode.length != 8) { - this.messageToggle('error', '鎷栫洏鐮佷负8浣嶉殢鏈烘暟瀛楋紒锛�') - return - } + // if (this.barcode.length != 8) { + // this.messageToggle('error', '鎷栫洏鐮佷负8浣嶉殢鏈烘暟瀛楋紒锛�') + // return + // } let that = this uni.request({ url: that.baseUrl + '/pda/barcode/matnr/' + that.barcode, -- Gitblit v1.9.1