From f6d9155a4a0cf27fd5732314b70109cbc090ccf8 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期二, 04 十一月 2025 08:06:10 +0800
Subject: [PATCH] Merge branch 'master' of http://47.95.120.53:8083/r/JC34WMS

---
 HTML/views/BaseSetting/MaterialsForm.html |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/HTML/views/BaseSetting/MaterialsForm.html b/HTML/views/BaseSetting/MaterialsForm.html
index 1ce4191..30c44e7 100644
--- a/HTML/views/BaseSetting/MaterialsForm.html
+++ b/HTML/views/BaseSetting/MaterialsForm.html
@@ -300,20 +300,21 @@
 			var sel2 = false;
 			function getPackagList(){
 				var packagList=[];
-				for (let index = 1; index < 5; index++) {
-					//鑾峰彇鍖呰涓嬫媺鑿滃崟 PackagNo
-					synData(IP + "/Basis/GetPackagList?page="+index, {}, 'get', function (res) {
+
+				let shouldContinue = true;
+				let index = 1;
+				while (shouldContinue) {
+					synData(IP + "/Basis/GetPackagList?page="+index, {}, 'get', function (res, status, error) {
 						if (res.code == 0) {
 							if(res.data.length>0){
-								packagList.push(res.data)
+								packagList.push(res.data);
+								index++;						
 							}else{
-								return;
-							}
-							
+								shouldContinue=false;
+							}							
 						}else {
-							return;
+							shouldContinue=false;
 						}
-
 					});
 				}
 				if(packagList.length>0){				

--
Gitblit v1.8.0