yusijie
2024-04-12 7f7179d00825d06ec064f8bbbccdf406424a4609
WebTM/views/É豸¹ÜÀí/É豸¹æ³Ìµ¥/Sb_EquipMaintainRuleEdit.html
@@ -145,6 +145,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") {
@@ -675,6 +676,15 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HMaintainItemID: OptionData[0].HItemID,
                                            HMaintainItemNumber: OptionData[0].保养项目代码,
                                            HMaintainItem: OptionData[0].保养项目名称,
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -690,7 +700,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true
                                , content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes']
                                , content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html?type=HManager', 'yes']
                                , btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -715,7 +725,15 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HManagerID: OptionData[0].HItemID,
                                            HManagerNumber: OptionData[0].职员代码,
                                            HManagerName: OptionData[0].职员名称
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -762,6 +780,15 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HUnitID: OptionData[0].HItemID,
                                            HUnitNumber: OptionData[0].计量单位代码,
                                            HUnitName: OptionData[0].计量单位名称
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -801,6 +828,18 @@
                                    //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                                },
                                end: function () {
                                    if (OptionData.length > 0) {
                                        //更新表格缓存的数据
                                        obj.update({
                                            HMaterID: OptionData[0].HItemID,
                                            HMaterNumber: OptionData[0].物料代码,
                                            HMaterName: OptionData[0].物料名称,
                                            HUnitID: OptionData[0].HUnitID,
                                            HUnitNumber: OptionData[0].计量单位代码,
                                            HUnitName: OptionData[0].计量单位名称
                                        });
                                        OptionData = [];
                                    }
                                }
                            });
                        }
@@ -850,6 +889,22 @@
            //#endregion
        });
        //保养项目
        function GetMaintainListValue(obj) {
            OptionData[0] = obj;
        }
        //责任人
        function GetHManagerValue(obj) {
            OptionData = obj;
        }
        //计量单位
        function GetUnitValue(obj) {
            OptionData = obj;
        }
        //配件
        function GetMaterValue(obj) {
            OptionData = obj;
        }
    </script>
</body>
</html>