From ef63279c0a2282c7c54cf8e90fc015fcd36a6ec3 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期五, 18 四月 2025 15:42:23 +0800
Subject: [PATCH] #标准收货优化

---
 colorui/main.css        |    2 +-
 pages/rece/standard.vue |   27 +++++++++++++++++++++------
 2 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/colorui/main.css b/colorui/main.css
index 287bec6..2f8ff04 100755
--- a/colorui/main.css
+++ b/colorui/main.css
@@ -2313,7 +2313,7 @@
 	padding: 1upx 30upx;
 	display: flex;
 	align-items: center;
-	min-height: 80upx;
+	min-height: 100upx;
 	justify-content: space-between;
 }
 
diff --git a/pages/rece/standard.vue b/pages/rece/standard.vue
index 394e489..57cb689 100644
--- a/pages/rece/standard.vue
+++ b/pages/rece/standard.vue
@@ -1,10 +1,10 @@
 <template>
 	<view class="has-foot">
 		<form>
-			<view class="cu-form-group margin-top" v-show="!isconfirm">
+			<view class="cu-form-group" v-show="!isconfirm">
 				<view class="title">鐗╂枡鏍囩</view>
-				<input placeholder="璇锋壂鎻忕墿鏂欐爣绛�" v-model="barcode" focus></input>
-				<text class='cuIcon-close text-gray margin-right-xs' v-show="asncode!==''" @click="clearCode"></text>
+				<input placeholder="璇锋壂鎻忕墿鏂欐爣绛�" v-model="barcode" @input="search()" focus></input>
+				<text class='cuIcon-close text-gray margin-right-xs' v-show="barcode!==''" @click="clearCode"></text>
 				<text class='cuIcon-search text-blue' @click="search"></text>
 			</view>
 
@@ -198,9 +198,24 @@
 					data,
 					msg
 				} = await request('/orders/' + this.barcode, {}, "get")
-				if (code === 200) {
+				if (code === 200) {					
+					if (Object.keys(data).length === 0){
+						uni.showToast({
+							title: "璇ユ爣绛炬湭鏌ヨ鍒版暟鎹�",
+							icon: "none",
+							position: 'top'
+						})
+					}
 					this.list.push(...data)
-				} else {
+					
+				}else if(code == 401){
+					setTimeout(() => {
+						uni.removeStorageSync('token');
+						uni.reLaunch({
+							url: "/pages/login/login"
+						});
+					}, 1000);
+				}else {
 					uni.showToast({
 						title: msg,
 						icon: "none",
@@ -211,7 +226,7 @@
 
 			},
 			clearCode() {
-				this.asncode = ''
+				this.barcode = ''
 			},
 			remove(index) {
 				this.list.splice(index, 1);

--
Gitblit v1.9.1