WebTM/views/ÈËʹÜÀí/ÀëÖ°ÉêÇë/HR_EmpDimissionBill.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; /*调整按钮左右空隙大小*/
@@ -75,20 +76,20 @@
                                <div class="layui-form-item" style="padding-top: 10px;">
                                    <div class="layui-row">
                                        <div class="layui-inline" style="width:500px;">
                                            <label class="layui-form-label" style="width: 85px;">单据号</label>
                                            <label class="layui-form-label" style="width: 85px;">单据号<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 120px;width:180px;">
                                                <input type="text" class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly>
                                                <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID">
                                            </div>
                                        </div>
                                        <div class="layui-inline" style="width:500px;">
                                            <label class="layui-form-label" style="width: 85px;">日期</label>
                                            <label class="layui-form-label" style="width: 85px;">日期<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 120px; width: 180px; ">
                                                <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;">
                                            </div>
                                        </div>
                                        <div class="layui-inline" style="width:500px;">
                                            <label class="layui-form-label" style="width: 85px;">内部单据号<label style="color:red"> * </label></label>
                                            <label class="layui-form-label" style="width: 85px;">内部单据号</label>
                                            <div class="layui-input-block" style="margin-left: 120px; width: 180px;">
                                                <input type="text" class="layui-input" lay-verify="HInnerBillNo" name="HInnerBillNo" id="HInnerBillNo">
                                            </div>
@@ -96,7 +97,7 @@
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-inline" style="width:500px;">
                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">职  å‘˜</label>
                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">职  å‘˜<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 77px; width:270px;">
                                                <input type="text" class="layui-input" lay-verify="HEmpName" name="HEmpName" id="HEmpName" style="background-color:#efefef4d; width:180px; display: inline-block;" readonly>
                                                <input type="hidden" name="HEmpID" id="HEmpID" lay-verify="HEmpID" value="0">
@@ -106,7 +107,7 @@
                                            </div>
                                        </div>
                                        <div class="layui-inline" style="width:500px;" ">
                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">部  é—¨</label>
                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">部  é—¨<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 77px; width: 270px;">
                                                <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color: #efefef4d; width: 180px; display: inline-block;" readonly>
                                                <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0">
@@ -116,7 +117,7 @@
                                            </div>
                                        </div>
                                        <div class="layui-inline" style="width:500px;" ">
                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">岗  ä½</label>
                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">岗  ä½<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 77px; width: 270px;">
                                                <input type="text" class="layui-input" lay-verify="HPostName" name="HPostName" id="HPostName" style="background-color: #efefef4d; width: 180px; display: inline-block;" readonly>
                                                <input type="hidden" name="HPostID" id="HPostID" lay-verify="HPostID" value="0">
@@ -325,6 +326,14 @@
            //#endregion
            //#region è¿›å…¥é¡µé¢å³åŠ è½½
            //#region ã€åŠ¨æ€èŽ·å–æ¨¡å—åç§°ã€‘
            var HModuleType = "2311";
            //通过单据类型,从数据库动态获取单据模块命名,引用js文件 PageTitle.js
            var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
            $("h1").html('<b>' + HPageTitle + '</b>');
            //#endregion
            //#region åˆ¤æ–­æ˜¯å¦ç™»å½• æœªç™»å½•则跳到登录页
            if (sessionStorage.login != "login") {
                layer.confirm("登录失效,请重新登录!", {
@@ -537,6 +546,27 @@
                        $("#HEmpID").val(checkStatus.data[0].HItemID);//内码
                        $("#HEmpName").val(checkStatus.data[0].HName);//名称
                        var HEmpID = checkStatus.data[0].HItemID;
                        $.ajax({
                            url: GetWEBURL() + "HR_EmpDimissionBill/getInfoByHEmpID",
                            type: "GET",
                            data: {
                                "HEmpID": HEmpID
                            },
                            success: function (result) {
                                if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                    $("#HDeptID").val(result.data[0]["HDeptID"]);
                                    $("#HDeptName").val(result.data[0]["HDeptName"]);
                                    $("#HPostID").val(result.data[0]["HPostID"]);//内码
                                    $("#HPostName").val(result.data[0]["HPostName"]);//内码
                                } else {
                                    layer.alert(result.code + result.Message, { icon: 5 });
                                }
                            }, error: function () {
                                layer.alert("接口请求失败!", { icon: 5 });
                            }
                        });
                        layer.close(index);//关闭弹窗
                    }
                    , btn2: function (index, layero) { }
@@ -547,31 +577,31 @@
            //#region å²—位选择页面
            function get_checkSearchHPost() {
                //打开岗位小窗体
                //layer.open({
                //    type: 2
                //    , skin: "layui-layer-rim"                           //加上边框
                //    , title: "岗位列表"                             //标题
                //    , closeBtn: 1                                       //窗体右上角关闭 çš„ æ ·å¼
                //    , shift: 2                                          //弹出动画
                //    , area: ["90%", "90%"]                              //窗体大小
                //    , maxmin: true                                      //设置最大最小按钮是否显示
                //    , content: ["", "yes"]
                //    , btn: ["确定", "取消"]
                //    , btn1: function (index, laero) {
                //        //按钮一  çš„回调
                //        var iframeWindow = window["layui-layer-iframe" + index];//获取弹框页面
                //        var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//获取选中的数据
                layer.open({
                    type: 2
                    , skin: "layui-layer-rim"                           //加上边框
                    , title: "岗位列表"                             //标题
                    , closeBtn: 1                                       //窗体右上角关闭 çš„ æ ·å¼
                    , shift: 2                                          //弹出动画
                    , area: ["90%", "90%"]                              //窗体大小
                    , maxmin: true                                      //设置最大最小按钮是否显示
                    , content: ["../../../views/Baseset/基础资料/Gy_PostList.html", "yes"]
                    , btn: ["确定", "取消"]
                    , btn1: function (index, laero) {
                        //按钮一  çš„回调
                        var iframeWindow = window["layui-layer-iframe" + index];//获取弹框页面
                        var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//获取选中的数据
                //        if (checkStatus.data.length != 1) {
                //            return layer.msg("请选择一条数据");
                //        }
                        if (checkStatus.data.length != 1) {
                            return layer.msg("请选择一条数据");
                        }
                //        $("#HPostID").val(checkStatus.data[0].HItemID);//内码
                //        $("#HPostName").val(checkStatus.data[0].HName);//名称
                //        layer.close(index);//关闭弹窗
                //    }
                //    , btn2: function (index, layero) { }
                //})
                        $("#HPostID").val(checkStatus.data[0].HItemID);//内码
                        $("#HPostName").val(checkStatus.data[0].HName);//名称
                        layer.close(index);//关闭弹窗
                    }
                    , btn2: function (index, layero) { }
                })
            }
            //#endregion
@@ -665,7 +695,7 @@
                                , "HBackRemark": tableMain[0]["HBackRemark"]
                            });
                        } else {
                            layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    }
                    ,error: function (err) {