wtt
2025-05-28 2a7f42931793527ceebfbc2eb9f4b7525084f764
WebTM/views/Éú²ú¹ÜÀí/Éú²ú¿ª¹¤µ¥/Sc_Add_MESBeginWorkBillList.html
@@ -273,19 +273,19 @@
                                                    <div class="layui-inline">
                                                        <label class="layui-form-label">制单日期:</label>
                                                        <div class="layui-input-inline">
                                                            <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled>
                                                            <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd"  disabled>
                                                        </div>
                                                    </div>
                                                    <div class="layui-inline">
                                                        <label class="layui-form-label">修改日期:</label>
                                                        <div class="layui-input-inline">
                                                            <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled>
                                                            <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled>
                                                        </div>
                                                    </div>
                                                    <div class="layui-inline">
                                                        <label class="layui-form-label">审核日期:</label>
                                                        <div class="layui-input-inline">
                                                            <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled>
                                                            <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd"disabled>
                                                        </div>
                                                    </div>
                                                </div>
@@ -307,13 +307,13 @@
                                                    <div class="layui-inline">
                                                        <label class="layui-form-label">关闭日期:</label>
                                                        <div class="layui-input-inline">
                                                            <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled>
                                                            <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled>
                                                        </div>
                                                    </div>
                                                    <div class="layui-inline">
                                                        <label class="layui-form-label">作废日期:</label>
                                                        <div class="layui-input-inline">
                                                            <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled>
                                                            <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd"disabled>
                                                        </div>
                                                    </div>
                                                </div>
@@ -1060,7 +1060,7 @@
                        , { field: 'HICMOBillNo', title: '生产订单号', style: 'background-color: #f9f9f9;' }
                        , { field: 'HProcExchInterID', title: '工序流转卡内码', hide: true }
                        , { field: 'HProcExchEntryID', title: '工序流转卡子内码', hide: true }
                        , { field: 'HProcExchBillNo', title: '工序流转卡号', templet: "#HProcExchInterID" }
                        , { field: 'HProcExchBillNo', title: '工序流转卡号', templet: "#HProcExchInterID", style: 'background-color: #f9f9f9;' }
                        , { field: 'HRemark', title: '备注', edit: 'text' }
                        , { field: 'HSourceInterID', title: '源单内码', hide: true }
                        , { field: 'HSourceEntryID', title: '源单子内码', hide: true }
@@ -1132,6 +1132,7 @@
                        if (obj.event == "HRelationBillNo") {
                            var HProcID = $("#HProcID").val();
                            var HSourceID = $("#HSourceID").val();
                            var HMaterID = $("#HMaterID").val();
                            layer.open({
                                type: 2
                                , skin: "layui-layer-rim"                           //加上边框
@@ -1140,7 +1141,7 @@
                                , shift: 2                                          //弹出动画
                                , area: ["90%", "90%"]                              //窗体大小
                                , maxmin: true                                      //设置最大最小按钮是否显示
                                , content: ['../../../views/Baseset/基础资料/Sc_ProcessExchangeBillListView.html?HProcID=' + HProcID + '&HSourceID=' + HSourceID+'', 'yes']
                                , content: ['../../../views/Baseset/基础资料/Sc_ProcessExchangeBillListView.html?HProcID=' + HProcID + '&HSourceID=' + HSourceID + '&HMaterID=' + HMaterID, 'yes']
                                , btn: ["确定", "取消"]
                                , btn1: function (index, laero) {
                                    //按钮一  çš„回调
@@ -1243,6 +1244,91 @@
                                , btn2: function (index, layero) { }
                                , end: function () {
                                }
                            })
                        }
                        obj.event = "";
                        return false;
                    }
                    if (event.key == "F6") {
                        if (obj.event == "HRelationBillNo") {
                            var HProcID = $("#HProcID").val();
                            var HSourceID = $("#HSourceID").val();
                            var HMaterID = $("#HMaterID").val();
                            layer.open({
                                type: 2
                                , skin: "layui-layer-rim"                           //加上边框
                                , title: "副产计划单"                             //标题
                                , closeBtn: 1                                       //窗体右上角关闭 çš„ æ ·å¼
                                , shift: 2                                          //弹出动画
                                , area: ["90%", "90%"]                              //窗体大小
                                , maxmin: true                                      //设置最大最小按钮是否显示
                                , content: ['../../../views/Baseset/基础资料/Sc_ProcessExchangeBillListView.html?HProcID=' + HProcID, 'yes']
                                , btn: ["确定", "取消"]
                                , btn1: function (index, laero) {
                                    //按钮一  çš„回调
                                    var iframeWindow = window["layui-layer-iframe" + index];//获取弹框页面
                                    var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//获取选中的数据
                                    if (checkStatus.data.length != 1) {
                                        return layer.msg("请选择一条数据");
                                    }
                                    if ($("#HSourceName").val() == checkStatus.data[0].生产资源 && $("#HProcName").val() == checkStatus.data[0].工序) {
                                        obj.update({
                                            "HProcExchInterID": checkStatus.data[0].hmainid
                                            , "HProcExchEntryID": checkStatus.data[0].hsubid
                                            , "HProcExchBillNo": checkStatus.data[0].单据号
                                            , "HRelationBillInterID": checkStatus.data[0].hmainid
                                            , "HRelationBillEntryID": checkStatus.data[0].hsubid
                                            , "HRelationBillNo": checkStatus.data[0].单据号
                                            , "HICMOInterID": checkStatus.data[0].hicmointerid
                                            , "HICMOEntryID": checkStatus.data[0].HICMOEntryID
                                            , "HICMOBillNo": checkStatus.data[0].生产订单号
                                            , "HMaterID": checkStatus.data[0].HMaterID
                                            , "HMaterName": checkStatus.data[0].产品
                                            , "HProcID": checkStatus.data[0].HProcID
                                            , "HProcName": checkStatus.data[0].工序
                                            , "HSourceInterID": checkStatus.data[0].hmainid
                                            , "HSourceEntryID": checkStatus.data[0].hsubid
                                            , "HSourceBillNo": checkStatus.data[0].单据号
                                            , "HSourceBillType": 3772
                                        })
                                    }
                                    else {
                                        return layer.msg("选择副产计划单的生产资源与工序,跟当前生产资源与工序不匹配");
                                    }
                                    layer.close(index);//关闭弹窗
                                }
                                , btn2: function (index, layero) { }
                                , end: function () {
                                    if ($("#HSourceName").val() == OptionData[0].生产资源 && $("#HProcName").val() == OptionData[0].工序) {
                                        obj.update({
                                            "HProcExchInterID": OptionData[0].hmainid
                                            , "HProcExchEntryID": OptionData[0].hsubid
                                            , "HProcExchBillNo": OptionData[0].单据号
                                            , "HRelationBillInterID": OptionData[0].hmainid
                                            , "HRelationBillEntryID": OptionData[0].hsubid
                                            , "HRelationBillNo": OptionData[0].单据号
                                            , "HICMOInterID": OptionData[0].hicmointerid
                                            , "HICMOEntryID": OptionData[0].HICMOEntryID
                                            , "HICMOBillNo": OptionData[0].生产订单号
                                            , "HMaterID": OptionData[0].HMaterID
                                            , "HMaterName": OptionData[0].产品
                                            , "HProcID": OptionData[0].HProcID
                                            , "HProcName": OptionData[0].工序
                                            , "HSourceInterID": OptionData[0].hmainid
                                            , "HSourceEntryID": OptionData[0].hsubid
                                            , "HSourceBillNo": OptionData[0].单据号
                                            , "HSourceBillType": 3772
                                        })
                                    } else {
                                        return layer.msg("选择副产计划单的生产资源与工序,跟当前生产资源与工序不匹配");
                                    }
                                    OptionData = [];
                                }
                            })
                        }
@@ -1472,8 +1558,8 @@
        //生产班次
        function GetHWorkShiftsValue(obj) {
            $("#HWorkShiftID").val(obj[0].HInterID); //当前工序ID
            $("#HWorkShiftName").val(obj[0].班次名称); //当前工序
            $("#HWorkShiftID").val(obj[0].HInterID); //当前班次
            $("#HWorkShiftName").val(obj[0].班次名称); //当前班次名称
        }
        function GetSwipeCardStart(obj) {