From 3af3fe4338e97d52e7811bad2689c71c7a4acdc4 Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期五, 04 三月 2022 09:46:15 +0800 Subject: [PATCH] # --- pages/basics/stockQuery.vue | 44 +++++++++++++++++++++++++++----------------- 1 files changed, 27 insertions(+), 17 deletions(-) diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue index df2f787..f2f821d 100644 --- a/pages/basics/stockQuery.vue +++ b/pages/basics/stockQuery.vue @@ -6,7 +6,7 @@ </view> <view class="cu-form-group margin-top"> <view class="title">浜у搧</view> - <input v-model="matNo" placeholder="浜у搧淇℃伅" name="input" @input="findByMatNo()"></input> + <input v-model="matNo" placeholder="浜у搧ID" name="input" @input="findByMatNo()"></input> </view> <view class="margin-top"> <uni-table border stripe emptyText="鏆傛棤鏇村鏁版嵁"> @@ -25,9 +25,15 @@ </uni-table> </view> - <view class="reset"> - <button class="cu-btn bg-grey pda-btn1" @click="reset">閲� 缃�</button> + <view style="height: 200rpx;"> + <!-- 绌虹櫧灞� --> </view> + <view class="cu-bar foot justify-center input"> + <view class="reset flex solid-bottom padding justify-center" > + <button class="cu-btn bg-grey lg margin-xs" style="width: 400rpx;" @click="reset">閲� 缃�</button> + </view> + </view> + </view> </template> @@ -38,17 +44,21 @@ locNo:'', matNo:'', locDetlData:[], + basePORT:'', } }, mounted(){ const UIP = uni.getStorageSync('UIP'); - this.baseIP = UIP + this.baseIP = UIP; + const UPORT = uni.getStorageSync('UPORT'); + this.basePORT = UPORT; }, methods: { reset:function() { let that = this; that.locNo = ''; that.matNo = ''; + that.locDetlData = []; }, // 鏍规嵁搴撲綅鍙锋煡鎵惧簱瀛樻槑缁� findByLocNo(){ @@ -70,7 +80,7 @@ find(){ let that = this uni.request({ - url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/locDetl/stockQuery", + url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/locDetl/stockQuery", header:{ 'content-type':'application/x-www-form-urlencoded', 'token':uni.getStorageSync('token') @@ -85,12 +95,9 @@ if(res.data.data != null){ that.locDetlData = res.data.data } else if (res.data.code ===403){ - uni.navigateBack({ - delta: 1 - }) + } else { - this.messageToggle('error') - this.messageText = res.data.msg + } } } @@ -102,16 +109,19 @@ </script> <style> - .reset { + /* .reset { position: absolute; width: 750upx; - bottom: 80upx; - } + bottom: 280upx; + } */ .pda-btn1 { - display: flex; - flex-direction:row; - justify-content: center; - width: 150upx; + margin-left:260rpx; + margin-right: auto; + margin-top: 150rpx; + width: 200rpx; + height: 80rpx; + font-size: 30upx; + font-weight: bold; } </style> -- Gitblit v1.9.1