From d6b5426ec33378fbe991beb7cec089fe7e8b2659 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期四, 22 九月 2022 09:33:35 +0800 Subject: [PATCH] #可回退版本 --- pages/basics/stockQuery.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue index 8a5353d..339d59d 100644 --- a/pages/basics/stockQuery.vue +++ b/pages/basics/stockQuery.vue @@ -52,7 +52,7 @@ <view><text style="width: 700rpx;">鍝佸悕锛歿{item.maktx}}</text></view> <view><text style="width: 700rpx;">鎵瑰彿锛歿{item.batch}}</text></view> <view> - <text style="width: 700rpx;">鏁伴噺锛歿{item.anfme}}</text> + <text style="width: 700rpx;">閲嶉噺锛歿{item.anfme}}kg</text> </view> </view> <view class="data-list-right"> @@ -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, -- Gitblit v1.9.1