From 5c08046b29ae41eb3629cfec66ea84d94d001ffa Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 24 六月 2024 15:51:26 +0800
Subject: [PATCH] 器具点检记录表  功能优化(选点检规程带出子表  选点检计划 带出模具 点检规程 带出子表) 停工单增加刷卡验证 工序出站增加遗失字段 和取样字段 工序流转卡增加批次号

---
 WebTM/views/PublicPage/HSourceReportHtml.html |   53 ++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 48 insertions(+), 5 deletions(-)

diff --git a/WebTM/views/PublicPage/HSourceReportHtml.html b/WebTM/views/PublicPage/HSourceReportHtml.html
index 2e61ae0..76aed02 100644
--- a/WebTM/views/PublicPage/HSourceReportHtml.html
+++ b/WebTM/views/PublicPage/HSourceReportHtml.html
@@ -33,7 +33,7 @@
                                     <div class="layui-input-block">
                                         <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;">
                                     </div>
-                                </div>  
+                                </div>
                                 <div class="layui-inline">
                                     <label class="layui-form-label">閮ㄩ棬</label>
                                     <div class="layui-input-block">
@@ -44,11 +44,17 @@
                                     </div>
                                 </div>
                                 <!--<div class="layui-inline">
-                                    <label class="layui-form-label">閮ㄩ棬</label>
+        <label class="layui-form-label">閮ㄩ棬</label>
+        <div class="layui-input-block">
+            <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="width:190px;">
+        </div>
+    </div>-->
+                                <div class="layui-inline" id="HProcExchBillNoHidden" style="display:none;">
+                                    <label class="layui-form-label">娴佽浆鍗″彿</label>
                                     <div class="layui-input-block">
-                                        <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="width:190px;">
+                                        <input type="text" class="layui-input" name="HProcExchBillNo" id="HProcExchBillNo" style="width:190px;">
                                     </div>
-                                </div>-->
+                                </div>
                                 <div class="layui-inline">
                                     <label class="layui-form-label">鐗╂枡鍚嶇О</label>
                                     <div class="layui-input-block">
@@ -271,7 +277,8 @@
                     case '濮斿璁㈠崟':
                         HModName = "WW_EntrustOrderBill_1601";
                         break;
-                    case '鐢熶骇鍏ュ簱':
+                    case '鐢熶骇鍏ュ簱鍗�':
+                        $("#HProcExchBillNoHidden").show();
                         HModName = "ProductInBill_1202";
                         break;
                     case '閲囪喘鍏ュ簱':
@@ -282,6 +289,9 @@
                         break;
                     case '鐢熶骇閫�鏂�':
                         HModName = "MateOutBackBill_1244";
+                        break;
+                    case '宸ュ簭娴佽浆鍗�':
+                        HModName = "ProcessExchangeBill_3772";
                         break;
                 }
                 //鍒濆鏌ヨ
@@ -377,6 +387,7 @@
                 var PartNumber = $("#PartNumber").val();//鐗╂枡缂栫爜
                 var PartName = $("#PartName").val();//鐗╂枡鍚嶇О
                 var HDeptName = $("#HDeptName").val();//閮ㄩ棬
+                var HProcExchBillNo = $("#HProcExchBillNo").val();//娴佽浆鍗�
                 var ColName = $("#ColName").val();//澶嶉�夋
                 var Comparator = $("#Comparator").val()
                 var ColContent = $("#ColContent").val();
@@ -478,6 +489,24 @@
                         }
                         return sWhere;
                         break;
+                    case '鐢熶骇鍏ュ簱鍗�':
+                        if (HBillNo) {
+                            sWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'";
+                        }
+                        if (PartNumber) {
+                            sWhere += " and 鐗╂枡浠g爜 like '%" + PartNumber + "%'";
+                        }
+                        if (PartName) {
+                            sWhere += " and 鐗╂枡鍚嶇О like '%" + PartName + "%'";
+                        }
+                        if (HDeptName && HDeptName != 0) {
+                            sWhere += " and HDeptID = '" + HDeptName + "'";
+                        }
+                        if (HProcExchBillNo!="") {
+                            sWhere += " and 娴佽浆鍗″彿 like '" + HProcExchBillNo + "%'";
+                        }
+                        return sWhere;
+                        break;
                     case '閫�璐ч�氱煡鍗�':
                         return sWhere;
                         break;
@@ -495,6 +524,20 @@
                         break;
                     case '缁勮鎷嗗嵏鍗�':
                         return sWhere;
+                    case '宸ュ簭娴佽浆鍗�':
+                        if (HBillNo) {
+                            sWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'";
+                        }
+                        if (PartNumber) {
+                            sWhere += " and 鐗╂枡浠g爜 like '%" + PartNumber + "%'";
+                        }
+                        if (PartName) {
+                            sWhere += " and 鐗╂枡鍚嶇О like '%" + PartName + "%'";
+                        }
+                        if (HDeptName && HDeptName != 0) {
+                            sWhere += " and HDeptID = '" + HDeptName + "'";
+                        }
+                        return sWhere;
                         break;
                 }
 

--
Gitblit v1.9.1