From db8f382c0dfbdfd0e2a1e8a74b119f8e05d92f03 Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期四, 19 八月 2021 11:07:54 +0800
Subject: [PATCH] 优化完善模治具分类列表

---
 WebTM/views/IpadIndex.html |  102 +++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 83 insertions(+), 19 deletions(-)

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index 975644c..da8a597 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -63,7 +63,7 @@
         });
         function TSLoad() {
             $("#topleft").html("");
-            var HUserName = "Admin";  //sessionStorage["HUserName"];     //榛樿褰撳墠鐧诲綍浜哄憳
+            var HUserName = sessionStorage["HUserName"];  //sessionStorage["HUserName"];     //榛樿褰撳墠鐧诲綍浜哄憳
             $.ajax({
                 url: GetWEBURL() + "/ReportPlatForm/SearchGetLineBindBillList",
                 type: "GET",
@@ -111,8 +111,13 @@
                         }
                     }
                     else {
-                        layer.alert(data.Message, { icon: 5 });
-                        return false;
+                        var html1 = '';
+                        html1 += '<div class="layui-col-sm12 layui-col-md3">';
+                        html1 += '<div class="cnt ctop" id="ts1" onclick="Check(this,1)">';
+                        html1 += '<span class="layui-icon layui-icon-addition imgicon0" onclick="Add(event,this,1)"></span>';
+                        html1 += '</div>';
+                        html1 += '</div>';
+                        $("#topleft").append(html1);
                     }
                 },
                 error: function (err) {
@@ -208,7 +213,7 @@
                                         html1 += '<h1><span>褰撳墠璁㈠崟锛�</span><span>' + LoadData2[i].HSourceBillNo + '</span></h1>';
                                         html1 += '<h1><span>鐗╂枡鍚嶇О锛�</span><span>' + LoadData2[i].HMaterName + '</span></h1>';
                                         html1 += '<h1><span>璁″垝鏁伴噺锛�</span><span>' + LoadData2[i].HPlanQty + '</span></h1>';
-                                        html1 += '<h1><span>浠ユ眹鎶ユ暟閲忥細</span><span>' + LoadData2[i].HRelationQty + '</span></h1>';
+                                        html1 += '<h1><span>宸叉眹鎶ユ暟閲忥細</span><span>' + LoadData2[i].HRelationQty + '</span></h1>';
                                         if (LoadData2[i].HRelationQty == 0 || LoadData2[i].HRelationQty == null)
                                         {
                                             html1 += '<h1><span>杩涘害锛�</span><span>0%</span></h1>';
@@ -257,7 +262,7 @@
                     {
                         return false;
                     }
-                    var HUserName = "Admin";
+                    var HUserName = sessionStorage["HUserName"]; 
                     var HSourceID = body.find("#HSourceID").val();
                     var HSourceCode = body.find("#HSourceCode").val();
                     var HSourceName = body.find("#HSourceName").val();
@@ -549,7 +554,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鐢熶骇寮�宸ュ崟/Sc_Add_MESBeginWorkBillList.html?hID=&Type=2',
+                content: '鐢熶骇绠$悊/鐢熶骇寮�宸ュ崟/Sc_Add_MESBeginWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
                    
                 },
@@ -589,7 +594,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/浜ч噺姹囨姤鍗�/Sc_Add_ProductReportBillList.html?hID=&Type=2',
+                content: '鐢熶骇绠$悊/浜ч噺姹囨姤鍗�/Sc_Add_ProductReportBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
@@ -629,7 +634,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鐢熶骇瀹屽伐鍗�/Sc_Add_MESEndWorkBillList.html?hID=&Type=2',
+                content: '鐢熶骇绠$悊/鐢熶骇瀹屽伐鍗�/Sc_Add_MESEndWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
@@ -669,7 +674,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/鐢熶骇鍋滃伐鍗�/Sc_Add_MESStopWorkBillList.html?hID=&Type=2',
+                content: '鐢熶骇绠$悊/鐢熶骇鍋滃伐鍗�/Sc_Add_MESStopWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
@@ -705,7 +710,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
-                content: '鐢熶骇绠$悊/浜ч噺姹囨姤鍗�/Sc_ProductReportBillList.html?hID=&Type=2',
+                content: '鐢熶骇绠$悊/浜ч噺姹囨姤鍗�/Sc_ProductReportBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
                 },
@@ -717,7 +722,10 @@
                         "HSourceName": HSourceName1,
                         "HICMOInterID": HICMOInterID,
                         "HICMOEntryID": HICMOEntryID,
-                        "HMaker": "Admin"    //sessionStorage["HUserName"]
+                        "HMaker": sessionStorage["HUserName"],    //sessionStorage["HUserName"]
+                        "Czybm": sessionStorage["Czybm"],
+                        //"HEmpID": "0",    //sessionStorage["HEmpID"]
+                        "HSourceBillType": HSourceBillType
                     });
 
                     //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
@@ -728,6 +736,62 @@
             });
         }
 
+        //棣栨妫�楠�
+        function OpenFistCheck(event, obj)
+        {
+            if (wktag == 0) {
+                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
+                return false;
+            }
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , title: '棣栦欢妫�楠屽崟-缂栬緫'
+                , shade: 0.6
+                , maxmin: false
+                , anim: 0
+                , content: ['璐ㄩ噺绠$悊/棣栦欢妫�楠屽崟/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType, 'yes']
+                , resize: false
+                , cancel: function () {
+                }
+                , end: function () {
+                   
+                }
+            })
+        }
+
+        //杩囩▼妫�楠�
+        function OpenProcess(event, obj)
+        {
+            if (wktag == 0) {
+                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
+                return false;
+            }
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , title: '宸ュ簭妫�楠屽崟-缂栬緫'
+                , shade: 0.6
+                , maxmin: false
+                , anim: 0
+                , content: ['璐ㄩ噺绠$悊/宸ュ簭妫�楠屽崟/QC_ProcessCheckBill.html?OperationType=2&linterid=' + HSourceInterID +'&HSouceBillType=' + HBillType, 'yes']
+                , resize: false
+                , cancel: function () {
+                   
+                }
+                , end: function () {
+                   
+                }
+            })
+        }
+
+        //閫�鍑�
+        function Esc(event, obj)
+        {
+            parent.location.href = "index.html"
+          
+        }
+
         //鍗曟嵁鐘舵�侀獙璇�
         function WorkStaus(HSourceID1, workcode,HSourceInterID,btn)
         {
@@ -735,16 +799,16 @@
             var sWhere = "";
             switch (btn) {
                 case "寮�宸�":
-                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID+"' and hicmostatus not in('0')";   //寮�宸ョ姸鎬�
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID+"' and hicmostatus not in('0','2')";   //鏄惁鏈変笉涓哄紑宸ュ紑宸ョ姸鎬併�佸仠宸ョ姸鎬�
                     break;
                 case "瀹屽伐":
-                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1','2')";   //瀹屽伐鐘舵��
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸畬宸ョ姸鎬�
                     break;
                 case "鍋滃伐":
-                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1')";   //鍋滃伐鎸傝捣鐘舵��
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1')";   //鏄惁鏈変笉涓哄仠宸ユ寕璧风姸鎬�
                     break;
                 case "姹囨姤":
-                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1')";   //姹囨姤鐘舵��
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸仠宸ユ寕璧风姸鎬�
                     break;
                 case "鎶ユ鐢宠":
                     
@@ -866,7 +930,7 @@
                             </div>
                         </div>
                         <div class="layui-row layui-col-space10">
-                            <div class="layui-col-sm12 layui-col-md4">
+                            <div class="layui-col-sm12 layui-col-md4" onclick="OpenFistCheck(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-search imgicon"></span>
                                     <span class="imgtitle">棣栨</span>
@@ -878,7 +942,7 @@
                                     <span class="imgtitle">宸℃</span>
                                 </div>
                             </div>
-                            <div class="layui-col-sm12 layui-col-md4">
+                            <div class="layui-col-sm12 layui-col-md4" onclick="OpenProcess(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-search imgicon"></span>
                                     <span class="imgtitle">杩囩▼妫�楠�</span>
@@ -918,8 +982,8 @@
                                     <span class="imgtitle">寮傚父</span>
                                 </div>
                             </div>
-                            <div class="layui-col-sm12 layui-col-md4">
-                                <div class="cnt bottomright" style="pointer-events:none; background-color:rgb(0 0 0 / 10%)">
+                            <div class="layui-col-sm12 layui-col-md4" onclick="Esc(event,this)">
+                                <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-close imgicon"></span>
                                     <span class="imgtitle">閫�鍑�</span>
                                 </div>

--
Gitblit v1.9.1