From cb2fc709d4e2aec6bbea3e6f4e8ccc24f3d27756 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期日, 06 十月 2024 17:27:08 +0800
Subject: [PATCH] 工艺路线工价

---
 WebTM/views/Baseset/基础资料/Gy_SupplierList.html |   31 +++++++++++++++++++++++++------
 1 files changed, 25 insertions(+), 6 deletions(-)

diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SupplierList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SupplierList.html"
index 203a906..e03f76c 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SupplierList.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SupplierList.html"
@@ -35,6 +35,20 @@
     <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
     <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
     <script>
+        function getUrlVars() {
+            var vars = [], hash;
+            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+            for (var i = 0; i < hashes.length; i++) {
+                hash = hashes[i].split('=');
+                vars.push(hash[0]);
+                vars[hash[0]] = hash[1];
+            }
+            return vars;
+        }
+        var params = getUrlVars();
+        var HOtherOrgID = params[params[0]];
+
+
         layui.use(['table', 'form', 'layer'], function () {
             var table = layui.table
             , form = layui.form
@@ -42,7 +56,7 @@
 
             form.on('submit(HQuery)', function () {//閫夋嫨浠撳簱
                 //var sMainStr = JSON.stringify(table.cache['mainTable']);
-                RoadQuery($('#Value').val());
+                RoadQuery($('#Value').val(), sessionStorage["OrganizationID"]);
             });
             form.on('submit(FH)', function () {//閫夋嫨浠撳簱
                 //var sMainStr = JSON.stringify(table.cache['mainTable']);
@@ -52,7 +66,7 @@
                 var index = parent.layer.getFrameIndex(window.name);
                 parent.layer.close(index);
             });
-            RoadQuery($('#Value').val());
+            RoadQuery($('#Value').val(), sessionStorage["OrganizationID"]);
             table.render({
                 elem: '#mainTable'
                 // , url: '/demo/table/user/'
@@ -64,20 +78,25 @@
                 , { field: 'HNumber', width: 150, title: '渚涘簲鍟嗕唬鐮�' }
                 , { field: 'HName', width: 150, title: '渚涘簲鍟嗗悕绉�', sort: true }
               ]]
-              , page: true
+                , page: true
+                , limits: [50, 500, 5000, 50000],
+                limit: 50
             });
             ///鍔犺浇鏄剧ず鏁版嵁
-            function RoadQuery(Where) {
+            function RoadQuery(Where, HOtherOrgID) {
                 var Value = Where;
                 if (Value == null) {
                     Value = '';
                 }
+                if (HOtherOrgID == null || HOtherOrgID == undefined) {
+                    HOtherOrgID = 0;
+                }
                 $.ajax({
-                    type: "get",
+                    type: "GET",
                     //url: "http://61.130.49.162:9090/WMSAPI///Web/GetSupplierList_Json",
                     url: GetWEBURL() + "/Web/GetSupplierList_Json",
                     async: true,
-                    data: { "Supplier": Value },
+                    data: { "Supplier": Value, "HOrgID": HOtherOrgID },
                     //data: { "Value": Value },
                     success: function (result) {
                         ajaxReturnData = JSON.parse(JSON.stringify(result)).data;

--
Gitblit v1.9.1