From 45fba702203778256be81b10395aa77d328ad357 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 14 十一月 2023 17:54:30 +0800
Subject: [PATCH] 单品过站功能优化

---
 WebTM/views/车间管理/单品过站/Cj_ProcessItemBGA.html             |    8 +++++++-
 WebTM/views/车间管理/单品过站/Cj_ProcessItemStationPlatform.html |    8 +++++++-
 WebTM/views/车间管理/单品过站/Cj_ProcessItemBGA_PJGH.html        |   13 ++++++++++---
 3 files changed, 24 insertions(+), 5 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_ProcessItemBGA.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_ProcessItemBGA.html"
index d102003..0655584 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_ProcessItemBGA.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_ProcessItemBGA.html"
@@ -761,6 +761,9 @@
                 var HSourceBillType = $("#HSourceBillType").val();
                 var HProcExchBillNo = $("#HProcExchBillNo").val();
                 var HProcess = $("#HProcess").val();
+                var HICMOInterID = $("#HICMOInterID").val();
+                var HICMOBillNo = $("#HICMOBillNo").val();
+                var HICMOEntryID = $("#HICMOEntryID").val();
 
                 var dataParams = {
                     'OperationType': 1
@@ -776,6 +779,9 @@
                     , 'HBarCode': HBarCode
                     , 'HProcExchBillNo': HProcExchBillNo
                     , 'HProcess': HProcess
+                    , 'HICMOInterID': HICMOInterID
+                    , 'HICMOBillNo': HICMOBillNo
+                    , 'HICMOEntryID': HICMOEntryID
                     , 'subMaterList_Temp': $("#subMaterList_Temp").val()
                 }
                 var datajson = JSON.stringify(dataParams);
@@ -802,7 +808,7 @@
             function get_Save(data, HResult) {
                 var sMainStr = JSON.stringify(data.field);
                 var sSubStr = JSON.stringify(table.cache["mainTable"]);
-                var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"] + ";" + HResult;
+                var sMainSub = sMainStr + ';' + sSubStr + ";" + sSubStr+ ";" + sessionStorage["HUserName"] + ";" + HResult;
 
                 var index = layer.load();
                 $.ajax({
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_ProcessItemBGA_PJGH.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_ProcessItemBGA_PJGH.html"
index f8b3ae9..f09a84b 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_ProcessItemBGA_PJGH.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_ProcessItemBGA_PJGH.html"
@@ -103,6 +103,9 @@
                                                 <input type="hidden" name="HBatchNo" id="HBatchNo" lay-verify="HBatchNo">
                                                 <input type="hidden" name="HProcExchBillNo" id="HProcExchBillNo" lay-verify="HProcExchBillNo">
                                                 <input type="hidden" name="HProcess" id="HProcess" lay-verify="HProcess">
+                                                <input type="hidden" name="HICMOInterID" id="HICMOInterID" lay-verify="HICMOInterID">
+                                                <input type="hidden" name="HICMOBillNo" id="HICMOBillNo" lay-verify="HICMOBillNo">
+                                                <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" lay-verify="HICMOEntryID">
                                             </div>
                                         </div>
                                     </div>
@@ -195,6 +198,9 @@
             $("#HBillNo").val(datajson.HBillNo);
             $("#HBillNo_bak").val(datajson.HBillNo);
             $("#HProcExchBillNo").val(datajson.HProcExchBillNo);
+            $("#HICMOInterID").val(datajson.HICMOInterID);
+            $("#HICMOBillNo").val(datajson.HICMOBillNo);
+            $("#HICMOEntryID").val(datajson.HICMOEntryID);
             $("#HProcess").val(datajson.HProcess);
             //鍒濆鍖栫晫闈�
             set_ClearBill();
@@ -316,7 +322,7 @@
                                 return layer.msg("褰撳墠鎵规宸叉壂鍏�,璇蜂笉瑕侀噸澶嶆壂鍏�!");
                             }
                             if (data1.data[0]["HMaterNumber"] == option2.data[i]["閰嶄欢浠g爜"] && option2.data[i]["HBatchNo"] != data1.data[0]["HBatchNo"] && option2.data[i]["HBatchNo"] != "") {
-                                layer.confirm('鏄惁瑕佹浛鎹㈠綋鍓嶆壒娆�', function (index) {
+                                layer.confirm('鏄惁瑕佹妸褰撳墠鎵规:' + option2.data[i]["HBatchNo"] + '鏇挎崲鎴愭壒娆�:' + data1.data[0]["HBatchNo"], function (index) {
                                     layer.close(index);
                                     $('#HProcName').val(HBarCode);
                                     option2.data[i]["HBatchNo"] = data1.data[0]["HBatchNo"];
@@ -586,12 +592,13 @@
 
         //淇濆瓨HMaker
         function set_AddNew() {
-            var data1 = { "field": { "HInterID": $("#HInterID").val(), "HBillNo": $("#HBillNo").val(), "HProcExchBillNo": $("#HProcExchBillNo").val(), "HProcExchInterID": $("#HProcExchInterID").val(), "HProcExchEntryID": $("#HProcExchEntryID").val(), "HProcess": $("#HProcess").val() } };
+            var data1 = { "field": { "HInterID": $("#HInterID").val(), "HBillNo": $("#HBillNo").val(), "HProcExchBillNo": $("#HProcExchBillNo").val(), "HProcExchInterID": $("#HProcExchInterID").val(), "HProcExchEntryID": $("#HProcExchEntryID").val(), "HProcess": $("#HProcess").val(), "HICMOInterID": $("#HICMOInterID").val(), "HICMOEntryID": $("#HICMOEntryID").val(), "HICMOBillNo": $("#HICMOBillNo").val(), "HBarCode": $("#HMaterSN").val(), "HProdOrgID": sessionStorage["OrganizationID"] } };
 
             var HResult = "閰嶄欢";
             var sMainStr = JSON.stringify(data1.field);
             var sSubStr = JSON.stringify(table.cache["mainTable2"][KNum]);
-            var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"] + ";" + HResult;
+            var sSubStr2 = JSON.stringify(table.cache["mainTable2"]);
+            var sMainSub = sMainStr + ';' + sSubStr + ';' + sSubStr2 + ";" + sessionStorage["HUserName"] + ";" + HResult;
 
             var index = layer.load();
             $.ajax({
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 3ee937c..5222e51 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"
@@ -334,6 +334,12 @@
                         return;
                     }
                 }
+                for (var i = 0; i < option.data.length; i++) {
+                    if (option.data[i]["HBatchNo"] == "") {
+                        layer.msg("褰撳墠宸ュ簭鎵规涓嶈兘涓虹┖锛�")
+                        return;
+                    }
+                }
                 txtHBarCode_KeyDown(HBarCode);
             }
         });
@@ -813,7 +819,7 @@
                                 return layer.msg("褰撳墠鎵规宸叉壂鍏�,璇蜂笉瑕侀噸澶嶆壂鍏�!");
                             }
                             if (data1.data[0]["HMaterNumber"] == option.data[i]["閰嶄欢浠g爜"] && option.data[i]["HBatchNo"] != data1.data[0]["HBatchNo"] && option.data[i]["HBatchNo"] != "") {
-                                layer.confirm('鏄惁瑕佹浛鎹㈠綋鍓嶆壒娆�', function (index) {
+                                layer.confirm('鏄惁瑕佹妸褰撳墠鎵规:' + option.data[i]["HBatchNo"] + '鏇挎崲鎴愭壒娆�:' + data1.data[0]["HBatchNo"], function (index) {
                                     layer.close(index);
                                     option.data[i]["HBatchNo"] = data1.data[0]["HBatchNo"];
                                     option.data[i]["HBarCode"] = HBarCode;

--
Gitblit v1.9.1