1
wangyi
2026-04-02 96785ebcfe1bc9210f3d9d4056f4ec29fb60d810
WebTM/views/³µ¼ä¹ÜÀí/µ¥Æ·¹ýÕ¾/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 {