From 6bcb04b62e81a972199a82a61aac32082b7d137d Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期一, 09 九月 2024 14:04:38 +0800
Subject: [PATCH] #

---
 pages/order/orderList.vue |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/pages/order/orderList.vue b/pages/order/orderList.vue
index a81772d..665abc1 100644
--- a/pages/order/orderList.vue
+++ b/pages/order/orderList.vue
@@ -3,7 +3,7 @@
 		<view class="status_bar">
 			<!-- 杩欓噷鏄姸鎬佹爮 -->
 		</view>
-		<uni-nav-bar left-icon="left" background-color="#f8f8f8" title="缁勬墭涓婃灦" @clickLeft="back"  :fixed="true"
+		<uni-nav-bar left-icon="left" background-color="#f8f8f8" title="骞冲簱璁㈠崟涓嬫灦" @clickLeft="back"  :fixed="true"
 			:border="false" rightWidth="160rpx" leftWidth="160rpx"
 			>
 			<block slot="right">
@@ -14,12 +14,15 @@
 				</view>
 			</block>
 		 </uni-nav-bar>
+		<!-- 鎼滅储妗� -->
+		<view class="search-bar">
+			<uni-search-bar v-model="orderNo" placeholder=" 杈撳叆璁㈠崟鍙�" bgColor="#EEEEEE" @input="search" />
+		</view>
 		<view class="card" v-for="item in menuList" @click="chose(item)">
 			{{item}}
 		</view>
 	</view>
 </template>
-
 <script>
 	export default {
 		data() {
@@ -28,6 +31,7 @@
 				token: '',
 				storeId: 0,
 				store: '',
+				orderNo: '',
 				menuList: []
 			}
 		},
@@ -44,11 +48,29 @@
 			this.getOrderNoList()
 		},
 		methods: {
-			back() { uni.navigateBack({}) },
+			back() {
+				uni.navigateBack({})
+			},
 			getOrderNoList() {
 				let that = this
 				uni.request({
 					url: this.baseUrl + '/outOrder/list/all',
+					data: "",
+					header: {
+						'token': uni.getStorageSync('token')
+					},
+					method: 'POST',
+					success(res) {
+						res = res.data
+						that.menuList = res.data
+					}
+				})
+			},
+			search() {
+				let that = this
+				uni.request({
+					url: this.baseUrl + '/outOrder/list/all',
+					data: that.orderNo,
 					header: {
 						'token': uni.getStorageSync('token')
 					},
@@ -76,8 +98,6 @@
 							that.input(that.matnr)
 						},
 					},
-				
-				
 				});
 			}
 		}

--
Gitblit v1.9.1