| | |
| | | <div carousel-item=""> |
| | | <ul class="layui-row layui-col-space10 layui-this"> |
| | | <li class="layui-col-xs6"> |
| | | <a href="javascript:void(0);"> |
| | | <a lay-href="../views/计划管理/工艺路线/Gy_RoutingBillCheckQuery.html"> |
| | | <!--<a lay-href="app/content/comment.html" class="layadmin-backlog-body">--> |
| | | <h3>待审单据</h3> |
| | | <p><cite>0</cite></p> |
| | | <h3>工艺待审单据</h3> |
| | | <p id="needCheckNumber"><cite>0</cite></p> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs6"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <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/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../layuiadmin/Scripts/json2.js"></script> |
| | | <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/zgqCustom/zgqCustom.js"></script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //静态资源所在路径 |
| | |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , tr = layui.tr |
| | | , td = layui.td |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | |
| | | var $ = layui.jquery; |
| | | |
| | | //不需要显示的字段 可扩展 |
| | | var titleData = ["HItemID", "HInterID", "HEntryID", "HDeptID", "主内码", "子内码"]; |
| | | var titleData = ["HItemID", "HInterID", "HEntryID", "HDeptID", "主内码", "子内码", "接收人"]; |
| | | |
| | | //登录平台(PC端、手机端) |
| | | var HType = "PC"; |
| | |
| | | |
| | | get_Display(); |
| | | get_Notices(); |
| | | getNeedCheckRouting(); |
| | | } |
| | | |
| | | //页面其它方法 |
| | |
| | | |
| | | liStr += '<li class="layui-col-xs3">'; |
| | | |
| | | liStr += '<a lay-href="' + data[i]["Hurl"] + '">'; |
| | | |
| | | if (data[i]["HPicNum"] == null || data[i]["HPicNum"] == "") { |
| | | liStr += '<i id="' + data[i]["HSubFuncID"] + '" class="layui-icon layui-icon-add-circle"></i>'; |
| | | } else { |
| | | liStr += '<i id="' + data[i]["HSubFuncID"] + '" class="' + data[i]["HPicNum"] + '"></i>'; |
| | | } |
| | | |
| | | liStr += '<a lay-href="' + data[i]["Hurl"] + '">'; |
| | | |
| | | liStr += '<cite>' + data[i]["HCaption"] + '</cite>'; |
| | | |
| | |
| | | $(".FastMenu").html(liStr); |
| | | element.init(); |
| | | |
| | | for (var i = 0; i < data.length; i++) { |
| | | var item = document.getElementById(data[i]["HSubFuncID"]); |
| | | item.addEventListener("click", function (event) { |
| | | //alert("hh"); |
| | | //打开图标设置子窗口 |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //加上边框 |
| | | , title: "快捷方式-图标设置" //标题 |
| | | , closeBtn: 1 //窗体右上角关闭 的 样式 |
| | | , shift: 2 //弹出动画 |
| | | , area: ["30%", "90%"] //窗体大小 |
| | | , maxmin: true //设置最大最小按钮是否显示 |
| | | , content: '../系统管理/快捷方式自定义/Xt_UserFastMenu_IconSet.html?HItemID=' + event.srcElement.id |
| | | , btn: ["确定"] |
| | | , btn1: function (index, laero) { |
| | | //刷新快捷方式 |
| | | get_Display(); |
| | | //更新表格缓存的数据 |
| | | layer.close(index);//关闭弹窗 |
| | | } |
| | | }) |
| | | }, false); |
| | | } |
| | | //for (var i = 0; i < data.length; i++) { |
| | | // var item = document.getElementById(data[i]["HSubFuncID"]); |
| | | // item.addEventListener("click", function (event) { |
| | | // //alert("hh"); |
| | | // //打开图标设置子窗口 |
| | | // layer.open({ |
| | | // type: 2 |
| | | // , skin: "layui-layer-rim" //加上边框 |
| | | // , title: "快捷方式-图标设置" //标题 |
| | | // , closeBtn: 1 //窗体右上角关闭 的 样式 |
| | | // , shift: 2 //弹出动画 |
| | | // , area: ["30%", "90%"] //窗体大小 |
| | | // , maxmin: true //设置最大最小按钮是否显示 |
| | | // , content: '../系统管理/快捷方式自定义/Xt_UserFastMenu_IconSet.html?HItemID=' + event.srcElement.id |
| | | // , btn: ["确定"] |
| | | // , btn1: function (index, laero) { |
| | | // //刷新快捷方式 |
| | | // get_Display(); |
| | | // //更新表格缓存的数据 |
| | | // layer.close(index);//关闭弹窗 |
| | | // } |
| | | // }) |
| | | // }, false); |
| | | //} |
| | | } |
| | | |
| | | //生成通知列表 |
| | |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 75 }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'MM-dd')}}</div>", width: 100 }); |
| | | break; |
| | | case 'String': |
| | | if (data[i].id == '紧急程度') { |
| | | if (data[i].id == '状况') { |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, alert: 'center', sort: true, templet: "<div>{{d." + data[i].name + " == '0' ? '紧急': '普通'}}</div>", width: 70`` |
| | | field: data[i].id, title: data[i].name, alert: 'center', sort: true, templet: "<div>{{d." + data[i].name + " == '0' ? '紧急': '普通'}}</div>", width: 80 |
| | | }); |
| | | break; |
| | | } |
| | |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | |
| | | function getNeedCheckRouting() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Gy_Routing/NeedChecklist", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "user": sessionStorage["HUserName"], "userid": sessionStorage["Czybm"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | const uniqueHinterIDs = new Set(data1.data.map(item => item.hmainid)); |
| | | const uniqueHinterIDCount = uniqueHinterIDs.size; |
| | | $("#needCheckNumber").text(uniqueHinterIDCount); |
| | | if (data1.data.length != 0) { |
| | | $("#needCheckNumber").css("color", "red"); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | layer.alert("接口请求失败!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | }); |
| | | </script> |
| | | </body> |