From 3f1a8489d04341509e22540a2c262503cc49415c Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 30 五月 2025 18:58:42 +0800
Subject: [PATCH] 器具主档:维护页面增加 组织 过滤

---
 WebTM/Properties/PublishProfiles/LAYUI.pubxml.user |    2 +-
 WebTM/views/模治具管理/模治具管理/Gy_MouldFileList.html      |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 1 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index d4257f9..f090dc2 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -5152,7 +5152,7 @@
       <publishTime>04/08/2025 10:03:42</publishTime>
     </File>
     <File Include="views/妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFileList.html">
-      <publishTime>03/27/2025 13:53:19</publishTime>
+      <publishTime>05/30/2025 18:55:20</publishTime>
     </File>
     <File Include="views/妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFileResume.html">
       <publishTime>06/13/2024 14:47:29</publishTime>
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
index 0cfe1a6..a3d69a2 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
@@ -49,6 +49,14 @@
                                         <input type="text" class="layui-input ForFilteringSchemes" name="HName" id="HName">
                                     </div>
                                 </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label" style="width: 85px;">缁勭粐<label style="color:red"> * </label></label>
+                                    <div class="layui-input-block" style="margin-left: 120px; width: 300px;">
+                                        <select name="HUSEORGID" id="HUSEORGID" lay-verify="HUSEORGID">
+                                            <!--鍔ㄦ�佹覆鏌撶粍缁�-->
+                                        </select>
+                                    </div>
+                                </div>
                                 <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                     <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                 </button>
@@ -350,6 +358,8 @@
 
             //鍒濆鍖栬〃鏍�
             function set_ClearBill() {
+                Organ();
+
                 //鍒濆鍖栬〃鏍�
                 set_InitGrid();
                 //鍒濆鍖栭〉澶у皬
@@ -627,6 +637,10 @@
                 if (HName) {
                     sWhere += " and 妯″叿鍚嶇О like '%" + HName + "%'";
                 }
+                if (HUSEORGID && HUSEORGID != "0") {
+                    sWhere += " and HUSEORGID = " + HUSEORGID + "";
+                }
+
                 if (sql != "") {
                     sWhere += sql;
                 }
@@ -1124,6 +1138,33 @@
                 }
             }
 
+            //#region 鑾峰彇缁勭粐
+            function Organ() {
+                //鑾峰彇鐧诲綍椤电粍缁囧垪
+                var Organization = '';
+                $.ajax({
+                    type: "get",
+                    async: false,
+                    url: GetWEBURL() + "/Web/GetOrganizations",
+                    success: function (result) {
+                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            var data = result.data;
+                            for (var i = 0; i < data.length; i++) {
+                                Organization += '<option  style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>';
+                            }
+                            $("#HUSEORGID").append(Organization);
+
+                            var HOrgIDBar = sessionStorage["OrganizationID"];
+
+                            $("#HUSEORGID").val(HOrgIDBar);
+                            form.render('select');
+                        }
+                        layer.closeAll("loading");
+                    }
+                })
+            }
+            //#endregion
+
             //#region 鑾峰彇鍙傛暟
             function getUrlVars() {
                 var vars = [], hash;

--
Gitblit v1.9.1