From a612986d064865be11fcab95963b5c217b80a876 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 29 二月 2024 13:21:38 +0800
Subject: [PATCH] 收款单、应收退库单:因为客户关联的用户没有设置相关职员、部门而报错问题解决

---
 WebTM/Properties/PublishProfiles/JFTM.pubxml.user |    4 ++--
 WebTM/views/销售管理/应收退款单/YS_ReceiveBackBill.html    |    4 ++--
 WebTM/views/销售管理/收款单/YS_ReceiveBill.html          |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
index a2341bb..3f5f62b 100644
--- a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -5373,13 +5373,13 @@
       <publishTime>02/05/2024 15:10:25</publishTime>
     </File>
     <File Include="views/閿�鍞鐞�/搴旀敹閫�娆惧崟/YS_ReceiveBackBill.html">
-      <publishTime>02/28/2024 15:07:01</publishTime>
+      <publishTime>02/29/2024 12:48:22</publishTime>
     </File>
     <File Include="views/閿�鍞鐞�/搴旀敹閫�娆惧崟/YS_ReceiveBackBillList.html">
       <publishTime>02/25/2024 21:38:07</publishTime>
     </File>
     <File Include="views/閿�鍞鐞�/鏀舵鍗�/YS_ReceiveBill.html">
-      <publishTime>02/28/2024 14:50:46</publishTime>
+      <publishTime>02/29/2024 12:45:04</publishTime>
     </File>
     <File Include="views/閿�鍞鐞�/鏀舵鍗�/YS_ReceiveBillList.html">
       <publishTime>02/25/2024 21:38:07</publishTime>
diff --git "a/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\345\272\224\346\224\266\351\200\200\346\254\276\345\215\225/YS_ReceiveBackBill.html" "b/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\345\272\224\346\224\266\351\200\200\346\254\276\345\215\225/YS_ReceiveBackBill.html"
index d0c9661..b01f573 100644
--- "a/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\345\272\224\346\224\266\351\200\200\346\254\276\345\215\225/YS_ReceiveBackBill.html"
+++ "b/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\345\272\224\346\224\266\351\200\200\346\254\276\345\215\225/YS_ReceiveBackBill.html"
@@ -1303,9 +1303,9 @@
 
                         $("#HEmpID").val(data.HEmpID);
                         $("#HEmpName").val(data.HEmpName);
-                        $("#HDeptID").val(data.HDeptID);
+                        $("#HDeptID").val((data.HDeptID == "" || data.HDeptID == null) ? 0 : data.HDeptID);
                         $("#HDeptName").val(data.HDeptName);
-                        $("#HManagerID").val(data.HManagerID);
+                        $("#HManagerID").val((data.HManagerID == "" || data.HManagerID == null) ? 0 : data.HManagerID);
                         $("#HManagerName").val(data.HManagerName);
                     } else {
                         layer.alert(result.Message, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
diff --git "a/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\346\224\266\346\254\276\345\215\225/YS_ReceiveBill.html" "b/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\346\224\266\346\254\276\345\215\225/YS_ReceiveBill.html"
index cbc9cda..7eba075 100644
--- "a/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\346\224\266\346\254\276\345\215\225/YS_ReceiveBill.html"
+++ "b/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\346\224\266\346\254\276\345\215\225/YS_ReceiveBill.html"
@@ -1413,9 +1413,9 @@
 
                         $("#HEmpID").val(data.HEmpID);
                         $("#HEmpName").val(data.HEmpName);
-                        $("#HDeptID").val(data.HDeptID);
+                        $("#HDeptID").val((data.HDeptID == "" || data.HDeptID == null) ? 0 : data.HDeptID);
                         $("#HDeptName").val(data.HDeptName);
-                        $("#HManagerID").val(data.HManagerID);
+                        $("#HManagerID").val((data.HManagerID == "" || data.HManagerID == null) ? 0 : data.HManagerID);
                         $("#HManagerName").val(data.HManagerName);
                     } else {
                         layer.alert(result.Message, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });

--
Gitblit v1.9.1