wtt
2024-10-06 cb2fc709d4e2aec6bbea3e6f4e8ccc24f3d27756
WebTM/views/ÏúÊÛ¹ÜÀí/ÏúÊÛ¶©µ¥/Xs_SeOrderBillList.html
@@ -290,6 +290,9 @@
            //#endregion
            //#region åŠ è½½é¡µé¢
            //检测是否具备查看金额权限,设置隐藏列
            checkRight_Money();
            //#region åˆå§‹åŒ–界面
            set_ClearBill();
            //#endregion
@@ -778,7 +781,7 @@
                                    if ($.inArray(data[i].name, titleData) > -1) {//检查data【i】.name是否在数组中  //计算列
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                                    }
                                    else if ($.inArray(data[i].name, totalArray) > -1 || (data[i].Type == "Decimal" || data[i].Type == "int")) { //计算列
                                    else if ($.inArray(data[i].name, totalArray) > -1 || (data[i].Type == "Decimal" || data[i].Type == "Int32")) { //计算列
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
                                    } else if (data[i].name == '单据号') {
                                        col.push({
@@ -800,6 +803,9 @@
                                }
                                option.cols = [col];
                                option.data = [];
                                ins = table.render(option);
                            } else {
                                var data = [];//列字段数据
                                var col = [];
@@ -879,9 +885,6 @@
                            
                            layer.close(ajaxLoad);
                            DisPlay_HideColumn();
                            //刷新按钮显示
                            var btns = document.getElementsByTagName("button");     //获取本页所有按钮对象
                            Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]);
                            if ($("#Comparator").val() == 0 && $("#ColContent").val() == "" && $("#Comparator1").val() == 0 && $("#ColContent1").val() == "" && $("#Comparator2").val() == 0 && $("#ColContent2").val() == "") {
@@ -1930,7 +1933,7 @@
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Xs_SeOrderBill/CancellXs_SeOrderBill", //方法所在页面和方法名
                        data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] },
                        data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -2076,7 +2079,7 @@
                        if (data1.data.length != 0) {
                            var dataCol = [];//数据库查询出的列数据
                            var titleData = ["hmainid", "HBillType", "HCusID", "HSSID", "HCurID", "HDeptID", "HManagerID", "HEmpID", "hsubid", "HMaterID","HUnitID"];//不需要显示的字段 å¯æ‰©å±•
                            //var titleData = ["hmainid", "HBillType", "HCusID", "HSSID", "HCurID", "HDeptID", "HManagerID", "HEmpID", "hsubid", "HMaterID","HUnitID"];//不需要显示的字段 å¯æ‰©å±•
                            dataCol = data1.data[0].HGridString.split(',');
@@ -2529,6 +2532,29 @@
            }
            //#endregion
            //#region æŸ¥çœ‹æ˜¯å¦å…·å¤‡æŸ¥çœ‹é‡‘额权限,设置金额等字段是否需要隐藏
            function checkRight_Money() {
                $.ajax({
                    type: "GET",
                    async: false,
                    url: GetWEBURL() + "/Xs_SeOrderBill/CheckRight_Money", //方法所在页面和方法名
                    data: { "user": sessionStorage["HUserName"] },
                    success: function (result) {
                        if (result.count == 1) {
                        } else {
                            var HideColumnList = ["剩余订金", "单价", "税率", "含税单价", "金额", "价税合计"];
                            for (var i = 0; i < HideColumnList.length; i++) {
                                titleData.push(HideColumnList[i]);
                            }
                        }
                    }, error: function (err) {
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            }
            //#endregion
            //#region èŽ·å–å‚æ•°
            function getUrlVars() {
                var vars = [], hash;