zrg
2024-04-26 0bde00cbe3a95fcc018ac54fa31da66b5b3505d7
WebTM/views/²É¹º¹ÜÀí/ÆäËûÓ¦¸¶µ¥/YF_PayMentOtherBillMain.html
@@ -78,9 +78,9 @@
                                        <div class="layui-inline">
                                            <label class="layui-form-label">供应商<label style="color:red"> * </label></label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="HCusName" id="HCusName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly>
                                                <input type="hidden" name="HCusID" id="HCusID" class="layui-input" value="0" style="float:left;width:150px;">
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="HCusList" style="width:40px;">
                                                <input type="text" name="HSupName" id="HSupName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly>
                                                <input type="hidden" name="HSupID" id="HSupID" class="layui-input" value="0" style="float:left;width:150px;">
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupList" style="width:40px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                </button>
                                            </div>
@@ -335,6 +335,8 @@
            var OperationType = params[params[0]]; //从参数中获取 æ•°æ®ç±»åž‹  1添加 ä¿å­˜  2复制  3 ç¼–辑
            var linterid = params[params[1]]; //从参数中获取 å•据内码
            window.CusType = 0;//全局变量
            window.OptionData = [];
            //#endregion
            //#region è¿›å…¥é¡µé¢å³åŠ è½½
@@ -415,13 +417,14 @@
            //#endregion
            //#region é€‰æ‹©ä¾›åº”商按钮
            form.on('submit(HCusList)', function () {
                get_checkCus();
            form.on('submit(HSupList)', function () {
                get_checkSup();
            });
            //#endregion
            //#region é€‰æ‹©è´¹ç”¨é¡¹ç›®æŒ‰é’®
            form.on('submit(HPMList)', function () {
                CusType = 1;
                get_checkSS();
            });
            //#endregion
@@ -851,6 +854,7 @@
                    , totalRow: true
                    , cellMinWidth: 120
                    , height: 400
                    ,limit:100
                    , cols: [[
                        { type: 'checkbox', totalRowText: '合计行' }
                        , { type: 'numbers', title: '序号', style: 'background-color: #f9f9f9;' }
@@ -912,6 +916,7 @@
                    if (event.key == "F7") {
                        //器具管理
                        if (obj.event == "HPMoneyName") {
                            CusType = 2;
                            //打开器具管理小窗体
                            layer.open({
                                type: 2//弹窗类型
@@ -919,7 +924,8 @@
                                , area: ['90%', '90%']//大小
                                , title: '项目费用列表'//标题
                                , shift: 2//弹出动画
                                , content: ["../../基础资料/公用基础资料/Gy_ProjectMoney.html?OperationType=2", "yes"]
                                //, content: ["../../基础资料/公用基础资料/Gy_ProjectMoney.html?OperationType=2", "yes"]
                                , content: ["../../基础资料/公用基础资料/Gy_ProjectMoney.html", "yes"]
                                , btn: ['确定', '取消']
                                , btn1: function (index, layero) {//按钮【按钮一】的回调
                                    var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -927,20 +933,27 @@
                                    if (checkStatus.data.length === 0) {
                                        return layer.msg('请选择数据');
                                    }
                                    obj.update({
                                        "HProjectMoneyID": checkStatus.data[0].HItemID
                                        , "HPMoneyName": checkStatus.data[0].项目费用名称
                                    //OptionData = checkStatus.data[0];
                                        obj.update({
                                         "HProjectMoneyID": checkStatus.data[0].HItemID
                                         , "HPMoneyName": checkStatus.data[0].项目费用名称
                                    })
                                    layer.close(index);//关闭弹窗
                                }
                            });
                        }
                        obj.event = "";
                        return false;
                                 }
                                , end: function () {
                                obj.update({
                                    "HProjectMoneyID": OptionData.HItemID
                                    , "HPMoneyName": OptionData.项目费用名称
                                })
                            }
                        })
                    }
                })
            }
                    obj.event = "";
                    return false;
                }
            })
        }
            //#endregion
@@ -1021,14 +1034,14 @@
            //#endregion
            //#region ä¾›åº”商选择页面
            function get_checkCus() {
            function get_checkSup() {
                layer.open({
                    type: 2//弹窗类型
                    , skin: 'layui-layer-rim' //加上边框
                    , area: ['90%', '90%']//大小
                    , title: '业务客户列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../基础资料/采购基础资料/Gy_Supplier.html', 'yes']
                    , content: ['../../基础资料/采购基础资料/Gy_Supplier.html?Type=HSup', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -1037,8 +1050,8 @@
                            return layer.msg('请选择数据');
                        }
                        $("#HCusID").val(checkStatus.data[0].HItemID);
                        $("#HCusName").val(checkStatus.data[0].供应商名称);
                        $("#HSupID").val(checkStatus.data[0].HItemID);
                        $("#HSupName").val(checkStatus.data[0].供应商名称);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -1349,12 +1362,34 @@
        });
        //function GetHDeptNameValue(obj)  //返回部门
        //{
        //    $("#HDeptName").val(obj[0].HName);
        //    $("#HDeptID").val(obj[0].HItemID);
        //}
        function GetHDeptNameValue(obj)  //返回部门
        {
            $("#HDeptName").val(obj[0].部门名称);
            $("#HDeptID").val(obj[0].HItemID);
        }
        function GetHSupNameValue(obj)  //返回供应商
        {
            $("#HSupName").val(obj[0].供应商名称);
            $("#HSupID").val(obj[0].HItemID);
        }
        function GetProjectMoneyValue(obj)  //返回项目费用
        {
            if (CusType == 1) {
                $("#HProjectMoneyName").val(obj.项目费用名称);
                $("#HProjectMoneyID").val(obj.HItemID);
            } else if (CusType ==2) {
                OptionData = obj;
            }
        }
        //  //双击返回项目费用
        //function GetProjectMoneyValue(data) {
        //     OptionData = data
        // }
        //function GetHEmpValue(obj)  //返回经手人
        //{
        //    $("#HEmpName").val(obj[0].HName);