From 8eec6331ce13e8aaa727403c6e91be1b7d91d1a3 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期三, 05 三月 2025 15:15:57 +0800
Subject: [PATCH] 销售价格资料

---
 WebTM/views/home/console.html |  108 +++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 70 insertions(+), 38 deletions(-)

diff --git a/WebTM/views/home/console.html b/WebTM/views/home/console.html
index d30526a..5420be7 100644
--- a/WebTM/views/home/console.html
+++ b/WebTM/views/home/console.html
@@ -198,10 +198,10 @@
                             <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">
@@ -246,13 +246,13 @@
             </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/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
@@ -266,6 +266,8 @@
                 , table = layui.table
                 , form = layui.form
                 , element = layui.element
+                , tr = layui.tr
+                , td = layui.td
                 , laypage = layui.laypage
                 , laydate = layui.laydate
                 , util = layui.util
@@ -273,7 +275,7 @@
             var $ = layui.jquery;
 
             //涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞�
-            var titleData = ["HItemID", "HInterID", "HEntryID", "HDeptID", "涓诲唴鐮�", "瀛愬唴鐮�"];
+            var titleData = ["HItemID", "HInterID", "HEntryID", "HDeptID", "涓诲唴鐮�", "瀛愬唴鐮�", "鎺ユ敹浜�"];
 
             //鐧诲綍骞冲彴(PC绔�佹墜鏈虹)
             var HType = "PC";
@@ -286,6 +288,7 @@
 
                 get_Display();
                 get_Notices();
+                getNeedCheckRouting();
             }
 
             //椤甸潰鍏跺畠鏂规硶
@@ -318,13 +321,13 @@
 
                     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>';
 
@@ -357,30 +360,30 @@
                 $(".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);
+                //}
             }
           
             //鐢熸垚閫氱煡鍒楄〃
@@ -409,8 +412,15 @@
                                     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 == '鐘跺喌') {
+                                                col.push({
+                                                    field: data[i].id, title: data[i].name, alert: 'center', sort: true, templet: "<div>{{d." + data[i].name + " == '0' ? '绱ф��': '鏅��'}}</div>", width: 80
+                                                });
+                                                break;
+                                             }
                                         default:
                                             col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 90 });
                                     }
@@ -440,6 +450,28 @@
                 });
                 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>

--
Gitblit v1.9.1