From 3bafe7a5ed8bb14a867944e4c0c3adf583a4174b Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 06 五月 2025 13:10:17 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/pda-master into devlop

---
 pages/listing/disc.vue |   13 +++---
 pages/home/index.vue   |    9 ++++
 pages.json             |    8 +++
 pages/rece/other.vue   |   44 ++++++++++++++-------
 4 files changed, 51 insertions(+), 23 deletions(-)

diff --git a/pages.json b/pages.json
index 7316bfe..0278378 100644
--- a/pages.json
+++ b/pages.json
@@ -21,7 +21,7 @@
 		{
 			"path": "pages/rece/other",
 			"style": {
-				"navigationBarTitleText": "鍏朵粬鏀惰揣"
+				"navigationBarTitleText": "鍗曟嵁鏀惰揣"
 			}
 		},
 		{
@@ -31,6 +31,12 @@
 			}
 		},
 		{
+			"path": "pages/listing/matnrPalletising",
+			"style": {
+				"navigationBarTitleText": "鐗╂枡缁勭洏"
+			}
+		},
+		{
 			"path": "pages/listing/untie",
 			"style": {
 				"navigationBarTitleText": "瑙g粦"
diff --git a/pages/home/index.vue b/pages/home/index.vue
index c38f764..4e82def 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -31,7 +31,7 @@
 				<navigator hover-class='none' url="/pages/rece/other" navigateTo>
 					<view class="cuIcon-taoxiaopu text-blue">
 					</view>
-					<text>鍏朵粬鏀惰揣</text>
+					<text>鍗曟嵁鏀惰揣</text>
 				</navigator>
 			</view>
 
@@ -42,6 +42,13 @@
 					<text>缁勭洏</text>
 				</navigator>
 			</view>
+			<view class="cu-item">
+				<navigator hover-class='none' url="/pages/listing/matnrPalletising" navigateTo>
+					<view class="cuIcon-cardboard text-blue">
+					</view>
+					<text>鐗╂枡缁勭洏</text>
+				</navigator>
+			</view>
 
 			<!-- 			<view class="cu-item">
 				<navigator hover-class='none' url="/pages/listing/untie" navigateTo>
diff --git a/pages/listing/disc.vue b/pages/listing/disc.vue
index c67d0a6..114dd16 100644
--- a/pages/listing/disc.vue
+++ b/pages/listing/disc.vue
@@ -133,10 +133,11 @@
 				container: '',
 				megreQty: '',
 				list: [],
-				range: [],
+				range: [],
 				batch: '',
 				repeatClick: false,
-				isconfirm: false
+				isconfirm: false,
+				batch:''
 			}
 		},
 		computed: {
@@ -163,9 +164,9 @@
 					code,
 					data,
 					msg
-				} = await request('/asnOrderItem/trackCode', {
-					code: this.barcode,
-					batch: this.batch
+				} = await request('/asnOrderItem/trackCode', {
+					code: this.barcode,
+					batch: this.batch
 				}, "post")
 				if (code === 200) {
 					data && this.list.push(data);
@@ -245,7 +246,7 @@
 					msg
 				} = await request('/waitPakin/merge', {
 					items: newArr,
-					barcode: this.container,
+					barcode: this.container,
 					batch: this.batch,
 				})
 				if (code === 200) {
diff --git a/pages/rece/other.vue b/pages/rece/other.vue
index 8fe6ce0..f53d939 100644
--- a/pages/rece/other.vue
+++ b/pages/rece/other.vue
@@ -8,9 +8,10 @@
 				<!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
 			</view>
 			<view class="cu-form-group" v-show="!isconfirm">
-				<view class="title">鐗╂枡鏍囩</view>
-				<input placeholder="璇锋壂鎻忕墿鏂欐爣绛�" v-model="barcode"></input>
-				<text class='cuIcon-search text-blue' @click="scrollTo"></text>
+				<view class="title">鐗╂枡缂栫爜</view>
+				<input placeholder="璇锋壂鎻忕墿鏂欑紪鐮�" v-model="barcode"></input>
+				<text class='cuIcon-close text-gray margin-right-xs' v-show="barcode!==''" @click="clearBarcode"></text>
+				<text class='cuIcon-search text-blue' @click="search"></text>
 			</view>
 
 		</form>
@@ -26,7 +27,8 @@
 								{{index+1}}
 							</view>
 							<view class="text-blue">
-								{{`${item.maktx}`}}
+								缂栫爜:
+								{{`${item.matnr}`}}
 							</view>
 						</view>
 						<view class="action" v-if="!isconfirm">
@@ -37,10 +39,17 @@
 					<view class="cu-item">
 						<view class="content">
 							<text class="text-black">ASN:</text>
-						</view>
-						<view class="action">
 							<text class="text-grey ">{{item.asnCode}}</text>
 						</view>
+						<view class="action">
+							
+						</view>
+					</view>
+					<view class="cu-item">
+						<view class="content">
+							<text class="text-black">鐗╂枡鍚嶇О:</text>
+							<text class="text-grey ">{{item.maktx}}</text>
+						</view>						
 					</view>
 
 					<!-- 	<view class="cu-item">
@@ -187,7 +196,7 @@
 				range: [],
 				repeatClick: false,
 				isconfirm: false,
-				max: 99999999
+				max: 99999999,
 			}
 		},
 		computed: {
@@ -208,7 +217,8 @@
 					data,
 					msg
 				} = await request('/orders/other', {
-					asnCode: this.asncode
+					asnCode: this.asncode,
+					matnrCode: this.barcode
 				})
 				if (code === 200) {
 					this.list = [...data]
@@ -224,12 +234,16 @@
 			clearCode() {
 				this.asncode = ''
 			},
+			clearBarcode() {
+				this.barcode = ''
+			},
 			scrollTo() {
-				const ref = this.$refs[`${this.barcode}ref`][0];
-				uni.pageScrollTo({
-					scrollTop: ref.$el.offsetTop,
-					duration: 300
-				})
+				
+				// const ref = this.$refs[`${this.barcode}ref`][0];
+				// uni.pageScrollTo({
+				// 	scrollTop: ref.$el.offsetTop,
+				// 	duration: 300
+				// })
 			},
 			remove(index) {
 				this.list.splice(index, 1);
@@ -256,7 +270,7 @@
 				console.log(val)
 				uni.setStorageSync('whAreaId', val)
 			},
-			async complete(id) {
+			async complete(id) {
 				this.repeatClick = true
 				const {
 					code,
@@ -273,7 +287,7 @@
 						title: msg,
 						icon: "none",
 					})
-				}
+				}
 				this.repeatClick = false
 			},
 			async confirm(isCom) {

--
Gitblit v1.9.1