From a5e8fb4e50f285538ad6800d5abdb66ea367db00 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期三, 14 一月 2026 10:59:42 +0800
Subject: [PATCH] 添康获取多车间订单排产;小卫彩盒SN校验标题调整;过站解绑列表添加日期区间过滤;香囊标签打印,添加暂停打印,继续打印功能

---
 WebTM/views/车间管理/单品过站_小卫/Cj_ProcessItemStationPlatform_UnbindList.html |   74 ++++++++++++++++++++++++++++++++-----
 1 files changed, 64 insertions(+), 10 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 08cb73c..f0587ca 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"
@@ -32,25 +32,37 @@
                                 <div class="layui-inline">
                                     <label class="layui-form-label" style="width: 85px;">宸ュ崟鍙�</label>
                                     <div class="layui-input-block" style="margin-left: 120px;">
-                                        <input type="text" class="layui-input ForFilteringSchemes" name="HICMOBillNo" id="HICMOBillNo">
+                                        <input type="text" class="layui-input ForFilteringSchemes" name="HICMOBillNo" id="HICMOBillNo" onfocus="this.select();">
                                     </div>
                                 </div>
                                 <div class="layui-inline">
                                     <label class="layui-form-label" style="width: 85px;">SN鐮�</label>
                                     <div class="layui-input-block" style="margin-left: 120px;">
-                                        <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_SN" id="HBarcode_SN">
+                                        <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_SN" id="HBarcode_SN" onfocus="this.select();">
                                     </div>
                                 </div>
                                 <div class="layui-inline">
                                     <label class="layui-form-label" style="width: 85px;">鏍堟澘鐮�</label>
                                     <div class="layui-input-block" style="margin-left: 120px;">
-                                        <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_ZB" id="HBarcode_ZB">
+                                        <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_ZB" id="HBarcode_ZB" onfocus="this.select();">
                                     </div>
                                 </div>
                                 <div class="layui-inline">
                                     <label class="layui-form-label" style="width: 85px;">涓鐮�</label>
                                     <div class="layui-input-block" style="margin-left: 120px;">
-                                        <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_ZX" id="HBarcode_ZX">
+                                        <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_ZX" id="HBarcode_ZX" onfocus="this.select();">
+                                    </div>
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">寮�濮嬫棩鏈�</label>
+                                    <div class="layui-input-block">
+                                        <input type="date" class="layui-input ForFilteringSchemes" id="HBeginDate" style="width:110px;">
+                                    </div>
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">缁撴潫鏃ユ湡</label>
+                                    <div class="layui-input-block">
+                                        <input type="date" class="layui-input ForFilteringSchemes" id="HEndDate" style="width:110px;">
                                     </div>
                                 </div>
 
@@ -306,16 +318,46 @@
             });
             //#endregion
 
+            //宸ュ崟鍙峰洖杞︽柟娉�
+            $('#HICMOBillNo').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    get_FastQuery(2);
+                }
+            });
+
+            //SN鐮佸洖杞︽柟娉�
+            $('#HBarcode_SN').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    get_FastQuery(2);
+                }
+            });
+
+            //鏍堟澘鐮佸洖杞︽柟娉�
+            $('#HBarcode_ZB').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    get_FastQuery(2);
+                }
+            });
+
+            //涓鐮佸洖杞︽柟娉�
+            $('#HBarcode_ZX').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    get_FastQuery(2);
+                }
+            });
+
             //#endregion
 
             //#region 鏈〉闈㈡墍鏈夎璋冪敤鐨勬柟娉�
 
             //#region 鍒濆鍖栫晫闈�
             function set_ClearBill() {
+                $("#HBeginDate").val(Format(new Date(new Date() - (1000 * 60 * 60 * 24 * 7)), "yyyy-MM-dd"));
+                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                 //鍒濆鍖栬〃鏍�
                 set_InitGrid();
                 //鏌ヨ
-                get_FastQuery(1);
+                //get_FastQuery(1);
             }
             //#endregion
 
@@ -425,6 +467,8 @@
                 var HBarcode_SN = $("#HBarcode_SN").val();  //SN鍙�
                 var HBarcode_ZB = $("#HBarcode_ZB").val();  //鏍堟澘鐮�
                 var HBarcode_ZX = $("#HBarcode_ZX").val();  //涓鐮�
+                var HDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
+                var HDate1 = $("#HEndDate").val();//缁撴潫鏃ユ湡
 
                 //浠绘剰瀛楁杩囨护
                 var ColName = $("#ColName").val();//澶嶉�夋
@@ -500,16 +544,23 @@
                     sWhere += " and " + ColName2 + " " + com2;
                 }
                 if (HICMOBillNo) {
-                    sWhere += " and 鐢熶骇璁㈠崟鍙� like '%" + HICMOBillNo + "%'";
+                    sWhere += " and 宸ュ崟缂栧彿 like '%" + HICMOBillNo + "%'";
                 }
+
                 if (HBarcode_SN) {
                     sWhere += " and DSN like '%" + HBarcode_SN + "%'";
                 }
                 if (HBarcode_ZB) {
-                    sWhere += " and 鏍堟澘鐮� like '%" + HBarcode_ZB + "%'";
+                    sWhere += "and  鏍堟澘鐮� like '%" + HBarcode_ZB + "%'";
                 }
                 if (HBarcode_ZX) {
-                    sWhere += " and 涓鐮� like '%" + HBarcode_ZX + "%'";
+                    sWhere += "and  涓鐮� like '%" + HBarcode_ZX + "%'";
+                }
+                if (HDate) {
+                    sWhere += " and CONVERT(varchar(100),鐢熶骇鏃ユ湡, 23) >= '" + HDate + "'";
+                }
+                if (HDate1) {
+                    sWhere += " and CONVERT(varchar(100),鐢熶骇鏃ユ湡, 23) <= '" + HDate1 + "'";
                 }
 
                 get_Display(sWhere);
@@ -523,6 +574,8 @@
                 $("#HBarcode_SN").val("");
                 $("#HBarcode_ZB").val("");
                 $("#HBarcode_ZX").val("");
+                $("#HBeginDate").val(Format(new Date(new Date() - (1000 * 60 * 60 * 24 * 7)), "yyyy-MM-dd"));
+                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                 $("#ColContent").val("");
                 $("#ColName").val("0");
                 $("#Comparator").val("0");
@@ -533,7 +586,8 @@
                 $("#ColName2").val("0");
                 $("#Comparator2").val("0");
                 form.render('select');
-
+                
+                get_FastQuery("")
                 sWhere = "";
             }
             //#endregion
@@ -549,7 +603,7 @@
                             item[itemobj] = "";
                         }
                         if (item[itemobj].length > 0) {  // 鍋囪瀛楁鍚嶄负field
-                            item[itemobj] = item[itemobj].toString().replaceALL(/[\r\n]+/g, '');  // 灏嗘崲琛岀鏇挎崲涓虹┖瀛楃涓�
+                            item[itemobj] = item[itemobj].toString().replace(/[\r\n]+/g, '').replace(/[\r\n]+/g, '').replace(/[\r\n]+/g, '');  // 灏嗘崲琛岀鏇挎崲涓虹┖瀛楃涓�
                         }
                     }
                 });

--
Gitblit v1.9.1