From 492082f5429f45d23204628468dd995b14cf53c8 Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期二, 21 二月 2023 19:36:40 +0800
Subject: [PATCH] #

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

diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue
index 8a5353d..ed8f478 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,7 +73,8 @@
 	export default {
 		data () {
 			return {
-				matList: [],
+				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,

--
Gitblit v1.9.1