From 350b94ed35470107882ceccbaff6f0fd5d98f191 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期二, 03 三月 2026 17:00:27 +0800
Subject: [PATCH] 字段判空

---
 igdss-app/js/admin/height-all.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/igdss-app/js/admin/height-all.js b/igdss-app/js/admin/height-all.js
index 2e30885..2ddd8fa 100644
--- a/igdss-app/js/admin/height-all.js
+++ b/igdss-app/js/admin/height-all.js
@@ -61,12 +61,12 @@
 	if (heightList && heightList.length > 0) {
 		console.log(JSON.stringify(heightList))
 		$.each(heightList, function(index, item) {
-			html += '<li><div class="con myfancy"><div class="tit">搴撳尯鍚嶇О: <span>'+item.deptName+'</span></div><div class="txt">';
-			html += '<div class="box"><div class="group c"><div class="desc">'+item.depotData.name+'</div><div class="ort">浠撴埧鍚嶇О</div></div></div>';
-			html += '<div class="box"><div class="group c1"><div class="desc">'+item.depotData.foodVarietyName+'</div><div class="ort">绮鍝佺</div></div></div>';
+			html += '<li><div class="con myfancy"><div class="tit">搴撳尯鍚嶇О: <span>'+(item.deptName == null?"--":item.deptName)+'</span></div><div class="txt">';
+			html += '<div class="box"><div class="group c"><div class="desc">'+(item.depotData.name == null?"--":item.depotData.name)+'</div><div class="ort">浠撴埧鍚嶇О</div></div></div>';
+			html += '<div class="box"><div class="group c1"><div class="desc">'+(item.depotData.foodVarietyName == null?"--":item.depotData.foodVarietyName)+'</div><div class="ort">绮鍝佺</div></div></div>';
 			html += '<div class="box"><div class="group level-1"><div class="desc">'+item.height+' 绫�</div><div class="ort">楂樺害</div></div></div></div>';
-			html += '<div class="tit coation">璁$畻鍌ㄩ噺: <span>'+item.weight+' KG</span></div>';
-			html += '<div class="time">妫�娴嬫椂闂�: <span>'+item.receiveDate+'</span></div></div></li>';
+			html += '<div class="tit coation">璁$畻鍌ㄩ噺: <span>'+(item.weight == null?"--":item.weight)+' KG</span></div>';
+			html += '<div class="time">妫�娴嬫椂闂�: <span>'+(item.receiveDate == null?"--":item.receiveDate)+'</span></div></div></li>';
 
 		})
 	} else {

--
Gitblit v1.9.3