From 2359bbb7e54c08e205aee803930c2947f99f7264 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期六, 28 二月 2026 09:25:06 +0800
Subject: [PATCH] 小卫香囊绑定,点击换产品按钮,清空sn码,关键件信息重新扫码;sn打印站通过工序区分调用查询语句

---
 WebTM/views/车间管理/单品过站_小卫/Cj_ProcessItemStationPlatform_batchKeyElement.html |   35 ++++++++---------------------------
 WebTM/views/车间管理/单品过站_小卫/Cj_ProcessItemStationPlatform_generateSNCode.html  |    4 ++++
 2 files changed, 12 insertions(+), 27 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_batchKeyElement.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_batchKeyElement.html"
index 6afb790..0083303 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_batchKeyElement.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_batchKeyElement.html"
@@ -426,36 +426,17 @@
         });
         //鎹骇鍝�
         form.on('submit(btnNextProc)', function (data) {
-            //for (var i = 0; i < option.data.length; i++) {
-            //    if (option.data[i].HBindingQty < 1 || option.data[i].HBarCode == "") {
-            //        layer.alert("绗�<span style='color: red;'>" + (i + 1) + "</span>琛岋紝閰嶄欢 <span style='color: blue;'>" + option.data[i].HMaterName + "</span> 鏈粦瀹氶綈鏁达紒")
-            //        return;
-            //    }
-            //}
 
-            //淇濆瓨鍏抽敭浠�
-            if (AllowLoadData(data)) {
-                set_SaveBill(data);
-            }
+            $("#HBarCode_SN").val("");
+            $("#HBarCode_Key").val("");
+            option.data = [];
+            table.render(option);
 
-            
+            //鍚敤杈撳叆妗�,鑳屾櫙鑹叉仮澶�
+            $("#HBarCode_SN").prop("readonly", false);
+            $("#HBarCode_SN").css('background', '#FFFFFF')//浜у搧鐮佹枃鏈鑳屾櫙鑹叉仮澶�
+            $("#HBarCode_SN").focus();
 
-            //閲嶆柊鑾峰彇鍗曟嵁鍙�
-            //$.ajax({
-            //    url: GetWEBURL() + "/Web/GetMAXNumPDA",
-            //    type: "GET",
-            //    data: { "HBillType": '3727' },
-            //    success: function (d) {
-            //        $("#HInterID").val(d.data[0].HInterID);
-            //        $("#HBillNo").val(d.data[0].HBillNo);
-            //        $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));  //榛樿涓哄綋鍓嶆棩鏈�
-            //        //閲嶆柊鍚敤淇濆瓨鎸夐挳
-            //        $("#btnSave").removeClass("layui-btn-disabled").attr("disabled", false);
-            //    }
-            //});
-
-            //鍘嗗彶缁戝畾璁板綍鏌ヨ
-            //get_Display();
         });
 
 
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_generateSNCode.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_generateSNCode.html"
index d027989..66dc52b 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_generateSNCode.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_generateSNCode.html"
@@ -602,6 +602,10 @@
         function dy_PL(HBarCode) {
             var sWhere = "select Top 1 * from h_v_IF_BarCodeBillList with(nolock) where 鏉$爜缂栧彿 = '" + HBarCode + "'"
 
+            if ($("#HProcName").val() == "鎵撳嵃69鐮佹爣绛�" ) {
+                sWhere = "exec h_p_IF_BarCodeBillList_XWPrint '" + HBarCode + "'"
+            }
+
             $.ajax({
                 type: "GET",
                 url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�

--
Gitblit v1.9.1