1
wtt
2024-05-17 875c861c0e8f52a4666a38efe5aa6ed4b99e8913
WebTM/views/É豸¹ÜÀí/Sb_Add_EqpMaintenanceBillList.html
@@ -8,7 +8,7 @@
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
    <script src="../../../layuiadmin/PageTitle.js"></script>
    <script src="../../layuiadmin/PageTitle.js"></script>
    <style type="text/css">
        .layui-form-label {
            width: 95px;
@@ -113,7 +113,7 @@
                                                <label class="layui-form-label">维修项目<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="HRepairName" id="HRepairName" class="layui-input" value="" style="float:left;width:150px;">
                                                    <input type="hidden" name="HRepairID" id="HRepairID" class="layui-input" value="" style="float:left;width:150px;">
                                                    <input type="hidden" name="HRepairID" id="HRepairID" class="layui-input" value="0" style="float:left;width:150px;">
                                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="RepairItemList" style="width:40px;">
                                                        <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                    </button>
@@ -252,6 +252,7 @@
    <script src="../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../layuiadmin/PubCustom.js"></script>
    <script>
        var OptionData = [];
        //获取参数
        var params = get_UrlVars();
        if (typeof (params[params[0]]) == "undefined") {
@@ -393,7 +394,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true
                    , content: ['../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes']
                    , content: ['../基础资料/公用基础资料/Gy_EmployeeList.html?type=HEmp', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -469,7 +470,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true
                    , content: ['../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes']
                    , content: ['../基础资料/公用基础资料/Gy_EmployeeList.html?type=HManager', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -518,7 +519,7 @@
                            return layer.msg('请选择数据');
                        }
                        $("#HRepairName").val(checkStatus.data[0].维修项目);
                        $("#HRepairID").val(checkStatus.data[0].HItemID);
                        $("#HRepairID").val(checkStatus.data[0].hitemid);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) {
@@ -998,7 +999,7 @@
                                shift: 2,
                                area: ['80%', '80%'],
                                maxmin: true
                                , content: ['../基础资料/基础资料/Gy_RepairList.html', 'yes']
                                , content: ['../基础资料/基础资料/Gy_RepairList.html?type=service', 'yes']
                                , btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -1022,7 +1023,15 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HRepairID: OptionData[0].hitemid,
                                            HRepairCode: OptionData[0].维修项目代码,
                                            HRepairName: OptionData[0].维修项目,
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -1038,7 +1047,7 @@
                                shift: 2,
                                area: ['80%', '80%'],
                                maxmin: true
                                , content: ['../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes']
                                , content: ['../基础资料/公用基础资料/Gy_EmployeeList.html?type=HSecManager', 'yes']
                                , btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -1063,7 +1072,15 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HManagerID: OptionData[0].HItemID,
                                            HManagerCode: OptionData[0].职员代码,
                                            HManagerName: OptionData[0].职员名称
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -1133,6 +1150,15 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HUnitID: OptionData[0].HItemID,
                                            HUnitNumber: OptionData[0].计量单位代码,
                                            HUnitName: OptionData[0].计量单位名称
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -1169,6 +1195,15 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HMaterID: OptionData[0].HItemID,
                                            HMaterNumber: OptionData[0].物料代码,
                                            HMaterName: OptionData[0].物料名称
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -1183,7 +1218,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true
                                , content: ['../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes']
                                , content: ['../基础资料/公用基础资料/Gy_EmployeeList.html?type=HKeeper', 'yes']
                                , btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -1208,7 +1243,15 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HManagerID: OptionData[0].HItemID,
                                            HManagerNumber: OptionData[0].职员代码,
                                            HManagerName: OptionData[0].职员名称
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -1360,7 +1403,52 @@
            //#endregion
        });
        //返回维修人
        function GetHEmpValue(obj) {
            $("#HEmpName").val(obj[0].职员名称);
            $("#HEmpID").val(obj[0].HItemID);
        }
        //返回设备
        function GetEquipFileValue(obj) {
            $("#HEquipName").val(obj[0].设备名称);
            $("#HEquipID").val(obj[0].hmainid);
        }
        //返回责任人
        function GetHManagerValue(obj) {  //返回责任人
            $("#HManagerName").val(obj[0].职员名称);
            $("#HManagerID").val(obj[0].HItemID);
        }
        //返回维修项目
        function GetRepairValue(obj) {
            $("#HRepairName").val(obj[0].维修项目); //维修项目名称
            $("#HRepairID").val(obj[0].hitemid); //维修项目ID
        }
        //返回部门
        function GetHDeptNameValue(obj) {
            $("#HDeptName").val(obj[0].部门名称);
            $("#HDeptID").val(obj[0].HItemID);
        }
        //返回责任人
        function GetHSecManagerValue(obj) {  //返回责任人
            OptionData = obj;
        }
        //返回维修项目
        function GetRepairServiceValue(obj) {
            OptionData = obj;
        }
        //物料
        function GetMaterValue(obj) {
            OptionData = obj;
        }
        //计量单位
        function GetUnitValue(obj) {
            OptionData = obj;
        }
        //负责人
        function GetHKeeperValue(obj) {
            OptionData = obj;
        }
    </script>
</body>
</html>