1
duhe
2023-07-10 60797d7d4b631db3cafe9915169974785ccd9131
1
3个文件已修改
57 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/JFTM.pubxml.user 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/项目管理/项目阶段/PM_ProjectReportBill.html 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/项目管理/项目阶段/PM_ProjectReportBillList.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -4305,10 +4305,10 @@
      <publishTime>07/06/2023 09:17:28</publishTime>
    </File>
    <File Include="views/项目管理/项目阶段/PM_ProjectReportBill.html">
      <publishTime>07/09/2023 22:30:05</publishTime>
      <publishTime>07/10/2023 15:22:55</publishTime>
    </File>
    <File Include="views/项目管理/项目阶段/PM_ProjectReportBillList.html">
      <publishTime>07/09/2023 22:33:09</publishTime>
      <publishTime>07/10/2023 15:17:20</publishTime>
    </File>
    <File Include="views/项目管理/项目阶段/PM_ProjectStageBill.html">
      <publishTime>07/10/2023 13:35:01</publishTime>
WebTM/views/ÏîÄ¿¹ÜÀí/ÏîÄ¿½×¶Î/PM_ProjectReportBill.html
@@ -334,6 +334,12 @@
        <!--<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
    <!--项目经理-->
    <script type="text/html" id="HIsPM">
        <div class="layui-input-block" style="margin-left: 20px;">
            <input type="checkbox" name="HIsPM" lay-filter="HIsPM" id="HIsPM{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary">
        </div>
    </script>
    <script>
        layui.config({
@@ -381,6 +387,8 @@
            //#region åˆ¤æ–­å¹¶è®¾ç½®æ“ä½œç±»åž‹ã€é¡µé¢åˆå§‹åŒ–
            if (OperationType == null || OperationType == 1) {                            //新增
                //禁用组织选项
                $("#HOrgID").attr("disabled", true);
                OperationType = 1;
                //生成并设置主表的内码和单据号
                createBillNo();
@@ -458,6 +466,18 @@
            //#region æ˜¯å¦é‡Œç¨‹ç¢‘
            form.on('checkbox(checkboxHIsKey)', function (data) {
                $("#HIsKey").val(data.elem.checked);
            });
            //#endregion
            //#region é¡¹ç›®ç»ç†
            form.on('checkbox(HIsPM)', function (data) {
                var elem = data.othis.parents('tr');
                var dataindex = elem.attr("data-index");
                $.each(option.data, function (index, value) {
                    if (value.LAY_TABLE_INDEX == dataindex) {
                        value.HIsPM = data.elem.checked;//把选中下拉框id值赋值给表格缓存
                    }
                });
            });
            //#endregion
            //#endregion
@@ -588,7 +608,7 @@
            })
            //#endregion
            //
            form.on('submit(Cancel)', function () {
                //sessionStorage["SourceFlag"] = false;
@@ -689,7 +709,7 @@
                        , { field: 'RowID', title: '行号', hide: true }                                                   //行标识,用于下一行、上一行识别所在行
                        , { field: 'HEmpID', title: '成员ID', hide: true }
                        , { field: 'HEmpName', title: '成员', edit: 'text', event: "HEmpName" }     //f7
                        , { field: 'HIsPM', title: '项目经理', edit: 'text' }
                        , { field: 'HIsPM', title: '项目经理', templet: "#HIsPM" }
                        , { field: 'HRate', title: '项目占比', hide: true }
                        , { field: 'HAvgMoney', title: '分配业绩', edit: 'text' }
                        , { field: 'HCountMoney', title: '提成', edit: 'text' }
@@ -875,7 +895,6 @@
                        num.push(table.cache["mainTable"][i])
                    }
                }
                //获取组织数据
                data.field.HPRDORGID = sessionStorage["OrganizationID"];//组织
                //转换里程碑数据
@@ -979,18 +998,18 @@
                        }
                        //组织的值HOrgID变化,重新渲染
                        HOrgIDBar = tableMain[0]["HOrgID"];
                        var HIsKey = tableMain[0].HIsKey;
                        if (HIsKey) {
                            $("input[name='checkboxHIsKey'][value='" + HIsKey + "']").attr("checked", true);
                        }
                        //子表  èµ‹å€¼
                        for (var i = 0; i < tableSub.length; i++) {
                            tableSub[i].HIsPM = (tableSub[i].HIsPM) ? 1 : 0;
                        }
                        //子表
                        option.data = tableSub;
                        table.render(option);
                        //对子表中的项目经理复选框进行选中
                        for (var i = 0; i < tableSub.length; i++) {
                            if (tableSub[i].HIsPM) {
                                $('#HIsPM' + (i + 1)).attr("checked", true);
                            }
                        }
                        form.render('checkbox');
                    }
                })
            }
@@ -1116,7 +1135,7 @@
                    layer.msg("汇报人没有选择!");
                    return false;
                }
                //本阶段业绩占比格式检验
                var HRate1 = $("#HRate").val() + "";
                if (HRate1.substring(HRate1.length - 1, HRate1.length) == ".") {
@@ -1150,7 +1169,7 @@
                        }
                        //是否项目经理格式检验
                        if (option.data[i]["HIsPM"] != "1" && option.data[i]["HIsPM"]!= '0') {
                        if (option.data[i]["HIsPM"] != "1" && option.data[i]["HIsPM"] != '0') {
                            layer.msg("第" + (i + 1) + "行:是否项目经理请输入0或1!");
                            return false;
                        }
WebTM/views/ÏîÄ¿¹ÜÀí/ÏîÄ¿½×¶Î/PM_ProjectReportBillList.html
@@ -425,7 +425,7 @@
                    type: 2
                    , skin: 'layui-layer-rim' //加上边框
                    , area: ['100%', '100%']
                    , title: '工程项目列表-新增'
                    , title: '项阶段汇报-新增'
                    , shift: 0//弹出动画
                    , content: '../../项目管理/项目阶段/PM_ProjectReportBill.html?OperationType=1&linterid=0&HSouceBillType='
                    ,btn: ['确定'],
@@ -448,7 +448,7 @@
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '工程项目列表-编辑'
                        , title: '项目阶段汇报-编辑'
                        , shift: 0//弹出动画
                        , content: '../../项目管理/项目阶段/PM_ProjectReportBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                        , btn: ['确定'],