From d6209bcc6321765335dbfbee80e7b46706b99e17 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期五, 01 四月 2022 16:44:18 +0800
Subject: [PATCH] 代码优化

---
 WebTM/views/车间管理/叫料管理/Jl_CallGoodsBillMain.html |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\217\253\346\226\231\347\256\241\347\220\206/Jl_CallGoodsBillMain.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\217\253\346\226\231\347\256\241\347\220\206/Jl_CallGoodsBillMain.html"
index fa0cf66..3d7172c 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\217\253\346\226\231\347\256\241\347\220\206/Jl_CallGoodsBillMain.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\217\253\346\226\231\347\256\241\347\220\206/Jl_CallGoodsBillMain.html"
@@ -269,6 +269,9 @@
 
             //#region 鏌ヨ
             function get_Display(sWhere) {
+                var HOrgID = sessionStorage["OrganizationID"];//褰撳墠缁勭粐id
+                sWhere += " and 缁勭粐 =" + HOrgID + " ";
+
                 var ajaxLoad = layer.load();
                 $.ajax({
                     url: GetWEBURL() + '/Cj_CallGoodsBillMain/CallGoodsBillMainList',
@@ -301,7 +304,7 @@
                 var MaterialCode = $("#MaterialCode").val();//鐗╂枡浠g爜
                 var MaterialName =$("#MaterialName").val();//鐗╂枡鍚嶇О
                 var MaterialModel = $("#MaterialModel").val();//瑙勬牸鍨嬪彿
-                var HOrgID = sessionStorage["OrganizationID"];//褰撳墠缁勭粐id
+              
 
                 if (HBeginDate) {
                     sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
@@ -323,9 +326,6 @@
                 }
                 if (MaterialModel) {
                     sWhere += " and 瑙勬牸鍨嬪彿 like '%" + MaterialModel + "%'";
-                }
-                if (HOrgID) {
-                    sWhere += " and 缁勭粐 =" + HOrgID + " ";
                 }
                
                 get_Display(sWhere);

--
Gitblit v1.9.1