wtt
2025-11-05 2bf4ff2ba42a6b68de0b298f9b701e6d6338dfdb
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Æ½Ì¨_PDA/¿ª¹¤/Sc_Add_MESBeginWorkBillList_PDA.html
@@ -282,6 +282,7 @@
        var HSourceEntryID = "";  //源单子内码
        var HSourceBillNo = "";   //源单单号
        var HSourceBillType = "";  //源单类型
        var HGroupID = 0;//班组ID
        //获取页面跳转参数  //单据编辑状态: 1.无源单新增  Â 2.有源单新增  Â 3.编辑  4.浏览  5.变更
        var params = get_UrlVars();
        if (typeof (params[params[0]]) == "undefined") {
@@ -298,7 +299,7 @@
            HSourceEntryID = data[0].HSourceEntryID;
            HSourceBillNo = data[0].HSourceBillNo;
            HSourceBillType = data[0].HSourceBillType;
            HGroupID = data[0].HGroupID;
        }
        layui.config({
            base: '../../../../layuiadmin/' //静态资源所在路径
@@ -337,8 +338,10 @@
                        layer.msg("获取单据号失败,请刷新重试!");
                    }
                });
                //通过登录用户获取默认值
                GetDefValByUser();
                //获取班组名称
                getHGroupNameByID()
                set_AddNew();
            }                      
@@ -358,14 +361,6 @@
                txtHBarCode_KeyDown(HBarCode);
            });
            //#endregion
            //#region æ–°å¢žæŒ‰é’®
            form.on('submit(Add)', function () {//提交
                layer.confirm('新增后页面数据将消失?', { icon: 3, title: '提示' }, function (index) {
                    location.replace('Sc_MESBeginWorkBillList_PDA.html?type=' + params[params[0]]);
                });
            })
            //#endregion
                 
            //#region ä¿å­˜æŒ‰é’®
@@ -413,7 +408,7 @@
                        if (result.count == 1) {
                            $('#Saver').addClass("layui-btn-disabled").attr("disabled", true);//禁用保存按钮
                            $("#HInterID").val(result.HInterID);//获取提交成功返回的单据主ID
                            layer.msg(result.Message, { time: 1 * 2000, icon: 1 }, function (index) {
                            layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function (index) {
                                if (result.Verify == "Y") //自动审核
                                {
                                    layer.close(index);
@@ -568,15 +563,17 @@
            //退出--全屏版
            form.on('submit(Cancel)', function () {
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.location.href = "../../../../views/index_Mobile.html";
                });
                //layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                //    parent.location.href = "../../../../views/index_Mobile.html";
                //});
                Pub_Close2(1);
            })
            //新增
            form.on('submit(Add)', function () {
                var index = parent.layer.getFrameIndex(window.name); // å…ˆå¾—到当前 iframe å±‚的索引
                parent.layer.close(index); // å†æ‰§è¡Œå…³é—­
                //var index = parent.layer.getFrameIndex(window.name); // å…ˆå¾—到当前 iframe å±‚的索引
                //parent.layer.close(index); // å†æ‰§è¡Œå…³é—­
                Pub_Close2(1);
            })
            //#endregion
@@ -612,6 +609,27 @@
            }
            //#endregion
            //#region é€šè¿‡ç­ç»„ID获取班组名称
            function getHGroupNameByID() {
                $.ajax({
                    url: GetWEBURL() + '/Gy_Group/cx',
                    type: "GET",
                    async: false,
                    data: { "HInterID": HGroupID },
                    success: function (data1) {
                        if (data1.count == 1) {
                            $("#HGroupID").val(HGroupID)
                            $("#HGroupName").val(data1.data[0].班组名称)
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            }
            //#endregion
            //条形码回车方法
            function txtHBarCode_KeyDown(HBarCode) {
                var ajaxLoad = layer.load();