1
yxj
2025-05-24 9f962a87d620bd8b32211634c8d0f243757f7fdc
WebTM/views/ÏîÄ¿¹ÜÀí/¹¤³ÌÏîÄ¿/PM_ProjectTaskNeedCheckQuery.html
@@ -45,6 +45,7 @@
                                            <div class="layui-btn-container">
                                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>刷新</button>
                                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>导出</button>
                                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-MoneyDeSave" id="MoneyDeSave"><i class="layui-icon layui-icon-circle"></i>驳回</button>
                                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>列设置</button>
                                            </div>
                                        </script>
@@ -141,6 +142,7 @@
                                            <script type="text/html" id="toolbarDemo">
                                                <div class="layui-btn-container" id="toolbarDemo_ButtonSet">
                                                    <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="HideColumn"><i class="layui-icon layui-icon-form"></i>列设置</button>
                                                </div>
                                            </script>
                                        </div>
@@ -212,6 +214,10 @@
                    //列设置
                    case 'set_HideColumn': get_HideColumnNoPage(HModName, sessionStorage["HUserName"], optionNeedCheck, get_FastQuery);
                        break;
                    //费用反保存按钮
                    case 'btn-MoneyDeSave':
                        set_SaveMoneyBill();
                        break;
                };
            });
            table.on('toolbar(mainTable)', function (obj) {
@@ -235,6 +241,7 @@
            //#region å®¡æ ¸
            form.on('submit(btnCheckSetupMoney)', function (data) {
                set_CheckBill("SetupMoneyCheck");
                set_CheckBill("OtherMoneyCheck");//审核安装附属费
                $('#btnCheckSetupMoney').prop('disabled', true).addClass('layui-btn-disabled');
            });
            form.on('submit(btnCheckOtherMoney)', function (data) {
@@ -259,7 +266,12 @@
                $('tr').attr({ "style": "background:" });
                $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//改变当前tr背景颜色和字体颜色
                //obj.tr.find('.layui-form-radio').addClass('layui-form-radioed');
                //mainTable ä¸ºè¡¨æ ¼ID   æ³¨æ„æ­¤å¤„如果ID不正确将导致你在监听复选框时获取不到你选择的数据,前面的只是添加或删除选中未选中样式以及设置背景色,字体颜色
                layui.each(table.cache.mainTableNeedCheck, function (i, l) {
                    if (obj.tr.index() == l.LAY_TABLE_INDEX) {
                        l.LAY_CHECKED = flag;
                    }
                });
                //显示项目信息
                RoadBillMain(obj.data["HInterID"]);
                
@@ -564,6 +576,45 @@
            }
            //#endregion
            //#region è´¹ç”¨åä¿å­˜æ•°æ®
            function set_SaveMoneyBill() {
                var checkStatus = table.checkStatus('mainTableNeedCheck')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].HInterID.toString();
                    var params = get_UrlVars();
                    var openType = params[params[0]]; //从参数中获取 æ‰“开方式
                    var sql = "exec h_p_PM_ProjectBillUnSaveMoney " + HInterID + ",'" + openType+"'"
                    //逻辑审核方法
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/CommonModel/searchMethod", //方法所在页面和方法名
                        data: { "sql": sql, "user": sessionStorage["HUserName"], "ModRightNameCheck":"Pm_ProjectBill_edit" },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.data[0].message, { time: 1 * 1000, icon: 1 }, function () {
                                    // å¾—到frame索引
                                    var index = layer.getFrameIndex(window.name);
                                    //关闭当前frame
                                    layer.close(index);
                                    //修改为功后刷新界面
                                    get_FastQuery();
                                });
                            } else {
                                layer.alert(result.code + result.Message, { icon: 5 });
                            }
                        }, error: function () {
                            layer.alert("接口请求失败!", { icon: 5 });
                        }
                    });
                }
                else {
                    layer.msg('请选择一行数据驳回!');
                }
            }
            //#endregion
            //#region åˆ¤æ–­æ˜¯ç›´æŽ¥æ‰“开页面还是其它页面通过选择按钮打开,并显示相应数据
            function addSWhereByOpenType() {
                //获取参数