wtt
2025-10-30 d9d78499cf3aaa6165bb1bc9fe3d8a9537e4d26a
WebTM/views/Éú²ú¹ÜÀí/Òì³£·´À¡µ¥/OA_ErrMsgBackHandleBillMain.html
@@ -450,7 +450,7 @@
            //#endregion
            //初始化表单插件
            set_InitFrom();
            //set_InitFrom();
            //判断操作类型
            if (OperationType == null || OperationType == 1) {//无源单
@@ -562,6 +562,8 @@
                                    var LoadData = data.data;
                                    $("#HDeptID").val(LoadData[0].HDeptID); //部门ID
                                    $("#HDeptName").val(LoadData[0].发送部门); //发送部门
                                    $("#HReceiveID").val(LoadData[0].HRecDeptID); //部门ID
                                    $("#HReceiveName").val(LoadData[0].接收部门); //接收部门
                                    $("#HErrMsgBackTypeID").val(LoadData[0].HErrMsgBackTypeID); //异常类型名称ID
                                    $("#HErrMsgBackTypeName").val(LoadData[0].异常类型名称); //异常类型名称
                                    $("#HSendMan").val(LoadData[0].发送人); //发送人
@@ -571,6 +573,11 @@
                                    $("#HContext").val(LoadData[0].主题); //主题
                                    $("#HDescription").val(LoadData[0].详细内容); //详细内容
                                    $("#HMaterName").val(LoadData[0].物料名称); //产品名称
                                    $("#HMaterModel").val(LoadData[0].规格型号); //规格型号
                                    $("#HEquipID").val(LoadData[0].设备id); //设备id
                                    $("#HEquipName").val(LoadData[0].设备名称); //产品名称
                                    $("#HMouldID").val(LoadData[0].模具id); //模具id
                                    $("#HMouldName").val(LoadData[0].模具名称); //模具名称
                                    $("#HBillTypeName").val(HSouceBillType); //单据类型
                                    $("#HPlanBillNo").val(LoadData[0].单据号); //单据号
@@ -800,9 +807,14 @@
                    dataType: "json",
                    success: function (data) {
                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            layer.msg(data.Message, { icon: 1 });
                            $('#Saver').addClass("layui-btn-disabled").attr("disabled", true);
                            layer.msg("提交成功");
                            if (data.Verify == "Y") //自动审核
                            {
                                $("#HInterID").val(data.HInterID);//获取提交成功返回的单据主ID
                                set_CheckBill(0); //审核
                            }
                            layer.close(index);
                        }
                        else {
                            layer.alert(data.Message, { icon: 5 })
@@ -840,7 +852,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -880,7 +892,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -1056,7 +1068,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../质量管理/基础建模/Gy_ErrMsgBackType.html', 'yes'],
                    content: ['../../质量管理/基础建模/Gy_ErrMsgBackType.html?openType=2', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -1094,7 +1106,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../设备管理/设备档案/Gy_EquipFileMainList.html', 'yes'],
                    content: ['../../设备管理/设备档案/Gy_EquipFileMainList.html?openType=2', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -1132,7 +1144,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                  content: ['../../模治具管理/模治具管理/Gy_MouldFileList.html', 'yes'],
                  content: ['../../模治具管理/模治具管理/Gy_MouldFileList.html?openType=2', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -1170,7 +1182,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/生产基础资料/Gy_DisposeWayList.html', 'yes'],
                    content: ['../../基础资料/生产基础资料/Gy_DisposeWayList.html?openType=2', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -1236,7 +1248,28 @@
                });
            });
            function set_CheckBill(num) {
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/Sc_MESTransFerWorkBill/AuditOA_ErrMsgBackHandleBill", //方法所在页面和方法名
                    data: { "HInterID": $("#HInterID").val(), "IsAudit": num, "CurUserName": sessionStorage["HUserName"] },
                    success: function (result) {
                        if (result.count == 1) {
                            layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
                                // å¾—到frame索引
                                var index = layer.getFrameIndex(window.name);
                                //关闭当前frame
                                layer.close(index);
                            });
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            }
           
            //以上为layui模块
@@ -1268,6 +1301,10 @@
                layer.msg("接收人不能为空!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return Result = false;
            }
            if ($("#HHandleNote").val() == '' || $("#HHandleNote").val() == null) {
                layer.msg("处理内容不能为空!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return Result = false;
            }
           
           
            return Result;