From f681b210692b079455a53afd5bd83b4401ef9320 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 10 二月 2023 10:42:23 +0800
Subject: [PATCH] #

---
 pages/basics/outPakin.vue |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/pages/basics/outPakin.vue b/pages/basics/outPakin.vue
index 5f0e843..7c2daef 100644
--- a/pages/basics/outPakin.vue
+++ b/pages/basics/outPakin.vue
@@ -120,9 +120,8 @@
 			this.baseIP = UIP;
 			const UPORT = uni.getStorageSync('UPORT');
 			this.basePORT = UPORT
-			const PJO = uni.getStorageSync('PJO');
-			this.baseUrl = PJO
-			console.log(this.baseUrl)
+			const PROJ = uni.getStorageSync('UPROJ');
+			this.baseUrl = PROJ
 			this.getUrl()
 		},
 		onLoad() {
@@ -282,6 +281,7 @@
 			},
 			// 娣诲姞鎵弿鏃ュ織
 			addLog(matCode,userName) {
+				
 				let that = this;
 				uni.request({
 					url: that.commonUrl + "/mobile/addLog/auth",
@@ -294,6 +294,11 @@
 					},
 					// method:"POST",
 					success(result) {
+						var res = result.data
+						if(res.code === 200) {
+							// uni.showToast({title: "娣诲姞鎴愬姛", icon: "none",position: 'center'})
+						}
+						
 					}
 				})
 				
@@ -335,15 +340,14 @@
 				// return;
 				// uni.showLoading();
 				uni.request({
-				    url: that.commonUrl + '/mat/auth',
+				    url: that.commonUrl + '/barcode/check/auth',
 				    data: {
-						matnr:matnr
+						barcode:that.matnrId
 				    },
 				    header: {
 						'token':uni.getStorageSync('token')
 				    },
 					success(result) {
-						console.log(result)
 						uni.hideLoading();
 						// uni.vibrateShort();
 						let res = result.data

--
Gitblit v1.9.1