WebTM/views/ÏîÄ¿¹ÜÀí/±¨±í·ÖÎö/PM_ProjectBillMainMy.html
@@ -170,6 +170,10 @@
            form.on('submit(btn_push_down_work)', function (data) {
                set_WorkTask();
            });
            //下推月度阶段计划
            form.on('submit(btn_push_down_monthly)', function (data) {
                set_WorkTasks();
            });
            //退出
            form.on('submit(get_Exit)', function (data) {
                Pub_Close(2);
@@ -201,6 +205,7 @@
                    , toolbar: '#toolbarDemo'
                    , page: true
                    , height: 300
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -215,6 +220,7 @@
                    elem: '#mainTable2'
                    //, toolbar: '#toolbarDemo'
                    , page: false
                    , totalRow: true
                    , height: 500
                    , cellMinWidth: 90
                    , limit: Number.MAX_VALUE//默认显示全部
@@ -234,6 +240,7 @@
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.count == 1) {
                            var totalArray = ["进度占比", "合同实施人天", "预估二次开发人天", "耗用天数"];
                            var data = [];
                            var col = [];
                            //给空的数组赋值
@@ -246,6 +253,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) {
@@ -267,6 +277,7 @@
                                , data: data1.data.h_p_My_PM_ProjectReportBill
                                , height: 'full-80'
                                , page: true
                                , totalRow: true
                                , limits: [50, 500, 5000, 50000]
                                , limit: 50
                                , cellMinWidth: 90
@@ -280,6 +291,7 @@
                                , data: data1.data.h_p_My_PM_ProjectReportBill1
                                , height: 'full-80'
                                , page: true
                                , totalRow: true
                                , limits: [50, 500, 5000, 50000]
                                , limit: 50
                                , cellMinWidth: 90
@@ -340,7 +352,7 @@
                        Num = 2;
                }
                
                if (checkStatus.data.length == 1) {
                if (checkStatus.data.length >0 ) {
                    var linterid = [];
                    for (var i = 0; i < data.length; i++) {
@@ -446,6 +458,42 @@
            }
            //#endregion
            //#region ä¸‹æŽ¨(月度阶段汇报)
            function set_WorkTasks() {
                var activeTab = getActiveTab();
                if (activeTab == "我主导的") {
                    var checkStatus = table.checkStatus('mainTable')
                        , data = checkStatus.data;
                } else if (activeTab == "我参与的") {
                    var checkStatus = table.checkStatus('mainTable1')
                        , data = checkStatus.data;
                }
                var HInterID = data[0].HInterID.toString();
                var HEntryID = data[0].HEntryID.toString();
                if (checkStatus.data.length === 1) {
                    layer.open({
                        type: 2
                        , skin: 'layui-layer-rim' //加上边框
                        , area: ['100%', '100%']
                        , title: '工作任务-下推'
                        , shift: 0//弹出动画
                        , content: '../../项目管理/工程项目/PM_WorkPlanMonthBillMain.html?OperationType=4&linterid=' + HInterID + '&HSouceBillType=' + '&HEntryID=' + HEntryID
                        , btn: ['确定'],
                        // æŒ‰é’®1 çš„回调
                        btn1: function (index, layero, that) {
                            //刷新页面
                            $("#btnSearch").trigger('click');
                        }
                    })
                }
                else {
                    layer.msg('请选择一行数据下推!');
                }
            }
            //#endregion
            //#region éšè—åˆ—设置
            function get_HideColumn() {
                var colName = "";