From 2f330d953a648ffad65751cae20b4228d1904126 Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期六, 24 五月 2025 08:39:41 +0800
Subject: [PATCH] 最新

---
 pages/QC/LLJ/Add.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/pages/QC/LLJ/Add.vue b/pages/QC/LLJ/Add.vue
index d81515d..0384da9 100644
--- a/pages/QC/LLJ/Add.vue
+++ b/pages/QC/LLJ/Add.vue
@@ -397,7 +397,7 @@
 
 								console.log(this.QcIssueResultDetailes)
 
-								const url = `http://192.168.1.22:10054/api/QcIssueResult/GetProcessNo`;
+								const url = this.$store.state.serverInfo.serverAPI+`/QcIssueResult/GetProcessNo`;
 								// 鍙戦�� POST 璇锋眰
 								uni.request({
 									url: url, // 璇锋眰鍦板潃
@@ -520,9 +520,9 @@
 							let tableData = res1.data.tbBillList
 							//褰撳凡妫�楠屼釜鏁伴兘涓嶄负绌烘椂鎸夌収妫�娴嬬粨鏋勬帓搴�
 							tableData.sort((a, b) => {
-								if (a.result === '鏈畬鎴�' && b.result === '鍚堟牸') {
+								if (a.result === '鍚堟牸' && b.result === '鏈畬鎴�') {
 									return -1;
-								} else if (a.result === '鍚堟牸' && b.result === '鏈畬鎴�') {
+								} else if (a.result === '鏈畬鎴�' && b.result === '鍚堟牸') {
 									return 1;
 								} else {
 									return 0;
@@ -632,22 +632,24 @@
 				const item = this.formData.itemNo;
 				console.log(this.formData.itemNo)
 				// console.log(item)
-				const url = "http://192.168.1.22:10054/api/PLM/RetrieveDrawings?ItemNo=" + item
+				const url = this.$store.state.serverInfo.serverAPI +"/PLM/RetrieveDrawings?ItemNo=" + item
 
 				// const item = '5.06.04.4002';
 				// const url = "http://192.168.0.100:10054/api/PLM/RetrieveDrawings?ItemNo=" + item
-
+				
+				let _this = this;
+				
 				uni.request({
 					url: url,
 					method: 'POST',
 					success: (response) => {
 						console.log(response)
 						if (response.data.data == '杩斿洖缁撴灉涓虹┖') {
-							this.drawing = null
+							_this.drawing = null
 						} else {
-							this.drawing = response.data.data
+							_this.drawing = response.data.data
 							// 閬嶅巻鏁版嵁锛屽垽鏂枃浠跺悗缂�骞舵坊鍔犲瓧娈�
-							this.drawing.forEach((file) => {
+							_this.drawing.forEach((file) => {
 								// 鑾峰彇鏂囦欢鍚嶇殑鍚庣紑
 								const fileExtension = file.fName.split('.').pop()
 									.toLowerCase();
@@ -680,7 +682,7 @@
 				if (item.fRelevantObject.length > 2) {
 					// 鐢熸垚璇锋眰URL锛堢畝鍖栫紪鐮侀�昏緫锛�
 					const encodedName = encodeURIComponent(item.fName); 
-					const url = `http://192.168.1.22:10054/api/PLM/OpenDrawingsGet?fileId=${item.fRelevantObject}&fName=${encodedName}`;
+					const url = this.$store.state.serverInfo.serverAPI+`/PLM/OpenDrawingsGet?fileId=${item.fRelevantObject}&fName=${encodedName}`;
 					console.log('璇锋眰URL:', url);
 					
 					const now = new Date();

--
Gitblit v1.9.3