From 8a8f4b04dd45a8e0cca558039b2e77dab82bd93c Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 09 十一月 2023 14:16:49 +0800
Subject: [PATCH] 信用额度申请单:根据客户带出相关信息、隐藏原黄线天数/新黄线天数/原红线天线/新红线天数

---
 WebTM/Properties/PublishProfiles/JFTM.pubxml.user    |    2 +-
 WebTM/views/销售管理/信用额度申请单/Xs_CusRatingChangeBill.html |   37 ++++++++++++++++++++++++++++++++-----
 2 files changed, 33 insertions(+), 6 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
index 4645e64..0190a5d 100644
--- a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -4665,7 +4665,7 @@
       <publishTime>04/11/2023 16:34:43</publishTime>
     </File>
     <File Include="views/閿�鍞鐞�/淇$敤棰濆害鐢宠鍗�/Xs_CusRatingChangeBill.html">
-      <publishTime>10/30/2023 20:53:45</publishTime>
+      <publishTime>11/09/2023 14:16:24</publishTime>
     </File>
     <File Include="views/閿�鍞鐞�/淇$敤棰濆害鐢宠鍗�/Xs_CusRatingChangeBillList.html">
       <publishTime>10/26/2023 20:16:37</publishTime>
diff --git "a/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\344\277\241\347\224\250\351\242\235\345\272\246\347\224\263\350\257\267\345\215\225/Xs_CusRatingChangeBill.html" "b/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\344\277\241\347\224\250\351\242\235\345\272\246\347\224\263\350\257\267\345\215\225/Xs_CusRatingChangeBill.html"
index ef09535..7e2be67 100644
--- "a/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\344\277\241\347\224\250\351\242\235\345\272\246\347\224\263\350\257\267\345\215\225/Xs_CusRatingChangeBill.html"
+++ "b/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\344\277\241\347\224\250\351\242\235\345\272\246\347\224\263\350\257\267\345\215\225/Xs_CusRatingChangeBill.html"
@@ -202,7 +202,7 @@
                                         </div>
                                     </div>
                                     <!--闅愯棌瀛楁-->
-                                    <div class="layui-row">
+                                    <div class="layui-row" style="display:none;">
                                         <div class="layui-inline">
                                             <label class="layui-form-label">鍘熼粍绾垮ぉ鏁�</label>
                                             <div class="layui-input-block">
@@ -595,8 +595,9 @@
                         if (checkStatus.data.length === 0) {
                             return layer.msg('璇烽�夋嫨鏁版嵁');
                         }
-                        $("#HCusName").val(checkStatus.data[0].HName);
-                        $("#HCusID").val(checkStatus.data[0].HItemID);
+
+                        getCustomerByCusID(checkStatus.data[0].HItemID);
+
                         layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) { }
@@ -818,8 +819,9 @@
 
         function GetHSupValue(obj)  //杩斿洖涓氬姟瀹㈡埛
         {
-            $("#HCusName").val(obj[0].HName);
-            $("#HCusID").val(obj[0].HItemID);
+            //$("#HCusName").val(obj[0].HName);
+            //$("#HCusID").val(obj[0].HItemID);
+            getCustomerByCusID(obj[0].HItemID);
         }
 
         function GetHManagerValue(obj)  //杩斿洖閿�鍞富绠�
@@ -828,6 +830,31 @@
             $("#HManagerID").val(obj[0].HItemID);
         }
 
+        //#region 鏍规嵁瀹㈡埛鐩稿叧淇℃伅
+        function getCustomerByCusID(HCusID) {
+            $.ajax({
+                url: GetWEBURL() + "/YS_ReceiveBill/getCustomerByCusID",
+                async: false,
+                type: "GET",
+                data: {
+                    "HCusID": HCusID
+                },
+                success: function (result) {
+                    if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                        var data = result.data[0];
+
+                        $("#HCusID").val(data.HCusID);
+                        $("#HCusName").val(data.HCusName);
+                    } else {
+                        layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+                    }
+                }, error: function () {
+                    layer.alert("鍙戠敓閿欒!", { icon: 5 });
+                }
+            });
+        }
+        //#endregion
+
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1