yangle
2022-12-30 f1972c8e07ddfa51fbdf3dfac886cde215cd6628
WebTM/views/É豸¹ÜÀí/É豸µµ°¸/Gy_EquipFileBillResume.html
@@ -168,7 +168,7 @@
                var datas = obj.data; //获得当前行数据
                var linterid = datas.hmainid;
                $.ajax({
                    url: GetWEBURL() + 'Sb_EquipMaintainBill/Sb_EquipMaintainBillListProjectDetaiNew',
                    url: GetWEBURL() + 'Gy_EquipFileMain/Sb_EquipFileBillResumeDate',
                    type: "GET",
                    data: { "HInterID": linterid },
                    success: function (data1) {
@@ -198,6 +198,8 @@
            //#region æ­¤é¡µé¢æ‰€æœ‰æ–¹æ³•
            function set_ClearBill() {
                $("#BenginHCreateDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//开始日期
                $("#EndHCreateDate").val(Format(new Date(), "yyyy-MM-dd"));//结束日期
                //初始化表格(主表)
                set_InitGrid();
                //初始化表格(子表1)
@@ -282,15 +284,15 @@
                    , cols: [[
                        //{ type: 'checkbox', fixed: 'left' }
                        , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: 'HMaintainItemID', title: '日期', width: 200}
                        , { field: 'HMaintainItemNumber', title: '单据类型', width: 200 }
                        , { field: 'HMaintainItem', title: '单据号', width: 200 }
                        , { field: 'HMaintainPart', title: '设备分类', width: 200 }
                        , { field: 'HClaim', title: '设备条码', width: 200 }
                        , { field: 'HManagerID', title: '设备编码', width: 200, hide: true }
                        , { field: 'HManagerNumber', title: '设备名称', width: 200 }
                        , { field: 'HManagerName', title: '设备规格', width: 200 }
                        , { field: 'HRemark', title: '设备型号', width: 200 }
                        , { 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 }
                        , { field: '设备规格', title: '设备规格', width: 200 }
                        , { field: '设备型号', title: '设备型号', width: 200 }
                        , { field: '制单人', title: '制单人' }
                        , { field: '制单日期', title: '制单日期', templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '审核人', title: '审核人' }
@@ -315,16 +317,16 @@
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        //{ type: 'checkbox', fixed: 'left' }
                        , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: 'HMaintainItemID', title: '日期', width: 200 }
                        , { field: 'HMaintainItemNumber', title: '单据类型', width: 200 }
                        , { field: 'HMaintainItem', title: '单据号', width: 200 }
                        , { field: 'HMaintainPart', title: '设备分类', width: 200 }
                        , { field: 'HClaim', title: '设备条码', width: 200 }
                        , { field: 'HManagerID', title: '设备编码', width: 200, hide: true }
                        , { field: 'HManagerNumber', title: '设备名称', width: 200 }
                        , { field: 'HManagerName', title: '设备规格', width: 200 }
                        , { field: 'HRemark', title: '设备型号', width: 200 }
                        , { templet: '#xuhao1', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { 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 }
                        , { field: '设备规格', title: '设备规格', width: 200 }
                        , { field: '设备型号', title: '设备型号', width: 200 }
                        , { field: '制单人', title: '制单人' }
                        , { field: '制单日期', title: '制单日期', templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '审核人', title: '审核人' }
@@ -395,7 +397,7 @@
                    sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + BenginHCreateDate + "'";
                }
                if (EndHCreateDate) {
                    sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + EndHCreateDate + "'";
                    sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + EndHCreateDate + "'";
                }
                get_Display(sWhere);
                sWhere = "";//调用接口后清空sWhere缓存
@@ -405,8 +407,8 @@
                //$("#HBillType").val("");//单据类型
                $("#HBillNo").val("");//单据号
                $("#HEquipType").val("");//设备类型
                $("#BenginHCreateDate").val("");//开始制单时间
                $("#EndHCreateDate").val("");//结束制单时间
                $("#BenginHCreateDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//开始日期
                $("#EndHCreateDate").val(Format(new Date(), "yyyy-MM-dd"));//结束日期
                sWhere = "";
                $("#btnSearch").click();
            }