yusijie
2024-03-29 ae5cfe81fd2b9f38c2e9ccfcdeaa7be2b28ad5dc
WebTM/views/ÏîÄ¿¹ÜÀí/Öܼƻ®/PM_WorkReportWeekBillMainList.html
@@ -19,6 +19,7 @@
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/soulTable.slim.js"></script>
    <script src="../../../layuiadmin/PageTitle.js"></script>
</head>
<body>
@@ -134,6 +135,13 @@
            var option = [];
            var sWhere = "";
            var HModName = "h_v_PM_WorkReportWeekBillMainList";
            //#region ã€åŠ¨æ€èŽ·å–æ¨¡å—åç§°ã€‘
            var HModuleType = "4757";
            //通过单据类型,从数据库动态获取单据模块命名,引用js文件 PageTitle.js
            var HPageTitle = get_PageTitle(HModuleType) == "" ? document.title : get_PageTitle(HModuleType);
            //#endregion
            //不需要显示的字段 å¯æ‰©å±•
            var titleData = ["HInterID", "HReportEmpID","HOrgID"];
@@ -292,8 +300,7 @@
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
                    success: function (data1) {
                        if (data1.count == 1) {
                            var data = [];
                            var col = [];
                            var totalArray = ["计划工时", "消耗工时", "有效工时", "延期任务", "超前任务"];
                            var data = [];
                            var col = [];
                            //给空的数组赋值
@@ -306,6 +313,9 @@
                                // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') {
                                if ($.inArray(data[i].name, titleData) > -1) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                                }
                                else if ($.inArray(data[i].name, totalArray) > -1) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
                                }
                                else {
                                    switch (data[i].Type) {
@@ -415,7 +425,7 @@
                    type: 2
                    , skin: 'layui-layer-rim' //加上边框
                    , area: ['100%', '100%']
                    , title: '工作周总结列表-新增'
                    , title: '新增' + HPageTitle
                    , shift: 0//弹出动画
                    , content: '../../项目管理/周计划/PM_WorkReportWeekBillMain.html?OperationType=1&linterid=0&HSouceBillType='
                    ,btn: ['确定'],
@@ -438,7 +448,7 @@
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '工作周总结列表-编辑'
                        , title: '编辑' + HPageTitle
                        , shift: 0//弹出动画
                        , content: '../../项目管理/周计划/PM_WorkReportWeekBillMain.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                        , btn: ['确定'],
@@ -516,7 +526,7 @@
                        $.ajax({
                            url: GetWEBURL() + '/PM_WorkTaskWeekBill/CheckPM_WorkReportWeekBillMain',
                            type: "GET",
                            data: { "HInterID": InterID, "IsAudit": nums, "user": sessionStorage["HUserName"] },
                            data: { "HInterID": InterID, "IsAudit": nums, "CurUserName": sessionStorage["HUserName"] },
                            success: function (result) {
                                if (result.count == 1) {
                                    layer.msg(result.Message, { icon: 1 });
@@ -546,7 +556,7 @@
                        $.ajax({
                            url: GetWEBURL() + '/PM_WorkTaskWeekBill/CheckPM_WorkReportWeekBillMain',
                            type: "GET",
                            data: { "HInterID": InterID, "IsAudit": nums, "user": sessionStorage["HUserName"] },
                            data: { "HInterID": InterID, "IsAudit": nums, "CurUserName": sessionStorage["HUserName"] },
                            success: function (result) {
                                if (result.count == 1) {
                                    layer.msg(result.Message, { icon: 1 });