chenhaozhe
2025-05-07 0fdf92335abc659f66fabb7552e01b466aa5bb21
WebTM/views/Éú²ú¹ÜÀí/Éú²ú»ã±¨µ¥/Sc_Add_ICMOReportBillList.html
@@ -125,8 +125,8 @@
                                        </div>
                                        <div class="layui-col-xs8 layui-inline">
                                            <label class="layui-form-label" style="width: 6.5%;">备注</label>
                                            <div class="layui-input-block">
                                                <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off" style=" width: 75%;">
                                            <div class="layui-input-inline">
                                                <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off" style=" width: 75%;">
                                            </div>
                                        </div>
                                    </div>
@@ -291,7 +291,7 @@
            //};
            var Sctag = "0";
            var columns = "";
            var HIsSave = false;
            var HIsCheck = false;
            //#endregion
@@ -409,7 +409,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/工资基础资料/Gy_Group.html?type=HGroup', 'yes'],
                    content: ['../../基础资料/工资基础资料/Gy_Group.html?type=HGroup&openType=2', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -549,6 +549,13 @@
                var row = [];
                for (var i = 0; i < table.cache['mainTable'].length; i++) {
                    if (table.cache['mainTable'][i] != "") {
                        if (table.cache["mainTable"][i].HMaterName.indexOf("\"") != -1 || table.cache["mainTable"][i].HMaterName.indexOf(";") != -1) {
                            table.cache["mainTable"][i].HMaterName = table.cache["mainTable"][i].HMaterName.replaceAll("\"", "”").replaceAll(";", ";")
                        }
                        if (table.cache["mainTable"][i].HMaterSpec.indexOf("\"") != -1 || table.cache["mainTable"][i].HMaterSpec.indexOf(";") != -1) {
                            table.cache["mainTable"][i].HMaterSpec = table.cache["mainTable"][i].HMaterSpec.replaceAll("\"", "”").replaceAll(";", ";")
                        }
                        row.push(table.cache['mainTable'][i])
                    }
                }
@@ -567,7 +574,6 @@
                    dataType: "json",
                    success: function (data) {
                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            HIsSave = true;
                            layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
                                $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);//保存按钮禁用
                                $('#set_CheckBill').removeClass("layui-btn-disabled").attr("disabled", false);//审核按钮启用
@@ -618,7 +624,7 @@
            //#region æ‰“印
            form.on('submit(get_PrintReport)', function (data) {
                if (HIsSave == true) {
                if (HIsCheck == true) {
                    layer.open({
                        type: 2
                        , area: ['50%', '50%']
@@ -631,7 +637,7 @@
                    })
                }
                else {
                    layer.msg('请保存单据数据后打印!');
                    layer.msg('请审核单据成功后打印!');
                }
            });
            //#endregion
@@ -711,6 +717,7 @@
                    data: { "HInterID": InterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] },
                    success: function (result) {
                        if (result.count == 1) {
                            HIsCheck = true;
                            layer.msg(result.Message, { time: 1 * 10000, icon: 1 }, function () {
                                // å¾—到frame索引
                                var index = layer.getFrameIndex(window.name);
@@ -745,7 +752,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../基础资料/公用基础资料/Gy_Material.html', 'yes'],
                                content: ['../../基础资料/公用基础资料/Gy_Material.html?openType=2', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
@@ -792,7 +799,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../基础资料/公用基础资料/Gy_Unit.html', 'yes'],
                                content: ['../../基础资料/公用基础资料/Gy_Unit.html?Type=HUnitList&openType=2', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -840,7 +847,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../基础资料/生产基础资料/Gy_Source.html', 'yes'],
                                content: ['../../基础资料/生产基础资料/Gy_Source.html?Htype=&openType=2', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -1354,7 +1361,7 @@
                    , area: ['90%', '90%']//大小
                    , title: '部门列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes']
                    , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -1663,7 +1670,7 @@
            OptionData = obj;
        }
        //单位
        function GetUnitValue(obj) {
        function GetHUnitListValue(obj) {
            OptionData = obj;
        }
        //生产资源