From 7437dd7b944aaeb64e98a1e0a5943ec88db4afab Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期二, 03 二月 2026 15:37:00 +0800
Subject: [PATCH] #新增扫内部码入库和换码功能

---
 pages/basics/matQuery.vue |   85 +++++++++++++++++++++---------------------
 1 files changed, 42 insertions(+), 43 deletions(-)

diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue
index 5ec43e4..8ef8da5 100644
--- a/pages/basics/matQuery.vue
+++ b/pages/basics/matQuery.vue
@@ -3,43 +3,43 @@
 		<view>
 			<view class="container">
 				<view class="text-box">
-					<view class="text-title"><text>鐗╂枡缂栫爜</text></view>
+					<view class="text-title"><text>Item Code</text></view>
 					<view class="text-title"><text>{{matData.matnr}}</text></view>
 				</view>
 				<view class="text-box">
-					<view class="text-title"><text>鐗╂枡鍚嶇О</text></view>
+					<view class="text-title"><text>Item Name</text></view>
 					<view class="text-title">{{matData.maktx}}</view>
 				</view>
 <!-- 				<view class="text-box">
-					<view class="text-title"><text>瀹㈡埛PO</text></view>
+					<view class="text-title"><text>Customer PO</text></view>
 					<view class="text-title"><input type="text" v-model="matData.standby1"></view>
 				</view>
 				<view class="text-box">
-					<view class="text-title"><text>鏉$爜UPC</text></view>
+					<view class="text-title"><text>Barcode UPC</text></view>
 					<view class="text-title"><input type="text" v-model="matData.standby2"></view>
 				</view>
 				<view class="text-box">
-					<view class="text-title"><text>瀹㈡埛SKU</text></view>
+					<view class="text-title"><text>Customer SKU</text></view>
 					<view class="text-title"><input type="text" v-model="matData.standby3"></view>
 				</view>
 				<view class="text-box">
-					<view class="text-title"><text>璐т富鍚嶇О</text></view>
+					<view class="text-title"><text>Owner Name</text></view>
 					<view class="text-title"><input type="text" v-model="matData.boxType1"></view>
 				</view>
 				<view class="text-box">
-					<view class="text-title"><text>渚涘簲鍟�</text></view>
+					<view class="text-title"><text>Supplier</text></view>
 					<view class="text-title"><input type="text" v-model="matData.supp"></view>
 				</view>
 				<view class="text-box">
-					<view class="text-title"><text>閲囪喘鍗曞彿</text></view>
+					<view class="text-title"><text>PO Number</text></view>
 					<view class="text-title"><input type="text" v-model="matData.boxType3"></view>
 				</view> -->
 				<view class="text-box">
-					<view class="text-title"><text>澶囨敞</text></view>
+					<view class="text-title"><text>Remark</text></view>
 					<view class="text-title"><input type="text" v-model="matData.memo"></view>
 				</view>
 				<view class="text-box">
-					<view class="text-title"><text>鏁伴噺</text></view>
+					<view class="text-title"><text>Quantity</text></view>
 					<view class="text-title">
 						<view>
 							<uni-number-box :value="matData.anfme" :max="999999999" :step="1"  color="#747474" @change="changeValue"/>
@@ -50,7 +50,7 @@
 		</view>
 		<view class="foot flex justify-center">
 			<label>
-				<button class="cu-btn bg-blue" @click="back()">鎻愬彇</button>
+				<button class="cu-btn bg-blue" @click="back()">Extract</button>
 			</label>
 		</view>
 	</scroll-view>
@@ -86,10 +86,10 @@
                 endTime: ''
             },
 			commonProps: [
-			  '4Ni','6Ni', '8Ni', '10Ni', '闀�閾�', '鏈壊',
-			  '闀�闀�', '鐢甸晙', '鐜懓閲�', 'PVD鎷変笣閲戝皝鍝戞补', 'PVD鎷変笣闀嶅皝鍝戞补',
-			  '鐢垫吵浜氶粦', '姘撮晙鏋伆', '鎷変笣', '閽涢噾', '浜櫧',
-			  '浣撴姏娌欓摐鏈壊', '鎶涘厜', '杩囩爞'
+			  '4Ni','6Ni', '8Ni', '10Ni', 'Chrome Plating', 'Natural Color',
+			  'Nickel Plating', 'Electroplating', 'Rose Gold', 'PVD Brushed Gold Matte Oil', 'PVD Brushed Nickel Matte Oil',
+			  'Electrophoresis Matte Black', 'Water Plating Gun Grey', 'Brushed', 'Titanium Gold', 'Bright White',
+			  'Body Polished Sand Copper Natural', 'Polished', 'Sanded'
 			],
 			selectedIndex: -1,
             startTime: formatTime(now),
@@ -109,7 +109,7 @@
 	  // #endif
 
 	  eventChannel.on('matData', function (data) {
-		Object.assign(that.matData, data.data);  // 淇濇寔鍝嶅簲寮�
+		Object.assign(that.matData, data.data);  // Maintain reactivity
 		that.matData.anfme = 1;
 
 		if (that.matData.proType) {
@@ -126,28 +126,28 @@
 
         validateNumber(field, type) {
             const value = this[type][field];
-            // 鍙厑璁歌緭鍏ユ暟瀛�
+            // Only allow numbers
             if (!/^\d*$/.test(value)) {
-                this[type][field] = value.replace(/\D/g, ''); // 鍘婚櫎闈炴暟瀛楀瓧绗�
+                this[type][field] = value.replace(/\D/g, ''); // Remove non-numeric characters
             }
 
-            let max = 59; // 榛樿鏈�澶у��
-            if (field === 'year') max = 9999; // 骞存渶澶у�间负 9999
-            if (field === 'month') max = 12; // 鏈堟渶澶у�间负 12
-            if (field === 'day') max = 31; // 鏃ユ渶澶у�间负 31
-            if (field === 'hour') max = 23; // 灏忔椂鏈�澶у�间负 23
-            if (field === 'minute' || field === 'second') max = 59; // 鍒嗛挓鍜岀鏈�澶у�间负 59
+            let max = 59; // Default max value
+            if (field === 'year') max = 9999; // Max year is 9999
+            if (field === 'month') max = 12; // Max month is 12
+            if (field === 'day') max = 31; // Max day is 31
+            if (field === 'hour') max = 23; // Max hour is 23
+            if (field === 'minute' || field === 'second') max = 59; // Max minute and second is 59
 
-            // 闄愬埗杈撳叆鑼冨洿
+            // Limit input range
             if (parseInt(value, 10) > max) {
-                this[type][field] = max.toString(); // 濡傛灉瓒呭嚭鑼冨洿锛岃缃负鏈�澶у��
+                this[type][field] = max.toString(); // Set to max if out of range
             }
 
-            // 鑷姩鏇存柊瀹屾暣鏃堕棿
+            // Automatically update full date
             this.updateFullDate(type);
         },
 		clearInput(field, type) {
-			this[type][field] = ''; // 娓呯┖鎸囧畾瀛楁鐨勫��
+			this[type][field] = ''; // Clear value of specified field
 		},
         updateFullDate(type) {
             const timeData = this[type];
@@ -193,7 +193,7 @@
         },
         back() {
             if (this.matData.anfme === 0) {
-                uni.showToast({ title: '璇疯緭鍏ユ暟閲�', icon: 'none', position: 'top' });
+                uni.showToast({ title: 'Please enter quantity', icon: 'none', position: 'top' });
                 return;
             }
             this.getOpenerEventChannel().emit('matList', { data: this.matData });
@@ -224,28 +224,28 @@
 	  display: flex;
 	  align-items: center;
 	  padding: 0 10rpx;
-	  /* 缁熶竴瀛椾綋澶у皬锛屽乏鍙冲唴杈硅窛锛屽幓鎺変笂涓嬪唴杈硅窛纭繚鍨傜洿灞呬腑 */
+	  /* Unified font size, left/right padding, remove top/bottom padding to ensure vertical centering */
 	}
 
 	.picker-box {
 	  width: 100%;
-	  /* 璁﹑icker鍐呭鎾戞弧鐩掑瓙 */
+	  /* Let picker content fill the box */
 	  height: 60rpx;
 	  line-height: 60rpx;
-	  /* 琛岄珮鍨傜洿灞呬腑 */
+	  /* Line height vertical centering */
 	}
 
 	input.half-box {
 	  border: none;
 	  outline: none;
-	  /* 鍘绘帀input榛樿杈规 */
+	  /* Remove default input border */
 	  background-color: transparent;
-	  /* 鑳屾櫙閫忔槑锛岃input鑳屾櫙璺熺埗鐩掑瓙涓�鑷� */
+	  /* Transparent background, match input background with parent box */
 	  font-size: 24rpx;
-	  /* 缁ф壙瀛椾綋澶у皬 */
+	  /* Inherit font size */
 	  height: 60rpx;
 	  line-height: 60rpx;
-	  /* 璁╂枃瀛楀瀭鐩村眳涓� */
+	  /* Vertical center text */
 	}
 
 	.container {
@@ -254,8 +254,7 @@
 		background-color: #ffffff;
 	}
 	.text-box {
-		height: 100rpx;
-		line-height: 100rpx;
+		min-height: 100rpx;
 		margin-top: 20rpx;
 		margin-left: 10%;
 		width: 80%;
@@ -263,25 +262,25 @@
 		font-weight: 400;
 		color: #434343;
 		border-bottom: 1rpx solid #e8e8e8;
+		display: flex;
+		align-items: center;
+		padding: 10rpx 0;
 	}
 	.text-box:last-child {
 		border-bottom: none;
 	}
 	.text-box .text-title {
 		width: 30%;
-		height: 100rpx;
-		float: left;
-		display: inline-block;
 	}
 	.text-box .text-title:last-child {
-		display: inline-block;
 		margin-left: 2%;
-		width: 72%;
+		flex: 1;
 		font-size: 30rpx;
 		font-weight: 400;
 		color: #747474;
 		display: flex;
 		align-items: center;
+		flex-wrap: wrap;
 	}
 	.text-box .text-title:last-child input {
 		border-bottom: 1rpx solid #e8e8e8 ;

--
Gitblit v1.9.1