chenhaozhe
2025-05-30 f025d969dcf4e664ef8f7f33ee2060e113c3adff
WebTM/views/ÏîÄ¿¹ÜÀí/¹¤³ÌÏîÄ¿/PM_WorkPlanMonthBillMain.html
@@ -247,6 +247,9 @@
                , form = layui.form
                , element = layui.element;
            //全局变量
            window.optionData = [];
            //模块名
            var HBillType = "4758";
            //表格渲染参数
@@ -900,6 +903,30 @@
                            layer.close(index);//关闭弹窗
                        };
                    }
                    , end: function () {
                        var ProcessNumber = [];
                        for (var i = 0; i < optionData.length; i++) {
                            ProcessNumber.push(checkStatus.data[i]);
                        }
                        //获取当前位置所在行数
                        var NowNum = 0;
                        NowNum = option.data.length;
                        var j = 0;
                        for (var i = 0; i < ProcessNumber.length; i++) {
                            option.data.push({
                                "HProNumber": optionData[j].项目代码, "项目名称": optionData[j].项目名称, "HProjectStageID": optionData[j].HProjectStageID, "项目阶段": optionData[j].项目阶段,
                                "项目阶段详细内容": optionData[j].项目阶段详细内容, "相关交付物": optionData[j].阶段相关交付物,
                                "是否里程碑": optionData[j].里程碑, "业绩占比": optionData[j].阶段业绩占比,
                                "HSourceBillNo": optionData[j].单据号, "HSourceBillType": optionData[j].单据类型, "HSourceInterID": optionData[j].HInterID, "HSourceEntryID": optionData[j].HEntryID,
                            })
                            j++;
                            table.render(option);
                            layer.close(index);//关闭弹窗
                        };
                    }
                });
            }
@@ -1049,7 +1076,7 @@
                    $.ajax({
                        url: GetWEBURL() + '/PM_ProjectBill/CheckPM_WorkPlanMonthBillMain',
                        type: "GET",
                        data: { "HInterID": $("#HInterID").val(), "IsAudit": nums, "user": sessionStorage["HUserName"] },
                        data: { "HInterID": $("#HInterID").val(), "IsAudit": nums, "CurUserName": sessionStorage["HUserName"] },
                        success: function (result) {
                            if (result.count == 1) {
                                $('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true);
@@ -1075,7 +1102,7 @@
                    $.ajax({
                        url: GetWEBURL() + '/PM_ProjectBill/CheckPM_WorkPlanMonthBillMain',
                        type: "GET",
                        data: { "HInterID": $("#HInterID").val(), "IsAudit": nums, "user": sessionStorage["HUserName"] },
                        data: { "HInterID": $("#HInterID").val(), "IsAudit": nums, "CurUserName": sessionStorage["HUserName"] },
                        success: function (result) {
                            if (result.count == 1) {
                                $('#set_CheckBill').removeClass("layui-btn-disabled").attr("disabled", false);
@@ -1205,7 +1232,10 @@
            //#endregion
        });
        //工程项目
        function GetProjectBillValue(obj) {
            optionData = obj;
        }
    </script>
</body>
</html>