From c34153297f866ce25445c5dba6d0f22f63c61ece Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期五, 08 四月 2022 14:40:21 +0800
Subject: [PATCH] #

---
 pages/basics/matQuery.vue |   45 ++++++++++++++++++++++++---------------------
 1 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue
index a73e3c2..bdfe3bd 100644
--- a/pages/basics/matQuery.vue
+++ b/pages/basics/matQuery.vue
@@ -22,14 +22,14 @@
 					<view class="text-title"><text>鏁伴噺</text></view>
 					<view class="text-title">
 						<view>
-							<uni-number-box color="#747474"  @change="changeValue"/>
+							<uni-number-box v-model="matData.anfme" :max="9999" color="#747474"  @change="changeValue"/>
 						</view>
 					</view>
 				</view>
 			</view>
 		</view>
 		<view class="foot flex justify-center">
-			<label for="">
+			<label>
 				<button class="cu-btn bg-blue" @click="back()">鎻愬彇</button>
 			</label>
 		</view>
@@ -45,7 +45,7 @@
 					maktx: null,
 					specs: null,
 					batch: null,
-					anfme: 0
+					anfme: null,
 				},
 				baseIP:'',
 				basePORT:'',
@@ -55,14 +55,18 @@
 			this.baseIP = option.baseIP
 			this.basePORT = option.basePORT
 			this.matData.matnr = option.matnr
+			
+		},
+		onShow() {
 			this.getMat()
 		},
 		methods: {
 			getMat() {
 				let that = this
+				
 				uni.request({
-					url: 'http://localhost:8081/jkwms/mat/auth',
-				    // url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth',
+					// url: 'http://localhost:8081/jkwms/mat/auth',
+				    url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth',
 				    data: {
 						matnr: that.matData.matnr
 				    },
@@ -71,8 +75,8 @@
 				    },
 					success(res) {
 						var res = res.data;
-						console.log(res);
 						if (res.code === 200) {
+							that.matData = {}
 							that.matData = res.data;
 						}
 					}
@@ -88,10 +92,10 @@
 				
 			},
 			back() {
-				this.matData.anfme = 5.9
 				uni.$emit('matData', this.matData);
+				// console.log(this.matData)
 				uni.navigateBack({
-					delta: 1
+					
 				})
 			}
 		}
@@ -110,36 +114,35 @@
 		margin-top: 20rpx;
 		margin-left: 10%;
 		width: 80%;
-		font-size: 36rpx;
-		font-weight: 700;
+		font-size: 32rpx;
+		font-weight: 400;
 		color: #434343;
 		border-bottom: 1rpx solid #e8e8e8;
 	}
 	.text-box:last-child {
 		border-bottom: none;
 	}
-	.text-box:last-child .text-title:last-child {
-		display: flex;
-		height: 100%;
-		align-items: center;
-	}
 	.text-box .text-title {
 		width: 30%;
+		height: 100rpx;
 		float: left;
 		display: inline-block;
 	}
-	.text-box .text-value {
-		width: 70%;
-		padding: 0 20upx;
-	}
 	.text-box .text-title:last-child {
 		display: inline-block;
-		margin-left: 10%;
-		width: 60%;
+		margin-left: 5%;
+		width: 65%;
 		font-size: 30rpx;
 		font-weight: 400;
 		color: #747474;
+		display: flex;
+		align-items: center;
 	}
+	.text-box .text-title:last-child input {
+		border-bottom: 1rpx solid #e8e8e8 ;
+		width: 100%;
+	}
+	
 	
 	.foot {
 		width: 100%;

--
Gitblit v1.9.1