duhe
2025-05-29 86ff0969ebf27dcac1ddbfd83cc3a2e0e2d09487
WebTM/views/É豸¹ÜÀí/É豸״̬/Sb_EquipStatusChangeBill.html
@@ -14,6 +14,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>
    <style>
        .main-btn { /*头部主按钮*/
            padding: 0 2px; /*调整按钮左右空隙大小*/
@@ -57,6 +58,7 @@
                        <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnEdit" id="btnEdit">退出</button>
                    </div>
                    <div class="layui-tab" lay-filter="tab-POStockInBill">
                        <h1 style="text-align: center; padding: 10px 0;"><b>设备状态变更单</b></h1>
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1" style="padding:1px;" class="layui-this">基本信息</li>
                            <li lay-id="2" style="padding:1px;">制单信息</li>
@@ -251,6 +253,13 @@
            //#endregion
            //#region è¿›å…¥é¡µé¢å³åŠ è½½
            //#region ã€åŠ¨æ€èŽ·å–æ¨¡å—åç§°ã€‘
            var HModuleType = "3916";
            //通过单据类型,从数据库动态获取单据模块命名,引用js文件 PageTitle.js
            var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
            $("h1").html('<b>' + HPageTitle + '</b>');
            //#endregion
            var rowdata = [{
                "HEquipID": 0, "设备": "", "HUnitID": 0, "计量单位": "", "HQty": 0, "HStatusID_Old": 0, "原状态": "", "HRemark": "",
@@ -449,6 +458,7 @@
                    , limit: 500
                    , height: 500
                    , loading: false
                    , totalRow: true
                    , cols: [[ //表头
                        { type: 'checkbox', totalRowText: '合计行' }
                        , { type: 'numbers', title: '序号', totalRow: true }
@@ -456,7 +466,7 @@
                        , { field: '设备', title: '设备', edit: 'text', event: "HEquipID" }//f7
                        , { field: 'HUnitID', title: 'HUnitID ', width: 100, hide: true }
                        , { field: '计量单位', title: '计量单位', edit: 'text', event: "HUnitID" }//f7
                        , { field: 'HQty', title: '数量', edit: 'text' }
                        , { field: 'HQty', title: '数量', edit: 'text', totalRow: true}
                        , { field: 'HStatusID_Old', title: 'HStatusID_Old ', width: 100, hide: true }
                        , { field: '原状态', title: '原状态', edit: 'text', hide: true }//f7
                        , { field: 'HStatusID_New', title: 'HStatusID_New ', width: 100, hide: true }
@@ -478,7 +488,20 @@
                    , area: ['90%', '90%']//大小
                    , title: '部门'//标题
                    , shift: 2//弹出动画
                    , content: ['../../Baseset/基础资料/Gy_DepartmentList.html', 'yes']
                    , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        //获取数据
                        $("#HDeptID").val(checkStatus.data[0].HItemID);
                        $("#HDeptName").val(checkStatus.data[0].部门名称);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    //, btn: ['确定', '取消']
                    //, btn1: function (index, layero) {//按钮【按钮一】的回调
                    //    var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -536,7 +559,7 @@
                                , shift: 2 //弹出动画
                                , area: ["90%", "90%"] //窗体大小
                                , maxmin: true //设置最大最小按钮是否显示
                                , content: ['../../Baseset/基础资料/Gy_EquipFileBillMainList.html', 'yes']
                                , content: ['../../设备管理/设备档案/Gy_EquipFileMainList.html', 'yes']
                                , btn: ["确定", "取消"]
                                , btn1: function (index, laero) {
                                    //按钮一  çš„回调
@@ -548,8 +571,8 @@
                                    }
                                    //更新表格缓存的数据
                                    obj.update({
                                        "设备": checkStatus.data[0].HName
                                        , "HEquipID": checkStatus.data[0].HInterID
                                        "设备": checkStatus.data[0].设备名称
                                        , "HEquipID": checkStatus.data[0].hmainid
                                    })
                                    layer.close(index);//关闭弹窗
                                }
@@ -566,7 +589,7 @@
                                , shift: 2 //弹出动画
                                , area: ["90%", "90%"] //窗体大小
                                , maxmin: true //设置最大最小按钮是否显示
                                , content: ['../../Baseset/基础资料/Gy_UnitList.html', 'yes']
                                , content: ['../../../views/基础资料/公用基础资料/Gy_Unit.html', 'yes']
                                , btn: ["确定", "取消"]
                                , btn1: function (index, laero) {
                                    //按钮一  çš„回调
@@ -578,7 +601,7 @@
                                    }
                                    //更新表格缓存的数据
                                    obj.update({
                                        "计量单位": checkStatus.data[0].HName
                                        "计量单位": checkStatus.data[0].计量单位名称
                                        , "HUnitID": checkStatus.data[0].HItemID
                                    })
                                    layer.close(index);//关闭弹窗