From 8123b1d8a6794e9ea2c3309b402abab75e5c3be1 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 24 七月 2023 08:53:21 +0800
Subject: [PATCH] 1

---
 WebTM/views/PublicPage/HSourceReportHtml.html |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/WebTM/views/PublicPage/HSourceReportHtml.html b/WebTM/views/PublicPage/HSourceReportHtml.html
index 47c28e2..2e61ae0 100644
--- a/WebTM/views/PublicPage/HSourceReportHtml.html
+++ b/WebTM/views/PublicPage/HSourceReportHtml.html
@@ -134,7 +134,7 @@
             var OperationType = 1;//鎿嶄綔绫诲瀷
         } else {
             var OperationType = params[params[0]];//鎿嶄綔绫诲瀷
-            var linterid = params[params[1]];//婧愬崟id
+            var HOrgID = params[params[1]];//婧愬崟id
             var HSouceBillType = decodeURI(params[params[2]]);//婧愬崟绫诲瀷
         }
         var cols_arr = []; //瀛樺偍琛ㄦ牸澶寸殑鏁扮粍
@@ -161,10 +161,6 @@
             var option = [];
             var titleData = [];//涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞�
 
-            var HDeptID = 0;
-
-            var params = getUrlVars();
-            var HDeptID = params[params[0]];
             //#endregion
 
             //#region 杩涘叆椤甸潰鍗冲姞杞�
@@ -186,6 +182,7 @@
             $.ajax({
                 type: "get",
                 url: GetWEBURL() + "/Sc_ICMOBill/GetHDeptList",
+                data: { "HOrgID": HOrgID },
                 success: function (result) {
                     if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
                         var data = result.data;
@@ -197,9 +194,6 @@
 
                         }
                         $("#HDeptName").append(HDeptName);
-                        if (!isNaN(HDeptID)) {
-                            $("#HDeptName").val(HDeptID);
-                        }
                         form.render('select');
                     }
                     layer.closeAll("loading");
@@ -304,7 +298,7 @@
                 $.ajax({
                     url: GetWEBURL() + '/Sc_BarCode/ReportFromBillList',
                     type: "GET",
-                    data: { "page": 1, "limit": 50, "sWhere": sWhere, "HSouceBillType": HSouceBillType, "HOrgID": linterid },
+                    data: { "page": 1, "limit": 50, "sWhere": sWhere, "HSouceBillType": HSouceBillType, "HOrgID": HOrgID },
                     async: false,
                     dataType: "json",//鏁版嵁绫诲瀷鍙互涓� text xml json  script  jsonp
                     success: function (data1) {
@@ -407,10 +401,7 @@
                     }
                     sWhere += " and " + ColName + " " + com;
                 }
-                //浼犻�掔殑鍙傛暟涓嶄负NAN
-                if (!isNaN(HDeptID) && HDeptName == 0) {
-                    HDeptName = HDeptID;
-                }
+              
                 switch (HSouceBillType) {
                     case '鐢熶骇璁㈠崟':
                         if (HBillNo) {

--
Gitblit v1.9.1