From a0733a0ba8933548be1877a5e6062a8b3c4855f8 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期二, 23 九月 2025 13:58:14 +0800
Subject: [PATCH] 采购入库生产领料校验(因惠康设备原因条码框添加@blur触发)

---
 pages/caigourukujiaoyan/form.vue |   10 +++++++++-
 manifest.json                    |    4 ++--
 .hbuilderx/launch.json           |    2 +-
 pages/shengchanlingliao/form.vue |    5 ++++-
 4 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index d7abf73..4dd14cd 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -25,7 +25,7 @@
             "localRepoPath" : "D:/WorkBench/ZY_APP_Dev/STUWMS/unpackage/debug",
             "openVueDevtools" : true,
             "packageName" : "com.shebeiguanli.www",
-            "playground" : "custom",
+            "playground" : "standard",
             "type" : "uni-app:app-android"
         }
     ]
diff --git a/manifest.json b/manifest.json
index 0394595..d88b39c 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
     "name" : "鏅轰簯LMES",
     "appid" : "__UNI__B002F49",
     "description" : "",
-    "versionName" : "1.0.86",
-    "versionCode" : 186,
+    "versionName" : "1.0.87",
+    "versionCode" : 187,
     "transformPx" : false,
     /* 5+App鐗规湁鐩稿叧 */
     "app-plus" : {
diff --git a/pages/caigourukujiaoyan/form.vue b/pages/caigourukujiaoyan/form.vue
index c3cec0a..3ae8a9e 100644
--- a/pages/caigourukujiaoyan/form.vue
+++ b/pages/caigourukujiaoyan/form.vue
@@ -4,7 +4,7 @@
 			<view class="form-item">
 				<view class="title">鏉$爜:</view>
 				<view class="right">
-					<input v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="璇锋壂鎻�(鎴栬緭鍏�)鏉$爜" @confirm="getCode(hform.HBarCode)" />
+					<input v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="璇锋壂鎻�(鎴栬緭鍏�)鏉$爜" @confirm="getCode(hform.HBarCode)" @blur="getCode(hform.HBarCode)" @input="handleInput" />
 				</view>
 				<uni-icons type="scan"
 					style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
@@ -256,6 +256,10 @@
             this.refreshHBillNoFocus()
 		},
 		methods: {
+			handleInput(event) {
+			  // 杩欓噷鍙互娣诲姞棰濆鐨勯�昏緫澶勭悊锛屾瘮濡傛牎楠屾垨杩涗竴姝ョ殑鎿嶄綔
+			  console.log(event.target.value);
+			},
             // 鍒锋柊鍗曟嵁鍙疯仛鐒�
             async refreshHBillNoFocus() {
                 this.HBillNoFocus = false
@@ -443,6 +447,10 @@
 				}
 			},
 			getCode(HBarCode) {
+				console.log(HBarCode);
+				if(HBarCode==undefined||HBarCode==""){
+					return
+				}
 				//浠撳簱銆佷粨浣嶆枃鏈涓虹┖鏃讹紝娓呯┖瀵瑰簲ID
 				if (!this.hform.HWHName) {
 					this.hform.HWHID = 0
diff --git a/pages/shengchanlingliao/form.vue b/pages/shengchanlingliao/form.vue
index 1592728..736ca4a 100644
--- a/pages/shengchanlingliao/form.vue
+++ b/pages/shengchanlingliao/form.vue
@@ -5,7 +5,7 @@
                 <view class="title">鏉$爜:</view>
                 <view class="right" style="width: 380rpx;">
                     <input v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="璇锋壂鎻�(鎴栬緭鍏�)鏉$爜"
-                        @confirm="getCode(hform.HBarCode)" />
+                        @confirm="getCode(hform.HBarCode)" @blur="getCode(hform.HBarCode)" />
                 </view>
                 <uni-icons type="scan"
                     style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
@@ -526,6 +526,9 @@
             },
             //鎵潯鐮佸鐞�
             getCode(HBarCode) {
+				if(HBarCode==undefined||HBarCode==""){
+					return
+				}
                 //浠撳簱銆佷粨浣嶆枃鏈涓虹┖鏃讹紝娓呯┖瀵瑰簲ID
                 if (!this.hform.HWHName) {
                     this.hform.HWHID = 0

--
Gitblit v1.9.1