From 5df158f54eb0c7e0e0ba79eb172aaba42735a221 Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期六, 26 二月 2022 17:59:48 +0800
Subject: [PATCH] #

---
 pages/basics/stockQuery.vue |   31 +++++++++++++++++++++++++------
 1 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue
index 03d7cb7..ac832a3 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,8 +25,8 @@
 			</uni-table>
 			
 		</view>
-		<view>
-			<button class="cu-btn bg-grey pda-btn" @click="reset">閲嶇疆</button>
+		<view class="reset">
+			<button class="cu-btn bg-grey pda-btn1" @click="reset">閲� 缃�</button>
 		</view>
 	</view>
 </template>
@@ -40,11 +40,16 @@
 				locDetlData:[],
 			}
 		},
+		mounted(){
+			const UIP = uni.getStorageSync('UIP');
+			this.baseIP = UIP
+		},
 		methods: {
 			reset:function() {
 				let that = this;
 				that.locNo = '';
 				that.matNo = '';
+				that.locDetlData = [];
 			},
 			// 鏍规嵁搴撲綅鍙锋煡鎵惧簱瀛樻槑缁�
 			findByLocNo(){
@@ -66,10 +71,10 @@
 			find(){
 				let that = this
 				uni.request({
-					url:that.baseUrl + "/mobile/locDetl/stockQuery",
+					url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/locDetl/stockQuery",
 					header:{
 						'content-type':'application/x-www-form-urlencoded',
-						'token': localStorage.getItem('token')
+						'token':uni.getStorageSync('token')
 					},
 					data:{
 						locNo: that.locNo,
@@ -95,5 +100,19 @@
 </script>
 
 <style>
-
+	/* .reset {
+		
+		position: absolute;
+		width: 750upx;
+		bottom: 280upx;
+	} */
+	.pda-btn1 {
+		margin-left:260rpx;
+		margin-right: auto;
+		margin-top: 150rpx;
+		width: 200rpx;
+		height: 80rpx;
+		font-size: 30upx;
+		font-weight: bold;
+	}
 </style>

--
Gitblit v1.9.1