wtt
2025-05-16 24efc0b0d99502afdebb6ef678b0cf4e91dcb084
WebTM/views/¹¤×ʹÜÀí/¼Ó°àÉêÇë/Pay_OverApplyBill.html
@@ -14,6 +14,7 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/PageTitle.js"></script>
    <!--<style>
        .main-btn { /*头部主按钮*/
            padding: 0 2px; /*调整按钮左右空隙大小*/
@@ -65,6 +66,7 @@
                        <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="set_CancelCloseBill" id="set_CancelCloseBill">反关闭</button>-->
                    </div>
                    <div class="layui-tab" lay-filter="tab-POStockInBill">
                        <h1 style="text-align: center; padding: 10px 0;"><b>加班申请单</b></h1>
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1" style="padding:1px;" class="layui-this">基本信息</li>
                            <li lay-id="2" style="padding:1px;">其他信息</li>
@@ -284,6 +286,14 @@
            //模块名
            var HModName = "Pay_OverApplyBill";
            //#region ã€åŠ¨æ€èŽ·å–æ¨¡å—åç§°ã€‘
            var HModuleType = "2209";
            //通过单据类型,从数据库动态获取单据模块命名,引用js文件 PageTitle.js
            var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
            $("h1").html('<b>' + HPageTitle + '</b>');
            //#endregion
            //表格渲染参数
            var option = {};            //子表渲染参数
            //获取参数
@@ -300,10 +310,6 @@
                    icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['重新登录']
                }, function () { window.location.href = "../../user/login.html"; });
            }
            //#endregion
            //#region åˆå§‹åŒ–表格
            //DisPlay_HideColumn();
            //#endregion
            //#region åˆ¤æ–­å¹¶è®¾ç½®æ“ä½œç±»åž‹ã€é¡µé¢åˆå§‹åŒ–
@@ -346,7 +352,7 @@
            //#endregion
            //#region åˆå§‹åŒ–表格
            //DisPlay_HideColumn();
            DisPlay_HideColumn();
            //#endregion
            //#endregion
@@ -503,7 +509,7 @@
                            var HTimes = (hours * 1 + minutes / 60).toFixed(2);                         //加班时间
                            //设置行数据
                            data["HTimes"] = HTimes;
                            if (data["HRelTimes"] == true) {
                            if (data["HRestFlag"] == true) {
                                data["HRelTimes"] = HTimes - data["HRestTimes"];
                            } else {
                                data["HRelTimes"] = HTimes;
@@ -539,7 +545,7 @@
                            var HRelPay = (HTimes * HPayMoney).toFixed(2);                              //应付工资 = å®žé™…实际*小时工资
                            //设置行数据
                            data["HTimes"] = HTimes;
                            if (data["HRelTimes"] == true) {
                            if (data["HRestFlag"] == true) {
                                data["HRelTimes"] = HTimes - data["HRestTimes"];
                            } else {
                                data["HRelTimes"] = HTimes;
@@ -665,18 +671,18 @@
                    , cellMinWidth: 120
                    , height: 400
                    , cols: [[
                        { type: 'checkbox', totalRowText: '合计行' }
                        { type: 'checkbox', totalRowText: '合计' }
                        , { type: 'numbers', title: '序号' }
                        , { field: 'RowID', title: '行号' }                                                   //行标识,用于下一行、上一行识别所在行
                        , { field: 'HEmpID', title: '职员ID' }
                        , { field: 'RowID', title: '行号', hide: true }                                                   //行标识,用于下一行、上一行识别所在行
                        , { field: 'HEmpID', title: '职员ID', hide:true, style: 'background-color: #f9f9f9;' }
                        , { field: 'HEmpNumber', title: '职员代码', edit: 'text', event: "HEmpNumber" }     //f7
                        , { field: 'HEmpName', title: '职员名称', style: 'background-color: #CDCDCD;' }
                        , { field: 'HEmpName', title: '职员名称', style: 'background-color: #f9f9f9;' }
                        , { field: 'HBTimes', title: '开始时间', event: "HBTimes" }
                        , { field: 'HETimes', title: '结束时间', event: "HETimes" }
                        , { field: 'HRestFlag', title: '午休标记', templet: "#HRestFlag" }
                        , { field: 'HRestTimes', title: '午休时间', edit: 'text'}     //f7
                        , { field: 'HTimes', title: '加班时间', style: 'background-color: #CDCDCD;'}     //f7
                        , { field: 'HRelTimes', title: '实际时间', style: 'background-color: #CDCDCD;' }     //f7
                        , { field: 'HRestTimes', title: '午休时间', edit: 'text', totalRow: true}     //f7
                        , { field: 'HTimes', title: '加班时间', style: 'background-color: #f9f9f9;', totalRow: true}     //f7
                        , { field: 'HRelTimes', title: '实际时间', style: 'background-color: #f9f9f9;', totalRow: true }     //f7
                        , { field: 'HRemark', title: '备注', edit: 'text' }     //f7
                        , { fixed: 'right', title: '操作', toolbar: '#barDemo' }
                    ]]
@@ -713,7 +719,7 @@
                    , shift: 2                                          //弹出动画
                    , area: ["90%", "90%"]                              //窗体大小
                    , maxmin: true                                      //设置最大最小按钮是否显示
                    , content: ["../../../views/基础资料/工资基础资料/Gy_Group.html?Type=HGroupID", "yes"]
                    , content: ["../../../views/基础资料/工资基础资料/Gy_Group.html?Type=HGroup", "yes"]
                    , btn: ["确定", "取消"]
                    , btn1: function (index, laero) {
                        //按钮一  çš„回调
@@ -747,7 +753,7 @@
                    , shift: 2                                          //弹出动画
                    , area: ["90%", "90%"]                              //窗体大小
                    , maxmin: true                                      //设置最大最小按钮是否显示
                    , content: ["../../../views/Baseset/基础资料/Gy_DepartmentList.html?Type=HDeptID", "yes"]
                    , content: ["../../基础资料/公用基础资料/Gy_DepartmentList.html", "yes"]
                    , btn: ["确定", "取消"]
                    , btn1: function (index, laero) {
                        //按钮一  çš„回调
@@ -759,7 +765,7 @@
                        }
                        $("#HDeptID").val(checkStatus.data[0].HItemID);//内码
                        $("#HDeptName").val(checkStatus.data[0].HName);//名称
                        $("#HDeptName").val(checkStatus.data[0].部门名称);//名称
                        layer.close(index);//关闭弹窗
                    }
                    , btn2: function (index, layero) { }
@@ -778,7 +784,7 @@
                    , shift: 2                                          //弹出动画
                    , area: ["90%", "90%"]                              //窗体大小
                    , maxmin: true                                      //设置最大最小按钮是否显示
                    , content: ["../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HEmpID", "yes"]
                    , content: ["../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HManager", "yes"]
                    , btn: ["确定", "取消"]
                    , btn1: function (index, laero) {
                        //按钮一  çš„回调
@@ -790,7 +796,7 @@
                        }
                        $("#HMangerID").val(checkStatus.data[0].HItemID);//内码
                        $("#HMangerName").val(checkStatus.data[0].HName);//名称
                        $("#HMangerName").val(checkStatus.data[0].职员名称);//名称
                        layer.close(index);//关闭弹窗
                    }
                    , btn2: function (index, layero) { }
@@ -899,6 +905,8 @@
                            option.data = tableSub;
                            for (var i = 0; i < option.data.length; i++) {
                                option.data[i]["RowID"] = (i + 1) * 10;
                                option.data[i]["HBTimes"] = option.data[i]["HBTimes"].split("T")[0] + " " + option.data[i]["HBTimes"].split("T")[1];
                                option.data[i]["HETimes"] = option.data[i]["HETimes"].split("T")[0] + " " + option.data[i]["HETimes"].split("T")[1];
                            }
                            table.render(option);
                            CheckedSet_tableSub();
@@ -1102,7 +1110,7 @@
                                , shift: 2                                          //弹出动画
                                , area: ["90%", "90%"]                              //窗体大小
                                , maxmin: true                                      //设置最大最小按钮是否显示
                                , content: ["../../Baseset/基础资料/Gy_EmployeeList.html", "yes"]
                                , content: ["../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HEmpList", "yes"]
                                , btn: ["确定", "取消"]
                                , btn1: function (index, laero) {
                                    //按钮一  çš„回调
@@ -1115,10 +1123,17 @@
                                    //更新表格缓存的数据
                                    obj.update({
                                        "HEmpID": checkStatus.data[0].HItemID
                                        , "HEmpNumber": checkStatus.data[0].HNumber
                                        , "HEmpName": checkStatus.data[0].HName
                                        , "HEmpNumber": checkStatus.data[0].职员代码
                                        , "HEmpName": checkStatus.data[0].职员名称
                                    })
                                    layer.close(index);//关闭弹窗
                                }
                                , end: function () {
                                    obj.update({
                                        "HEmpID": OptionData.HItemID
                                        , "HEmpNumber": OptionData.职员代码
                                        , "HEmpName": OptionData.职员名称
                                    })
                                }
                            })
                        }
@@ -1192,9 +1207,9 @@
                                }
                                //设置内容字体大小
                                if (data1.data[0].HFontSize != 0) {
                                    option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;";
                                    option.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;";
                                } else {
                                    option.cols[0][i + 1]["style"] = "font-size:100%";
                                    option.cols[0][i + 1]["style"] += "font-size:100%";
                                }
                                //设置列宽
                                //if (data1.data[0].HColumnWidth != 0) {
@@ -1268,8 +1283,28 @@
        });
        //双击返回基础资料数据    è¡¨å¤´
        function GetHDeptNameValue(obj)  //返回部门
        {
            $("#HDeptName").val(obj[0].部门名称);
            $("#HDeptID").val(obj[0].HItemID);
        }
        function GetHGroupValue(obj)  //返回班组
        {
            $("#HGroupName").val(obj[0].班组名称);
            $("#HGroupID").val(obj[0].HItemID);
            $("#HDeptID").val(obj[0].HDeptID);//部门代码
            $("#HDeptName").val(obj[0].部门名称);//部门名称
        }
        function GetHManagerValue(obj)  //返回主管
        {
            $("#HMangerName").val(obj[0].职员名称);
            $("#HMangerID").val(obj[0].HItemID);
        }
        function GetHEmpListValue(data)  //返回职员
        {
            OptionData = data
        }
    </script>
</body>
</html>