From f308e0642a234d2c706ebc0885a73608ebf77d23 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期三, 15 四月 2026 14:23:24 +0800
Subject: [PATCH] 1

---
 WebTM/views/车间管理/单品过站_小卫/Cj_ProcessItemStationPlatform_UnbindList.html |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_UnbindList.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_UnbindList.html"
index f0587ca..297642a 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_UnbindList.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_UnbindList.html"
@@ -197,7 +197,7 @@
             var titleData = ["hmainid","hsubid","HProdOrgID"];
 
             //#region 銆愬姩鎬佽幏鍙栨ā鍧楀悕绉般��
-            var HModuleType = "";
+            var HModuleType = "Cj_ProcessItemStationPlatform_UnbindList";
             //閫氳繃鍗曟嵁绫诲瀷锛屼粠鏁版嵁搴撳姩鎬佽幏鍙栧崟鎹ā鍧楀懡鍚�,寮曠敤js鏂囦欢 PageTitle.js
             var HPageTitle = get_PageTitle(HModuleType) == "" ? document.title : get_PageTitle(HModuleType);
             //#endregion
@@ -328,8 +328,10 @@
             //SN鐮佸洖杞︽柟娉�
             $('#HBarcode_SN').on('keydown', function (event) {
                 if (event.keyCode == 13) {
-                    get_FastQuery(2);
-                }
+                    //get_FastQuery(2);
+                    $('#HBarcode_SN').val($('#HBarcode_SN').val() + ',')
+                    //console.log($('#HBarcode_SN').val());
+                }               
             });
 
             //鏍堟澘鐮佸洖杞︽柟娉�
@@ -547,8 +549,18 @@
                     sWhere += " and 宸ュ崟缂栧彿 like '%" + HICMOBillNo + "%'";
                 }
 
+                //if (HBarcode_SN) {
+                //    sWhere += " and DSN like '%" + HBarcode_SN + "%'";
+                //}
                 if (HBarcode_SN) {
-                    sWhere += " and DSN like '%" + HBarcode_SN + "%'";
+                    HBarcode_SN = HBarcode_SN.substring(0, HBarcode_SN.length - 1)
+                    HBarcode_SN = HBarcode_SN.replace(/锛�/g, ',')
+                        .split(',')
+                        .map(item => `'${item.trim()}'`)
+                        .join(',');
+
+                    console.log("澶勭悊缁撴灉:", HBarcode_SN);
+                    sWhere += " and DSN in (" + HBarcode_SN + ")";
                 }
                 if (HBarcode_ZB) {
                     sWhere += "and  鏍堟澘鐮� like '%" + HBarcode_ZB + "%'";

--
Gitblit v1.9.1