From 835589fa6d344cb9b86fc7f0c23691a1a3fb35ad Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 15 九月 2025 08:27:59 +0800
Subject: [PATCH] 生产领料单校验 新增模块 添加 toScanCode2 用作区分扫描单据

---
 manifest.json                    |    4 ++--
 pages/shengchanlingliao/form.vue |   19 ++++++++++++++++++-
 2 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/manifest.json b/manifest.json
index 96829e0..7cf27c4 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
     "name" : "鏅轰簯LMES",
     "appid" : "__UNI__B002F49",
     "description" : "",
-    "versionName" : "1.0.74",
-    "versionCode" : 174,
+    "versionName" : "1.0.77",
+    "versionCode" : 177,
     "transformPx" : false,
     /* 5+App鐗规湁鐩稿叧 */
     "app-plus" : {
diff --git a/pages/shengchanlingliao/form.vue b/pages/shengchanlingliao/form.vue
index f3fc5c1..a19f4d0 100644
--- a/pages/shengchanlingliao/form.vue
+++ b/pages/shengchanlingliao/form.vue
@@ -8,7 +8,7 @@
                 </view>
                 <uni-icons type="scan"
                     style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
-                    size="20" @click="toScanCode"></uni-icons>
+                    size="20" @click="toScanCode2"></uni-icons>
             </view>
             <view class="form-item">
                 <view class="title">鏁伴噺:</view>
@@ -255,6 +255,23 @@
             this.getHBaseList()
         },
         methods: {
+            toScanCode2() {
+                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+                mpaasScanModule.mpaasScan({
+                    'hideAlbum': true,
+                    'timeoutInterval': '10', //瓒呮椂鏃堕棿
+                    'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋            
+                }, (ret) => {
+                    console.log(ret.resp_result)
+                    if(this.hform.HBarCode == '*'){
+                    	this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
+                    }else{
+                    	this.hform.HBarCode = ret.resp_result
+                    }
+                    // this.hform.HBillNo = ret.resp_result
+                    this.getCode(ret.resp_result)
+                })
+            },
             cmdDelete(item) {
                 uni.showModal({
                     title: '鎻愮ず',

--
Gitblit v1.9.1