yusijie
2024-03-20 3ff7a13ee508d42d8e4779cb26ebdaf18f03a6e8
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_Add_MouldMaintainBillList.html
@@ -172,6 +172,7 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/PageTitle.js"></script>
    <script>
        //获取页面跳转参数
        var params = get_UrlVars();
@@ -205,6 +206,14 @@
            //#endregion
            //#region è¿›å…¥é¡µé¢å³åŠ è½½
            //#region ã€åŠ¨æ€èŽ·å–æ¨¡å—åç§°ã€‘
            var HModuleType = "3819";
            //通过单据类型,从数据库动态获取单据模块命名,引用js文件 PageTitle.js
            var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
            $("h1").html('<b>' + HPageTitle + '</b>');
            //#endregion
            //初始化表单插件
            set_InitFrom();
@@ -349,7 +358,7 @@
                    }
                });
            });
            //表头信息器具保养规程
@@ -489,8 +498,14 @@
                                table.render(option);
                                table.render(option2);
                                $("#HMouldMaintainRuleInterID").val(BYData[0].HEquipDotCheckRuleInterID);
                                $("#HMouldMaintainRuleInterNo").val(BYData[0].HEquipDotCheckNo);
                                if (BYData.length != 0) {
                                    $("#HMouldMaintainRuleInterID").val(BYData[0].HMouldMaintainRuleID);
                                    $("#HMouldMaintainRuleInterNo").val(BYData[0].HEquipDotCheckNo);
                                }
                                else {
                                    layer.msg("无保养规程!")
                                }
                                if (BYData.length != 0)  //表体数据为空时
                                {
@@ -611,7 +626,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../PublicPage/Gy_Maintain.html', 'yes'],
                                content: ['../../基础资料/基础资料/Gy_MaintainList.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
@@ -624,8 +639,8 @@
                                    //同步更新表格和缓存对应的值
                                    obj.update({
                                        HMaintainItemID: checkStatus.data[0].HItemID,
                                        HMaintainItemNumber: checkStatus.data[0].HNumber,
                                        HMaintainItem: checkStatus.data[0].HName,
                                        HMaintainItemNumber: checkStatus.data[0].保养项目代码,
                                        HMaintainItem: checkStatus.data[0].保养项目名称,
                                    });
                                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                                }
@@ -648,7 +663,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../PublicPage/UserInformation.html', 'yes'],
                                content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -662,8 +677,8 @@
                                    //同步更新表格和缓存对应的值
                                    obj.update({
                                        HManagerID: checkStatus.data[0].HItemID,
                                        HManagerNumber: checkStatus.data[0].HNumber,
                                        HManagerName: checkStatus.data[0].HName
                                        HManagerNumber: checkStatus.data[0].职员代码,
                                        HManagerName: checkStatus.data[0].职员名称
                                    });
                                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
@@ -699,7 +714,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../PublicPage/PartInformation.html', 'yes'],
                                content: ['../../基础资料/公用基础资料/Gy_Material.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
                                    //按钮【按钮一】的回调
@@ -712,9 +727,9 @@
                                    //同步更新表格和缓存对应的值
                                    obj.update({
                                        HMaterID: checkStatus.data[0].HItemID,
                                        HMaterNumber: checkStatus.data[0].HNumber,
                                        HMaterName: checkStatus.data[0].HName,
                                        HMaterSpec: checkStatus.data[0].HModel,
                                        HMaterNumber: checkStatus.data[0].物料代码,
                                        HMaterName: checkStatus.data[0].物料名称,
                                        HMaterSpec: checkStatus.data[0].规格型号,
                                    });
                                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                                }
@@ -738,7 +753,7 @@
                                shift: 2,
                                area: ['90%', '90%'],
                                maxmin: true,
                                content: ['../../PublicPage/UnitInformation.html', 'yes'],
                                content: ['../../../views/基础资料/公用基础资料/Gy_Unit.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -752,8 +767,8 @@
                                    //同步更新表格和缓存对应的值
                                    obj.update({
                                        HUnitID: checkStatus.data[0].HItemID,
                                        HUnitNumber: checkStatus.data[0].HNumber,
                                        HUnitName: checkStatus.data[0].HName
                                        HUnitNumber: checkStatus.data[0].计量单位代码,
                                        HUnitName: checkStatus.data[0].计量单位名称
                                    });
                                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
@@ -872,7 +887,7 @@
            function Table1() {
                //表头
                columns = [
                    { type: 'checkbox', fixed: 'left' }
                    { type: 'checkbox', fixed: 'left', totalRowText: '合计行' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left' }
                    , { field: 'HMaintainItemID', title: '保养项目ID', edit: 'text', hide: true }
                    , { field: 'HMaintainItemNumber', title: '保养项目代码', edit: 'text', event: 'HMaintainItemNumber' }
@@ -881,7 +896,7 @@
                    , { field: 'HClaim', title: '具体要求', edit: 'text' }
                    , { field: 'HManagerID', title: '负责人ID', edit: 'text', hide: true }
                    , { field: 'HManagerNumber', title: '负责人代码', edit: 'text', event: 'HManagerNumber' }
                    , { field: 'HManagerName', title: '负责人'}
                    , { field: 'HManagerName', title: '负责人' }
                    , { field: 'HRemark', title: '备注', edit: 'text' }
                    , { fixed: 'right', title: '操作', toolbar: '#barDemo' }
                ];
@@ -890,6 +905,7 @@
                    , elem: '#mainTable'
                    , toolbar: '#toolbarDemo'
                    , page: false
                    , totalRow: true
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
@@ -903,8 +919,8 @@
            function Table2() {
                //表头
                columns1 = [
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao1', title: '序号', sort: true, fixed: 'left'}
                    { type: 'checkbox', fixed: 'left', totalRowText: '合计行' }
                    , { templet: '#xuhao1', title: '序号', sort: true, fixed: 'left' }
                    , { field: 'HMaterID', title: '配件ID', edit: 'text', hide: true }
                    , { field: 'HMaterNumber', title: '配件代码', edit: 'text', event: "HMaterNumber" }
                    , { field: 'HMaterName', title: '配件名称' }
@@ -912,8 +928,8 @@
                    , { field: 'HUnitID', title: '单位ID', edit: 'text', hide: true }
                    , { field: 'HUnitNumber', title: '单位代码', edit: 'text', event: "HUnitNumber" }
                    , { field: 'HUnitName', title: '单位名称' }
                    , { field: 'HQty', title: '实际用量', edit: 'text' }
                    , { field: 'HQtyMust', title: '标准用量', edit: 'text' }
                    , { field: 'HQty', title: '实际用量', edit: 'text', totalRow: true }
                    , { field: 'HQtyMust', title: '标准用量', edit: 'text', totalRow: true }
                    , { field: 'HRemark', title: '备注', edit: 'text' }
                    , { fixed: 'right', title: '操作', toolbar: '#barDemo1' }
                ];
@@ -922,6 +938,7 @@
                    , elem: '#mainTable1'
                    , toolbar: '#toolbarDemo1'
                    , page: false
                    , totalRow: true
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns1]