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/inout-in-record.js |   61 +++++++++++++++---------------
 1 files changed, 31 insertions(+), 30 deletions(-)

diff --git a/igds-app/js/admin/inout-in-record.js b/igds-app/js/admin/inout-in-record.js
index afe6967..914df64 100644
--- a/igds-app/js/admin/inout-in-record.js
+++ b/igds-app/js/admin/inout-in-record.js
@@ -17,7 +17,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;
 
@@ -48,40 +48,39 @@
 				inRecordData = result.data;
 				renderData();
 			} else {
-				
 				renderData();
 				mui.toast(result.msg);
-				console.log(JSON.stringify(result))
 			}
 		},
 		error: function() {
 			mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div")
 		}
 	})
-	inRecordData = {
-		"sum": "55",
-		"listInout": [{
-				"id": "98",
-				"plateNum": "39",
-				"depotId": "83",
-				"depotName": "鑳藉闄呮硶楂樼瓑",
-				"foodVariety": "quis Ut",
-				"foodVarietyName": "琚緳娴庢潵",
-				"recordWeight": "25",
-				"completeTime": "1971-10-20 14:45:38"
-			},
-			{
-				"id": "37",
-				"plateNum": "50",
-				"depotId": "16",
-				"depotName": "鍑嗘皯闈掑叡宸�",
-				"foodVariety": "aliquip eiusmod laborum nulla",
-				"foodVarietyName": "鍙疯蛋鏍瑰舰",
-				"recordWeight": "30",
-				"completeTime": "1971-04-09 06:42:06"
-			}
-		],
-	}
+	// inRecordData = {
+	// 	"sum": "55",
+	// 	"listInout": [{
+	// 			"id": "98",
+	// 			"plateNum": "39",
+	// 			"depotId": "83",
+	// 			"depotName": "鑳藉闄呮硶楂樼瓑",
+	// 			"foodVariety": "quis Ut",
+	// 			"foodVarietyName": "琚緳娴庢潵",
+	// 			"recordWeight": "25",
+	// 			"completeTime": "1971-10-20 14:45:38"
+	// 		},
+	// 		{
+	// 			"id": "37",
+	// 			"plateNum": "50",
+	// 			"depotId": "16",
+	// 			"depotName": "鍑嗘皯闈掑叡宸�",
+	// 			"foodVariety": "aliquip eiusmod laborum nulla",
+	// 			"foodVarietyName": "鍙疯蛋鏍瑰舰",
+	// 			"recordWeight": "30",
+	// 			"completeTime": "1971-04-09 06:42:06"
+	// 		}
+	// 	],
+	// }
+	
 	
 }
 
@@ -93,7 +92,7 @@
 	if (inRecordData) {
 		sumHtml = inRecordData.sum;
 		var inRecordList = inRecordData.listInout;
-		console.log(JSON.stringify(inRecordList))
+		// console.log(JSON.stringify(inRecordList))
 		if (inRecordList && inRecordList.length > 0) {
 			$.each(inRecordList, function(index, item) {
 				html += '<div class="item">';
@@ -139,12 +138,14 @@
 		type: "date" ,//璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡 
 		value: dateTime
 	})
+	var time = dateTime
 	dtpicker.show(function(e) {
 		dateTime = e.value;
 		$("#dateTime").val(dateTime);
+		if(time != dateTime){
+			getInRecordList();
+		}
 	})
-
-	getInRecordList();
 }
 
 //榛樿鑾峰彇褰撳墠鏃ユ湡(yyyy-MM-dd)

--
Gitblit v1.9.3