yangle
2023-11-01 dbcc87f39f85b6ec81d53e6dc66e9f51cd34b5d8
WebTM/views/É豸¹ÜÀí/Sb_EqpRepairCheckBillList.html
@@ -9,6 +9,9 @@
    <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script src="../../layuiadmin/HideButton.js"></script>
    <script src="../../../layuiadmin/soulTable.slim.js"></script>
    <style type="text/css">
        input.layui-input.layui-unselect {
            padding-right: 0;
@@ -86,10 +89,11 @@
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>预览</button>-->
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-add-1"></i>新增</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-edit"></i>编辑</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>删除</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add" id="Add"><i class="layui-icon layui-icon-add-1"></i>新增</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit" id="Edit"><i class="layui-icon layui-icon-edit"></i>编辑</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete" id="Delete"><i class="layui-icon layui-icon-delete"></i>删除</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>按钮设置</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit" id="Exit"><i class="layui-icon layui-icon-logout"></i>退出</button>
                            </div>
                        </script>
@@ -109,7 +113,7 @@
            base: '../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () {
            //#region å…¬å…±å˜é‡
            var $ = layui.$
@@ -121,9 +125,12 @@
                , laypage = layui.laypage
                , laydate = layui.laydate
                , util = layui.util
                , soulTable = layui.soulTable
            //查询条件
            var sWhere = "";
            var option = [];
            var HModName = "Sb_EqpRepairCheckBillList";
            //#endregion
            //#region è¿›å…¥é¡µé¢å³åŠ è½½
@@ -148,6 +155,15 @@
                        break;
                    case 'btn-Delete':
                        set_DeleteBill();
                        break;
                    //按钮设置
                    case 'set_HideButton':
                        var btns = document.getElementsByTagName("button");     //获取本页所有按钮对象
                        var HBillType = "3911";
                        get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]);
                        break;
                    //退出按钮
                    case 'get_Exit': Pub_Close(2);
                        break;
                };
            });
@@ -182,50 +198,53 @@
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , done: function (res, curr, count) {
                        soulTable.render(this);
                    }
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'hmainid', title: '单据ID', hide: true }
                        , { field: '日期', title: '日期', width: 160, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '单据号', title: '单据号', width: 160 }
                        , { field: '单据类型', title: '单据类型', width: 160, hide: true }
                        , { field: 'HEquipID', title: 'HEquipID', width: 200, hide: true }
                        , { field: '设备代码', title: '设备代码', width: 200 }
                        , { field: '设备名称', title: '设备名称', width: 200 }
                        , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true }
                        , { field: '验收人代码', title: '验收人代码', width: 200 }
                        , { field: '验收人', title: '验收人', width: 200 }
                        , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true }
                        , { field: '维修部门代码', title: '维修部门代码', width: 115 }
                        , { field: '维修部门名称', title: '维修部门名称', width: 200 }
                        , { field: 'HManagerID', title: 'HManagerID', width: 115, hide: true }
                        , { field: '负责人代码', title: '负责人代码', width: 115 }
                        , { field: '负责人', title: '负责人', width: 200 }
                        , { field: '发生日期', title: '发生日期', width: 160, templet: "<div>{{d.发生日期 ==null ?'':layui.util.toDateString(d.发生日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , { field: '表头备注', title: '表头备注', width: 200 }
                        , { field: '内部单据号', title: '内部单据号', width: 115 }
                        , { field: '制单人', title: '制单人', width: 200 }
                        , { field: '制单日期', title: '制单日期', width: 200, templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , { field: '审核人', title: '审核人', width: 200 }
                        , { field: '审核日期', title: '审核日期', width: 200, templet: "<div>{{d.审核日期 ==null ? '':layui.util.toDateString(d.审核日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , { field: '修改人', title: '修改人', width: 200 }
                        , { field: '修改日期', title: '修改日期', width: 200, templet: "<div>{{d.修改日期 ==null ?'':layui.util.toDateString(d.修改日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , { field: '关闭人', title: '关闭人', width: 200 }
                        , { field: '关闭日期', title: '关闭日期', width: 200, templet: "<div>{{d.关闭日期 ==null ?'':layui.util.toDateString(d.关闭日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , { field: '作废人', title: '作废人', width: 200 }
                        , { field: '作废日期', title: '作废日期', width: 200, templet: "<div>{{d.作废日期 ==null ?'':layui.util.toDateString(d.作废日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , { field: 'hsubid', title: 'hsubid', width: 200, hide: true }
                        , { field: 'HRepairCheckID1', title: 'HRepairCheckID1', width: 115, hide: true }
                        , { field: '表体负责人代码', title: '表体负责人代码', width: 200 }
                        , { field: '表体负责人', title: '表体负责人', width: 200 }
                        , { field: '行关闭人', title: '行关闭人', width: 200 }
                        , { field: '关闭类型', title: '关闭类型', width: 200 }
                        , { field: '表体备注', title: '表体备注', width: 200 }
                        , { field: '源单主内码', title: '源单主内码', width: 200, hide: true }
                        , { field: '源单子内码', title: '源单子内码', width: 200, hide: true }
                        , { field: '源单单号', title: '源单单号', width: 200 }
                        , { field: '源单类型', title: '源单类型', width: 200 }
                        , { field: '关联数量', title: '关联数量', width: 200 }
                        , { field: 'HBillType', title: 'HBillType', width: 200, hide: true }
                        , { field: 'hmainid', title: '单据ID', hide: true ,sort:true}
                        , { field: '日期', title: '日期', width: 160, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>", sort: true}
                        , { field: '单据号', title: '单据号', width: 160, sort: true }
                        , { field: '单据类型', title: '单据类型', width: 160, hide: true, sort: true }
                        , { field: 'HEquipID', title: 'HEquipID', width: 200, hide: true, sort: true }
                        , { field: '设备代码', title: '设备代码', width: 200, sort: true }
                        , { field: '设备名称', title: '设备名称', width: 200, sort: true }
                        , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true, sort: true }
                        , { field: '验收人代码', title: '验收人代码', width: 200, sort: true }
                        , { field: '验收人', title: '验收人', width: 200, sort: true }
                        , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true, sort: true }
                        , { field: '维修部门代码', title: '维修部门代码', width: 115, sort: true }
                        , { field: '维修部门名称', title: '维修部门名称', width: 200, sort: true }
                        , { field: 'HManagerID', title: 'HManagerID', width: 115, hide: true, sort: true }
                        , { field: '负责人代码', title: '负责人代码', width: 115, sort: true }
                        , { field: '负责人', title: '负责人', width: 200, sort: true }
                        , { field: '发生日期', title: '发生日期', width: 160, templet: "<div>{{d.发生日期 ==null ?'':layui.util.toDateString(d.发生日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                        , { field: '表头备注', title: '表头备注', width: 200, sort: true }
                        , { field: '内部单据号', title: '内部单据号', width: 115, sort: true }
                        , { field: '制单人', title: '制单人', width: 200, sort: true }
                        , { field: '制单日期', title: '制单日期', width: 200, templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                        , { field: '审核人', title: '审核人', width: 200, sort: true }
                        , { field: '审核日期', title: '审核日期', width: 200, templet: "<div>{{d.审核日期 ==null ? '':layui.util.toDateString(d.审核日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                        , { field: '修改人', title: '修改人', width: 200, sort: true }
                        , { field: '修改日期', title: '修改日期', width: 200, templet: "<div>{{d.修改日期 ==null ?'':layui.util.toDateString(d.修改日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                        , { field: '关闭人', title: '关闭人', width: 200, sort: true }
                        , { field: '关闭日期', title: '关闭日期', width: 200, templet: "<div>{{d.关闭日期 ==null ?'':layui.util.toDateString(d.关闭日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                        , { field: '作废人', title: '作废人', width: 200, sort: true }
                        , { field: '作废日期', title: '作废日期', width: 200, templet: "<div>{{d.作废日期 ==null ?'':layui.util.toDateString(d.作废日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                        , { field: 'hsubid', title: 'hsubid', width: 200, hide: true, sort: true }
                        , { field: 'HRepairCheckID1', title: 'HRepairCheckID1', width: 115, hide: true, sort: true }
                        , { field: '表体负责人代码', title: '表体负责人代码', width: 200, sort: true }
                        , { field: '表体负责人', title: '表体负责人', width: 200, sort: true }
                        , { field: '行关闭人', title: '行关闭人', width: 200, sort: true }
                        , { field: '关闭类型', title: '关闭类型', width: 200, sort: true }
                        , { field: '表体备注', title: '表体备注', width: 200, sort: true }
                        , { field: '源单主内码', title: '源单主内码', width: 200, hide: true, sort: true }
                        , { field: '源单子内码', title: '源单子内码', width: 200, hide: true, sort: true }
                        , { field: '源单单号', title: '源单单号', width: 200, sort: true }
                        , { field: '源单类型', title: '源单类型', width: 200, sort: true }
                        , { field: '关联数量', title: '关联数量', width: 200, sort: true }
                        , { field: 'HBillType', title: 'HBillType', width: 200, hide: true, sort: true }
                    ]]
                }
@@ -242,6 +261,11 @@
                        if (data1.count == 1) {
                            option.data = data1.data;
                            table.render(option);
                            //刷新按钮显示
                            var btns = document.getElementsByTagName("button");     //获取本页所有按钮对象
                            var HBillType = "3911";
                            Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]);
                            layer.close(wait);
                        } else {
                            layer.close(wait);