1
yangle
2023-09-22 e87958d76f1e13f445b9d6829a3fdd1921b5f44e
WebTM/views/ÏîÄ¿¹ÜÀí/¹¤×÷ÈÎÎñ/PM_WorkTaskReportBillList.html
@@ -40,6 +40,18 @@
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width: 85px;">汇报人</label>
                                    <div class="layui-input-block" style="margin-left: 120px;">
                                        <input type="text" class="layui-input" name="HReportEmp" id="HReportEmp">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width: 85px;">单据状态</label>
                                    <div class="layui-input-block" style="margin-left: 120px;">
                                        <input type="text" class="layui-input" name="HBillStatus" id="HBillStatus">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width: 85px;">组织</label>
                                    <div class="layui-input-block" style="margin-left: 120px; width: 185px;">
                                        <select name="HOrgID" id="HOrgID" lay-verify="HOrgID">
@@ -53,6 +65,18 @@
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                                <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;">
                                    <div class="layui-row" style="margin-top:5px">
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 85px;">项目名称</label>
                                            <div class="layui-input-block" style="margin-left: 120px;">
                                                <input type="text" class="layui-input" name="HProjectName" id="HProjectName">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 85px;">任务描述</label>
                                            <div class="layui-input-block" style="margin-left: 120px;">
                                                <input type="text" class="layui-input" name="HTaskNote" id="HTaskNote">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">过滤</label>
                                            <div class="layui-input-block">
@@ -259,6 +283,7 @@
                    , toolbar: '#toolbarDemo'
                    , height: 'full-50'
                    , page: true
                    , totalRow: true
                    //, cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 50000]
@@ -299,6 +324,7 @@
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
                    success: function (data1) {
                        if (data1.count == 1) {
                            var totalArray = ["评估工时","自评工时","耗用工时"];
                            var data = [];
                            var col = [];
                            //给空的数组赋值
@@ -312,7 +338,9 @@
                                if ($.inArray(data[i].name, titleData) > -1) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                                }
                                else {
                                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) {
                                        //int
                                        case 'DateTime':
@@ -353,7 +381,7 @@
            //#region å¿«é€Ÿè¿‡æ»¤
            function get_FastQuery(number) {
                //获取登录账户对应职员名称
                ////获取登录账户对应职员名称
                var HUserName = getHEmpByHUserName();
                if (HUserName != "" && HUserName != null) {
                    sWhere = " and æ±‡æŠ¥äºº = '" + HUserName + "' ";
@@ -361,10 +389,17 @@
                var HOrgID = "";
                var HBillNo = $("#HBillNo").val();  //单据号
                var HReportEmp = $("#HReportEmp").val();//汇报人
                var HBillStatus = $("#HBillStatus").val();//单据状态
                var HProjectName = $("#HProjectName").val();//项目名称
                var HTaskNote = $("#HTaskNote").val();//任务描述
                //任意字段过滤
                var ColName = $("#ColName").val();//复选框
                var Comparator = $("#Comparator").val()
                var ColContent = $("#ColContent").val();
                if (ColName != 0 && Comparator != 0) {
                    var com = "";
@@ -400,6 +435,19 @@
                if (HOrgID) {
                    sWhere += " and HOrgID = '" + HOrgID + "'";
                }
                if (HBillStatus) {
                    sWhere += " and å•据状态 like '%" + HBillStatus + "%'";
                }
                if (HProjectName) {
                    sWhere += " and é¡¹ç›®åç§° like '%" + HProjectName + "%'";
                }
                if (HTaskNote) {
                    sWhere += " and ä»»åŠ¡æè¿° like '%" + HTaskNote + "%'";
                }
                if (HReportEmp) {
                    sWhere += " and æ±‡æŠ¥äºº like '%" + HReportEmp + "%'";
                }
                get_Display(sWhere);
                sWhere = "";//调用接口后清空sWhere缓存
            }
@@ -408,6 +456,10 @@
            //#region é‡ç½®è¿‡æ»¤æ¡ä»¶æ–¹æ³•
            function set_ClearQuery() {
                $("#HBillNo").val("");
                $("#HReportEmp").val("");
                $("#HBillStatus").val("");
                $("#HProjectName").val("");
                $("#HTaskNote").val("");
                $("#HOrgID").val(sessionStorage["OrganizationID"]);
                $("#ColContent").val("");
                $("#ColName").val("0");
@@ -429,9 +481,9 @@
                    , content: '../../项目管理/工作任务/PM_WorkTaskReportBill.html?OperationType=1&linterid=0&HSouceBillType='
                    ,btn: ['确定'],
                    // æŒ‰é’®1 çš„回调
                    btn1: function (index, layero, that) {
                    end: function (index, layero, that) {
                        //刷新页面
                        window.location.reload();
                        $("#btnSearch").trigger('click');
                    }
                })
            }
@@ -452,9 +504,9 @@
                        , content: '../../项目管理/工作任务/PM_WorkTaskReportBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                        , btn: ['确定'],
                        // æŒ‰é’®1 çš„回调
                        btn1: function (index, layero, that) {
                        end: function (index, layero, that) {
                            //刷新页面
                            window.location.reload();
                            $("#btnSearch").trigger('click');
                        }
                    })
                } else {
@@ -478,9 +530,9 @@
                        , content: '../../项目管理/项目阶段/Add_Edit_Gy_ProjectStage.html?OperationType=4&linterid=' + linterid + '&HSouceBillType='
                        , btn: ['确定'],
                        // æŒ‰é’®1 çš„回调
                        btn1: function (index, layero, that) {
                        end: function (index, layero, that) {
                            //刷新页面
                            //window.location.reload();
                            $("#btnSearch").trigger('click');
                        }
                    })
                } else {
@@ -511,7 +563,7 @@
                                        //关闭当前frame
                                        layer.close(wait);
                                        //修改为功后刷新界面
                                        window.location.reload();
                                        $("#btnSearch").trigger('click');
                                    });
                                } else {
                                    layer.alert(result.code + result.Message, { icon: 5 });
@@ -533,8 +585,7 @@
            //#region åˆ·æ–°
            function get_Refresh() {
                set_ClearQuery();
                get_FastQuery(1);
                $("#btnSearch").trigger('click');
            }
            //#endregion