chenhaozhe
2025-05-21 94853e46b9d4911fb4cf00389f00a4b820db5d3c
WebTM/views/Éú²ú¹ÜÀí/²úÁ¿»ã±¨µ¥/Sc_ProductReportBillList_Web.html
@@ -234,7 +234,7 @@
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'HInterID', title: 'HInterID', sort: true, hide: true, width: 200 }
                        , { field: '单据号', title: '单据号', width: 200 }
                        , { field: '日期', title: '日期', width: 200, templet: "<div>{{d.HDate ==null ?'':layui.util.toDateString(d.HDate, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , { field: '日期', title: '日期', width: 200, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , { field: '单据类型', title: '单据类型', width: 200 }
                        , { field: 'HBillStatus', title: '单据状态', width: 200 }
                        , { field: 'HMaterID', title: '产品ID', width: 200, hide: true }
@@ -308,19 +308,19 @@
                var Source = $("#Source").val();  //资源
                sWhere += SchWhere;
                if (HDate) {
                    sWhere += " and CONVERT(varchar(100),a.HDate, 23) >= '" + HDate + "'";
                    sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + HDate + "'";
                }
                if (HDate1) {
                    sWhere += " and CONVERT(varchar(100),a.HDate, 23) <= '" + HDate1 + "'";
                    sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + HDate1 + "'";
                }
                if (HBillNo) {
                    sWhere += " and a.HBillNo like '%" + HBillNo + "%'";
                    sWhere += " and å•据号 like '%" + HBillNo + "%'";
                }
                if (Part) {
                    sWhere += " and concat(m.HNumber,m.HName,m.HModel) like '%" + Part + "%'";
                    sWhere += " and concat(产品代码,产品名称,产品规格) like '%" + Part + "%'";
                }
                if (Source) {
                    sWhere += " and s.HName like '%" + Dept + "%'";
                    sWhere += " and ç”Ÿäº§èµ„源 like '%" + Dept + "%'";
                }
                get_Display(sWhere);
@@ -403,21 +403,33 @@
                        $.ajax({
                            type: "GET",
                            url: GetWEBURL() + "Sc_MESBeginWorkBill/DeltetMESProductReportBill", //方法所在页面和方法名
                            data: { "HInterID": InterID, "HICMOInterID": HICMOInID, "HICMOEntryID": HICMOEnID },
                            data: { "HInterID": InterID, "HICMOInterID": HICMOInID, "HICMOEntryID": HICMOEnID, "UserName": sessionStorage["HUserName"]},
                            success: function (result) {
                                if (result.count == 1) {
                                    layer.msg(result.Message, { time: 1 * 2000, icon: 1 });
                                    table.reload('mainTable', {
                                        page: {
                                            curr: 1 //重新从第一页开始
                                        }
                                    })
                                    return false;
                                    layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
                                        // å¾—到frame索引
                                        var index = layer.getFrameIndex(window.name);
                                        //关闭当前frame
                                        layer.close(index);
                                        //修改为功后刷新界面
                                        window.location.reload();
                                    });
                                } else {
                                    layer.alert(result.code + result.Message, { icon: 5 });
                                    return false;
                                }
                                //if (result.count == 1) {
                                //    layer.msg(result.Message, { time: 1 * 2000, icon: 1 });
                                //    table.reload('mainTable', {
                                //        page: {
                                //            curr: 1 //重新从第一页开始
                                //        }
                                //    })
                                //    return false;
                                //} else {
                                //    layer.alert(result.code + result.Message, { icon: 5 });
                                //    return false;
                                //}
                            }, error: function () {
                                layer.alert("接口请求失败!", { icon: 5 });
                                return false;
@@ -479,7 +491,7 @@
            }
            //反审核
            function set_CheckBill()
            function set_AbandonCheck()
            {
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
@@ -499,8 +511,8 @@
                    //逻辑审核方法
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Sc_MESBeginWorkBill/AuditProcessReportList", //方法所在页面和方法名
                        data: { "HSourceID": HSourceID, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HSourceBillNo": HSourceBillNo, "HICMOInterID": HICMOInterID, "HICMOEntryID": HICMOEntryID, "HInterID": HInterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] },
                        url: GetWEBURL() + "/Sc_MESBeginWorkBill/MESProductAuditProcessReportList", //方法所在页面和方法名
                        data: { "HSourceID": HSourceID, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HSourceBillNo": HSourceBillNo, "HICMOInterID": HICMOInterID, "HICMOEntryID": HICMOEntryID, "HInterID": HInterID, "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {