From 742c7847a2b9a98c39b5690fdfc2bfa67d09fb0b Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 25 二月 2026 15:46:20 +0800
Subject: [PATCH] 华舟页面调整

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

diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html
index 6ea745c..1f462fd 100644
--- a/WebTM/views/IpadIndex.html
+++ b/WebTM/views/IpadIndex.html
@@ -1,5 +1,6 @@
 锘�<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
+
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>鎶ュ伐骞冲彴</title>
@@ -61,7 +62,8 @@
                 , table = layui.table
                 , form = layui.form
                 , laydate = layui.laydate
-                , element = layui.element;
+                , element = layui.element
+                ;
             //window 鍏ㄥ眬鍙橀噺
             window.mychart1 = echarts.init(document.getElementById('mychart1'));
             window.mychart2 = echarts.init(document.getElementById('mychart2'));
@@ -85,11 +87,13 @@
                 dataType: "json",//鏁版嵁绫诲瀷鍙互涓� text xml json  script  jsonp
                 success: function (data) {
                     var LoadData = data.data.h_p_JIT_GetSourceInfoByUser;
-
+                    // 鍗庤垷鍒嗙粍鍐呭
+                    var LoadingTabsContact = {}
                     if (LoadData.length > 0)// 璇存槑楠岃瘉鎴愬姛浜嗭紝
                     {
                         HSBName = LoadData[0].HSourceName;
                         for (var i = 1; i <= LoadData.length + 1; i++) {
+                            // sessionStorage["Organization"] == "瀹佹尝甯傚崕鑸熷寘瑁呮湁闄愬叕鍙�"
                             if (sessionStorage["Organization"] == "瀹佹尝甯傚崕鑸熷寘瑁呮湁闄愬叕鍙�") {
                                 if (i <= LoadData.length) {
                                     var html1 = '';
@@ -130,7 +134,9 @@
                                     html1 += '</dl>';
                                     html1 += '</div>';
                                     html1 += '</div>';
-                                    $("#topleft").append(html1);
+
+                                    // 浣跨敤涓嶅彲瑙佸璞℃殏瀛樻覆鏌撶殑html
+                                    $("#topleftTemp").append(html1);
                                     $("#ts" + i + "").append('<span class="layui-icon layui-icon-delete delete"  onclick="Delete(event,this,' + i + ')"></span>'); //鍦ㄥ綋鍓峝iv鍚庤拷鍔犲姞涓�涓猻pan鍒犻櫎
 
                                     //鏍规嵁杩斿洖鐨� 閫変腑鏍囧織HNowFlag璁剧疆閫変腑鐨勮祫婧�
@@ -139,19 +145,31 @@
                                         $("#ts" + i + "").addClass('check'); // 娣诲姞褰撳墠鍏冪礌鐨勬牱寮�
                                         Check(this, i);
                                     }
+                                    if (LoadData[i - 1].HSourceNumber.substring(0, 2) == 'ZS') {
+                                        var GroupName = LoadData[i - 1].HSourceNumber.substring(3, 4)
+                                        if (!LoadingTabsContact[GroupName]) {
+                                            LoadingTabsContact[GroupName] = []
+                                        }
+                                        LoadingTabsContact[GroupName].push($("#topleftTemp").html())
+                                    }
+
+                                    $("#topleftTemp").empty()
+
+
                                 }
                                 else {
-                                    var html1 = '';
-                                    html1 += '<div class="layui-col-sm12 layui-col-md2">';
-                                    html1 += '<div class="cnt1 ctop" id="ts' + i + '" onclick="Check(this,' + i + ')">';
-                                    html1 += '<span class="layui-icon layui-icon-addition imgicon0" onclick="Add(event,this,' + i + ')"></span>';
-                                    html1 += '</div>';
-                                    html1 += '</div>';
-                                    $("#topleft").append(html1);
+                                    // var html1 = '';
+                                    // html1 += '<div class="layui-col-sm12 layui-col-md2">';
+                                    // html1 += '<div class="cnt1 ctop" id="ts' + i + '" onclick="Check(this,' + i + ')">';
+                                    // html1 += '<span class="layui-icon layui-icon-addition imgicon0" onclick="Add(event,this,' + i + ')"></span>';
+                                    // html1 += '</div>';
+                                    // html1 += '</div>';
+                                    // $("#topleft").append(html1);
 
                                 }
                             } else {
                                 if (i <= LoadData.length) {
+
                                     var html1 = '';
                                     html1 += '<div class="layui-col-sm12 layui-col-md3">';
                                     html1 += '<div class="cnt ctop" id="ts' + i + '" onclick="Check(this,' + i + ')">';
@@ -193,6 +211,7 @@
                                     html1 += '</dl>';
                                     html1 += '</div>';
                                     html1 += '</div>';
+
                                     $("#topleft").append(html1);
                                     $("#ts" + i + "").append('<span class="layui-icon layui-icon-delete delete"  onclick="Delete(event,this,' + i + ')"></span>'); //鍦ㄥ綋鍓峝iv鍚庤拷鍔犲姞涓�涓猻pan鍒犻櫎
 
@@ -216,6 +235,50 @@
                             }
 
                         }
+
+                        if (sessionStorage["Organization"] == "瀹佹尝甯傚崕鑸熷寘瑁呮湁闄愬叕鍙�") {
+                            // 鍗庤垷 浣跨敤鍒嗙粍鏍囩
+                            var divParent = document.createElement("div")
+                            divParent.classList.add("layui-tab")
+                            divParent.classList.add("layui-tab-card")
+                            var tabTitle = document.createElement("ul")
+                            var tabContent = document.createElement("div")
+                            tabTitle.classList.add("layui-tab-title")
+                            tabContent.classList.add("layui-tab-content")
+                            var index = 0
+                            for (var key in LoadingTabsContact) {
+                                var liItem = document.createElement("li")
+                                liItem.innerText = key
+                                var tabItem = document.createElement("div")
+                                tabItem.classList.add("layui-tab-item")
+                                tabItem.classList.add("layui-row")
+                                tabItem.classList.add("layui-col-space10")
+
+                                if (index == 0) {
+                                    liItem.classList.add("layui-this")
+                                    tabItem.classList.add("layui-show")
+                                }
+
+                                for (var j = 0; j < LoadingTabsContact[key].length; j++) {
+                                    tabItem.innerHTML += LoadingTabsContact[key][j]
+                                }
+                                tabTitle.appendChild(liItem)
+                                tabContent.appendChild(tabItem)
+                                var html1 = '';
+                                html1 += '<div class="layui-col-sm12 layui-col-md2">';
+                                html1 += '<div class="cnt1 ctop" id="ts' + i + '" onclick="Check(this,' + i + ')">';
+                                html1 += '<span class="layui-icon layui-icon-addition imgicon0" onclick="Add(event,this,' + i + ')"></span>';
+                                html1 += '</div>';
+                                html1 += '</div>';
+                                tabItem.innerHTML += html1;
+                                index++
+                            }
+                            divParent.appendChild(tabTitle)
+                            divParent.appendChild(tabContent)
+
+                            $("#topleft").append(divParent)
+                        }
+
                     }
                     else {
                         var html1 = '';
@@ -897,6 +960,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
+                scrollbar: false,
                 content: '鐢熶骇绠$悊/鐢熶骇寮�宸ュ崟/Sc_Add_MESBeginWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
@@ -938,6 +1002,7 @@
                 , id: 'LAY_layuipro' //璁惧畾涓�涓猧d锛岄槻姝㈤噸澶嶅脊鍑�
                 , btn: ['纭畾', '鍙栨秷']
                 , btnAlign: 'c'
+                , scrollbar: false
                 , moveType: 1 //鎷栨嫿妯″紡锛�0鎴栬��1
                 , content: '<div style="padding: 50px; line-height: 22px; font-weight: 300;text-align:center;">璁惧缂栧彿:' + HSourceName1 + '<br>宸ュ崟鍙�:' + workcode + '<br>浜у搧鍚嶇О:' + HMaterName + '<br></div>'
                 , btn1: function (index, layero, e) {
@@ -983,6 +1048,7 @@
                 closeBtn: 1,
                 shift: 2,
                 area: ['95%', '95%'],
+                scrollbar: false,
                 maxmin: true,
                 content: '鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=' + workcode + '&HSourceEntryID=' + HSourceEntryID + '&HProcID=' + HProcID,
                 end: function () {
@@ -1071,6 +1137,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
+                scrollbar: false,
                 content: '鐢熶骇绠$悊/鐢熶骇瀹屽伐鍗�/Sc_Add_MESEndWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
@@ -1110,6 +1177,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
+                scrollbar: false,
                 content: '鐢熶骇绠$悊/鐢熶骇鍋滃伐鍗�/Sc_Add_MESStopWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
@@ -1252,6 +1320,7 @@
                 title: '鏂板鍋滃伐鎭㈠鍗�',
                 closeBtn: 1,
                 shift: 2,
+                scrollbar: false,
                 area: ['100%', '100%'],
                 maxmin: true,
                 content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/鍋滃伐鎭㈠鍗�/Sc_MESStopRestoreWorkBill.html?OperationType=2&linterid=&HSouceBillType=',
@@ -1291,6 +1360,7 @@
                 , anim: 0
                 , content: ['璐ㄩ噺绠$悊/棣栦欢妫�楠屽崟/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID + '', 'yes']
                 , resize: false
+                , scrollbar: false
                 , cancel: function () {
                 }
                 , end: function () {
@@ -1365,6 +1435,7 @@
                 , anim: 0
                 , content: ['鐢熶骇绠$悊/璐ㄩ噺姹囨姤鍗�/Sc_QualityReportBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID, 'yes']
                 , resize: false
+                , scrollbar: false
                 , cancel: function () {
 
                 }
@@ -1394,6 +1465,7 @@
                 , anim: 0
                 , content: ['鐢熶骇绠$悊/璐ㄩ噺姹囨姤鍗�/Sc_QualityReportBill.html?OperationType=2&linterid=' + HSourceInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HSourceEntryID + '&HBillSubType=寰憰鍝�', 'yes']
                 , resize: false
+                , scrollbar: false
                 , cancel: function () {
 
                 }
@@ -1469,6 +1541,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
+                scrollbar: false,
                 content: '杞﹂棿绠$悊/宸ュ簭鍑虹珯姹囨姤鍗�/Cj_StationOutBill_CurrentWork.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
 
@@ -1546,6 +1619,7 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
+                scrollbar: false,
                 content: '鐢熶骇绠$悊/寮傚父鍙嶉鍗�/Sc_MESExecptFeedBackBillType.html',
                 end: function () {
 
@@ -1609,6 +1683,7 @@
                 closeBtn: 1,
                 shift: 2,
                 area: ['100%', '100%'],
+                scrollbar: false,
                 maxmin: true,
                 content: '璐ㄩ噺绠$悊/妫�楠屽彇鏍疯繕鏍峰崟/QC_Add_TakeSampleCheckBill.html?OperationType=2&linterid=&HSouceBillType=',
                 end: function () {
@@ -1699,6 +1774,8 @@
                 shift: 2,
                 area: ['100%', '100%'],
                 maxmin: true,
+                scrollbar: false,
+
                 content: '璐ㄩ噺绠$悊/寮傚父鍙嶉/OA_ErrMsgBackSelfQuery_BGT.html?OperationType=2',
                 end: function () {
 
@@ -1798,6 +1875,7 @@
                         <div class="layui-row layui-col-space10" id="topleft">
 
                         </div>
+                        <div style="display: none;" id="topleftTemp"> </div>
                     </div>
                 </fieldset>
             </div>
@@ -1821,7 +1899,8 @@
                     </ul>
                     <div class="layui-tab-content content3">
                         <div class="layui-tab-item layui-show">
-                            <div class="layui-row layui-col-space10" id="btomleft" style="height:600px;display:block;overflow-y:auto;">
+                            <div class="layui-row layui-col-space10" id="btomleft"
+                                style="height:600px;display:block;overflow-y:auto;">
 
                             </div>
                         </div>
@@ -2014,4 +2093,5 @@
     </div>
 
 </body>
+
 </html>
\ No newline at end of file

--
Gitblit v1.9.1