From 2df906a447195f9786dd468512ea895d6cc18532 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期四, 15 五月 2025 14:53:54 +0800
Subject: [PATCH] APP3.5开发

---
 igds-app/js/admin/basic-depot.js |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/igds-app/js/admin/basic-depot.js b/igds-app/js/admin/basic-depot.js
index e789dc4..f39528a 100644
--- a/igds-app/js/admin/basic-depot.js
+++ b/igds-app/js/admin/basic-depot.js
@@ -15,7 +15,7 @@
 function init() {
 	var user = JSON.parse(localStorage.getItem('user'));
 	var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId'));
-	url = user.url + "/api-phone/v35/gateway";
+	url = user.url + "/api/phone/v35/gateway";
 	data.tokenAuth = user.tokenAuth;
 	data.data.deptId = selectDeptId;
 	getData();
@@ -33,6 +33,7 @@
 		success: function(result) {
 			if (result.code == "0000") {
 				depotList = result.data;
+				console.log(JSON.stringify(depotList))
 				renderDepotList();
 			} else {
 				mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div");
@@ -50,14 +51,14 @@
 	if(depotList && depotList.length > 0){
 		$.each(depotList, function(index, item) {
 			html += '<li><div class="con">';
-			html += '<div class="tit">浠撳簱鍚嶇О锛�<span>' + item.depotName + '</span></div>';
+			html += '<div class="tit">浠撳簱鍚嶇О锛�<span>' + (item.depotName == null?"--":item.depotName) + '</span></div>';
 			html += '<div class="txt">';
 			html += '<div class="box"><div class="group type"><div class="desc">';
 			html += (item.depotTypeName == null?"--":item.depotTypeName) + '</div><div class="ort">浠撳簱绫诲瀷</div></div></div>';
 			html += '<div class="box"><div class="group state"><div class="desc">';
 			html += (item.depotStatusName == null?"--":item.depotStatusName) + '</div><div class="ort">浠撳簱鐘舵��</div></div></div>';
 			html += '<div class="box"><div class="group weight"><div class="desc">';
-			html += (item.storageReal == null?"--":item.storageReal) + '<span class="w"> KG</span></div><div class="ort">瀹為檯鍌ㄩ噺</div></div></div></div>';
+			html += (item.storageReal == null?"--":item.storageReal) + '</div><div class="ort">瀹為檯鍌ㄩ噺(KG)</div></div></div></div>';
 			html += '<div class="edit"><div class="sel"><div class="name">绮鍝佺</div>';
 			html += '<div class="cont">' + (item.foodVarietyName == null?"--":item.foodVarietyName) + '</div></div>';
 			html += '<div class="peo"><div class="name">淇濈鍛�</div>';
@@ -72,7 +73,7 @@
 		html += '<div class="box"><div class="group state"><div class="desc">';
 		html += '--</div><div class="ort">浠撳簱鐘舵��</div></div></div>';
 		html += '<div class="box"><div class="group weight"><div class="desc">';
-		html += '--<span class="w"> KG</span></div><div class="ort">瀹為檯鍌ㄩ噺</div></div></div></div>';
+		html += '--</div><div class="ort">瀹為檯鍌ㄩ噺(KG)</div></div></div></div>';
 		html += '<div class="edit"><div class="sel"><div class="name">绮鍝佺</div>';
 		html += '<div class="cont">--</div></div>';
 		html += '<div class="peo"><div class="name">淇濈鍛�</div>';

--
Gitblit v1.9.3