zrg
2024-02-28 10ef0eca16dd40fa943595b6c62e50a1aa6030b9
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldProdOutBillEdit.html
@@ -204,6 +204,7 @@
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <script src="../../../layuiadmin/PageTitle.js"></script>
    <script>
        var params = get_UrlVars();
        if (typeof (params[params[0]]) == "undefined") {
@@ -235,7 +236,7 @@
            var option1 = [];
            var sWhere = "";
            var sBillType = "3802";
            //#endregion
            //判断用户是否有查询权限
@@ -245,7 +246,7 @@
            //    data: { "UserName": sessionStorage["HUserName"] },
            //    success: function (result) {
            //        if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
            //            });
            //        } else {
@@ -253,11 +254,19 @@
            //        }
            //    }, error: function () {
            //        layer.alert("发生错误!", { icon: 5 });
            //    }
            //    }
            //});
            //
            //#region è¿›å…¥é¡µé¢æ—¢åŠ è½½
            //#region ã€åŠ¨æ€èŽ·å–æ¨¡å—åç§°ã€‘
            var HModuleType = "3802";
            //通过单据类型,从数据库动态获取单据模块命名,引用js文件 PageTitle.js
            var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
            $("h1").html('<b>' + HPageTitle + '</b>');
         //#endregion
            //初始化表单插件
            set_InitFrom();
            //初始化表格
@@ -689,12 +698,12 @@
                    , { field: 'HUnitID', title: 'HUnitID', edit: 'text', width: 100, hide: true }
                    , { field: 'HUnitCode', title: '计量单位代码', edit: 'text', event: 'HUnitCode', width: 100 }
                    , { field: 'HUnitName', title: '计量单位', edit: 'text', width: 100 }
                    , { field: 'HDesignLife', title: '设计寿命', edit: 'text', width: 100, totalRow: true}
                    , { field: 'HDesignLife', title: '设计寿命', edit: 'text', width: 100, totalRow: true }
                    , { field: 'HLeaveLife', title: '剩余寿命', edit: 'text', width: 100, totalRow: true }
                    , { field: 'HUseLife', title: '累积使用寿命', edit: 'text', width: 100, totalRow: true }
                    , { field: 'HQtyMust', title: '应发数量', edit: 'text', width: 100, totalRow: true }
                    , { field: 'HQty', title: '实发数量', edit: 'text', width: 100, totalRow: true }
                    , { field: 'HPrice', title: '单价', edit: 'text', width: 100, totalRow: true}
                    , { field: 'HPrice', title: '单价', edit: 'text', width: 100, totalRow: true }
                    , { field: 'HMoney', title: '金额', edit: 'text', width: 100, totalRow: true }
                    , { field: 'HWHID', title: 'HWHID', edit: 'text', width: 100, hide: true }
                    , { field: 'HWHCode', title: '发料仓库代码', edit: 'text', event: 'HWHCode', width: 120 }
@@ -755,7 +764,7 @@
            function set_AddFNew() {
                //获取最大单据号
                get_MAXNum();
                option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "","HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "" }];
                option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "" }];
                table.render(option);
            }
            //获取最大单据号