陈雯静
2024-04-10 280cfd2278d919f5314beca57d57212ff47a8ae5
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>
@@ -415,8 +415,8 @@
            //#endregion
            //#region é€‰æ‹©ä¾›åº”商按钮
            form.on('submit(HCusList)', function () {
                get_checkCus();
            form.on('submit(HSupList)', function () {
                get_checkSup();
            });
            //#endregion
@@ -920,7 +920,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]  //获取弹框页面
@@ -928,20 +929,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
@@ -1022,14 +1030,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]  //获取弹框页面
@@ -1038,8 +1046,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内部动态递增计算的
                    }
@@ -1350,12 +1358,29 @@
        });
        //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 GetHProjectMoneyValue(obj)  //返回项目费用
        {
            $("#HProjectMoneyName").val(obj[0].项目费用名称);
            $("#HProjectMoneyID").val(obj[0].HItemID);
        }
          //双击返回项目费用
         function GetGyProjectMoney(data) {
             OptionData = data
         }
        //function GetHEmpValue(obj)  //返回经手人
        //{
        //    $("#HEmpName").val(obj[0].HName);