From 96785ebcfe1bc9210f3d9d4056f4ec29fb60d810 Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期四, 02 四月 2026 10:58:22 +0800
Subject: [PATCH] 1

---
 WebTM/views/车间管理/单品过站/Cj_ProcessItemStationPlatform.html |   57 ++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 48 insertions(+), 9 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/Cj_ProcessItemStationPlatform.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/Cj_ProcessItemStationPlatform.html"
index f733db4..9a8dc6f 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/Cj_ProcessItemStationPlatform.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/Cj_ProcessItemStationPlatform.html"
@@ -22,10 +22,6 @@
         <div class="layui-card" style="padding: 2px;background-color: #efefef;">
             <div class="layui-card-body" style="padding: 1px;">
                 <form class="layui-form" action="" lay-filter="formData" style="background-color:white;">
-                    <!--<div style="padding: 10px;">
-        <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">淇濆瓨</button>
-        <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">閫�鍑�</button>
-    </div>-->
                     <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 49%; float: left; height: 600px;background-color:white;">
                         <div class="layui-tab-content">
                             <!--鍩烘湰淇℃伅-->
@@ -567,6 +563,7 @@
                     , { field: '閰嶄欢瑙勬牸', title: '閰嶄欢瑙勬牸' }
                     , { field: '閰嶄欢鏁伴噺', title: '閰嶄欢鏁伴噺', totalRow: true}
                     , { field: 'HBatchNo', title: '褰撳墠鎵规' }
+                    , { field: 'HProcID', title: 'HProcID', hide: true }
                     , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true }
                     , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true }
                     , { field: 'HICMOBillNo', title: 'HICMOBillNo', hide: true }
@@ -650,17 +647,19 @@
             var ajaxLoad = layer.load();
             var HProcExchInterID = $("#HProcExchInterID").val();
             var HProcExchEntryID = $("#HProcExchEntryID").val();
+            var HProcID = $("#HProcID").val();
             //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
             $.ajax({
-                url: GetWEBURL() + '/Cj_SingleStation/BadRecordsList',
+                url: GetWEBURL() + '/Cj_SingleStation/BadRecordsList2',
                 type: "GET",
                 async: false,
-                data: { "HProcExchInterID": HProcExchInterID, "HProcExchEntryID": HProcExchEntryID, "user": sessionStorage["HUserName"] },
+                //data: { "HProcExchInterID": HProcExchInterID, "HProcExchEntryID": HProcExchEntryID, "user": sessionStorage["HUserName"] },
+                data: { "HProcExchInterID": HProcExchInterID, "HProcID": HProcID, "user": sessionStorage["HUserName"] },
                 success: function (data1) {
                     if (data1.count == 1) {
-                        option2.data = data1.data.h_p_Gy_BadRecordsList;
+                        option2.data = data1.data.h_p_Gy_BadRecordsList2;
                         table.render(option2);
-                        $("#HBadCount").val(data1.data.h_p_Gy_BadRecordsList1.length - data1.data.h_p_Gy_BadRecordsList2.length);
+                        $("#HBadCount").val(data1.data.h_p_Gy_BadRecordsList21.length - data1.data.h_p_Gy_BadRecordsList22.length);
                         layer.close(ajaxLoad);
                     } else {
                         layer.close(ajaxLoad);
@@ -678,7 +677,9 @@
         function get_HGRecords() {
             var HProcExchInterID = $("#HProcExchInterID").val();
             var HProcExchEntryID = $("#HProcExchEntryID").val();
-            var sWhere = "and HProcExchInterID=" + HProcExchInterID + " and HProcExchEntryID=" + HProcExchEntryID;
+            var HProcID = $("#HProcID").val();
+            //var sWhere = "and HProcExchInterID=" + HProcExchInterID + " and HProcExchEntryID=" + HProcExchEntryID;
+            var sWhere = "and HProcExchInterID=" + HProcExchInterID + " and HProcID=" + HProcID;
             var ajaxLoad = layer.load();
             //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
             $.ajax({
@@ -859,6 +860,25 @@
                         $("#HPieceQty").val(data1.data[0]["HPieceQty"]);
                         $("#HICMOQty").val(data1.data[0]["HICMOQty"]);
 
+                        var currentProcID = $("#HProcID").val();
+                        var matchedRow = null;
+                        // 鏌ユ壘鍖归厤鐨勫伐搴忔暟鎹�
+                        for (var i = 0; i < data1.data.length; i++) {
+                            if (data1.data[i]["HProcID"] == currentProcID) {
+                                matchedRow = data1.data[i];
+                                break;
+                            }
+                        }
+                        // 濡傛灉鎵惧埌鍖归厤琛岋紝鍒欎娇鐢ㄨ琛屾暟鎹祴鍊硷紱鍚﹀垯涓嶈祴鍊硷紙瀛楁淇濈暀鍘熷�硷級
+                        if (matchedRow) {
+                            $("#HProcExchInterID").val(matchedRow["HProcExchInterID"]);
+                            $("#HProcExchEntryID").val(matchedRow["HProcExchEntryID"]);
+                            $("#HProcExchBillNo").val(matchedRow["HProcExchBillNo"]);
+                            $("#HProcNo").val(matchedRow["HProcNo"]);
+                            $("#HPieceQty").val(matchedRow["HPieceQty"]);
+                        }
+
+
                         createBillNo();
 
                         option.data = data1.data;
@@ -901,6 +921,25 @@
                         $("#HPieceQty").val(data1.data[0]["HPieceQty"]);
                         $("#HICMOQty").val(data1.data[0]["HICMOQty"]);
 
+
+                        var currentProcID = $("#HProcID").val();
+                        var matchedRow = null;
+                        // 鏌ユ壘鍖归厤鐨勫伐搴忔暟鎹�
+                        for (var i = 0; i < data1.data.length; i++) {
+                            if (data1.data[i]["HProcID"] == currentProcID) {
+                                matchedRow = data1.data[i];
+                                break;
+                            }
+                        }
+                        // 濡傛灉鎵惧埌鍖归厤琛岋紝鍒欎娇鐢ㄨ琛屾暟鎹祴鍊硷紱鍚﹀垯涓嶈祴鍊硷紙瀛楁淇濈暀鍘熷�硷級
+                        if (matchedRow) {
+                            $("#HProcExchInterID").val(matchedRow["HProcExchInterID"]);
+                            $("#HProcExchEntryID").val(matchedRow["HProcExchEntryID"]);
+                            $("#HProcExchBillNo").val(matchedRow["HProcExchBillNo"]);
+                            $("#HProcNo").val(matchedRow["HProcNo"]);
+                            $("#HPieceQty").val(matchedRow["HPieceQty"]);
+                        }
+
                         createBillNo();
                        
                     } else {

--
Gitblit v1.9.1