From 6c9cbdf482ce1330704dc635c510ec51a1115a9f Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 18 三月 2024 16:52:29 +0800
Subject: [PATCH] #

---
 pages/basics/stockQuery.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue
index 8a5353d..e2b301d 100644
--- a/pages/basics/stockQuery.vue
+++ b/pages/basics/stockQuery.vue
@@ -50,7 +50,7 @@
 				<view class="data-list-left">
 					<view class="matnr"><text style="width: 700rpx;">缂栫爜锛歿{item.matnr}}</text></view>
 					<view><text style="width: 700rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
-					<view><text style="width: 700rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
+					<view><text style="width: 700rpx;">鍚堝悓鍙凤細{{item.batch}}</text></view>
 					<view>
 						<text style="width: 700rpx;">鏁伴噺锛歿{item.anfme}}</text>
 					</view>
@@ -73,6 +73,7 @@
 	export default {
 		data () {
 			return {
+				commonUrl:null,
 				matList: [],
 				locNo: null,
 				matnr: null
@@ -84,8 +85,15 @@
 			this.baseIP = UIP;
 			const UPORT = uni.getStorageSync('UPORT');
 			this.basePORT = UPORT
+			const PROJ = uni.getStorageSync('UPROJ');
+			this.baseUrl = PROJ
+			this.getUrl()
 		},
 		methods: {
+			// 鑾峰彇url
+			getUrl() {
+				this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
+			},
 			checkbox: function () {
 				
 			},
@@ -100,7 +108,7 @@
 			request() {
 				let that = this
 				uni.request({
-					url:that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/locDetl/list/auth',
+					url:that.commonUrl + '/locDetl/list/auth',
 					header:{'token':uni.getStorageSync('token')},
 					data: {
 						curr: 1,
@@ -110,13 +118,11 @@
 					},
 					method:"GET",
 					success(result) {
-						console.log(result)
 						let res = result.data
 						let records = res.data.records
 						if (res.code == 200) {
 							if (records) {
 								that.matList = records
-								console.log(that.matList)
 							} else {
 								uni.showToast({
 									title: "鏆傛棤鏇村鏁版嵁",

--
Gitblit v1.9.1